@corva/ui 0.23.0-5 → 0.23.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  3. package/CLI/hocs/withReactRouterHOC.js +1 -1
  4. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  5. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  6. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  7. package/components/BICOffsetPickerDialog/index.js +1 -1
  8. package/components/Breadcrumbs/index.js +1 -1
  9. package/components/CollapsableSidebar.js +1 -1
  10. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  11. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  12. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  13. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  14. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  15. package/components/FilesLoader/FilesLoader.js +1 -0
  16. package/components/FilesLoader/constants.js +1 -0
  17. package/components/FilesLoader/effects/useUploadingFile.js +1 -0
  18. package/components/FilesLoader/partials/FileIcon/FileIcon.js +1 -0
  19. package/components/FilesLoader/partials/UploadingFileState/UploadingFileState.js +1 -0
  20. package/components/Modal/Modal.css.js +1 -1
  21. package/components/Modal/index.js +1 -1
  22. package/components/Notifications/NotificationsContainer.js +1 -1
  23. package/components/index.js +1 -1
  24. package/constants/wellSummary.js +1 -1
  25. package/package.json +1 -1
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}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"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.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/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/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/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import e from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.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{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"./App.css.js";import p from"../../hocs/effects/useProvideAuth.js";function m(m){var c=m.children,a=m.router,l=p(a),j=!r.test(a.location.pathname)&&!l.loading;return o(n.Provider,{value:l,children:[!j&&c,j&&o("div",{className:i.app,children:[t(e,{}),t(s,{}),t("div",{className:i.appContent,children:c})]})]})}export default m;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}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"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.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/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/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/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import e from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.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{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"./App.css.js";import p from"../../hocs/effects/useProvideAuth.js";function m(m){var c=m.children,a=m.router,l=p(a),d=!r.test(a.location.pathname)&&!l.loading;return o(n.Provider,{value:l,children:[!d&&c,d&&o("div",{className:i.app,children:[t(e,{}),t(s,{}),t("div",{className:i.appContent,children:c})]})]})}export default m;
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as t}from"../../constants/devcenter.js";import"../../constants/drillstring.js";import"@babel/runtime/helpers/typeof";import{jsx as e}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/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/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 i 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/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/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/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/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";function s(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}export default function(o){var s=o.CLIAppComponent,m=o.CLIAppSettings,c=o.packageJson;return function(o){var a=o.manifest,d=o.dashboardProps,l=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=a.application.key,C=c.version,b={id:t,app:{app_key:u},settings:j.settings,package:{manifest:a,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:d.assetId,apps:[b],children:e(i,p(p({},j),{},{app:b,coordinates:l,CLIAppComponent:s,CLIAppSettings:m}))})}}
1
+ import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as t}from"../../constants/devcenter.js";import"../../constants/drillstring.js";import"@babel/runtime/helpers/typeof";import{jsx as e}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/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/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 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/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/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/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/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 i(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}export default function(o){var i=o.CLIAppComponent,m=o.CLIAppSettings,a=o.packageJson;return function(o){var c=o.manifest,d=o.dashboardProps,l=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=c.application.key,C=a.version,b={id:t,app:{app_key:u},settings:j.settings,package:{manifest:c,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:d.assetId,apps:[b],children:e(s,p(p({},j),{},{app:b,coordinates:l,CLIAppComponent:i,CLIAppSettings:m}))})}}
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as t,jsx as e}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/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{Route as p,IndexRedirect as i,Router as s,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/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/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/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/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/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{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,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}var u=function(o,t){!!n()&&t("/")},C=function(t){return function(n){var p=n.route,s=n.location,m=n.router,a=c(),l=a.user;return a.loading?e(r,{fullscreen:!0}):l?e(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}({location:s,router:m},p.componentProps||{})):e(i,{to:"/login"})}};export default function(o){return function(n){var r=t(p,{path:"/",component:j,children:[e(i,{to:"app"}),e(p,{path:"app",component:C(o),componentProps:n}),e(p,{path:"login",component:a,onEnter:u}),e(p,{path:"login/oauth-callback",component:l})]});return e(s,{history:m,routes:r})}}
1
+ import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as t,jsx as e}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/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{Route as p,IndexRedirect as i,Router as s,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/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/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/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/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/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,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}var u=function(o,t){!!n()&&t("/")},C=function(t){return function(n){var p=n.route,s=n.location,m=n.router,a=c(),l=a.user;return a.loading?e(r,{fullscreen:!0}):l?e(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}({location:s,router:m},p.componentProps||{})):e(i,{to:"/login"})}};export default function(o){return function(n){var r=t(p,{path:"/",component:j,children:[e(i,{to:"app"}),e(p,{path:"app",component:C(o),componentProps:n}),e(p,{path:"login",component:a,onEnter:u}),e(p,{path:"login/oauth-callback",component:l})]});return e(s,{history:m,routes:r})}}
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";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/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/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/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/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/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{useAuth as r}from"../../context/auth.js";import s from"../../../clients/auth0/index.js";function i(i){var p=i.router,m=r().login;return e((function(){s.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return p.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),p.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default i;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";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/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/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/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/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/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 r}from"../../context/auth.js";import s from"../../../clients/auth0/index.js";function i(i){var p=i.router,m=r().login;return e((function(){s.handleAuthentication((function(o){return m({token:o.accessToken},(function(){return p.push("/")}))}),(function(){o("Sorry, but we couldn’t log you in. Please contact Corva support if you need assistance"),p.push("/login")}))}),[]),t(n,{fullscreen:!1})}export default i;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import e from"moment";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/completion.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/alerts.js";import"../../../../../../constants/drillstring.js";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 v,shape as x,func as f,string as b}from"prop-types";import g from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as D}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import y from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as S}from"../../../../constants.js";import{useAnnotationsDispatch as h}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as I}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import P 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/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"../../../../../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"../../../../../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"../../../../../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";var T=function(r){var c,v=r.appId,x=r.assetId,f=r.assetCompanyId,b=r.appSettings,D=r.currentUser,I=r.classes,T=r.location,E=r.showSuccessNotification,B=r.dashboardType,F=h(),k=j(!1),w=i(k,2),N=w[0],M=w[1],R=u(null);A(R,(function(){M(!1)}));var W,V=(W=s(n.mark((function t(r,i,s){var p,a,m,d;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,p={app_id:v,asset_id:x,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:b},a={},B&&(a.dashboard_type=B),(m=o(T,"query.time"))&&(p.data_timestamp=e(m).format()),t.next=8,C(p,a);case 8:d=t.sent,F({type:S,annotation:d}),t.next=16;break;case 12:return t.prev=12,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return");case 16:E("Annotation has been added"),M(!1);case 18:case"end":return t.stop()}}),t,null,[[0,12]])}))),function(t,e,r){return W.apply(this,arguments)});return p("div",{className:L.cAddAnnotationFormInput,children:[a(y,{displayName:"".concat(D.first_name," ").concat(D.last_name),imgSrc:D.profile_photo,size:36}),p("div",{className:g(L.cAddAnnotationFormInputPaper,(c={},t(c,L.cAddAnnotationFormInputPaperOpened,N),t(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:I.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(P,{onSend:V,assetCompanyId:f,currentUser:D})})})]})]})};T.propTypes={appId:v.isRequired,assetId:v.isRequired,assetCompanyId:v.isRequired,appSettings:x().isRequired,currentUser:x({}),classes:x().isRequired,location:x().isRequired,showSuccessNotification:f,dashboardType:b},T.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([D((function(t){return{inputLabel:{color:t.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(c(T));export default E;
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"moment";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/completion.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/alerts.js";import"../../../../../../constants/drillstring.js";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 v,shape as x,func as f,string as b}from"prop-types";import g from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as D}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import y from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as S}from"../../../../constants.js";import{useAnnotationsDispatch as h}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as I}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import L from"../AnnotationInput/index.js";import P 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/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"../../../../../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"../../../../../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"../../../../../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,v=r.appId,x=r.assetId,f=r.assetCompanyId,b=r.appSettings,D=r.currentUser,I=r.classes,T=r.location,E=r.showSuccessNotification,B=r.dashboardType,F=h(),k=j(!1),w=i(k,2),N=w[0],M=w[1],R=u(null);A(R,(function(){M(!1)}));var W,V=(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:v,asset_id:x,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:b},a={},B&&(a.dashboard_type=B),(m=o(T,"query.time"))&&(p.data_timestamp=t(m).format()),e.next=8,C(p,a);case 8:d=e.sent,F({type:S,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:P.cAddAnnotationFormInput,children:[a(y,{displayName:"".concat(D.first_name," ").concat(D.last_name),imgSrc:D.profile_photo,size:36}),p("div",{className:g(P.cAddAnnotationFormInputPaper,(c={},e(c,P.cAddAnnotationFormInputPaperOpened,N),e(c,P.cAddAnnotationFormInputPaperClosed,!N),c)),children:[a(m,{in:!N,timeout:500,children:a(d,{className:P.cAddAnnotationFormInputPaperLabel,children:a(l,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:I.inputLabel,onClick:function(){return M(!0)},children:"Type annotation here"})})}),a(m,{in:N,timeout:100,children:a("div",{className:P.cAddAnnotationFormInputPaperAddAnnotation,children:N&&a(L,{onSend:V,assetCompanyId:f,currentUser:D})})})]})]})};T.propTypes={appId:v.isRequired,assetId:v.isRequired,assetCompanyId:v.isRequired,appSettings:x().isRequired,currentUser:x({}),classes:x().isRequired,location:x().isRequired,showSuccessNotification:f,dashboardType:b},T.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([D((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(c(T));export default E;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{debounce as t,identity as r}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{withStyles as a,List as l,FormControl as s,InputLabel as p,FormHelperText as u,Typography as c,TextField as d,InputAdornment as f,Chip as m}from"@material-ui/core";import{forwardRef as b,useState as g,useEffect as h,useMemo as y}from"react";import O from"@babel/runtime/helpers/objectWithoutProperties";import x from"prop-types";import{Search as v}from"@material-ui/icons";import T from"../TruncatedText/index.js";import{PER_PAGE as I,SCROLL_THRESHOLD as j}from"./constants.js";import{useAssetAutoCompleteSelectData as P}from"./effects/index.js";import{Autocomplete as A}from"@material-ui/lab";function C(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 S(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var M="DC_SingleAssetEditorAutocomplete",w={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},L=function(e){var t=e.text;return i("li",{style:w,children:i(c,{variant:"body2",color:"textSecondary",children:void 0===t?"Loading...":t})},"loading")},D=b((function(e,t){var r=e.children,n=e.loading,a=e.hasMore,s=O(e,["children","loading","hasMore"]);return o(l,S(S({},s),{},{ref:t,role:"listbox",children:[r,(a||n)&&i(L,{})]}))})),N=function(e){var a=e["data-testid"],l=e.appKey,c=e.assetType,b=e.classes,O=e.companyId,x=e.currentValue,C=e.disabled,w=e.errorText,N=e.isMultiple,R=e.isNullable,V=e.label,E=e.onChange,K=e.parentAssetId,_=e.parentAssetType,k=g(N?[]:null),q=n(k,2),z=q[0],H=q[1],B=g(""),W=n(B,2),F=W[0],G=W[1],J=g(""),Q=n(J,2),U=Q[0],X=Q[1],Y=g(!1),Z=n(Y,2),$=Z[0],ee=Z[1],te=g(1),re=n(te,2),ne=re[0],oe=re[1],ie=g(!0),ae=n(ie,2),le=ae[0],se=ae[1];h((function(){H(N?[]:null),oe(1),ee(!1)}),[c]);var pe=P({appKey:l,assetType:c,companyId:O,currentValue:x,isMultiple:N,parentAssetId:K,parentAssetType:_,scrollPage:ne,searchText:F,setCurrentOption:H}),ue=pe.assets,ce=pe.loading;h((function(){var e=ue.length>=I*ne;se(e)}),[ue,ne]);var de=y((function(){return t((function(e){oe(1),G(e)}),200)}),[]),fe=y((function(){return t((function(){return oe((function(e){return e+1}))}),250)}),[]),me={root:b.root,inputRoot:b.inputRoot,popupIndicator:b.popupIndicator,option:b.option,noOptions:b.noOptions,listbox:b.listbox};return o(s,{disabled:C,error:!!w,className:b.formControl,children:[!R&&i(p,{shrink:!0,children:V}),i(A,S({disabled:C,blurOnSelect:!0,classes:me,clearOnBlur:!0,clearOnEscape:!0,"data-testid":a,disableClearable:!0,filterOptions:r,getOptionLabel:function(e){return null==e?void 0:e.name},getOptionSelected:function(e,t){return e&&t&&e.id===t.id},inputValue:$?U:(null==z?void 0:z.name)||"",ListboxComponent:D,ListboxProps:{onScroll:function(e){if(le&&!ce){var t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-j&&fe()}},loading:ce,hasMore:le},options:ue,onChange:function(e,t){H(t),E(N?t.map((function(e){return e.id})):null==t?void 0:t.id)},onClose:function(){X(""),G(""),ee(!1),oe(1)},onInputChange:function(e,t,r){"input"===r?(X(t),ee(!0),de(t)):G("")},noOptionsText:i(L,{text:ce?"Loading...":"No options"}),renderInput:function(e){return i(d,S(S({},e),{},{variant:"standard",placeholder:"Search for asset..."},!N&&{InputProps:S(S({},e.InputProps),{},{startAdornment:i(f,{children:i(v,{className:b.searchIcon})})})}))},renderOption:function(e){var t=e.id,r=e.name;return i(T,{"data-testid":"".concat(M,"_option_").concat(r,"MenuItem"),children:N&&x.includes(t)?"".concat(r," (already selected)"):r},t)},value:z,multiple:N},N&&{renderTags:function(e,t){return e.map((function(e,r){return i(m,S({label:null==e?void 0:e.name},t({index:r})),e.id)}))},getOptionDisabled:function(e){return x.includes(e.id)}})),i(u,{children:w})]})};N.defaultProps={label:"Choose An Asset",currentValue:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":"".concat(M,"_autoComplete"),disabled:!1,isMultiple:!1,appKey:null},N.propTypes={label:x.string,currentValue:x.oneOfType([x.number,x.arrayOf(x.number)]),isNullable:x.bool,onChange:x.func.isRequired,classes:x.shape({}).isRequired,parentAssetId:x.number,parentAssetType:x.string,companyId:x.number,assetType:x.string.isRequired,errorText:x.string,"data-testid":x.string,disabled:x.bool,isMultiple:x.bool,appKey:x.string};var R=a((function(e){return{formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}}}))(N);export default R;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{debounce as t,identity as r}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{withStyles as a,List as l,FormControl as s,InputLabel as p,FormHelperText as u,Typography as c,TextField as d,InputAdornment as f,Chip as m}from"@material-ui/core";import{forwardRef as b,useState as g,useEffect as h,useMemo as y}from"react";import O from"@babel/runtime/helpers/objectWithoutProperties";import x from"prop-types";import{Search as v}from"@material-ui/icons";import T from"../TruncatedText/index.js";import{PER_PAGE as I,SCROLL_THRESHOLD as j}from"./constants.js";import{useAssetAutoCompleteSelectData as P}from"./effects/index.js";import{Autocomplete as A}from"@material-ui/lab";function C(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 S(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var M="DC_SingleAssetEditorAutocomplete",w={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},L=function(e){var t=e.text;return i("li",{style:w,children:i(c,{variant:"body2",color:"textSecondary",children:void 0===t?"Loading...":t})},"loading")},D=b((function(e,t){var r=e.children,n=e.loading,a=e.hasMore,s=O(e,["children","loading","hasMore"]);return o(l,S(S({},s),{},{ref:t,role:"listbox",children:[r,(a||n)&&i(L,{})]}))})),N=function(e){var a=e["data-testid"],l=e.appKey,c=e.assetType,b=e.classes,O=e.companyId,x=e.currentValue,C=e.disabled,w=e.errorText,N=e.isMultiple,R=e.isNullable,V=e.label,E=e.onChange,K=e.parentAssetId,_=e.parentAssetType,k=g(N?[]:null),q=n(k,2),z=q[0],H=q[1],B=g(""),W=n(B,2),F=W[0],G=W[1],J=g(""),Q=n(J,2),U=Q[0],X=Q[1],Y=g(!1),Z=n(Y,2),$=Z[0],ee=Z[1],te=g(1),re=n(te,2),ne=re[0],oe=re[1],ie=g(!0),ae=n(ie,2),le=ae[0],se=ae[1];h((function(){H(N?[]:null),oe(1),ee(!1)}),[c]);var pe=P({appKey:l,assetType:c,companyId:O,currentValue:x,isMultiple:N,parentAssetId:K,parentAssetType:_,scrollPage:ne,searchText:F,setCurrentOption:H}),ue=pe.assets,ce=pe.loading;h((function(){var e=ue.length>=I*ne;se(e)}),[ue,ne]);var de=y((function(){return t((function(e){oe(1),G(e)}),200)}),[]),fe=y((function(){return t((function(){return oe((function(e){return e+1}))}),250)}),[]),me={root:b.root,inputRoot:b.inputRoot,popupIndicator:b.popupIndicator,option:b.option,noOptions:b.noOptions,listbox:b.listbox};return o(s,{disabled:C,error:!!w,className:b.formControl,children:[!R&&i(p,{shrink:!0,children:V}),i(A,S({disabled:C,blurOnSelect:!0,classes:me,clearOnBlur:!0,clearOnEscape:!0,"data-testid":a,disableClearable:!0,filterOptions:r,getOptionLabel:function(e){return null==e?void 0:e.name},getOptionSelected:function(e,t){return e&&t&&e.id===t.id},inputValue:$?U:(null==z?void 0:z.name)||"",ListboxComponent:D,ListboxProps:{onScroll:function(e){if(le&&!ce){var t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-j&&fe()}},loading:ce,hasMore:le},options:ue,onChange:function(e,t){H(t),E(N?t.map((function(e){return e.id})):null==t?void 0:t.id,t)},onClose:function(){X(""),G(""),ee(!1),oe(1)},onInputChange:function(e,t,r){"input"===r?(X(t),ee(!0),de(t)):G("")},noOptionsText:i(L,{text:ce?"Loading...":"No options"}),renderInput:function(e){return i(d,S(S({},e),{},{variant:"standard",placeholder:"Search for asset..."},!N&&{InputProps:S(S({},e.InputProps),{},{startAdornment:i(f,{children:i(v,{className:b.searchIcon})})})}))},renderOption:function(e){var t=e.id,r=e.name;return i(T,{"data-testid":"".concat(M,"_option_").concat(r,"MenuItem"),children:N&&x.includes(t)?"".concat(r," (already selected)"):r},t)},value:z,multiple:N},N&&{renderTags:function(e,t){return e.map((function(e,r){return i(m,S({label:null==e?void 0:e.name},t({index:r})),e.id)}))},getOptionDisabled:function(e){return x.includes(e.id)}})),i(u,{children:w})]})};N.defaultProps={label:"Choose An Asset",currentValue:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":"".concat(M,"_autoComplete"),disabled:!1,isMultiple:!1,appKey:null},N.propTypes={label:x.string,currentValue:x.oneOfType([x.number,x.arrayOf(x.number)]),isNullable:x.bool,onChange:x.func.isRequired,classes:x.shape({}).isRequired,parentAssetId:x.number,parentAssetType:x.string,companyId:x.number,assetType:x.string.isRequired,errorText:x.string,"data-testid":x.string,disabled:x.bool,isMultiple:x.bool,appKey:x.string};var R=a((function(e){return{formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}}}))(N);export default R;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{get as t,uniq as n,includes as r,isEqual as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";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 A,useEffect as S,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 E from"../LoadingIndicator/LoadingIndicator.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/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"../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{useWells as B,useFetchBicWellsData as P}from"./effects/index.js";import w from"./components/Map/index.js";import T from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as k}from"./constants.js";import L 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"../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";function O(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?O(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(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 R(e,n){var r=e.find((function(e){return e.id===n}));return t(r,"name")||"-"}function F(e,n){var r=e.find((function(e){return e.id===n}));return t(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 r=t(e,"bicWellIds")||[],o=t(e,"manualWellIds")||[],i=t(e,"selectedWellIds")||[];return n(r.concat(o).concat(i))}function z(e){var c=e.defaultSubjectWell,I=e.offsetSetting,O=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=N(),$=x(!0),J=h(t(c,"companyId")||t(I,"companyId")||+t(O,"company_id")),X=i(J,2),Y=X[0],Z=X[1],ee=h(t(c,"asset_id")||t(I,"subjectWellId")||null),te=i(ee,2),ne=te[0],re=te[1],oe=B(Y,z),ie=P(ne,z),se=h([]),le=i(se,2),ae=le[0],pe=le[1],me=h(!1),ce=i(me,2),de=ce[0],ue=ce[1],fe=h(I),je=i(fe,2),Ce=je[0],be=je[1],ve=h(!1),ge=i(ve,2),xe=ge[0],he=ge[1],Ae=A((function(){if(oe){var e=U(Ce);return oe.filter((function(n){return e.find((function(e){return e===t(n,"id")}))}))}return[]}),[oe,Ce]);S((function(){z&&(Z(t(c,"companyId")||t(I,"companyId")||+t(O,"company_id")),re(t(c,"asset_id")||t(I,"subjectWellId")||null),be(I),he(!1),$.current=!0)}),[I,z]),S((function(){if(z&&oe&&$.current){var e,o=t(Ce,"selectedWellIds")||[],i=t(Ce,"manualWellIds")||[],a=t(Ce,"bicWellIds")||[],p=o.concat(i),m=p.filter((function(e){return oe.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:R(oe,e),rigName:F(oe,e),kind:o.includes(e)?"advanced":"manual"}}));if(ie&&ie.filters&&ie.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(s(t(ie,["filters","filterTabs"]))),f=(null===(c=ie.filters)||void 0===c?void 0:c.filterMode)||"holeSize",j=n(u);e=[{name:"Search Results",wells:m,expanded:xe}].concat(s(j.map((function(e){var t;return{name:V(e,f),wells:(null===(t=ie.result[e.value])||void 0===t?void 0:t.filter((function(e){return oe.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:R(oe,t),rigName:F(oe,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:xe}].concat(s(k));var C=e.map((function(e){var t=e.wells.map((function(e){return r(a,e.id)||r(p,e.id)?M(M({},e),{},{checked:!0}):M({},e)}));return M(M({},e),{},{wells:t})}));pe(H(C))}}),[z,oe,ie,Ce]);var Se=y((function(){return U(Ce).length}),[Ce]),ye=y((function(){return(t(Ce,"bicWellIds")||[]).length})),Ie=!oe;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(E,{fullscreen:!1}):a(p,{children:[m(w,{wells:Ae,offsetWells:Ae}),m(T,{company:Y,wellSections:ae,getWellName:R,onChangeWellSections:function(e){var t=H(e);pe(t),he(t[0].expanded);var r=[],o=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&o.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var s=r.concat(o).concat(i),l=M(M({},Ce),{},{selectedWellIds:n(r),manualWellIds:n(o),bicWellIds:n(i),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=oe.filter((function(t){return r(e,t.id)})),n=M(M({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(n,t)},children:["Add (",Se(),")"]})]})})]}),de&&m(L,{defaultSubjectWellId:t(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:O,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:ye(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var n=e;c||(o(ne,t(n,"subjectWellId"))&&o(Y,t(n,"companyId"))||(n=M(M({},n),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),re(t(n,"subjectWellId")),Z(t(n,"companyId")));var r=t(n,"manualWellIds")||[],i=t(n,"selectedWellIds")||[];r=r.filter((function(e){return!i.includes(e)})),n=M(M({},n),{},{manualWellIds:r}),be(n),$.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{get as t,uniq as n,includes as r,isEqual as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";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 A,useEffect as S,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 E from"../LoadingIndicator/LoadingIndicator.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/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"../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{useWells as B,useFetchBicWellsData as P}from"./effects/index.js";import w from"./components/Map/index.js";import T from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as k}from"./constants.js";import L 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"../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 O(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?O(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(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,n){var r=e.find((function(e){return e.id===n}));return t(r,"name")||"-"}function R(e,n){var r=e.find((function(e){return e.id===n}));return t(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 r=t(e,"bicWellIds")||[],o=t(e,"manualWellIds")||[],i=t(e,"selectedWellIds")||[];return n(r.concat(o).concat(i))}function z(e){var c=e.defaultSubjectWell,I=e.offsetSetting,O=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=N(),$=x(!0),J=h(t(c,"companyId")||t(I,"companyId")||+t(O,"company_id")),X=i(J,2),Y=X[0],Z=X[1],ee=h(t(c,"asset_id")||t(I,"subjectWellId")||null),te=i(ee,2),ne=te[0],re=te[1],oe=B(Y,z),ie=P(ne,z),se=h([]),le=i(se,2),ae=le[0],pe=le[1],me=h(!1),ce=i(me,2),de=ce[0],ue=ce[1],fe=h(I),je=i(fe,2),Ce=je[0],be=je[1],ve=h(!1),ge=i(ve,2),xe=ge[0],he=ge[1],Ae=A((function(){if(oe){var e=U(Ce);return oe.filter((function(n){return e.find((function(e){return e===t(n,"id")}))}))}return[]}),[oe,Ce]);S((function(){z&&(Z(t(c,"companyId")||t(I,"companyId")||+t(O,"company_id")),re(t(c,"asset_id")||t(I,"subjectWellId")||null),be(I),he(!1),$.current=!0)}),[I,z]),S((function(){if(z&&oe&&$.current){var e,o=t(Ce,"selectedWellIds")||[],i=t(Ce,"manualWellIds")||[],a=t(Ce,"bicWellIds")||[],p=o.concat(i),m=p.filter((function(e){return oe.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:F(oe,e),rigName:R(oe,e),kind:o.includes(e)?"advanced":"manual"}}));if(ie&&ie.filters&&ie.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(s(t(ie,["filters","filterTabs"]))),f=(null===(c=ie.filters)||void 0===c?void 0:c.filterMode)||"holeSize",j=n(u);e=[{name:"Search Results",wells:m,expanded:xe}].concat(s(j.map((function(e){var t;return{name:V(e,f),wells:(null===(t=ie.result[e.value])||void 0===t?void 0:t.filter((function(e){return oe.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(oe,t),rigName:R(oe,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:xe}].concat(s(k));var C=e.map((function(e){var t=e.wells.map((function(e){return r(a,e.id)||r(p,e.id)?M(M({},e),{},{checked:!0}):M({},e)}));return M(M({},e),{},{wells:t})}));pe(H(C))}}),[z,oe,ie,Ce]);var Se=y((function(){return U(Ce).length}),[Ce]),ye=y((function(){return(t(Ce,"bicWellIds")||[]).length})),Ie=!oe;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(E,{fullscreen:!1}):a(p,{children:[m(w,{wells:Ae,offsetWells:Ae}),m(T,{company:Y,wellSections:ae,getWellName:F,onChangeWellSections:function(e){var t=H(e);pe(t),he(t[0].expanded);var r=[],o=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&o.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var s=r.concat(o).concat(i),l=M(M({},Ce),{},{selectedWellIds:n(r),manualWellIds:n(o),bicWellIds:n(i),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=oe.filter((function(t){return r(e,t.id)})),n=M(M({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(n,t)},children:["Add (",Se(),")"]})]})})]}),de&&m(L,{defaultSubjectWellId:t(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:O,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:ye(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var n=e;c||(o(ne,t(n,"subjectWellId"))&&o(Y,t(n,"companyId"))||(n=M(M({},n),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),re(t(n,"subjectWellId")),Z(t(n,"companyId")));var r=t(n,"manualWellIds")||[],i=t(n,"selectedWellIds")||[];r=r.filter((function(e){return!i.includes(e)})),n=M(M({},n),{},{manualWellIds:r}),be(n),$.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 t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as e}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs as o}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 i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.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"../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/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"../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"../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"../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";var p=r((function(t){return{container:{fontSize:"0.8125rem"},pathPart:{color:t.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var i=r.pathItems,m=p();return e(o,{className:m.container,children:i.map((function(r,o,i){return e(s,{className:n(m.pathPart,t({},m.lastPathPart,o===i.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:i.arrayOf(i.shape({text:i.string,href:i.string})).isRequired};export default m;
1
+ import t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as e}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs as o}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 i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.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"../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/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"../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"../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"../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(t){return{container:{fontSize:"0.8125rem"},pathPart:{color:t.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var i=r.pathItems,m=p();return e(o,{className:m.container,children:i.map((function(r,o,i){return e(s,{className:n(m.pathPart,t({},m.lastPathPart,o===i.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:i.arrayOf(i.shape({text:i.string,href:i.string})).isRequired};export default m;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../constants/goals.js";import"../constants/apps.js";import"../constants/completion.js";import"../constants/segment.js";import"../constants/alerts.js";import"../constants/drillstring.js";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"./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/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"./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"./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"./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";var C=function(t){var n,m=t.classes,C=t.children,u=t.onStateChange,g=t.initialState,x=t.drawerPaperClassName,h=t.isToolbarGutterShown,b=t.openedDrawerWidth,A=t.anchor,f=a(g),D=o(f,2),v=D[0],S=D[1],T=function(){S(!v),u(!v)},y="left"===A?d:c;return r(j,{isToolbarGutterShown:h,drawerWidth:b,drawerClassName:l(m.drawer,!v&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,x,!v&&m.drawerClosed),anchor:A,listClassName:m.list,onClick:function(){v||T()},children:[C,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!v),e(n,m.openToggleContainerOpened,v),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:T,children:i(y,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!v))})})})]})};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
+ import e from"@babel/runtime/helpers/defineProperty";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../constants/goals.js";import"../constants/apps.js";import"../constants/completion.js";import"../constants/segment.js";import"../constants/alerts.js";import"../constants/drillstring.js";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"./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/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"./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"./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"./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,x=t.drawerPaperClassName,h=t.isToolbarGutterShown,b=t.openedDrawerWidth,A=t.anchor,f=a(g),D=o(f,2),v=D[0],S=D[1],T=function(){S(!v),u(!v)},y="left"===A?d:c;return r(j,{isToolbarGutterShown:h,drawerWidth:b,drawerClassName:l(m.drawer,!v&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,x,!v&&m.drawerClosed),anchor:A,listClassName:m.list,onClick:function(){v||T()},children:[C,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!v),e(n,m.openToggleContainerOpened,v),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:T,children:i(y,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!v))})})})]})};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{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";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"../../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/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 f from"../../IconButton/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"../../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"../../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";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,I=t.drawerPaperClassName,v=t.header,w=t.headerIcon,D=t.headerTitleIcon,T=t.isOpen,y=t.openedDrawerWidth,k=t.setIsOpen,P=t.size,L=t.allOptionsButtonShown,B=t.isAllOptionsSelected,E=t.onAllOptionsClick,O=l(!1),W=o(O,2),M=W[0],N=W[1],R=d(),H=A({anchor:u,openedDrawerWidth:y||{small:235,medium:354,large:473}[P]});c((function(){var e=R.current,t=e.scrollHeight,o=e.clientHeight;N(t>o)}));var F="left"===u?g:h;return r(p,{onClick:function(){T||k(!0)},className:j(H.drawer,!T&&"closed"),variant:"permanent",classes:{paper:j(H.drawerPaper,I,!T&&"closed")},anchor:u,children:[r("div",{className:j(H.header,T&&"open",M&&"withShadow"),onClick:function(){T&&k(!1)},children:[T&&r(i,{children:[D||n(x,{className:H.headerIcon}),n("div",{className:H.headerIconText,children:v}),L&&n(b,{className:H.selectAllButton,onClick:function(e){e.stopPropagation(),E(e)},startIcon:n(B?m:C,{}),children:B?"Clear All":"Select All"})]}),!T&&w]}),n("div",{className:H.contentWrapper,ref:R,children:n("div",{className:H.content,children:T&&S})}),n(a,{className:j(H.openToggleContainer,(s={},e(s,"open",T),e(s,"withShadow",M),s)),children:n(f,{"aria-label":"toggle sidebar",onClick:function(){k(!T)},children:n(F,{className:j(T&&H.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{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";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"../../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/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 f from"../../IconButton/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"../../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"../../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,I=t.drawerPaperClassName,v=t.header,w=t.headerIcon,D=t.headerTitleIcon,T=t.isOpen,y=t.openedDrawerWidth,L=t.setIsOpen,k=t.size,P=t.allOptionsButtonShown,B=t.isAllOptionsSelected,E=t.onAllOptionsClick,O=l(!1),W=o(O,2),M=W[0],N=W[1],R=d(),F=A({anchor:u,openedDrawerWidth:y||{small:235,medium:354,large:473}[k]});c((function(){var e=R.current,t=e.scrollHeight,o=e.clientHeight;N(t>o)}));var H="left"===u?g:h;return r(p,{onClick:function(){T||L(!0)},className:j(F.drawer,!T&&"closed"),variant:"permanent",classes:{paper:j(F.drawerPaper,I,!T&&"closed")},anchor:u,children:[r("div",{className:j(F.header,T&&"open",M&&"withShadow"),onClick:function(){T&&L(!1)},children:[T&&r(i,{children:[D||n(x,{className:F.headerIcon}),n("div",{className:F.headerIconText,children:v}),P&&n(b,{className:F.selectAllButton,onClick:function(e){e.stopPropagation(),E(e)},startIcon:n(B?m:C,{}),children:B?"Clear All":"Select All"})]}),!T&&w]}),n("div",{className:F.contentWrapper,ref:R,children:n("div",{className:F.content,children:T&&S})}),n(a,{className:j(F.openToggleContainer,(s={},e(s,"open",T),e(s,"withShadow",M),s)),children:n(f,{"aria-label":"toggle sidebar",onClick:function(){L(!T)},children:n(H,{className:j(T&&F.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"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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"../../../../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/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"../../../../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"../../../../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"../../../../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";function p(r){var p=r.message,m=r.app,a=r.children;return t("div",{className:n.appInfoMessage,children:[e(o,{app:m}),t("div",{className:n.content,children:[a&&a,!a&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:p})]})]})]})}p.propTypes={message:r.oneOfType([r.node,r.string]),app:r.shape({}).isRequired,children:r.node},p.defaultProps={message:"",children:void 0};export default p;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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"../../../../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/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"../../../../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"../../../../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"../../../../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.message,m=r.app,a=r.children;return t("div",{className:n.appInfoMessage,children:[e(o,{app:m}),t("div",{className:n.content,children:[a&&a,!a&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:p})]})]})]})}p.propTypes={message:r.oneOfType([r.node,r.string]),app:r.shape({}).isRequired,children:r.node},p.defaultProps={message:"",children:void 0};export default p;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENT_TO_ASSET_TYPE as o,SEGMENTS as n}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as p}from"../../../../../constants/devcenter.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as s,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 A,DialogActions as b}from"@material-ui/core";import{useState as S}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 C,shape as y,string as f,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"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";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 P from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import D from"./AppDetails.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 T from"../../../../AssetEditor/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.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 L 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"../../../../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"../../../../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"../../../../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";function k(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 B(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?k(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O="DC_appSettings",R=l({paper:{height:"40rem"}})(c),w=l({root:{marginBottom:10}})(d),M="SETTINGS",F="APP DETAILS",V="VIEW APP PAGE";function W(l){var c=l.toggleAppSettingsDialog,d=l.onSettingsChange,C=l.app,y=l.appData,f=l.onAppRemove,x=l.AppSettingsComponent,k=l.currentUser,W=l.layoutEnvironment,H=l.segment,q=l.isMultiRig,N=l.isProductSubscriptionFeatureActive,_=S(M),U=i(_,2),G=U[0],z=U[1],K=S((function(){return B(B({},e(C.settings)),{},{package:C.settings.package||C.package.version})})),Y=i(K,2),J=Y[0],Q=Y[1],X=S(!0),Z=i(X,2),$=Z[0],tt=Z[1],et=C.id===p,rt=function(e,r){return Q((function(i){return B(B({},i),{},t({},e,r))}))},it=function(t){return Q((function(e){return B(B({},e),t)}))},ot=W&&"asset"===W.type,nt=!(q||ot&&H===n.COMPLETION);return s(R,{open:!0,onBackdropClick:c,children:[s(u,{children:[C.package.manifest.application.name," settings"]}),a(j,{}),s(g,{children:[s(w,{value:G,onChange:function(t,e){return z(e)},indicatorColor:"primary",textColor:"primary",children:[a(A,{"data-testid":"".concat(O,"_settingsTab"),label:M,value:M}),a(A,{"data-testid":"".concat(O,"_appDetailsTab"),label:F,value:F}),a(A,{"data-testid":"".concat(O,"_viewAppPageTab"),label:V,value:V})]}),x&&s(v,{ErrorView:P,app:C,children:[a(h,{open:!$&&!J.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return tt(!0)}}),G===M&&s(m,{children:[nt&&a(T,{appKey:N&&!et?C.app_key:null,settings:J,onSettingsChange:it,appType:o[H],isNullable:!1,label:"Active Asset"}),a(x,{app:C,appData:y,settings:J,onSettingChange:rt,onSettingsChange:it,layoutEnvironment:W,currentUser:k}),!et&&a(I,{appId:C.app.id,value:J.package,onChange:function(t){return rt("package",t)},currentUser:k})]}),G===F&&a(D,{appDescription:r(C,"app.description"),appSummary:r(C,"app.summary")})]})]}),s(b,{children:[f&&a(E,{app:C,onAppRemove:f}),a(L,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:c,children:"Cancel"}),a(L,{"data-testid":"".concat(O,"_save"),variation:"primary",onClick:function(){J.package||et?(d(J),c()):tt(!1)},children:"Save"})]})]})}W.propTypes={toggleAppSettingsDialog:C.isRequired,onSettingsChange:C.isRequired,app:y({}).isRequired,appData:y({}).isRequired,onAppRemove:C,AppSettingsComponent:C,currentUser:y({}).isRequired,layoutEnvironment:y({}).isRequired,segment:f.isRequired,isMultiRig:x.isRequired,isProductSubscriptionFeatureActive:x},W.defaultProps={AppSettingsComponent:null,onAppRemove:void 0,isProductSubscriptionFeatureActive:!1};export default W;
1
+ import t from"@babel/runtime/helpers/defineProperty";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENT_TO_ASSET_TYPE as o,SEGMENTS as n}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as p}from"../../../../../constants/devcenter.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as s,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 A,DialogActions as b}from"@material-ui/core";import{useState as S}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 C,shape as y,string as f,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"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";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 P from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import D from"./AppDetails.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 T from"../../../../AssetEditor/index.js";import L from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.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 I 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"../../../../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"../../../../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"../../../../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 k(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 B(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?k(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O="DC_appSettings",R=l({paper:{height:"40rem"}})(c),w=l({root:{marginBottom:10}})(d),F="SETTINGS",M="APP DETAILS",V="VIEW APP PAGE";function W(l){var c=l.toggleAppSettingsDialog,d=l.onSettingsChange,C=l.app,y=l.appData,f=l.onAppRemove,x=l.AppSettingsComponent,k=l.currentUser,W=l.layoutEnvironment,H=l.segment,q=l.isMultiRig,N=l.isProductSubscriptionFeatureActive,_=S(F),U=i(_,2),G=U[0],z=U[1],K=S((function(){return B(B({},e(C.settings)),{},{package:C.settings.package||C.package.version})})),Y=i(K,2),J=Y[0],Q=Y[1],X=S(!0),Z=i(X,2),$=Z[0],tt=Z[1],et=C.id===p,rt=function(e,r){return Q((function(i){return B(B({},i),{},t({},e,r))}))},it=function(t){return Q((function(e){return B(B({},e),t)}))},ot=W&&"asset"===W.type,nt=!(q||ot&&H===n.COMPLETION);return s(R,{open:!0,onBackdropClick:c,children:[s(u,{children:[C.package.manifest.application.name," settings"]}),a(j,{}),s(g,{children:[s(w,{value:G,onChange:function(t,e){return z(e)},indicatorColor:"primary",textColor:"primary",children:[a(A,{"data-testid":"".concat(O,"_settingsTab"),label:F,value:F}),a(A,{"data-testid":"".concat(O,"_appDetailsTab"),label:M,value:M}),a(A,{"data-testid":"".concat(O,"_viewAppPageTab"),label:V,value:V})]}),x&&s(v,{ErrorView:P,app:C,children:[a(h,{open:!$&&!J.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return tt(!0)}}),G===F&&s(m,{children:[nt&&a(T,{appKey:N&&!et?C.app_key:null,settings:J,onSettingsChange:it,appType:o[H],isNullable:!1,label:"Active Asset"}),a(x,{app:C,appData:y,settings:J,onSettingChange:rt,onSettingsChange:it,layoutEnvironment:W,currentUser:k}),!et&&a(L,{appId:C.app.id,value:J.package,onChange:function(t){return rt("package",t)},currentUser:k})]}),G===M&&a(D,{appDescription:r(C,"app.description"),appSummary:r(C,"app.summary")})]})]}),s(b,{children:[f&&a(E,{app:C,onAppRemove:f}),a(I,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:c,children:"Cancel"}),a(I,{"data-testid":"".concat(O,"_save"),variation:"primary",onClick:function(){J.package||et?(d(J),c()):tt(!1)},children:"Save"})]})]})}W.propTypes={toggleAppSettingsDialog:C.isRequired,onSettingsChange:C.isRequired,app:y({}).isRequired,appData:y({}).isRequired,onAppRemove:C,AppSettingsComponent:C,currentUser:y({}).isRequired,layoutEnvironment:y({}).isRequired,segment:f.isRequired,isMultiRig:x.isRequired,isProductSubscriptionFeatureActive:x},W.defaultProps={AppSettingsComponent:null,onAppRemove:void 0,isProductSubscriptionFeatureActive:!1};export default W;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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 n,DialogContent as s,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"../../../../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/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"../../../../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"../../../../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"../../../../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";function j(l){var j=l.app,c=l.onAppRemove,u=a(!1),A=t(u,2),x=A[0],C=A[1],g=function(){return C(!1)};return e(i,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return C(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),e(o,{open:x,onClose:g,children:[e(n,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",j.app.name]}),r(s,{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:g,children:"Cancel"}),r(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return c()},variation:"dangerPrimary",children:"Remove"})]})]})]})}j.propTypes={app:l.shape({app:l.shape({name:l.string})}).isRequired,onAppRemove:l.func.isRequired};export default j;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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 n,DialogContent as s,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"../../../../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/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"../../../../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"../../../../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"../../../../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 j(l){var j=l.app,c=l.onAppRemove,u=a(!1),A=t(u,2),x=A[0],C=A[1],g=function(){return C(!1)};return e(i,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return C(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),e(o,{open:x,onClose:g,children:[e(n,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",j.app.name]}),r(s,{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:g,children:"Cancel"}),r(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return c()},variation:"dangerPrimary",children:"Remove"})]})]})]})}j.propTypes={app:l.shape({app:l.shape({name:l.string})}).isRequired,onAppRemove:l.func.isRequired};export default j;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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 n from"../../../../LoadingIndicator/LoadingIndicator.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 s from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import p from"../../../../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 m 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/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 a 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"../../../../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"../../../../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"../../../../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";function l(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 d(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?l(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function j(t){var l=t.AppComponent,j=t.app,c=t.appData,u=t.appProps,g=t.isLoading,b=t.isMultiRig,x=t.isAppNotSubscribed,A=t.layoutEnvironment,S=t.segment;if(g)return r(n,{});if(x){var f=u.coordinates,C=f.pixelWidth,y=f.pixelHeight,h=a.APP_MESSAGES.appNotSubscribed,P=h.title,E=h.subtitle;return r(m,{app:j,children:r(a,{title:P,subtitle:E,appHeight:y,appWidth:C})})}if(!l)return r(m,{message:"App package was not found"});if(!b){if(c.rig&&!c.well)return r(m,{app:j,message:i(o,{children:[c.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==A?void 0:A.type)&&S===e.COMPLETION&&!c.fracFleet)return r(m,{app:j,message:"Frac fleet was not found"});if("general"===(null==A?void 0:A.type)&&S===e.COMPLETION&&(!c.wells||c.wells.length<1))return r(m,{app:j,message:"This pad has no wells"});if(!(c.rig||c.well||c.settings||c.wells))return r(m,{app:j,message:"No asset data were found"})}return r(s,{ErrorView:p,app:j,withAppHeader:!0,children:r(l,d(d(d({app:j},j.settings),c),u))})}export default j;
1
+ import t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";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 n from"../../../../LoadingIndicator/LoadingIndicator.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 s from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import p from"../../../../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 m 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/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 a 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"../../../../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"../../../../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"../../../../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(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 d(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?l(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function j(t){var l=t.AppComponent,j=t.app,c=t.appData,u=t.appProps,g=t.isLoading,b=t.isMultiRig,x=t.isAppNotSubscribed,A=t.layoutEnvironment,S=t.segment;if(g)return r(n,{});if(x){var f=u.coordinates,C=f.pixelWidth,y=f.pixelHeight,h=a.APP_MESSAGES.appNotSubscribed,P=h.title,E=h.subtitle;return r(m,{app:j,children:r(a,{title:P,subtitle:E,appHeight:y,appWidth:C})})}if(!l)return r(m,{message:"App package was not found"});if(!b){if(c.rig&&!c.well)return r(m,{app:j,message:i(o,{children:[c.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==A?void 0:A.type)&&S===e.COMPLETION&&!c.fracFleet)return r(m,{app:j,message:"Frac fleet was not found"});if("general"===(null==A?void 0:A.type)&&S===e.COMPLETION&&(!c.wells||c.wells.length<1))return r(m,{app:j,message:"This pad has no wells"});if(!(c.rig||c.well||c.settings||c.wells))return r(m,{app:j,message:"No asset data were found"})}return r(s,{ErrorView:p,app:j,withAppHeader:!0,children:r(l,d(d(d({app:j},j.settings),c),u))})}export default j;
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/toConsumableArray";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{makeStyles as r,Button as o,Typography as a}from"@material-ui/core";import{useRef as l,useState as c}from"react";import p from"prop-types";import{Publish as u}from"@material-ui/icons";import m from"./partials/UploadingFileState/UploadingFileState.js";var s=r({filesLoader:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"},uploadingFiles:{width:"100%"},fileInput:{display:"none"},inputButton:{display:"flex",alignItems:"center"},inputButtonText:{marginLeft:"6px",fontSize:"14px"}});function f(r){var p=s(),f=r.onLoad,d=l(),h=c([]),g=e(h,2),v=g[0],x=g[1],y=function(e,t){f(e,t)};return n("div",{className:p.filesLoader,children:[i("div",{className:p.uploadingFiles,children:v.map((function(e){return i(m,{file:e,onLoad:function(t){return y(e,t)},onDelete:function(n){return i=e,(r=v.findIndex((function(e){return e.name===i.name})))>-1&&v.splice(r,1),void x(t(v));var i,r}},e.name)}))}),!v.length&&i("div",{className:p.inputButton,children:n(o,{color:"primary",variant:"contained",onClick:function(){return d.current.click()},children:[i("input",{ref:d,type:"file",accept:".csv, text/csv",className:p.fileInput,onChange:function(e){var t=Array.from(e.target.files);t.length&&x(t)}}),i(u,{}),i(a,{className:p.inputButtonText,children:"Upload File"})]})})]})}f.propTypes={onLoad:p.func.isRequired};export default f;
@@ -0,0 +1 @@
1
+ var B={B:"B",KB:"KB",MB:"MB"},e={MB:1e6,KB:1e3};export{e as BYTES_IN,B as SIZE_UNIT};
@@ -0,0 +1 @@
1
+ import{round as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{useMemo as r,useState as n,useEffect as i}from"react";import{BYTES_IN as o,SIZE_UNIT as a}from"../constants.js";var s=function(s,d){var u=n(0),f=t(u,2),c=f[0],m=f[1],l=n(!1),v=t(l,2),g=v[0],p=v[1],B=n(!1),z=t(B,2),L=z[0],E=z[1],T=n(!1),b=t(T,2),K=b[0],M=b[1],S=function(){p(!0)},h=function(e){m(e.loaded)},x=function(e){setTimeout((function(){p(!1),E(!0),setTimeout((function(){return M(!0)}),1e3),d(e.target.result)}),400)},A=function(){};i((function(){if(s){var e=new FileReader;e.addEventListener("loadstart",S),e.addEventListener("progress",h),e.addEventListener("load",x),e.addEventListener("error",A),e.readAsText(s)}}),[s]);var F=function(){return 100*c/(s.size||1)},P=function(t){return t>o.MB?e(t/o.MB,1):t>o.KB?e(t/o.KB,1):t},j=function(e){return e>1048576?a.MB:e>1024?a.KB:a.B};return r((function(){return{getProgressPercent:F,getFormattedSize:P,getSizeUnit:j,isLoading:g,isLoaded:L,isDeletable:K,loadedSize:c,size:s.size,name:s.name}}),[s,c,g,L,K])};export{s as useUploadingFile};
@@ -0,0 +1 @@
1
+ import{jsx as C}from"react/jsx-runtime";var V=function(){return C("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M31.3357 2.784H18.6638V0.696C18.6681 0.661463 18.6681 0.626537 18.6638 0.592V0.592C18.6685 0.554811 18.6685 0.517189 18.6638 0.48V0.48C18.6473 0.440114 18.6258 0.402481 18.5998 0.368V0.368C18.5569 0.277435 18.4945 0.197482 18.417 0.133863C18.3396 0.0702436 18.249 0.0245322 18.1518 0L17.9038 0L0.567954 2.792C0.407636 2.81876 0.262204 2.90205 0.158007 3.02679C0.0538104 3.15154 -0.00225866 3.30948 -4.13915e-05 3.472V28.52C-0.00254391 28.6835 0.053243 28.8425 0.157323 28.9685C0.261404 29.0946 0.406975 29.1795 0.567954 29.208L17.8958 32H18.1438C18.2902 31.9641 18.4199 31.8794 18.5118 31.76V31.76C18.5377 31.7284 18.5592 31.6934 18.5758 31.656V31.656C18.5804 31.6215 18.5804 31.5865 18.5758 31.552C18.5789 31.5388 18.5789 31.5252 18.5758 31.512V31.512C18.5798 31.4774 18.5798 31.4426 18.5758 31.408V31.408V29.328H31.3357C31.516 29.3238 31.6873 29.2482 31.8118 29.1177C31.9363 28.9873 32.0039 28.8127 31.9997 28.6324V3.48C32.0018 3.39069 31.9864 3.30185 31.9541 3.21853C31.9219 3.13521 31.8736 3.05906 31.8119 2.99443C31.7503 2.92979 31.6765 2.87794 31.5948 2.84184C31.513 2.80573 31.425 2.78608 31.3357 2.784V2.784ZM30.6637 27.824H18.6638V4.208H30.6637V27.824Z",fill:"#616161"})})};export{V as FileIcon};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as i,Fragment as l}from"react/jsx-runtime";import{makeStyles as a,Typography as r,LinearProgress as t}from"@material-ui/core";import s from"prop-types";import{CheckCircleOutline as o,Delete as n}from"@material-ui/icons";import{FileIcon as c}from"../FileIcon/FileIcon.js";import{useUploadingFile as p}from"../../effects/useUploadingFile.js";var d=a((function(e){return{fileStateWrapper:{display:"flex",alignItems:"center"},fileIconContainer:{display:"flex",alignItems:"center",marginRight:"10px"},fileState:{display:"flex",flexGrow:"1",alignItems:"center"},fileStateProgress:{flexGrow:"1"},fileNameWrapper:{display:"table",tableLayout:"fixed",width:"100%"},fileName:{display:"table-cell",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"14px",lineHeight:"16px"},fileSize:{fontSize:"11px",lineHeight:"12px",color:e.palette.primary.text6},checkIcon:{color:e.palette.success.bright},deleteIcon:{color:"#DADADA",cursor:"pointer"},progressBar:{borderRadius:"2px",height:"2px",margin:"4px 0"},fileActions:{display:"flex",alignItems:"center",paddingLeft:"24px"}}}));function f(a){var s=d(),f=a.file,m=a.onLoad,g=a.onDelete,h=p(f,m);return e("div",{className:s.fileStateWrapper,children:[i("div",{className:s.fileIconContainer,children:i(c,{})}),e("div",{className:s.fileState,children:[e("div",{className:s.fileStateProgress,children:[i("div",{className:s.fileNameWrapper,children:i(r,{className:s.fileName,children:h.name})}),h.isLoading&&e(l,{children:[i(t,{className:s.progressBar,variant:"determinate",value:h.getProgressPercent()}),e(r,{className:s.fileSize,children:[h.getFormattedSize(h.loadedSize)," of ",h.getFormattedSize(h.size)," ",h.getSizeUnit(h.size)]})]})]}),e("div",{className:s.fileActions,children:[h.isLoaded&&!h.isDeletable&&i(o,{className:s.checkIcon}),h.isDeletable&&i(n,{className:s.deleteIcon,onClick:g})]})]})]})}f.propTypes={file:s.shape({}).isRequired,onLoad:s.func.isRequired,onDelete:s.func.isRequired};export default f;
@@ -1 +1 @@
1
- import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;background-color:#3b3b3b;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobile__3Q0mr{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%;padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalMobile__3Q0mr .Modal_modalTitle__3EmG3{font-size:18px;display:flex;align-items:center;justify-content:center;min-height:65px;border-bottom:1px solid #414141}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalMobile__3Q0mr .Modal_modalActions__1pnLy{min-height:68px;box-shadow:0 -2px 8px rgba(0,0,0,.2);padding:0 32px}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}");export default{modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY"};
1
+ import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_small__W_lAm{width:416px}.Modal_medium__1bbOT{width:552px}.Modal_large__3W3z5{width:768px}.Modal_extraLarge__2hv5g{width:80%;height:80%;max-width:1152px}.Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;background-color:#3b3b3b;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobile__3Q0mr{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%;padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalMobile__3Q0mr .Modal_modalTitle__3EmG3{font-size:18px;display:flex;align-items:center;justify-content:center;min-height:65px;border-bottom:1px solid #414141}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalMobile__3Q0mr .Modal_modalActions__1pnLy{min-height:68px;box-shadow:0 -2px 8px rgba(0,0,0,.2);padding:0 32px}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}");export default{small:"Modal_small__W_lAm",medium:"Modal_medium__1bbOT",large:"Modal_large__3W3z5",extraLarge:"Modal_extraLarge__2hv5g",modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY"};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{noop as o}from"lodash";import{isNativeDetected as t,isMobileDetected as r}from"../../utils/mobileDetect.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{withStyles as s,IconButton as l,Modal as a}from"@material-ui/core";import c from"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import p from"classnames";import{Close as d,CloseRounded as f}from"@material-ui/icons";import u from"./Modal.css.js";function b(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,r)}return t}function C(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){e(o,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}))}return o}var y=s({root:{position:"absolute",left:"10px",color:"#9E9E9E"}})(l),h=s((function(e){return{root:{color:e.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(d);function N(e){var o=e.title,t=e.children,r=e.actions,s=e.open,l=e.isCloseIconHidden,m=e.onClose,d=e.isNative,b=e.isMobile,N=e.stickyFooter,O=e.contentContainerClassName,v=e.contentClassName,j=e.stickyFooterClassName,g=c(e,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName"]),k=d||b;return i(a,C(C({open:s,onClose:m,className:p("c-modal",u.modalWrapper)},g),{},{children:n("div",{className:p(u.modalContainer,k&&u.modalMobile,N&&u.modalStaticFooter,O),children:[o&&n("div",{className:p(u.modalTitle,!k&&!l&&u.modalTitleWithClose),children:[k&&i(y,{onClick:m,children:i(f,{})}),o,!k&&!l&&i(h,{onClick:m})]}),t&&i("div",{className:p(u.modalContent,v),children:t}),!N&&r&&i("div",{className:u.modalActions,children:r}),N&&r&&i("div",{className:p(u.modalActionsSticky,j),children:r})]})}))}N.propTypes={title:m.oneOfType([m.string,m.node]),children:m.oneOfType([m.string,m.node]),actions:m.oneOfType([m.string,m.node,m.array]),stickyFooter:m.bool,open:m.bool.isRequired,onClose:m.func,isNative:m.bool,isMobile:m.bool,isCloseIconHidden:m.bool,contentClassName:m.string,contentContainerClassName:m.string,stickyFooterClassName:m.string},N.defaultProps={title:"",children:null,actions:"",stickyFooter:!1,onClose:o,isNative:t,isMobile:r,isCloseIconHidden:!1,contentClassName:null,contentContainerClassName:null,stickyFooterClassName:null};export default N;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{noop as o}from"lodash";import{isNativeDetected as t,isMobileDetected as i}from"../../utils/mobileDetect.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";import{withStyles as s,IconButton as l,makeStyles as a,Modal as c,Tooltip as m}from"@material-ui/core";import p from"@babel/runtime/helpers/objectWithoutProperties";import d from"prop-types";import u from"classnames";import{Close as b,CloseRounded as f}from"@material-ui/icons";import C from"./Modal.css.js";function y(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,i)}return t}function h(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){e(o,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}))}return o}var N=s({root:{position:"absolute",left:"10px",color:"#9E9E9E"}})(l),O=s((function(e){return{root:{color:e.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(b),v=a({closeTooltip:{marginTop:8}});function g(o){var t=o.title,i=o.children,s=o.actions,a=o.open,d=o.isCloseIconHidden,b=o.onClose,y=o.isNative,g=o.isMobile,j=o.stickyFooter,k=o.contentContainerClassName,P=o.contentClassName,F=o.stickyFooterClassName,T=o.size,w=p(o,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName","size"]),M=y||g,D=v();return r(c,h(h({open:a,onClose:b,className:u(e({"c-modal":!0},C.modalWrapper,!0))},w),{},{children:n("div",{className:u(C[T],C.modalContainer,M&&C.modalMobile,j&&C.modalStaticFooter,k),children:[t&&n("div",{className:u(C.modalTitle,!M&&!d&&C.modalTitleWithClose),children:[M&&r(N,{onClick:b,children:r(f,{})}),t,!M&&!d&&r(m,{title:"Close",classes:{tooltip:D.closeTooltip},placement:"bottom",children:r(l,{onClick:b,children:r(O,{})})})]}),i&&r("div",{className:u(C.modalContent,P),children:i}),!j&&s&&r("div",{className:C.modalActions,children:s}),j&&s&&r("div",{className:u(C.modalActionsSticky,F),children:s})]})}))}g.propTypes={title:d.oneOfType([d.string,d.node]),children:d.oneOfType([d.string,d.node]),actions:d.oneOfType([d.string,d.node,d.array]),stickyFooter:d.bool,open:d.bool.isRequired,onClose:d.func,isNative:d.bool,isMobile:d.bool,isCloseIconHidden:d.bool,contentClassName:d.string,contentContainerClassName:d.string,stickyFooterClassName:d.string,size:d.string},g.defaultProps={title:"",children:null,actions:"",stickyFooter:!1,onClose:o,isNative:t,isMobile:i,isCloseIconHidden:!1,contentClassName:null,contentContainerClassName:null,stickyFooterClassName:null,size:null};export default g;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import"lodash";import e from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";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"../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/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"../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"../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"../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";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=e(t,2),l=m[0],c=m[1],j=function(t){c((function(e){return[].concat(r(e),[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)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("error",t,e)},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("warning",t,e)},f=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:g,showWarningNotification:v,showInfoNotification:f}}),[]),o(p,{notifications:l,removeNotification:d})}
1
+ import t from"@babel/runtime/helpers/defineProperty";import"lodash";import e from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";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"../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/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"../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"../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"../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=e(t,2),l=m[0],c=m[1],j=function(t){c((function(e){return[].concat(r(e),[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)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("error",t,e)},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("warning",t,e)},f=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:g,showWarningNotification:v,showInfoNotification:f}}),[]),o(p,{notifications:l,removeNotification:d})}
@@ -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 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 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 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";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";
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 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 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 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";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 +1 @@
1
- import{get as a}from"lodash";var t="/static/media/00540440635d868542f0b1e6c01b459b.svg",e="/static/media/b0b1d748a61692cd1bc2a6b41bb4d862.svg",o="/static/media/8a08caefcbafbcdaa3f0af1afe23f54b.svg",i="/static/media/5324a810000956e377669ef1d862660f.svg",r="/static/media/ca6fe854cf3b94ac7018b5447e9b8c6b.svg",n="/static/media/c0a8ba7272d80b8721250551f86252f0.svg",d="/static/media/66973b6752d85d049d02440a64c83816.svg",c={PREVIOUS_24H_STAGE_COUNT:{key:"PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},HOLE_DEPTH:{key:"HOLE_DEPTH",label:"Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{holeDepth:a(t,["corva#wits","data","hole_depth"])}}},BIT_HOLE_DEPTH:{key:"BIT_HOLE_DEPTH",label:"Bit/Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.bit_depth"]},{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{bitDepth:a(t,["corva#wits","data","bit_depth"]),holeDepth:a(t,["corva#wits","data","hole_depth"])}}},LAST_ACTIVE:{key:"LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"wits",fields:["timestamp"]}],dataGetter:function(t){return{timestamp:a(t,["corva#wits","timestamp"])}}},PHASE:{key:"PHASE",label:"Phase",dataSource:[{provider:"corva",collection:"data-well-sections-phases",fields:["data.phase_name"]}],dataGetter:function(t){return{phaseName:a(t,["corva#data-well-sections-phases","data","phase_name"])}}},CURRENT_ACTIVITY:{key:"CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"wits",fields:["data.state"]}],dataGetter:function(t){return{activityName:a(t,["corva#wits","data","state"])}}},HOLE_SECTION:{key:"HOLE_SECTION",label:"Hole Section",icon:"/static/media/0ba421f68bdeed555d761342b1a1b045.svg",dataSource:[{provider:"corva",collection:"data-well-sections",fields:["data.name"]}],dataGetter:function(t){return{sectionName:a(t,["corva#data-well-sections","data","name"])}}},BHA:{key:"BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#data-drillstring","data","components"]),bhaId:a(t,["corva#data-drillstring","data","id"])}}},BHA_COUNT:{key:"BHA_COUNT",label:"# of Total BHAs",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["data.id"]}],dataGetter:function(t){return{count:a(t,["corva#data-drillstring","data","id"])}}},CASING:{key:"CASING",label:"Casing",icon:e,dataSource:[{provider:"corva",collection:"data-casing",fields:["timestamp","data.outer_diameter","data.setting_timestamp"]}],dataGetter:function(t){return{outerDiameter:a(t,["corva#data-casing","data","outer_diameter"]),settingTimestamp:a(t,["corva#data-casing","data","setting_timestamp"])}}},STRING_DESIGN:{key:"STRING_DESIGN",label:"String Design",icon:e},TOTAL_COST:{key:"TOTAL_COST",label:"Total Cost",icon:"/static/media/ad2f90b277877ab4b461a002a885d501.svg"},MUD:{key:"MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#data-mud","data","mud_density"]),mudType:a(t,["corva#data-mud","data","mud_type"])}}},TARGET_FORMATION:{key:"TARGET_FORMATION",label:"Target Formation",icon:i},DIVERGENCE:{key:"DIVERGENCE",label:"Divergence From Plan",icon:"/static/media/905e8af2a0d8a649a153959a561b87b7.svg",dataSource:[{provider:"corva",collection:"directional-accuracy",fields:["data.horizontal_plane.distance","data.horizontal_plane.ahead","data.horizontal_plane.right"]}],dataGetter:function(t){return{distance:a(t,["corva#directional-accuracy","data","horizontal_plane","distance"]),ahead:a(t,["corva#directional-accuracy","data","horizontal_plane","ahead"]),right:a(t,["corva#directional-accuracy","data","horizontal_plane","right"])}}},NPT:{key:"NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#data-npt-events","data","type"]),startTime:a(t,["corva#data-npt-events","data","start_time"]),endTime:a(t,["corva#data-npt-events","data","end_time"])}}},OPERATIONS_SUMMARY:{key:"OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#data-operation-summaries","data","date_time"]),summary:a(t,["corva#data-operation-summaries","data","summary"])}}},ALERT:{key:"ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},DRILLING_PERIOD:{key:"DRILLING_PERIOD",label:"Drilling Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","drilling","start"]),end:a(t,["asset","stats","drilling","end"])}}}},l={PREVIOUS_24H_STAGE_COUNT:{key:"COMPLETION_PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"COMPLETION_PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},LAST_ACTIVE:{key:"COMPLETION_LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i=null;return e&&o?i=e>o?e:o:e?i=e:o&&(i=o),{timestamp:i}}},CURRENT_ACTIVITY:{key:"COMPLETION_CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i="";return e&&o?i=e>o?"frac":"wireline":e?i="frac":o&&(i="wireline"),{activityName:i}}},STAGE:{key:"COMPLETION_STAGE",label:"Stage",dataSource:[{provider:"corva",collection:"completion-wits",fields:["stage_number"]},{provider:"corva",collection:"completion-data-stages",fields:["data.stage_number"]}],dataGetter:function(t){return{planned:a(t,["corva#completion-data-stages","data","stage_number"]),actual:a(t,["corva#completion-wits","stage_number"])}}},PROPPANTS:{key:"COMPLETION_PROPPANTS",label:"Proppant Type",icon:"/static/media/c36bd155405be845b8331c1a878a117e.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.proppants"]}],dataGetter:function(t){return{proppants:a(t,["corva#completion-data-actual-stages","data","proppants"])||[]}}},FLUIDS:{key:"COMPLETION_FLUIDS",label:"Fluid Type",icon:"/static/media/c114aecc412f5d59429823554dd71245.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.fluids"]}],dataGetter:function(t){return{fluids:a(t,["corva#completion-data-actual-stages","data","fluids"])||[]}}},TARGET_FORMATION:{key:"COMPLETION_TARGET_FORMATION",label:"Target Formation",icon:i},NPT:{key:"COMPLETION_NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"completion-data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#completion-data-npt-events","data","type"]),startTime:a(t,["corva#completion-data-npt-events","data","start_time"]),endTime:a(t,["corva#completion-data-npt-events","data","end_time"])}}},PLUGS_DRILLED_COUNT:{key:"PLUGS_DRILLED_COUNT",label:"Plugs drilled",dataSource:[{provider:"corva",collection:"completion-data-plugs",fields:["data"]}],dataGetter:function(t){return{plugsDrilledCount:(a(t,["corva#completion-data-plugs"])||[]).length}}},OPERATIONS_SUMMARY:{key:"COMPLETION_OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"completion-data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#completion-data-operation-summaries","data","date_time"]),summary:a(t,["corva#completion-data-operation-summaries","data","summary"])}}},ALERT:{key:"COMPLETION_ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"COMPLETION_ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},COMPLETION_PERIOD:{key:"COMPLETION_PERIOD",label:"Completion Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","completion","start"]),end:a(t,["asset","stats","completion","end"])}}},TOTAL_FRAC_TIME:{key:"TOTAL_FRAC_TIME",label:"Total Frac Time",dataSource:[]},TOTAL_WIRELINE_TIME:{key:"TOTAL_WIRELINE_TIME",label:"Total Wireline Time",dataSource:[]},STAGES_DESIGN:{key:"STAGES_DESIGN",label:"Stages Design vs Actual",dataSource:[{collection:"completion-data-stages"}],dataGetter:function(t){return{totalNumberOfStages:a(t,["completion-data-stages","data","stage_number"])}}}},s={MUD:{key:"DRILLOUT_MUD",label:"MUD",icon:o,dataSource:[{provider:"corva",collection:"drillout-data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#drillout-data-mud","data","mud_density"]),mudType:a(t,["corva#drillout-data-mud","data","mud_type"])}}},BHA:{key:"DRILLOUT_BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"drillout-data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#drillout-data-drillstring","data","components"]),bhaId:a(t,["corva#drillout-data-drillstring","data","id"])}}}};export{l as COMPLETION_WELL_SUMMARY,c as DRILLING_WELL_SUMMARY,s as DRILLOUT_WELL_SUMMARY};
1
+ import{get as a}from"lodash";var t="/static/media/00540440635d868542f0b1e6c01b459b.svg",e="/static/media/b0b1d748a61692cd1bc2a6b41bb4d862.svg",o="/static/media/8a08caefcbafbcdaa3f0af1afe23f54b.svg",i="/static/media/5324a810000956e377669ef1d862660f.svg",r="/static/media/ca6fe854cf3b94ac7018b5447e9b8c6b.svg",n="/static/media/c0a8ba7272d80b8721250551f86252f0.svg",d="/static/media/66973b6752d85d049d02440a64c83816.svg",c={PREVIOUS_24H_STAGE_COUNT:{key:"PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},HOLE_DEPTH:{key:"HOLE_DEPTH",label:"Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{holeDepth:a(t,["corva#wits","data","hole_depth"])}}},BIT_HOLE_DEPTH:{key:"BIT_HOLE_DEPTH",label:"Bit/Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.bit_depth"]},{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{bitDepth:a(t,["corva#wits","data","bit_depth"]),holeDepth:a(t,["corva#wits","data","hole_depth"])}}},LAST_ACTIVE:{key:"LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"wits",fields:["timestamp"]}],dataGetter:function(t){return{timestamp:a(t,["corva#wits","timestamp"])}}},PHASE:{key:"PHASE",label:"Phase",dataSource:[{provider:"corva",collection:"data-well-sections-phases",fields:["data.phase_name"]}],dataGetter:function(t){return{phaseName:a(t,["corva#data-well-sections-phases","data","phase_name"])}}},CURRENT_ACTIVITY:{key:"CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"wits",fields:["data.state"]}],dataGetter:function(t){return{activityName:a(t,["corva#wits","data","state"])}}},HOLE_SECTION:{key:"HOLE_SECTION",label:"Hole Section",icon:"/static/media/0ba421f68bdeed555d761342b1a1b045.svg",dataSource:[{provider:"corva",collection:"data-well-sections",fields:["data.name"]}],dataGetter:function(t){return{sectionName:a(t,["corva#data-well-sections","data","name"])}}},BHA:{key:"BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#data-drillstring","data","components"]),bhaId:a(t,["corva#data-drillstring","data","id"])}}},BHA_COUNT:{key:"BHA_COUNT",label:"# of Total BHAs",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["data.id"]}],dataGetter:function(t){return{count:a(t,["corva#data-drillstring","data","id"])}}},CASING:{key:"CASING",label:"Casing",icon:e,dataSource:[{provider:"corva",collection:"data-casing",fields:["timestamp","data.outer_diameter","data.setting_timestamp"]}],dataGetter:function(t){return{outerDiameter:a(t,["corva#data-casing","data","outer_diameter"]),settingTimestamp:a(t,["corva#data-casing","data","setting_timestamp"])}}},STRING_DESIGN:{key:"STRING_DESIGN",label:"String Design",icon:e},TOTAL_COST:{key:"TOTAL_COST",label:"Total Cost",icon:"/static/media/ad2f90b277877ab4b461a002a885d501.svg"},MUD:{key:"MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#data-mud","data","mud_density"]),mudType:a(t,["corva#data-mud","data","mud_type"])}}},TARGET_FORMATION:{key:"TARGET_FORMATION",label:"Target Formation",icon:i},DIVERGENCE:{key:"DIVERGENCE",label:"Divergence From Plan",icon:"/static/media/905e8af2a0d8a649a153959a561b87b7.svg",dataSource:[{provider:"corva",collection:"directional-accuracy",fields:["data.horizontal_plane.distance","data.horizontal_plane.ahead","data.horizontal_plane.right"]}],dataGetter:function(t){return{distance:a(t,["corva#directional-accuracy","data","horizontal_plane","distance"]),ahead:a(t,["corva#directional-accuracy","data","horizontal_plane","ahead"]),right:a(t,["corva#directional-accuracy","data","horizontal_plane","right"])}}},NPT:{key:"NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#data-npt-events","data","type"]),startTime:a(t,["corva#data-npt-events","data","start_time"]),endTime:a(t,["corva#data-npt-events","data","end_time"])}}},OPERATIONS_SUMMARY:{key:"OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#data-operation-summaries","data","date_time"]),summary:a(t,["corva#data-operation-summaries","data","summary"])}}},ALERT:{key:"ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},DRILLING_PERIOD:{key:"DRILLING_PERIOD",label:"Drilling Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","drilling","start"]),end:a(t,["asset","stats","drilling","end"])}}}},l={PREVIOUS_24H_STAGE_COUNT:{key:"COMPLETION_PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"COMPLETION_PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},LAST_ACTIVE:{key:"COMPLETION_LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i=null;return e&&o?i=e>o?e:o:e?i=e:o&&(i=o),{timestamp:i}}},CURRENT_ACTIVITY:{key:"COMPLETION_CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i="";return e&&o?i=e>o?"frac":"wireline":e?i="frac":o&&(i="wireline"),{activityName:i}}},STAGE:{key:"COMPLETION_STAGE",label:"Stage",dataSource:[{provider:"corva",collection:"completion-wits",fields:["stage_number"]},{provider:"corva",collection:"completion-data-stages",fields:["data.stage_number"]}],dataGetter:function(t){return{planned:a(t,["corva#completion-data-stages","data","stage_number"]),actual:a(t,["corva#completion-wits","stage_number"])}}},PROPPANTS:{key:"COMPLETION_PROPPANTS",label:"Proppant Type",icon:"/static/media/c36bd155405be845b8331c1a878a117e.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.proppants"]}],dataGetter:function(t){return{proppants:a(t,["corva#completion-data-actual-stages","data","proppants"])||[]}}},FLUIDS:{key:"COMPLETION_FLUIDS",label:"Fluid Type",icon:"/static/media/c114aecc412f5d59429823554dd71245.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.fluids"]}],dataGetter:function(t){return{fluids:a(t,["corva#completion-data-actual-stages","data","fluids"])||[]}}},TARGET_FORMATION:{key:"COMPLETION_TARGET_FORMATION",label:"Target Formation",icon:i},NPT:{key:"COMPLETION_NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"completion-data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#completion-data-npt-events","data","type"]),startTime:a(t,["corva#completion-data-npt-events","data","start_time"]),endTime:a(t,["corva#completion-data-npt-events","data","end_time"])}}},PLUGS_DRILLED_COUNT:{key:"PLUGS_DRILLED_COUNT",label:"Plugs drilled",dataSource:[{provider:"corva",collection:"completion-data-plugs",fields:["data"]}],dataGetter:function(t){return{plugsDrilledCount:(a(t,["corva#completion-data-plugs"])||[]).length}}},OPERATIONS_SUMMARY:{key:"COMPLETION_OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"completion-data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#completion-data-operation-summaries","data","date_time"]),summary:a(t,["corva#completion-data-operation-summaries","data","summary"])}}},ALERT:{key:"COMPLETION_ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"COMPLETION_ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},COMPLETION_PERIOD:{key:"COMPLETION_PERIOD",label:"Completion Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","completion","start"]),end:a(t,["asset","stats","completion","end"])}}},TOTAL_FRAC_TIME:{key:"TOTAL_FRAC_TIME",label:"Total Frac Time",dataSource:[]},TOTAL_WIRELINE_TIME:{key:"TOTAL_WIRELINE_TIME",label:"Total Wireline Time",dataSource:[]},STAGES_DESIGN:{key:"STAGES_DESIGN",label:"Stages Design vs Actual",dataSource:[{collection:"completion-data-stages"}],dataGetter:function(t){return{totalNumberOfStages:a(t,["completion-data-stages","data","stage_number"])}}}},s={MUD:{key:"DRILLOUT_MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"drillout-data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#drillout-data-mud","data","mud_density"]),mudType:a(t,["corva#drillout-data-mud","data","mud_type"])}}},BHA:{key:"DRILLOUT_BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"drillout-data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#drillout-data-drillstring","data","components"]),bhaId:a(t,["corva#drillout-data-drillstring","data","id"])}}}};export{l as COMPLETION_WELL_SUMMARY,c as DRILLING_WELL_SUMMARY,s as DRILLOUT_WELL_SUMMARY};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.23.0-5",
3
+ "version": "0.23.0-9",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"