@corva/ui 0.28.0-3 → 0.28.0-4
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/CLI/components/App/App.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.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/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -0
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/Notifications/components/Toast.js +1 -1
- package/components/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import o from"moment";import"../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import{setThemeVariables as e}from"../../../utils/themeVariables.js";import"../../../utils/index.js";import{jsx as n,jsxs as
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import o from"moment";import"../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import{setThemeVariables as e}from"../../../utils/themeVariables.js";import"../../../utils/index.js";import{jsx as n,jsxs as s,Fragment as r}from"react/jsx-runtime";import{MuiThemeProvider as i}from"@material-ui/core";import{darkTheme as p,lightTheme as m}from"../../../config/theme/index.js";import{useReducer as c,useEffect as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import l from"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import{MuiPickersUtilsProvider as d}from"@material-ui/pickers";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/TextField/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import j from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import C from"@date-io/moment";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{THEMES as u}from"../../../constants/theme.js";import{LOCAL_STORAGE_APP_THEME_KEY as A}from"../../hocs/constants.js";import{isPDFReportView as x}from"../../hocs/utils.js";import{AuthContext as f}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as g}from"../../constants/index.js";import D from"./components/AppBar/AppBar.js";import v from"../../hocs/effects/useProvideAuth.js";import S from"./App.css.js";function h(h){var b,P=h.children,L=h.router,y=v(L),E=!g.test(L.location.pathname)&&!y.loading,T=c((function(o){return o+1}),0),I=t(T,2)[1],B=null!==(b=localStorage.getItem(A))&&void 0!==b?b:u.DARK,k=!E||!x&&B===u.DARK;a((function(){return e(k)}),[k]);return n(f.Provider,{value:y,children:n(i,{theme:k?p:m,children:n(d,{libInstance:o,utils:C,children:s(r,{children:[!E&&P,E&&s("div",{className:S.app,children:[n(j,{}),n(D,{toggleTheme:function(){localStorage.setItem(A,k?u.LIGHT:u.DARK),I()}}),n("div",{className:l(S.appContent,x&&S.pdfAppContent,!k&&S.lightAppContent),children:P})]})]})})})})}export default h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as o}from"../../constants/devcenter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"../../clients/jsonApi/index.js";import"uuid";import n from"@babel/runtime/helpers/objectWithoutProperties";import"../../components/Modal/index.js";import"../../components/IconMenu/index.js";import"../../components/StyledMenuItem/index.js";import"../../components/LoadingIndicator/LoadingIndicator.js";import"../../components/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import r from"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../components/ErrorBoundary/ErrorBoundary.js";import"../../components/Typography.js";import"../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../components/SlateFormattedText/RenderElements.js";import"../../components/SlateFormattedText/SlateFormattedText.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import s from"../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../components/DevCenter/SideBar/SideBar.js";import"../../components/TruncatedText/index.js";import"../../components/AssetEditor/SingleAssetEditor.js";import"../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../components/AssetEditor/index.js";import"../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../components/CollapsableSidebar.js";import"../../components/DateTimePicker/index.js";import"../../components/DatePicker/index.js";import"../../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../components/ColorPicker/ColorPicker.js";import"../../components/ParameterCharts/AddEditTrack.js";import"../../components/ParameterCharts/ParameterCharts.js";import"../../components/ChartActionsList/ChartActionsList.js";import"../../components/SettingEditors/ColorEditor/index.js";import"../../components/SettingEditors/DropdownEditor/index.js";import"../../components/SettingEditors/RadioEditor/index.js";import"../../components/SwitchControl/index.js";import"../../components/RangeSlider/RangeSlider.js";import"../../components/Login/components/Login.js";import"../../components/Login/components/PasswordField.js";import"../../components/Login/components/Chip.js";import"../../components/Login/components/StepFooter.js";import"../../components/Login/components/StepContent.js";import"../../components/Login/components/StepHeader.js";import"../../components/Login/components/Step.js";import"../../components/Login/components/OrDivider.js";import"../../components/Login/components/HiddenEmailField.js";import"../../components/Login/components/EmailField.js";import"../../components/Breadcrumbs/index.js";import"../../components/VirtualizedTable/index.js";import"../../components/EmptyView/index.js";import"../../components/EmptyView/EmptyAppView/index.js";import"../../components/Button/index.js";import"../../components/MenuItem/index.js";import"../../components/ContextMenuItem/index.js";import"../../components/FolderMenuItem/index.js";import"../../components/EditableItem/EditableItem/index.js";import"../../components/EditableItem/EditableItemWithBadge/index.js";import"../../components/Checkbox/index.js";import"../../components/FolderMenuItemWithLinks/index.js";import"../../components/IconButton/index.js";import"../../components/TextField/index.js";import"../../components/Chip/index.js";import"../../components/Counter/index.js";import"../../components/AnchorsList/AnchorsList.js";import"../../components/Select/index.js";import"../../components/Tabs/Tabs.js";import"../../components/Tabs/Tab.js";import"../../components/Drillstring/BHASchematic.js";import"../../components/Drillstring/BHAComponentIcon.js";import"../../components/Drillstring/BHATable/index.js";import"../../components/Drillstring/BHAComponentDetail/index.js";import"../../components/Casing/CasingComponentIcon.js";import"../../components/Casing/CasingTable/index.js";import"../../components/WellSummary/WellSummaryItemLabel.js";import"../../components/WellSummary/WellSummaryItemTitle.js";import"../../components/WellSummary/WellSummaryItemValue.js";import"../../components/WellSummary/ActivitySummaryChart.js";import"../../components/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../components/PadOffsetsPicker/StagesSelector.js";import"../../components/Table/TableToolbar/TableToolbar.js";import"../../components/PriceInput/PriceInput.js";import"../../components/LabelsCounter/LabelsCounter.js";import"../../components/Stepper/Step.js";import"../../components/Stepper/StepsWrapper.js";import"../../components/Stepper/Stepper.js";import"../../components/Comment/CommentIcon/index.js";import"../../components/FilesLoader/FilesLoader.js";function p(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function i(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){e(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}export default function(e){var p=e.CLIAppComponent,m=e.CLIAppSettings,c=e.packageJson;return function(e){var a=e.manifest,l=e.dashboardProps,d=e.coordinates,j=n(e,["manifest","dashboardProps","coordinates"]),C=a.application.key,u=c.version,A={id:o,app:{app_key:C,platform:"dev_center"},settings:j.settings,package:{manifest:a,build:"".concat(C,"-").concat(u),version:u}};return t(r,{dashboardAssetId:l.assetId,apps:[A],children:t(s,i(i({},j),{},{app:A,coordinates:d,CLIAppComponent:p,CLIAppSettings:m}))})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as e,jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import{getAuthToken as n}from"../../clients/clientStorage/index.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../components/Modal/index.js";import"../../components/IconMenu/index.js";import"../../components/StyledMenuItem/index.js";import r from"../../components/LoadingIndicator/LoadingIndicator.js";import"../../components/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{Route as s,IndexRedirect as i,Router as p,browserHistory as m}from"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../components/DevCenter/AppContext.js";import"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../components/ErrorBoundary/ErrorBoundary.js";import"../../components/Typography.js";import"../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../components/SlateFormattedText/RenderElements.js";import"../../components/SlateFormattedText/SlateFormattedText.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../components/DevCenter/SideBar/SideBar.js";import"../../components/TruncatedText/index.js";import"../../components/AssetEditor/SingleAssetEditor.js";import"../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../components/AssetEditor/index.js";import"../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../components/CollapsableSidebar.js";import"../../components/DateTimePicker/index.js";import"../../components/DatePicker/index.js";import"../../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../components/ColorPicker/ColorPicker.js";import"../../components/ParameterCharts/AddEditTrack.js";import"../../components/ParameterCharts/ParameterCharts.js";import"../../components/ChartActionsList/ChartActionsList.js";import"../../components/SettingEditors/ColorEditor/index.js";import"../../components/SettingEditors/DropdownEditor/index.js";import"../../components/SettingEditors/RadioEditor/index.js";import"../../components/SwitchControl/index.js";import"../../components/RangeSlider/RangeSlider.js";import"../../components/Login/components/Login.js";import"../../components/Login/components/PasswordField.js";import"../../components/Login/components/Chip.js";import"../../components/Login/components/StepFooter.js";import"../../components/Login/components/StepContent.js";import"../../components/Login/components/StepHeader.js";import"../../components/Login/components/Step.js";import"../../components/Login/components/OrDivider.js";import"../../components/Login/components/HiddenEmailField.js";import"../../components/Login/components/EmailField.js";import"../../components/Breadcrumbs/index.js";import"../../components/VirtualizedTable/index.js";import"../../components/EmptyView/index.js";import"../../components/EmptyView/EmptyAppView/index.js";import"../../components/Button/index.js";import"../../components/MenuItem/index.js";import"../../components/ContextMenuItem/index.js";import"../../components/FolderMenuItem/index.js";import"../../components/EditableItem/EditableItem/index.js";import"../../components/EditableItem/EditableItemWithBadge/index.js";import"../../components/Checkbox/index.js";import"../../components/FolderMenuItemWithLinks/index.js";import"../../components/IconButton/index.js";import"../../components/TextField/index.js";import"../../components/Chip/index.js";import"../../components/Counter/index.js";import"../../components/AnchorsList/AnchorsList.js";import"../../components/Select/index.js";import"../../components/Tabs/Tabs.js";import"../../components/Tabs/Tab.js";import"../../components/Drillstring/BHASchematic.js";import"../../components/Drillstring/BHAComponentIcon.js";import"../../components/Drillstring/BHATable/index.js";import"../../components/Drillstring/BHAComponentDetail/index.js";import"../../components/Casing/CasingComponentIcon.js";import"../../components/Casing/CasingTable/index.js";import"../../components/WellSummary/WellSummaryItemLabel.js";import"../../components/WellSummary/WellSummaryItemTitle.js";import"../../components/WellSummary/WellSummaryItemValue.js";import"../../components/WellSummary/ActivitySummaryChart.js";import"../../components/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../components/PadOffsetsPicker/StagesSelector.js";import"../../components/Table/TableToolbar/TableToolbar.js";import"../../components/PriceInput/PriceInput.js";import"../../components/LabelsCounter/LabelsCounter.js";import"../../components/Stepper/Step.js";import"../../components/Stepper/StepsWrapper.js";import"../../components/Stepper/Stepper.js";import"../../components/Comment/CommentIcon/index.js";import"../../components/FilesLoader/FilesLoader.js";import{useAuth as c}from"../context/auth.js";import a from"../screens/LoginScreen/LoginScreen.js";import l from"../screens/OAuthCallbackScreen/index.js";import j from"../components/App/App.js";function d(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.push.apply(t,n)}return t}var u=function(o,e){!!n()&&e("/")},C=function(e){return function(n){var s=n.route,p=n.location,m=n.router,a=c(),l=a.user;return a.loading?t(r,{fullscreen:!0}):l?t(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}({location:p,router:m},s.componentProps||{})):t(i,{to:"/login"})}};export default function(o){return function(n){var r=e(s,{path:"/",component:j,children:[t(i,{to:"app"}),t(s,{path:"app",component:C(o),componentProps:n}),t(s,{path:"login",component:a,onEnter:u}),t(s,{path:"login/oauth-callback",component:l})]});return t(p,{history:m,routes:r})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import{showErrorNotification as o}from"../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import{useEffect as e}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import n from"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/TextField/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{useAuth as s}from"../../context/auth.js";function r(r){var i=r.router,p=s(),m=p.login,c=p.auth0;return e((function(){c.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return i.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),i.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default r;
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import{showErrorNotification as o}from"../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import{useEffect as e}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import n from"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/TextField/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{useAuth as s}from"../../context/auth.js";function r(r){var i=r.router,p=s(),m=p.login,c=p.auth0;return e((function(){c.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return i.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),i.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default r;
|
package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import t from"moment";import"../../../../../../constants/alerts.js";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as p,jsx as a}from"react/jsx-runtime";import{Fade as m,Paper as d,Typography as l}from"@material-ui/core";import{memo as c,useState as j,useRef as u}from"react";import"querystring";import"uuid/v1";import{postAnnotation as C}from"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import A from"../../../../../../effects/useOutsideClick.js";import"uuid";import{number as f,shape as x,func as v,string as h}from"prop-types";import S from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as b}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Tooltip.js";import g from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as y}from"../../../../constants.js";import{useAnnotationsDispatch as D}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as P}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import I from"../AnnotationInput/index.js";import L from"./style.css.js";import"../../../../../ConfirmationDialog.js";import"../../index.js";import"../../../LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/index.js";import"../../../../../EmptyView/EmptyAppView/index.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/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"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.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"../../../../../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";var T=function(r){var c,f=r.appId,x=r.assetId,v=r.assetCompanyId,h=r.appSettings,b=r.currentUser,P=r.classes,T=r.location,E=r.showSuccessNotification,k=r.dashboardType,B=D(),F=j(!1),w=i(F,2),N=w[0],M=w[1],R=u(null);A(R,(function(){M(!1)}));var W,O=(W=s(n.mark((function e(r,i,s){var p,a,m,d;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p={app_id:f,asset_id:x,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:h},a={},k&&(a.dashboard_type=k),(m=o(T,"query.time"))&&(p.data_timestamp=t(m).format()),e.next=8,C(p,a);case 8:d=e.sent,B({type:y,annotation:d}),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 16:E("Annotation has been added"),M(!1);case 18:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return W.apply(this,arguments)});return p("div",{className:L.cAddAnnotationFormInput,children:[a(g,{displayName:"".concat(b.first_name," ").concat(b.last_name),imgSrc:b.profile_photo,size:36}),p("div",{className:S(L.cAddAnnotationFormInputPaper,(c={},e(c,L.cAddAnnotationFormInputPaperOpened,N),e(c,L.cAddAnnotationFormInputPaperClosed,!N),c)),children:[a(m,{in:!N,timeout:500,children:a(d,{className:L.cAddAnnotationFormInputPaperLabel,children:a(l,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:P.inputLabel,onClick:function(){return M(!0)},children:"Type annotation here"})})}),a(m,{in:N,timeout:100,children:a("div",{className:L.cAddAnnotationFormInputPaperAddAnnotation,children:N&&a(I,{onSend:O,assetCompanyId:v,currentUser:b})})})]})]})};T.propTypes={appId:f.isRequired,assetId:f.isRequired,assetCompanyId:f.isRequired,appSettings:x().isRequired,currentUser:x({}),classes:x().isRequired,location:x().isRequired,showSuccessNotification:v,dashboardType:h},T.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([b((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),P])(c(T));export default E;
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import t from"moment";import"../../../../../../constants/alerts.js";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as p,jsx as a}from"react/jsx-runtime";import{Fade as m,Paper as d,Typography as l}from"@material-ui/core";import{memo as c,useState as j,useRef as u}from"react";import"querystring";import"uuid/v1";import{postAnnotation as C}from"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import A from"../../../../../../effects/useOutsideClick.js";import"uuid";import{number as f,shape as x,func as v,string as g}from"prop-types";import D from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as S}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Tooltip.js";import b from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as h}from"../../../../constants.js";import{useAnnotationsDispatch as y}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as P}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import I from"../AnnotationInput/index.js";import L from"./style.css.js";import"../../../../../ConfirmationDialog.js";import"../../index.js";import"../../../LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/index.js";import"../../../../../EmptyView/EmptyAppView/index.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/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"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.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"../../../../../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";var T=function(r){var c,f=r.appId,x=r.assetId,v=r.assetCompanyId,g=r.appSettings,S=r.currentUser,P=r.classes,T=r.location,E=r.showSuccessNotification,k=r.dashboardType,B=y(),F=j(!1),w=i(F,2),M=w[0],N=w[1],R=u(null);A(R,(function(){N(!1)}));var W,O=(W=s(n.mark((function e(r,i,s){var p,a,m,d;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p={app_id:f,asset_id:x,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:g},a={},k&&(a.dashboard_type=k),(m=o(T,"query.time"))&&(p.data_timestamp=t(m).format()),e.next=8,C(p,a);case 8:d=e.sent,B({type:h,annotation:d}),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 16:E("Annotation has been added"),N(!1);case 18:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return W.apply(this,arguments)});return p("div",{className:L.cAddAnnotationFormInput,children:[a(b,{displayName:"".concat(S.first_name," ").concat(S.last_name),imgSrc:S.profile_photo,size:36}),p("div",{className:D(L.cAddAnnotationFormInputPaper,(c={},e(c,L.cAddAnnotationFormInputPaperOpened,M),e(c,L.cAddAnnotationFormInputPaperClosed,!M),c)),children:[a(m,{in:!M,timeout:500,children:a(d,{className:L.cAddAnnotationFormInputPaperLabel,children:a(l,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:P.inputLabel,onClick:function(){return N(!0)},children:"Type annotation here"})})}),a(m,{in:M,timeout:100,children:a("div",{className:L.cAddAnnotationFormInputPaperAddAnnotation,children:M&&a(I,{onSend:O,assetCompanyId:v,currentUser:S})})})]})]})};T.propTypes={appId:f.isRequired,assetId:f.isRequired,assetCompanyId:f.isRequired,appSettings:x().isRequired,currentUser:x({}),classes:x().isRequired,location:x().isRequired,showSuccessNotification:v,dashboardType:g},T.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([S((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),P])(c(T));export default E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{maxBy as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import{PACKAGE_STATUSES as r}from"../../constants/appPackages.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{makeStyles as n,Grid as s,FormControl as p,InputLabel as a,Select as m,ListSubheader as l,MenuItem as d}from"@material-ui/core";import{useState as c,useMemo as u,useEffect as j}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{string as C,func as v,shape as b}from"prop-types";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{isUserDeveloperAdmin as A}from"../../utils/user.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{maxBy as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import{PACKAGE_STATUSES as r}from"../../constants/appPackages.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{makeStyles as n,Grid as s,FormControl as p,InputLabel as a,Select as m,ListSubheader as l,MenuItem as d}from"@material-ui/core";import{useState as c,useMemo as u,useEffect as j}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{string as C,func as v,shape as b}from"prop-types";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{isUserDeveloperAdmin as A}from"../../utils/user.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import g from"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import f from"./effects/index.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";var x=r,D=n({select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999"}}),S=function(r){var n=r.value,C=r.onChange,v=r.appId,b=r.currentUser,S=D(),h=f(v,{status:[x.DRAFT,x.PUBLISHED]}),P=h.isLoading,L=h.packages,y=A(b),E=c(n),T=t(E,2),I=T[0],B=T[1],k=u((function(){var e=[{label:"Stable Release - no stable version",value:"PROD",disabled:!0},{label:"Beta - no beta version",value:"BETA",disabled:!0}],t=[];return L.filter((function(e){return e.attributes.status!==x.FAILURE})).forEach((function(r){var i=r.attributes,o=i.version,n=i.notes,s=i.label,p=i.status;if(s){var a="PROD"===s?e[0]:e[1];a.label="".concat("PROD"===s?"Stable Release":"Beta"," v").concat(o," ").concat(n?"- ".concat(n):""),a.disabled=!1}else y&&t.push({label:"v".concat(o," ").concat(n?"- ".concat(n):""),value:o,status:p})})),{labeled:e,unlabeled:t}}),[L,y]),M=k.labeled,R=k.unlabeled;return j((function(){if(y&&!n){var t=M.find((function(e){return!e.disabled}))||e(R.filter((function(e){return"published"===e.status})),"value");B(null==t?void 0:t.value),C(null==t?void 0:t.value)}}),[M,R]),i(s,{children:o(p,{className:S.select,children:[i(a,{shrink:!(!n&&!I),htmlFor:"appVersion",children:"App Version"}),o(m,{"data-testid":"".concat("DC_versionSelect","_dropdown"),value:n||I,onChange:function(e){C(e.target.value)},disabled:P,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:S.menuListRoot}}},children:[y&&i(l,{className:S.group,children:"Labelled Versions (When selected always shows current Beta or Stable Release Versions)"}),M.map((function(e){var t=e.label,r=e.value,o=e.disabled;return i(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,disabled:o,children:t})})),y&&i(l,{className:S.group,children:"Other versions (App will always show selected version until version is deleted)"}),R.map((function(e){var t=e.label,r=e.value;return i(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,children:i(g,{children:t})})}))]})]})})};S.propTypes={value:C,onChange:v.isRequired,appId:C.isRequired,currentUser:b({}).isRequired},S.defaultProps={value:null};export default S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{get as r,uniq as n,includes as i,isEqual as o}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import l from"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as a,Fragment as p,jsx as m}from"react/jsx-runtime";import{makeStyles as c,Dialog as d,DialogTitle as u,Typography as f,Tooltip as j,IconButton as C,DialogContent as b,DialogActions as v,Button as g}from"@material-ui/core";import{useRef as x,useState as h,useMemo as S,useEffect as A,useCallback as y}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import I from"prop-types";import W from"classnames";import{Close as D}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import P from"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import{useWells as k,useFetchBicWellsData as E}from"./effects/index.js";import T from"./components/Map/index.js";import B from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as w}from"./constants.js";import O from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?L(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=c({paper:{width:"541px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px"},description:{fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"rgba(255, 255, 255, 0.54)"},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{display:"flex",justifyContent:"flex-end",boxShadow:"0px -4px 10px rgba(0, 0, 0, 0.25)",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",marginTop:"2px",marginBottom:"24px",flexDirection:"column"}});function F(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"name")||"-"}function R(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"rigName")||"-"}function V(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function H(e){return e.map((function(e){return M(M({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var t=r(e,"bicWellIds")||[],i=r(e,"manualWellIds")||[],o=r(e,"selectedWellIds")||[];return n(t.concat(i).concat(o))}function z(e){var c=e.defaultSubjectWell,I=e.offsetSetting,L=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=N(),$=x(!0),J=h(r(c,"companyId")||r(I,"companyId")||+r(L,"company_id")),X=s(J,2),Y=X[0],Z=X[1],ee=h(r(c,"asset_id")||r(I,"subjectWellId")||null),te=s(ee,2),re=te[0],ne=te[1],ie=k(Y,z),oe=E(re,z),se=h([]),le=s(se,2),ae=le[0],pe=le[1],me=h(!1),ce=s(me,2),de=ce[0],ue=ce[1],fe=h(I),je=s(fe,2),Ce=je[0],be=je[1],ve=h(!1),ge=s(ve,2),xe=ge[0],he=ge[1],Se=S((function(){if(ie){var e=U(Ce);return ie.filter((function(t){return e.find((function(e){return e===r(t,"id")}))}))}return[]}),[ie,Ce]);A((function(){z&&(Z(r(c,"companyId")||r(I,"companyId")||+r(L,"company_id")),ne(r(c,"asset_id")||r(I,"subjectWellId")||null),be(I),he(!1),$.current=!0)}),[I,z]),A((function(){if(z&&ie&&$.current){var e,o=r(Ce,"selectedWellIds")||[],s=r(Ce,"manualWellIds")||[],a=r(Ce,"bicWellIds")||[],p=o.concat(s),m=p.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:F(ie,e),rigName:R(ie,e),kind:o.includes(e)?"advanced":"manual"}}));if(oe&&oe.filters&&oe.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(t(r(oe,["filters","filterTabs"]))),f=(null===(c=oe.filters)||void 0===c?void 0:c.filterMode)||"holeSize",j=n(u);e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(j.map((function(e){var t;return{name:V(e,f),wells:(null===(t=oe.result[e.value])||void 0===t?void 0:t.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){var t="object"===l(e)?e.id:e;return d.push(t),{id:t,checked:!1,name:F(ie,t),rigName:R(ie,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(w));var C=e.map((function(e){var t=e.wells.map((function(e){return i(a,e.id)||i(p,e.id)?M(M({},e),{},{checked:!0}):M({},e)}));return M(M({},e),{},{wells:t})}));pe(H(C))}}),[z,ie,oe,Ce]);var Ae=y((function(){return U(Ce).length}),[Ce]),ye=y((function(){return(r(Ce,"bicWellIds")||[]).length})),Ie=!ie;return a(p,{children:[a(d,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Q.paper},children:[m(u,{children:a("div",{className:Q.dialogTitles,children:[a("div",{className:Q.titleContent,children:[m(f,{className:Q.title,children:"Select Offset Wells"}),m(j,{title:"Close",children:m(C,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Q.closeIconButton,onClick:_,children:m(D,{className:Q.closeIcon})})})]}),m("div",{className:Q.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),m(b,{className:Q.dialogContent,children:Ie?m(P,{fullscreen:!1}):a(p,{children:[m(T,{wells:Se,offsetWells:Se}),m(B,{company:Y,wellSections:ae,getWellName:F,onChangeWellSections:function(e){var t=H(e);pe(t),he(t[0].expanded);var r=[],i=[],o=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&i.push(e.id),e.checked&&"best"===e.kind&&o.push(e.id)}))}));var s=r.concat(i).concat(o),l=M(M({},Ce),{},{selectedWellIds:n(r),manualWellIds:n(i),bicWellIds:n(o),resultWellIds:n(s)});be(l),$.current=!1},onExploreMode:function(){ue(!0)}})]})}),m(v,{className:W(Q.dialogActions),children:a("div",{children:[m(g,{onClick:_,color:"primary",children:"Cancel"}),a(g,{variant:"contained",color:"primary",onClick:function(){var e=U(Ce),t=ie.filter((function(t){return i(e,t.id)})),r=M(M({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(r,t)},children:["Add (",Ae(),")"]})]})})]}),de&&m(O,{defaultSubjectWellId:r(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:L,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:ye(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var t=e;c||(o(re,r(t,"subjectWellId"))&&o(Y,r(t,"companyId"))||(t=M(M({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ne(r(t,"subjectWellId")),Z(r(t,"companyId")));var n=r(t,"manualWellIds")||[],i=r(t,"selectedWellIds")||[];n=n.filter((function(e){return!i.includes(e)})),t=M(M({},t),{},{manualWellIds:n}),be(t),$.current=!0,he(!0),ue(!1)}})]})}z.propTypes={defaultSubjectWell:I.shape({}),offsetSetting:I.shape({subjectWellId:I.number,companyId:I.number}),currentUser:I.shape({}),isOpen:I.bool.isRequired,onClose:I.func.isRequired,onSave:I.func.isRequired,addWellsUsabilityInfo:I.func,unusableWellAlarm:I.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export default z;
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{get as n,uniq as r,includes as i,isEqual as o}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import l from"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as a,Fragment as p,jsx as m}from"react/jsx-runtime";import{makeStyles as c,Dialog as d,DialogTitle as u,Typography as f,Tooltip as j,IconButton as C,DialogContent as b,DialogActions as v,Button as g}from"@material-ui/core";import{useRef as x,useState as h,useMemo as S,useEffect as A,useCallback as y}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import I from"prop-types";import D from"classnames";import{Close as W}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import P from"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import{useWells as k,useFetchBicWellsData as E}from"./effects/index.js";import T from"./components/Map/index.js";import B from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as w}from"./constants.js";import O from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?L(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var N=c({paper:{width:"541px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px"},description:{fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"rgba(255, 255, 255, 0.54)"},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{display:"flex",justifyContent:"flex-end",boxShadow:"0px -4px 10px rgba(0, 0, 0, 0.25)",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",marginTop:"2px",marginBottom:"24px",flexDirection:"column"}});function F(e,t){var r=e.find((function(e){return e.id===t}));return n(r,"name")||"-"}function R(e,t){var r=e.find((function(e){return e.id===t}));return n(r,"rigName")||"-"}function V(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function H(e){return e.map((function(e){return M(M({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var t=n(e,"bicWellIds")||[],i=n(e,"manualWellIds")||[],o=n(e,"selectedWellIds")||[];return r(t.concat(i).concat(o))}function z(e){var c=e.defaultSubjectWell,I=e.offsetSetting,L=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=N(),$=x(!0),J=h(n(c,"companyId")||n(I,"companyId")||+n(L,"company_id")),X=s(J,2),Y=X[0],Z=X[1],ee=h(n(c,"asset_id")||n(I,"subjectWellId")||null),te=s(ee,2),ne=te[0],re=te[1],ie=k(Y,z),oe=E(ne,z),se=h([]),le=s(se,2),ae=le[0],pe=le[1],me=h(!1),ce=s(me,2),de=ce[0],ue=ce[1],fe=h(I),je=s(fe,2),Ce=je[0],be=je[1],ve=h(!1),ge=s(ve,2),xe=ge[0],he=ge[1],Se=S((function(){if(ie){var e=U(Ce);return ie.filter((function(t){return e.find((function(e){return e===n(t,"id")}))}))}return[]}),[ie,Ce]);A((function(){z&&(Z(n(c,"companyId")||n(I,"companyId")||+n(L,"company_id")),re(n(c,"asset_id")||n(I,"subjectWellId")||null),be(I),he(!1),$.current=!0)}),[I,z]),A((function(){if(z&&ie&&$.current){var e,o=n(Ce,"selectedWellIds")||[],s=n(Ce,"manualWellIds")||[],a=n(Ce,"bicWellIds")||[],p=o.concat(s),m=p.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:F(ie,e),rigName:R(ie,e),kind:o.includes(e)?"advanced":"manual"}}));if(oe&&oe.filters&&oe.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(t(n(oe,["filters","filterTabs"]))),f=(null===(c=oe.filters)||void 0===c?void 0:c.filterMode)||"holeSize",j=r(u);e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(j.map((function(e){var t;return{name:V(e,f),wells:(null===(t=oe.result[e.value])||void 0===t?void 0:t.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){var t="object"===l(e)?e.id:e;return d.push(t),{id:t,checked:!1,name:F(ie,t),rigName:R(ie,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(w));var C=e.map((function(e){var t=e.wells.map((function(e){return i(a,e.id)||i(p,e.id)?M(M({},e),{},{checked:!0}):M({},e)}));return M(M({},e),{},{wells:t})}));pe(H(C))}}),[z,ie,oe,Ce]);var Ae=y((function(){return U(Ce).length}),[Ce]),ye=y((function(){return(n(Ce,"bicWellIds")||[]).length})),Ie=!ie;return a(p,{children:[a(d,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Q.paper},children:[m(u,{children:a("div",{className:Q.dialogTitles,children:[a("div",{className:Q.titleContent,children:[m(f,{className:Q.title,children:"Select Offset Wells"}),m(j,{title:"Close",children:m(C,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Q.closeIconButton,onClick:_,children:m(W,{className:Q.closeIcon})})})]}),m("div",{className:Q.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),m(b,{className:Q.dialogContent,children:Ie?m(P,{fullscreen:!1}):a(p,{children:[m(T,{wells:Se,offsetWells:Se}),m(B,{company:Y,wellSections:ae,getWellName:F,onChangeWellSections:function(e){var t=H(e);pe(t),he(t[0].expanded);var n=[],i=[],o=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&n.push(e.id),e.checked&&"manual"===e.kind&&i.push(e.id),e.checked&&"best"===e.kind&&o.push(e.id)}))}));var s=n.concat(i).concat(o),l=M(M({},Ce),{},{selectedWellIds:r(n),manualWellIds:r(i),bicWellIds:r(o),resultWellIds:r(s)});be(l),$.current=!1},onExploreMode:function(){ue(!0)}})]})}),m(v,{className:D(Q.dialogActions),children:a("div",{children:[m(g,{onClick:_,color:"primary",children:"Cancel"}),a(g,{variant:"contained",color:"primary",onClick:function(){var e=U(Ce),t=ie.filter((function(t){return i(e,t.id)})),n=M(M({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(n,t)},children:["Add (",Ae(),")"]})]})})]}),de&&m(O,{defaultSubjectWellId:n(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:L,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:ye(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var t=e;c||(o(ne,n(t,"subjectWellId"))&&o(Y,n(t,"companyId"))||(t=M(M({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),re(n(t,"subjectWellId")),Z(n(t,"companyId")));var r=n(t,"manualWellIds")||[],i=n(t,"selectedWellIds")||[];r=r.filter((function(e){return!i.includes(e)})),t=M(M({},t),{},{manualWellIds:r}),be(t),$.current=!0,he(!0),ue(!1)}})]})}z.propTypes={defaultSubjectWell:I.shape({}),offsetSetting:I.shape({subjectWellId:I.number,companyId:I.number}),currentUser:I.shape({}),isOpen:I.bool.isRequired,onClose:I.func.isRequired,onSave:I.func.isRequired,addWellsUsabilityInfo:I.func,unusableWellAlarm:I.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export default z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs as i}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import o from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as s}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";var p=r((function(e){return{container:{fontSize:"0.8125rem"},pathPart:{color:e.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var o=r.pathItems,m=p();return t(i,{className:m.container,children:o.map((function(r,i,o){return t(s,{className:n(m.pathPart,e({},m.lastPathPart,i===o.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:o.arrayOf(o.shape({text:o.string,href:o.string})).isRequired};export default m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./Tooltip.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"./ConfirmationDialog.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./PadModeSelect/PadModeSelect.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./ErrorBoundary/InternalErrorView/InternalErrorView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./ColorPicker/ColorPicker.js";import"./ParameterCharts/AddEditTrack.js";import"./ParameterCharts/ParameterCharts.js";import"./ChartActionsList/ChartActionsList.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./RangeSlider/RangeSlider.js";import"./Login/components/Login.js";import"./Login/components/PasswordField.js";import"./Login/components/Chip.js";import"./Login/components/StepFooter.js";import"./Login/components/StepContent.js";import"./Login/components/StepHeader.js";import"./Login/components/Step.js";import"./Login/components/OrDivider.js";import"./Login/components/HiddenEmailField.js";import"./Login/components/EmailField.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/index.js";import"./EmptyView/EmptyAppView/index.js";import"./Button/index.js";import"./MenuItem/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"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTable/index.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./Notifications/Notifications.js";import"./TextLink/index.js";import"./Template/TemplatePopover/index.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"./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";var C=function(t){var n,m=t.classes,C=t.children,u=t.onStateChange,g=t.initialState,f=t.drawerPaperClassName,x=t.isToolbarGutterShown,h=t.openedDrawerWidth,A=t.anchor,b=a(g),
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./Tooltip.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"./ConfirmationDialog.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./PadModeSelect/PadModeSelect.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./ErrorBoundary/InternalErrorView/InternalErrorView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./ColorPicker/ColorPicker.js";import"./ParameterCharts/AddEditTrack.js";import"./ParameterCharts/ParameterCharts.js";import"./ChartActionsList/ChartActionsList.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./RangeSlider/RangeSlider.js";import"./Login/components/Login.js";import"./Login/components/PasswordField.js";import"./Login/components/Chip.js";import"./Login/components/StepFooter.js";import"./Login/components/StepContent.js";import"./Login/components/StepHeader.js";import"./Login/components/Step.js";import"./Login/components/OrDivider.js";import"./Login/components/HiddenEmailField.js";import"./Login/components/EmailField.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/index.js";import"./EmptyView/EmptyAppView/index.js";import"./Button/index.js";import"./MenuItem/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"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTable/index.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./Notifications/Notifications.js";import"./TextLink/index.js";import"./Template/TemplatePopover/index.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"./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";var C=function(t){var n,m=t.classes,C=t.children,u=t.onStateChange,g=t.initialState,f=t.drawerPaperClassName,x=t.isToolbarGutterShown,h=t.openedDrawerWidth,A=t.anchor,b=a(g),D=o(b,2),S=D[0],v=D[1],P=function(){v(!S),u(!S)},T="left"===A?d:c;return r(j,{isToolbarGutterShown:x,drawerWidth:h,drawerClassName:l(m.drawer,!S&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,f,!S&&m.drawerClosed),anchor:A,listClassName:m.list,onClick:function(){S||P()},children:[C,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!S),e(n,m.openToggleContainerOpened,S),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:P,children:i(T,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!S))})})})]})};C.propTypes={children:m.node.isRequired,onStateChange:m.func,initialState:m.bool,drawerPaperClassName:m.string,isToolbarGutterShown:m.bool,openedDrawerWidth:m.oneOfType([m.string,m.number]),anchor:m.oneOf(["left","right"]),closedWidth:m.oneOfType([m.string,m.number])},C.defaultProps={onStateChange:t,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=n((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(C);export default u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as r,Fragment as i,jsx as n}from"react/jsx-runtime";import{makeStyles as s,Drawer as p,Box as a}from"@material-ui/core";import m from"@material-ui/icons/Close";import{useState as l,useRef as d,useEffect as c}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import u from"prop-types";import j from"classnames";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Tooltip.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeader.js";import h from"@material-ui/icons/ChevronLeftRounded";import g from"@material-ui/icons/ChevronRightRounded";import x from"@material-ui/icons/Sort";import C from"@material-ui/icons/Check";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/index.js";import"../../EmptyView/EmptyAppView/index.js";import f from"../../Button/index.js";import"../../MenuItem/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 b 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"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../Notifications/Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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";var A=s((function(t){var o,r;return{drawer:function(o){var r=o.openedDrawerWidth;return e({height:"100%",position:"relative",width:r,borderTop:"1px solid",borderTopColor:t.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"},"&.".concat("closed"),{width:"48px"})},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:t.palette.background.b5},e(o,"&.".concat("closed"),{cursor:"pointer","&:hover":{backgroundColor:t.palette.background.b7,"& > $header":{backgroundColor:t.palette.background.b7}}}),e(o,"&.MuiDrawer-paperAnchorDockedLeft",{borderRight:"none"}),e(o,"&.MuiDrawer-paperAnchorDockedRight",{borderLeft:"none"}),o),header:(r={height:48,borderBottom:"1px solid",borderBottomColor:t.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:t.palette.background.b5},e(r,"&.".concat("open"),{padding:t.spacing(1.5),justifyContent:"flex-start"}),e(r,"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px 12px 12px #272727"}),r),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(t){var o,r=t.anchor;return e(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"},"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px -12px 12px #272727"}),e(o,"&.".concat("open"),{justifyContent:"left"===r?"flex-end":"flex-start",paddingRight:6}),o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer"}}})),S=function(t){var s,u=t.anchor,S=t.children,P=t.drawerPaperClassName,I=t.header,T=t.headerIcon,v=t.headerTitleIcon,w=t.isOpen,y=t.openedDrawerWidth,D=t.setIsOpen,k=t.size,L=t.allOptionsButtonShown,E=t.isAllOptionsSelected,O=t.onAllOptionsClick,B=l(!1),W=o(B,2),M=W[0],N=W[1],F=d(),R=A({anchor:u,openedDrawerWidth:y||{small:235,medium:354,large:473}[k]});c((function(){var e=F.current,t=e.scrollHeight,o=e.clientHeight;N(t>o)}));var H="left"===u?g:h;return r(p,{onClick:function(){w||D(!0)},className:j(R.drawer,!w&&"closed"),variant:"permanent",classes:{paper:j(R.drawerPaper,P,!w&&"closed")},anchor:u,children:[r("div",{className:j(R.header,w&&"open",M&&"withShadow"),onClick:function(){w&&D(!1)},children:[w&&r(i,{children:[v||n(x,{className:R.headerIcon}),n("div",{className:R.headerIconText,children:I}),L&&n(f,{className:R.selectAllButton,onClick:function(e){e.stopPropagation(),O(e)},startIcon:n(E?m:C,{}),children:E?"Clear All":"Select All"})]}),!w&&T]}),n("div",{className:R.contentWrapper,ref:F,children:n("div",{className:R.content,children:w&&S})}),n(a,{className:j(R.openToggleContainer,(s={},e(s,"open",w),e(s,"withShadow",M),s)),children:n(b,{"aria-label":"toggle sidebar",onClick:function(){D(!w)},children:n(H,{className:j(w&&R.openToggleIconOpen)})})})]})};S.propTypes={anchor:u.oneOf(["left","right"]),children:u.node.isRequired,drawerPaperClassName:u.string,header:u.node,headerIcon:u.node,headerTitleIcon:u.node,isOpen:u.bool,openedDrawerWidth:u.oneOfType([u.string,u.number]),setIsOpen:u.func,size:u.oneOf(["small","medium","large"]),allOptionsButtonShown:u.bool,isAllOptionsSelected:u.bool,onAllOptionsClick:u.func},S.defaultProps={anchor:"left",drawerPaperClassName:"",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:t,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:t};export default S;
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as r,Fragment as i,jsx as n}from"react/jsx-runtime";import{makeStyles as s,Drawer as p,Box as a}from"@material-ui/core";import m from"@material-ui/icons/Close";import{useState as l,useRef as d,useEffect as c}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import u from"prop-types";import j from"classnames";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Tooltip.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeader.js";import h from"@material-ui/icons/ChevronLeftRounded";import g from"@material-ui/icons/ChevronRightRounded";import x from"@material-ui/icons/Sort";import C from"@material-ui/icons/Check";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/index.js";import"../../EmptyView/EmptyAppView/index.js";import f from"../../Button/index.js";import"../../MenuItem/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 b 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"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../Notifications/Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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";var A=s((function(t){var o,r;return{drawer:function(o){var r=o.openedDrawerWidth;return e({height:"100%",position:"relative",width:r,borderTop:"1px solid",borderTopColor:t.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"},"&.".concat("closed"),{width:"48px"})},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:t.palette.background.b5},e(o,"&.".concat("closed"),{cursor:"pointer","&:hover":{backgroundColor:t.palette.background.b7,"& > $header":{backgroundColor:t.palette.background.b7}}}),e(o,"&.MuiDrawer-paperAnchorDockedLeft",{borderRight:"none"}),e(o,"&.MuiDrawer-paperAnchorDockedRight",{borderLeft:"none"}),o),header:(r={height:48,borderBottom:"1px solid",borderBottomColor:t.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:t.palette.background.b5},e(r,"&.".concat("open"),{padding:t.spacing(1.5),justifyContent:"flex-start"}),e(r,"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px 12px 12px #272727"}),r),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(t){var o,r=t.anchor;return e(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"},"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px -12px 12px #272727"}),e(o,"&.".concat("open"),{justifyContent:"left"===r?"flex-end":"flex-start",paddingRight:6}),o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer"}}})),S=function(t){var s,u=t.anchor,S=t.children,P=t.drawerPaperClassName,I=t.header,v=t.headerIcon,D=t.headerTitleIcon,T=t.isOpen,w=t.openedDrawerWidth,y=t.setIsOpen,k=t.size,L=t.allOptionsButtonShown,E=t.isAllOptionsSelected,O=t.onAllOptionsClick,B=l(!1),W=o(B,2),M=W[0],N=W[1],F=d(),R=A({anchor:u,openedDrawerWidth:w||{small:235,medium:354,large:473}[k]});c((function(){var e=F.current,t=e.scrollHeight,o=e.clientHeight;N(t>o)}));var H="left"===u?g:h;return r(p,{onClick:function(){T||y(!0)},className:j(R.drawer,!T&&"closed"),variant:"permanent",classes:{paper:j(R.drawerPaper,P,!T&&"closed")},anchor:u,children:[r("div",{className:j(R.header,T&&"open",M&&"withShadow"),onClick:function(){T&&y(!1)},children:[T&&r(i,{children:[D||n(x,{className:R.headerIcon}),n("div",{className:R.headerIconText,children:I}),L&&n(f,{className:R.selectAllButton,onClick:function(e){e.stopPropagation(),O(e)},startIcon:n(E?m:C,{}),children:E?"Clear All":"Select All"})]}),!T&&v]}),n("div",{className:R.contentWrapper,ref:F,children:n("div",{className:R.content,children:T&&S})}),n(a,{className:j(R.openToggleContainer,(s={},e(s,"open",T),e(s,"withShadow",M),s)),children:n(b,{"aria-label":"toggle sidebar",onClick:function(){y(!T)},children:n(H,{className:j(T&&R.openToggleIconOpen)})})})]})};S.propTypes={anchor:u.oneOf(["left","right"]),children:u.node.isRequired,drawerPaperClassName:u.string,header:u.node,headerIcon:u.node,headerTitleIcon:u.node,isOpen:u.bool,openedDrawerWidth:u.oneOfType([u.string,u.number]),setIsOpen:u.func,size:u.oneOf(["small","medium","large"]),allOptionsButtonShown:u.bool,isAllOptionsSelected:u.bool,onAllOptionsClick:u.func},S.defaultProps={anchor:"left",drawerPaperClassName:"",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:t,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:t};export default S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as s}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as r}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{showSuccessNotification as c}from"../../../utils/notificationToasts.js";import"../../../utils/index.js";import{jsx as u,jsxs as d,Fragment as g}from"react/jsx-runtime";import{useTheme as A}from"@material-ui/core";import{useContext as f,useState as j}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import v from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import C from"classnames";import{AnnotationsProvider as b}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as h}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import y from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as s}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as r}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{showSuccessNotification as c}from"../../../utils/notificationToasts.js";import"../../../utils/index.js";import{jsx as u,jsxs as d,Fragment as g}from"react/jsx-runtime";import{useTheme as A}from"@material-ui/core";import{useContext as f,useState as j}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import v from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import C from"classnames";import{AnnotationsProvider as b}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as h}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import y from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import D from"../AppContext.js";import S from"./effects/useAppSettings.js";import I from"./effects/useAnnotationsList.js";import M from"./effects/useAnnotationsData.js";import L from"./effects/useAppMaximized.js";import x from"./components/AppActions/AppActions.js";import"./components/DisabledSettingsMessage/DisabledSettingsMessage.js";import O from"./components/AppSettingsDialog/AppSettingsDialog.js";import P from"./components/AnnotationsButton/AnnotationsButton.js";import R from"./components/NonPriorityMenus/NonPriorityMenus.js";import w from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import z from"./components/DevCenterAppView/DevCenterAppView.js";import N from"./DevCenterAppContainer.css.js";import E from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as F}from"./utils.js";import U from"./components/PriorityMenus/PriorityMenus.js";function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?k(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var _=m||l;function q(t){var l,k,q,T,V,G,H,K=t.CLIAppComponent,W=t.CLIAppSettings,J=t.app,Q=t.appId,X=t.className,Y=t.coordinates,Z=t.currentDashboardAppsLastAnnotations,$=t.currentUser,tt=t.devCenterRouter,et=t.isActionsDisabled,nt=t.isAppNotSubscribed,ot=t.layoutEnvironment,it=t.onAppRemove,st=t.onIsMaximizedChange,rt=t.onSettingChange,pt=t.onSettingsChange,at=t.onCloneDashboard,mt=t.isSettingsVisible,lt=t.setIsFullscreenModalMode,ct=void 0===lt?o:lt,ut=t.updateCurrentDashboardAppLastAnnotation,dt=f(D),gt=A(),At=j([]),ft=i(At,2),jt=ft[0],vt=ft[1],Ct=j([]),bt=i(Ct,2),ht=bt[0],yt=bt[1],Dt=null!==(l=null==dt?void 0:dt[Q||J.id])&&void 0!==l?l:{isLoading:!0},St=null===(k=J.package)||void 0===k||null===(q=k.manifest)||void 0===q?void 0:q.application,It=(null==St||null===(T=St.segments)||void 0===T?void 0:T[0])||r.DRILLING,Mt=!(null==St||null===(V=St.ui)||void 0===V||!V.multi_rig),Lt=p(J),xt=L({onIsMaximizedChange:st,devCenterRouter:tt,appId:Q}),Ot=xt.isMaximized,Pt=xt.setIsMaximized,Rt=a(null===(G=tt.location.query)||void 0===G?void 0:G.query),wt=J.id===s&&_?B(B({},Y),{},{w:12}):Y,zt=v({CLIAppComponent:K,CLIAppSettings:W,url:null==J||null===(H=J.package)||void 0===H?void 0:H.url,appKey:J.app.app_key,version:F(J)}),Nt=zt.isLoading,Et=zt.AppSettings,Ft=zt.AppComponent,Ut=S({setIsFullscreenModalMode:ct}),kt=Ut.isAppSettingsDialogOpened,Bt=Ut.toggleAppSettingsDialog,_t=I(),qt=_t.isAnnotationsListOpened,Tt=_t.toggleAnnotationsList,Vt=Nt||!$||!Mt&&Dt.isLoading,Gt=tt.location,Ht=Gt.pathname,Kt=Gt.query,Wt=M({app:J,appData:Dt,currentDashboardAppsLastAnnotations:Z}),Jt=Wt.appLastAnnotation,Qt=Wt.assetCompanyId,Xt=Wt.assetIdForAnnotation,Yt=Wt.isAppSupportsAnnotations,Zt=e(n(Dt,["well","rig","fracFleet","wells"]),Boolean);return u(h.Provider,{value:tt,children:d("div",{className:C("dc-app-container",X,gt.isLightTheme&&"dc-app-container__light-theme",N.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(J.app.name),children:[u("div",{className:N.containerContent,children:u(z,{AppComponent:Ft,app:J,appData:Zt,isAppLoading:Nt,isAppNotSubscribed:nt,isLoading:Vt,isMultiRig:Mt,segment:It,layoutEnvironment:ot,appProps:{coordinates:wt,currentUser:$,devCenterRouter:tt,onSettingChange:rt,onSettingsChange:pt,setIsFullscreenModalMode:ct,setIsMaximized:Pt,setMainMenuItems:vt,setSecondaryMenuItems:yt,appHeaderProps:B({app:J,appLastAnnotation:Jt,appSettings:J.settings,coordinates:wt,currentUser:$,isMaximized:Ot,layoutEnvironment:ot,onSettingChange:rt,toggleAnnotationsList:Tt,updateCurrentDashboardAppLastAnnotation:ut},Zt),isNative:m,layoutEnvironment:ot,timestamp:Rt}})}),kt&&u(O,{AppSettingsComponent:Et,app:J,appData:Dt,appName:Lt,currentUser:$,isMultiRig:Mt,layoutEnvironment:ot,onAppRemove:it,onSettingChange:rt,onSettingsChange:pt,isSettingsVisible:mt,onCloneDashboard:at,segment:It,timestamp:Rt,toggleAppSettingsDialog:Bt}),qt&&u(b,{children:u(y,{appId:J.app.id,appSettings:J.settings,appTitle:J.name,assetCompanyId:Qt,assetId:Xt,currentUser:$,onClose:Tt,showSuccessNotification:c})}),!et&&Ot&&u(E,{setIsMaximized:Pt}),d(x,{children:[Yt&&u(P,{toggleAnnotationsList:Tt}),_&&!Ot?u(w,{setIsMaximized:Pt}):d(g,{children:[u(U,{menuItems:jt,devCenterRouter:tt}),u(R,{appId:J.id,devCenterRouter:tt,isMaximized:Ot,menuItems:ht,pathname:Ht,query:Kt,setIsMaximized:Pt,toggleAppSettingsDialog:Bt})]})]})]})})}export default q;
|
package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import o from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"@material-ui/icons/InfoOutlined";import n from"./AppInfoMessage.css.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function p(r){var p=r.app,m=r.children,a=r.message,l=r.submessage;return t("div",{className:n.appInfoMessage,children:[e(o,{app:p}),t("div",{className:n.content,children:[m,!m&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:a}),l&&e("p",{className:n.submessage,children:l})]})]})]})}p.propTypes={app:r.shape({}).isRequired,children:r.node,message:r.oneOfType([r.node,r.string]),submessage:r.string},p.defaultProps={message:"",submessage:"",children:null};export default p;
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import o from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"@material-ui/icons/InfoOutlined";import n from"./AppInfoMessage.css.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function p(r){var p=r.app,m=r.children,a=r.message,l=r.submessage;return t("div",{className:n.appInfoMessage,children:[e(o,{app:p}),t("div",{className:n.content,children:[m,!m&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:a}),l&&e("p",{className:n.submessage,children:l})]})]})]})}p.propTypes={app:r.shape({}).isRequired,children:r.node,message:r.oneOfType([r.node,r.string]),submessage:r.string},p.defaultProps={message:"",submessage:"",children:null};export default p;
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as o}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENT_TO_ASSET_TYPE as n,SEGMENTS as s}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as p,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as c,Tabs as d,DialogTitle as u,Divider as j,DialogContent as g,Tab as f,DialogActions as A}from"@material-ui/core";import{useState as C}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as S,shape as b,string as x,bool as P}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{useDevCenterRouter as y}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import h from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import v from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import E from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import T from"./AppDetails.js";import k from"./AppSettingsDialog.module.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import L from"../../../../AssetEditor/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import O from"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function R(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?B(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var F="DC_appSettings",w=l({paper:{minWidth:"50rem",height:"40rem"}})(c),M=l({root:{marginBottom:10}})(d),W="SETTINGS",V="APP DETAILS";function N(l){var c=l.AppSettingsComponent,d=l.app,S=l.appData,b=l.appName,x=l.currentUser,P=l.isMultiRig,B=l.isProductSubscriptionFeatureActive,N=l.layoutEnvironment,q=l.onAppRemove,H=l.onSettingsChange,U=l.segment,_=l.toggleAppSettingsDialog,G=C(W),z=i(G,2),K=z[0],Y=z[1],J=C((function(){var t;return R(R({},e(d.settings)),{},{package:d.settings.package||(null==d||null===(t=d.package)||void 0===t?void 0:t.version)})})),Q=i(J,2),X=Q[0],Z=Q[1],$=C(!0),tt=i($,2),et=tt[0],rt=tt[1],it=y(),ot=d.id===o,nt=function(e,r){return Z((function(i){return R(R({},i),{},t({},e,r))}))},st=function(t){return Z((function(e){return R(R({},e),t)}))},pt=N&&"asset"===N.type,at=!(P||pt&&U===s.COMPLETION);return p(w,{open:!0,onBackdropClick:_,children:[p(u,{children:[b," settings"]}),a(j,{}),p(g,{children:[p(M,{value:K,onChange:function(t,e){return Y(e)},indicatorColor:"primary",textColor:"primary",children:[a(f,{"data-testid":"".concat(F,"_settingsTab"),label:W,value:W}),a(f,{"data-testid":"".concat(F,"_appDetailsTab"),label:V,value:V}),a(O,{className:k.viewAppButton,onClick:function(){var t,e;return it.push((e=null==d||null===(t=d.app)||void 0===t?void 0:t.id,"/apps/".concat(e)))},children:"VIEW APP PAGE"})]}),p(v,{ErrorView:E,app:d,children:[a(h,{open:!et&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return rt(!0)}}),K===W&&p(m,{children:[at&&a(L,{appKey:B&&!ot?d.app_key:null,settings:X,onSettingsChange:st,appType:n[U],isNullable:pt,label:"Active Asset"}),c&&a(c,{app:d,appData:S,settings:X,onSettingChange:nt,onSettingsChange:st,layoutEnvironment:N,currentUser:x}),!ot&&a(I,{appId:d.app.id,value:X.package,onChange:function(t){return nt("package",t)},currentUser:x})]}),K===V&&a(T,{appDescription:r(d,"app.description"),appSummary:r(d,"app.summary")})]})]}),p(A,{children:[q&&a(D,{appName:b,onAppRemove:q}),a(O,{"data-testid":"".concat(F,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),a(O,{"data-testid":"".concat(F,"_save"),variation:"primary",onClick:function(){X.package||ot?(H(X),_()):rt(!1)},children:"Save"})]})]})}N.propTypes={AppSettingsComponent:S,app:b({}).isRequired,appData:b({}).isRequired,appName:x.isRequired,currentUser:b({}).isRequired,isMultiRig:P.isRequired,isProductSubscriptionFeatureActive:P,layoutEnvironment:b({}).isRequired,onAppRemove:S,onSettingsChange:S.isRequired,segment:x.isRequired,toggleAppSettingsDialog:S.isRequired},N.defaultProps={AppSettingsComponent:null,isProductSubscriptionFeatureActive:!1,onAppRemove:void 0};export default N;
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import{cloneDeep as e,get as i}from"lodash";import r from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as o}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENT_TO_ASSET_TYPE as n,SEGMENTS as s}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as p,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as d,Tabs as c,DialogTitle as u,Divider as j,DialogContent as g,Tab as f,DialogActions as C}from"@material-ui/core";import{useState as b}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as A,shape as S,string as h,bool as x}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{useDevCenterRouter as P}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import y from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import v from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import D from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"../DisabledSettingsMessage/DisabledSettingsMessage.js";import T from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import k from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import I from"../../../../AssetEditor/index.js";import O from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import B from"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function R(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function F(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?R(Object(r),!0).forEach((function(i){t(e,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M="DC_appSettings",w=l({paper:{minWidth:"50rem",height:"40rem"}})(d),V=l({root:{marginBottom:10}})(c),W="SETTINGS",N="APP DETAILS";function q(l){var d=l.AppSettingsComponent,c=l.app,A=l.appData,S=l.appName,h=l.currentUser,x=l.isMultiRig,R=l.isProductSubscriptionFeatureActive,q=l.layoutEnvironment,H=l.onAppRemove,U=l.onSettingsChange,_=l.segment,G=l.toggleAppSettingsDialog,z=l.isSettingsVisible,K=l.onCloneDashboard,Y=b(W),J=r(Y,2),Q=J[0],X=J[1],Z=b((function(){var t;return F(F({},e(c.settings)),{},{package:c.settings.package||(null==c||null===(t=c.package)||void 0===t?void 0:t.version)})})),$=r(Z,2),tt=$[0],et=$[1],it=b(!0),rt=r(it,2),ot=rt[0],nt=rt[1],st=P(),pt=c.id===o,at=function(e,i){return et((function(r){return F(F({},r),{},t({},e,i))}))},mt=function(t){return et((function(e){return F(F({},e),t)}))},lt=q&&"asset"===q.type,dt=!(x||lt&&_===s.COMPLETION);return p(w,{open:!0,onBackdropClick:G,children:[p(u,{children:[S," settings"]}),a(j,{}),p(g,{children:[p(V,{value:Q,onChange:function(t,e){return X(e)},indicatorColor:"primary",textColor:"primary",children:[a(f,{"data-testid":"".concat(M,"_settingsTab"),label:W,value:W}),a(f,{"data-testid":"".concat(M,"_appDetailsTab"),label:N,value:N}),a(B,{className:L.viewAppButton,onClick:function(){var t,e;return st.push((e=null==c||null===(t=c.app)||void 0===t?void 0:t.id,"/apps/".concat(e)))},children:"VIEW APP PAGE"})]}),p(v,{ErrorView:D,app:c,children:[a(y,{open:!ot&&!tt.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return nt(!0)}}),Q===W&&p(m,{children:[!z&&a(E,{onCloneDashboard:K}),z&&dt&&a(I,{appKey:R&&!pt?c.app_key:null,settings:tt,onSettingsChange:mt,appType:n[_],isNullable:lt,label:"Active Asset"}),z&&d&&a(d,{app:c,appData:A,settings:tt,onSettingChange:at,onSettingsChange:mt,layoutEnvironment:q,currentUser:h}),z&&!pt&&a(O,{appId:c.app.id,value:tt.package,onChange:function(t){return at("package",t)},currentUser:h})]}),Q===N&&a(k,{appDescription:i(c,"app.description"),appSummary:i(c,"app.summary")})]})]}),p(C,{children:[H&&a(T,{appName:S,onAppRemove:H}),a(B,{"data-testid":"".concat(M,"_cancel"),variation:"secondary",onClick:G,children:"Cancel"}),a(B,{"data-testid":"".concat(M,"_save"),variation:"primary",onClick:function(){tt.package||pt?(U(tt),G()):nt(!1)},children:"Save"})]})]})}q.propTypes={AppSettingsComponent:A,app:S({}).isRequired,appData:S({}).isRequired,appName:h.isRequired,currentUser:S({}).isRequired,isMultiRig:x.isRequired,isProductSubscriptionFeatureActive:x,layoutEnvironment:S({}).isRequired,onAppRemove:A,onSettingsChange:A.isRequired,segment:h.isRequired,toggleAppSettingsDialog:A.isRequired,isSettingsVisible:x.isRequired,onCloneDashboard:A.isRequired},q.defaultProps={AppSettingsComponent:null,isProductSubscriptionFeatureActive:!1,onAppRemove:void 0};export default q;
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as e,Fragment as i,jsx as r}from"react/jsx-runtime";import{Dialog as o,DialogTitle as s,DialogContent as n,DialogContentText as p,DialogActions as m}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import d from"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";var j={elevation:1};function c(l){var c=l.appName,u=l.onAppRemove,A=a(!1),x=t(A,2),C=x[0],g=x[1],
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as e,Fragment as i,jsx as r}from"react/jsx-runtime";import{Dialog as o,DialogTitle as s,DialogContent as n,DialogContentText as p,DialogActions as m}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import d from"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";var j={elevation:1};function c(l){var c=l.appName,u=l.onAppRemove,A=a(!1),x=t(A,2),C=x[0],g=x[1],S=function(){return g(!1)};return e(i,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return g(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),e(o,{open:C,onClose:S,PaperProps:j,children:[e(s,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",c]}),r(n,{children:r(p,{children:"Are you sure you want to remove this app?"})}),e(m,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:S,children:"Cancel"}),r(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return u()},variation:"dangerPrimary",children:"Remove"})]})]})]})}c.propTypes={appName:l.string.isRequired,onAppRemove:l.func.isRequired};export default c;
|
package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsx as r,jsxs as i,Fragment as o}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import n from"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import p from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import a from"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import m from"../../../../EmptyView/index.js";import l from"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function j(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?d(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(t){var d=t.AppComponent,c=t.app,u=t.appData,g=t.appProps,f=t.isAppNotSubscribed,b=t.isLoading,x=t.isMultiRig,A=t.layoutEnvironment,P=t.segment;if(!c.package)return r(a,{message:"App package was not found",submessage:"Please choose another version in the app settings menu or delete and add app again on your dashboard",app:c});if(b)return r(s,{});if(f){var S=g.coordinates,h=S.pixelWidth,C=S.pixelHeight,y=l.APP_MESSAGES.appNotSubscribed,E=y.title,L=y.subtitle;return r(a,{app:c,children:r(l,{title:E,subtitle:L,appHeight:C,appWidth:h})})}if(!d)return r(a,{message:"App component was not found",app:c});if(!x){var O;if(u.rig&&!u.well)return r(a,{app:c,message:i(o,{children:[u.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==A?void 0:A.type)&&P===e.COMPLETION&&!u.fracFleet)return r(a,{app:c,children:r(m,{title:"Frac fleet was not found"})});if(!("general"!==(null==A?void 0:A.type)||P!==e.COMPLETION||null!==(O=u.fracFleet)&&void 0!==O&&O.current_pad_id||c.settings.padId))return r(a,{app:c,children:r(m,{title:"Frac fleet has no active pad"})});if("general"===(null==A?void 0:A.type)&&P===e.COMPLETION&&(!u.wells||u.wells.length<1))return r(a,{app:c,children:r(m,{title:"This pad has no wells"})});if(!(u.rig||u.well||u.settings||u.wells))return r(a,{app:c,message:"No asset data were found"})}return r(p,{ErrorView:n,app:c,withAppHeader:!0,children:r(d,j(j(j({app:c},c.settings),u),g))})}export default c;
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../../../constants/goals.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsx as r,jsxs as i,Fragment as o}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Tooltip.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import n from"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import p from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import a from"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import m from"../../../../EmptyView/index.js";import l from"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/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"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.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"../../../../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";function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function j(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?d(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(t){var d=t.AppComponent,c=t.app,u=t.appData,g=t.appProps,f=t.isAppNotSubscribed,b=t.isLoading,x=t.isMultiRig,A=t.layoutEnvironment,P=t.segment;if(!c.package)return r(a,{message:"App package was not found",submessage:"Please choose another version in the app settings menu or delete and add app again on your dashboard",app:c});if(b)return r(s,{});if(f){var S=g.coordinates,h=S.pixelWidth,C=S.pixelHeight,y=l.APP_MESSAGES.appNotSubscribed,E=y.title,L=y.subtitle;return r(a,{app:c,children:r(l,{title:E,subtitle:L,appHeight:C,appWidth:h})})}if(!d)return r(a,{message:"App component was not found",app:c});if(!x){var O;if(u.rig&&!u.well)return r(a,{app:c,message:i(o,{children:[u.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==A?void 0:A.type)&&P===e.COMPLETION&&!u.fracFleet)return r(a,{app:c,children:r(m,{title:"Frac fleet was not found"})});if(!("general"!==(null==A?void 0:A.type)||P!==e.COMPLETION||null!==(O=u.fracFleet)&&void 0!==O&&O.current_pad_id||c.settings.padId))return r(a,{app:c,children:r(m,{title:"Frac fleet has no active pad"})});if("general"===(null==A?void 0:A.type)&&P===e.COMPLETION&&(!u.wells||u.wells.length<1))return r(a,{app:c,children:r(m,{title:"This pad has no wells"})});if(!(u.rig||u.well||u.settings||u.wells))return r(a,{app:c,message:"No asset data were found"})}return r(p,{ErrorView:n,app:c,withAppHeader:!0,children:r(d,j(j(j({app:c},c.settings),u),g))})}export default c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as o,Fragment as r,jsx as a}from"react/jsx-runtime";import{Typography as e,Button as i}from"@material-ui/core";import t from"prop-types";function n(t){var n=t.onCloneDashboard;return o(r,{children:[a(e,{variant:"body1",gutterBottom:!0,children:"Settings are not available. This is a shared dashboard, which means it's been locked for editing. Would you like to make a copy of this dashboard that you can edit?"}),a(i,{color:"primary",onClick:n,children:"Make Copy of Dashboard"})]})}n.propTypes={onCloneDashboard:t.func.isRequired};export default n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import r from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as o}from"react/jsx-runtime";import"@material-ui/core";import{useState as i,useEffect as n}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import{v4 as s}from"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import p from"./Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";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 a(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}export default function(){var t=i([]),m=r(t,2),
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import r from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as o}from"react/jsx-runtime";import"@material-ui/core";import{useState as i,useEffect as n}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import{v4 as s}from"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Tooltip.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../ConfirmationDialog.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/index.js";import"../EmptyView/EmptyAppView/index.js";import"../Button/index.js";import"../MenuItem/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"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import p from"./Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.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"../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";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 a(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}export default function(){var t=i([]),m=r(t,2),l=m[0],c=m[1],j=function(t){c((function(r){return[].concat(e(r),[t])}))},d=function(t){c((function(e){return e.filter((function(e){return e.id!==t}))}))},u=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={info:"Info",error:"Error",warning:"Warning",success:"Success"},i=3e3,n=a({autoHideDuration:i,content:e||o[t]||"info",id:s(),variant:t},r);return j(n),n.id},C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("success",t,e)},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("error",t,e)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("warning",t,e)},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("info",t,e)};return n((function(){window[Symbol.for("notificationToasts")]={createNotification:j,removeNotification:d,showSuccessNotification:C,showErrorNotification:f,showWarningNotification:g,showInfoNotification:v}}),[]),o(p,{notifications:l,removeNotification:d})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{NOTIFICATION_VARIANTS as t}from"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Grow as o,SnackbarContent as n,Typography as s}from"@material-ui/core";import{useEffect as p,cloneElement as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import m from"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import c from"classnames";import{CheckCircleOutline as d,ReportProblemOutlined as j,ReportOutlined as u,InfoOutlined as C,Close as f}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Tooltip.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../../DevCenter/AppHeader/AppHeader.js";import"../../DevCenter/AppSideBar/AppSideBar.js";import"../../DevCenter/AppContext.js";import"../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/index.js";import"../../EmptyView/EmptyAppView/index.js";import"../../Button/index.js";import"../../MenuItem/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 g 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"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import{useStyles as v}from"./styles.js";import"../Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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";var b;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function D(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?A(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var x="NotificationPopup",P=(e(b={},t.success,d),e(b,t.warning,j),e(b,t.error,u),e(b,t.info,C),b),
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{NOTIFICATION_VARIANTS as t}from"../../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Grow as o,SnackbarContent as n,Typography as s}from"@material-ui/core";import{useEffect as p,cloneElement as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import m from"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import c from"classnames";import{CheckCircleOutline as d,ReportProblemOutlined as j,ReportOutlined as u,InfoOutlined as C,Close as f}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Tooltip.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../../DevCenter/AppHeader/AppHeader.js";import"../../DevCenter/AppSideBar/AppSideBar.js";import"../../DevCenter/AppContext.js";import"../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.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/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/index.js";import"../../EmptyView/EmptyAppView/index.js";import"../../Button/index.js";import"../../MenuItem/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 g 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"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import{useStyles as v}from"./styles.js";import"../Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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";var b;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function D(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?A(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var x="NotificationPopup",P=(e(b={},t.success,d),e(b,t.warning,j),e(b,t.error,u),e(b,t.info,C),b),S=function(e){e.classes;var t=e.onDismissClick,l=e.toast,d=m(e,["classes","onDismissClick","toast"]),j=l.alertLevel,u=l.autoHideDuration,C=void 0===u?3e3:u,b=l.content,A=l.hideIcon,S=l.icon,h=l.id,y=l.onClick,L=void 0===y?function(){}:y,T=l.timestamp,E=l.title,k=l.variant,O=void 0===k?"info":k;p((function(){var e=setTimeout((function(){return t(h)}),C);return function(){return clearTimeout(e)}}),[]);var I=v(),B=P[O];return r(o,{appear:!0,in:!0,children:r(n,D({classes:{root:c(I.main,!j&&I[O],j&&I["alertLevels-".concat(j)]),action:I.actionContainer,message:I.messageContainer},"aria-describedby":"client-snackbar",message:i("div",{id:"client-snackbar",className:I.messageWrapper,onClick:L,"data-testid":"".concat(x,"_status_").concat({success:"success",info:"info",warning:"warning",error:"error"}[O]),children:[!A&&r("div",{className:I.iconWrapper,children:S?a(S,{className:I.icon,nativeColor:"#fff"}):r(B,{htmlColor:"#fff",className:I.icon})}),i("div",{className:I.message,children:[i("div",{className:I.messageTop,children:[E&&r(s,{"data-testid":"".concat(x,"_title"),variant:"subtitle2",className:I.title,children:E}),T&&r(s,{className:c(I.timestamp,!j&&I[O]),children:T})]}),r("div",{className:c(I.messageContent,!j&&I[O]),children:r(s,{"data-testid":"".concat(x,"_content"),className:c(!j&&I.content),children:b})})]})]}),action:[r(g,{"data-testid":"".concat(x,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){return t(h)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:I.tooltip}},className:I.closeIconButton,children:r(f,{className:I.closeIcon,htmlColor:j?"#000":"#fff"})},"close")]},d))})};S.propTypes={onDismissClick:l.func.isRequired,toast:l.shape({alertLevel:l.oneOf(["info","warning","critical"]),autoHideDuration:l.number,content:l.node.isRequired,hideIcon:l.bool,icon:l.node,id:l.oneOfType([l.number,l.string]).isRequired,onClick:l.func,timestamp:l.string,title:l.string,variant:l.oneOf(["success","warning","error","info"])}).isRequired};export default S;
|
package/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"react/jsx-runtime";import"react";import"@babel/runtime/helpers/objectWithoutProperties";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";export{default as Tooltip}from"./Tooltip.js";export{default as Avatar}from"./Avatar/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";export{default as InternalErrorView}from"./ErrorBoundary/InternalErrorView/InternalErrorView.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import*as e from"./Typography.js";export{e as Typography};import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{default as AppSettingsDialog}from"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";import*as t from"./Login/index.js";export{t as Login};export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/index.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/index.js";export{default as Button}from"./Button/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as IconButton}from"./IconButton/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";import*as r from"./WellSummary/index.js";export{r as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";export{default as TextLink}from"./TextLink/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as o from"./PadOffsetsPicker/index.js";export{o as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"../constants/segment.js";import"react/jsx-runtime";import"react";import"@babel/runtime/helpers/objectWithoutProperties";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";export{default as Tooltip}from"./Tooltip.js";export{default as Avatar}from"./Avatar/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";export{default as InternalErrorView}from"./ErrorBoundary/InternalErrorView/InternalErrorView.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import*as e from"./Typography.js";export{e as Typography};import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as DisabledSettingsMessage}from"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{default as AppSettingsDialog}from"./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";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";import*as t from"./Login/index.js";export{t as Login};export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/index.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/index.js";export{default as Button}from"./Button/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as IconButton}from"./IconButton/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";import*as r from"./WellSummary/index.js";export{r as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";export{default as TextLink}from"./TextLink/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as o from"./PadOffsetsPicker/index.js";export{o as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";
|