@corva/ui 0.25.0-6 → 0.25.0-7

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 (65) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  3. package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
  4. package/CLI/hocs/withPDFLayoutHOC.js +1 -1
  5. package/CLI/hocs/withReactRouterHOC.js +1 -1
  6. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  7. package/clients/api/apiCore.js +1 -1
  8. package/clients/clientStorage/core.js +1 -1
  9. package/components/Annotations/AnnotationsContext.js +1 -1
  10. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  11. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
  12. package/components/AssetEditor/effects/index.js +1 -1
  13. package/components/Attachment/index.js +1 -1
  14. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  15. package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
  16. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  17. package/components/BICOffsetPickerDialog/index.js +1 -1
  18. package/components/Breadcrumbs/index.js +1 -1
  19. package/components/CollapsableSidebar.js +1 -1
  20. package/components/Comment/index.js +1 -1
  21. package/components/CommentInput/index.js +1 -1
  22. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  23. package/components/DevCenter/AppHeader/PadMode.js +1 -1
  24. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  25. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  26. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  27. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  28. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  29. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  30. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  31. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  32. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  33. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  34. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  35. package/components/FileUploadIconButton.js +1 -1
  36. package/components/FilesLoader/FilesLoader.js +1 -1
  37. package/components/InfiniteList/index.js +1 -1
  38. package/components/Notifications/NotificationsContainer.js +1 -1
  39. package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  40. package/components/OffsetWellPickerV2/constants.js +1 -1
  41. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  42. package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
  43. package/components/PadModeSelect/PadModeSelect.js +1 -1
  44. package/components/ParameterCharts/AddEditTrack.js +1 -1
  45. package/components/ParameterCharts/components/Track.js +1 -1
  46. package/components/ParameterCharts/components/TrackSettings.js +1 -1
  47. package/components/PostPreviewDialog/index.js +1 -1
  48. package/components/SlateFormattedText/SlateFormattedText.js +1 -1
  49. package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
  50. package/components/VirtualizedTable/VirtualizedTable.js +1 -1
  51. package/components/WellSummary/WellSummaryItemValue.js +1 -1
  52. package/components/WellSummary/effects/useWellSummaryData.js +1 -1
  53. package/constants/index.js +1 -1
  54. package/package.json +1 -1
  55. package/utils/DrillstringUtils.js +1 -1
  56. package/utils/FluidCheckUtils.js +1 -1
  57. package/utils/casing/conversion.js +1 -1
  58. package/utils/casing/validation.js +1 -1
  59. package/utils/completion.js +1 -1
  60. package/utils/dashboardReports.js +1 -1
  61. package/utils/devcenter.js +1 -1
  62. package/utils/index.js +1 -1
  63. package/utils/lasParser.js +1 -1
  64. package/utils/main.js +1 -1
  65. package/utils/torqueAndHookloadUtils.js +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 e from"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/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/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import n 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{isPDFReportView as r}from"../../hocs/utils.js";import{AuthContext as s}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as i}from"../../constants/index.js";import p from"./components/AppBar/AppBar.js";import m from"../../hocs/withMUIProvidersHOC.js";import c from"../../hocs/effects/useProvideAuth.js";import a from"./App.css.js";var l=m((function(m){var l=m.children,j=m.router,d=m.toggleTheme,C=c(j),u=!i.test(j.location.pathname)&&!C.loading;return o(s.Provider,{value:C,children:[!u&&l,u&&o("div",{className:a.app,children:[t(n,{}),t(p,{toggleTheme:d}),t("div",{className:e(a.appContent,r&&a.pdfAppContent),children:l})]})]})}));export default l;
1
+ import"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";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 e from"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/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/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import n 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{isPDFReportView as r}from"../../hocs/utils.js";import{AuthContext as s}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as i}from"../../constants/index.js";import p from"./components/AppBar/AppBar.js";import m from"../../hocs/withMUIProvidersHOC.js";import c from"../../hocs/effects/useProvideAuth.js";import a from"./App.css.js";var l=m((function(m){var l=m.children,j=m.router,d=m.toggleTheme,C=c(j),u=!i.test(j.location.pathname)&&!C.loading;return o(s.Provider,{value:C,children:[!u&&l,u&&o("div",{className:a.app,children:[t(n,{}),t(p,{toggleTheme:d}),t("div",{className:e(a.appContent,r&&a.pdfAppContent),children:l})]})]})}));export default l;
@@ -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/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import r from"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/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/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/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 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,a=o.packageJson;return function(o){var c=o.manifest,l=o.dashboardProps,d=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=c.application.key,C=a.version,b={id:t,app:{app_key:u,platform:"dev_center"},settings:j.settings,package:{manifest:c,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:l.assetId,apps:[b],children:e(i,p(p({},j),{},{app:b,coordinates:d,CLIAppComponent:s,CLIAppSettings:m}))})}}
1
+ import o from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as t}from"../../constants/devcenter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";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/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import r from"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/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/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/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 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,a=o.packageJson;return function(o){var c=o.manifest,l=o.dashboardProps,d=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=c.application.key,C=a.version,b={id:t,app:{app_key:u,platform:"dev_center"},settings:j.settings,package:{manifest:c,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:l.assetId,apps:[b],children:e(i,p(p({},j),{},{app:b,coordinates:d,CLIAppComponent:s,CLIAppSettings:m}))})}}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{pick as r}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{GRID_BREAKPOINTS as o,GRID_COLUMN_SIZES as i,GRID_ROW_HEIGHT as a,NON_DRAGGABLE_ELEMENT_SELECTOR as n}from"../../../constants/apps.js";import{isAppMaximized as l}from"../../../utils/devcenter.js";import{isPhoneDetected as s,isNativeDetected as c,isMobileDetected as p}from"../../../utils/mobileDetect.js";import"../../../utils/index.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";import{makeStyles as b,Tooltip as u,FormControlLabel as f,Switch as g}from"@material-ui/core";import{useState as h}from"react";import y from"@babel/runtime/helpers/objectWithoutProperties";import j from"classnames";import{getLocalAppData as O,getAppCoordinates as v,updateLocalAppData as k}from"../utils.js";import{WidthProvider as w,Responsive as x}from"react-grid-layout";import{getAppSize as D}from"../../../utils/apps.js";import"./withGridLayoutHOC.global.css.js";import L from"./withGridLayoutHOC.css.js";function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function C(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var S=w(x),z=b({gridLockFormControl:{margin:"4px 0 0 2px"},gridLockLabel:{fontSize:14},gridLockLabelDisabled:{color:"#bdbdbd"}});export default function(e){return w((function(b){var w,x=b.width,P=y(b,["width"]),H=P.manifest.application.key,W=h(null!==(w=O(H).isDraggable)&&void 0!==w&&w),E=t(W,2),G=E[0],M=E[1],N=z(),R=c||p,F=l(P.devCenterRouter.location.query),T=h(v(P.manifest)),q=t(T,2),A=q[0],B=q[1],I=D({coordinates:A,dashboardWidth:x,isMaximized:F}),J=I.pixelHeight,K=I.pixelWidth,Q=function(e){var o=t(e,1)[0],i=r(o,["x","y","w","h"]);B(i),k(H,{coordinates:i})};return m("div",{children:[d(S,{breakpoints:s?o.phone:o.general,cols:i,rowHeight:a,measureBeforeMount:!0,onResizeStop:Q,onDragStop:Q,isDraggable:!R&&G,isResizable:!R&&G,draggableCancel:n,useCSSTransforms:!1,children:d("div",{"data-grid":A,children:d("div",{className:F?L.appMaximized:"",children:d(e,C(C({},P),{},{coordinates:C(C({},A),{},{pixelHeight:J,pixelWidth:K}),layoutEnvironment:{type:"general"}}))})},"with-grid-layout-hoc")}),d(u,{title:G?"":"Disable grid lock to move and resize your app",placement:"right",children:d(f,{className:N.gridLockFormControl,control:d(g,{onChange:function(e){var r=e.target.checked;M(!r),k(H,{isDraggable:!r})},checked:!G,color:"primary"}),label:d("span",{className:j(N.gridLockLabel,G&&N.gridLockLabelDisabled),children:"Grid locked"})})})]})}))}
1
+ import e from"@babel/runtime/helpers/defineProperty";import{pick as r}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{GRID_BREAKPOINTS as o,GRID_COLUMN_SIZES as i,GRID_ROW_HEIGHT as a,NON_DRAGGABLE_ELEMENT_SELECTOR as n}from"../../../constants/apps.js";import{isAppMaximized as l}from"../../../utils/devcenter.js";import{isPhoneDetected as s,isNativeDetected as c,isMobileDetected as p}from"../../../utils/mobileDetect.js";import{getAppSize as m}from"../../../utils/apps.js";import"../../../utils/index.js";import{jsxs as d,jsx as b}from"react/jsx-runtime";import{makeStyles as u,Tooltip as f,FormControlLabel as g,Switch as h}from"@material-ui/core";import{useState as y}from"react";import j from"@babel/runtime/helpers/objectWithoutProperties";import O from"classnames";import{getLocalAppData as v,getAppCoordinates as k,updateLocalAppData as w}from"../utils.js";import{WidthProvider as x,Responsive as D}from"react-grid-layout";import"./withGridLayoutHOC.global.css.js";import L from"./withGridLayoutHOC.css.js";function P(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function C(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var S=x(D),z=u({gridLockFormControl:{margin:"4px 0 0 2px"},gridLockLabel:{fontSize:14},gridLockLabelDisabled:{color:"#bdbdbd"}});export default function(e){return x((function(u){var x,D=u.width,P=j(u,["width"]),H=P.manifest.application.key,W=y(null!==(x=v(H).isDraggable)&&void 0!==x&&x),E=t(W,2),G=E[0],M=E[1],N=z(),R=c||p,F=l(P.devCenterRouter.location.query),T=y(k(P.manifest)),q=t(T,2),A=q[0],B=q[1],I=m({coordinates:A,dashboardWidth:D,isMaximized:F}),J=I.pixelHeight,K=I.pixelWidth,Q=function(e){var o=t(e,1)[0],i=r(o,["x","y","w","h"]);B(i),w(H,{coordinates:i})};return d("div",{children:[b(S,{breakpoints:s?o.phone:o.general,cols:i,rowHeight:a,measureBeforeMount:!0,onResizeStop:Q,onDragStop:Q,isDraggable:!R&&G,isResizable:!R&&G,draggableCancel:n,useCSSTransforms:!1,children:b("div",{"data-grid":A,children:b("div",{className:F?L.appMaximized:"",children:b(e,C(C({},P),{},{coordinates:C(C({},A),{},{pixelHeight:J,pixelWidth:K}),layoutEnvironment:{type:"general"}}))})},"with-grid-layout-hoc")}),b(f,{title:G?"":"Disable grid lock to move and resize your app",placement:"right",children:b(g,{className:N.gridLockFormControl,control:b(h,{onChange:function(e){var r=e.target.checked;M(!r),w(H,{isDraggable:!r})},checked:!G,color:"primary"}),label:b("span",{className:O(N.gridLockLabel,G&&N.gridLockLabelDisabled),children:"Grid locked"})})})]})}))}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import{makeStyles as t}from"@material-ui/core";import{getAppCoordinates as o}from"./utils.js";import{getAppType as i,getAppPixelSize as n}from"../../utils/dashboardReports.js";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=t({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px"},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",border:"2px solid #ccc",pointerEvents:"none"}});export default function(e){return function(t){var c=a(),s=o(t.manifest),l=i({coordinates:s});return r("div",{className:c.page,children:r("div",{className:c.pdfReportApp,style:{width:"".concat(l.width,"cm"),height:"".concat(l.height,"cm")},children:r(e,p(p({},t),{},{coordinates:p(p({},s),n(l)),layoutEnvironment:{type:"general"}}))})})}}
1
+ import e from"@babel/runtime/helpers/defineProperty";import{getAppType as r,getAppPixelSize as t}from"../../utils/dashboardReports.js";import{jsx as o}from"react/jsx-runtime";import{makeStyles as i}from"@material-ui/core";import{getAppCoordinates as n}from"./utils.js";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=i({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px"},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",border:"2px solid #ccc",pointerEvents:"none"}});export default function(e){return function(i){var c=a(),s=n(i.manifest),l=r({coordinates:s});return o("div",{className:c.page,children:o("div",{className:c.pdfReportApp,style:{width:"".concat(l.width,"cm"),height:"".concat(l.height,"cm")},children:o(e,p(p({},i),{},{coordinates:p(p({},s),t(l)),layoutEnvironment:{type:"general"}}))})})}}
@@ -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/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{Route as i,IndexRedirect as p,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/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/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 i=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},i.componentProps||{})):e(p,{to:"/login"})}};export default function(o){return function(n){var r=t(i,{path:"/",component:j,children:[e(p,{to:"app"}),e(i,{path:"app",component:C(o),componentProps:n}),e(i,{path:"login",component:a,onEnter:u}),e(i,{path:"login/oauth-callback",component:l})]});return e(s,{history:m,routes:r})}}
1
+ import o from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as t,jsx as e}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import{getAuthToken as n}from"../../clients/clientStorage/index.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../components/Modal/index.js";import"../../components/IconMenu/index.js";import"../../components/StyledMenuItem/index.js";import r from"../../components/LoadingIndicator/LoadingIndicator.js";import"../../components/Tooltip.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{Route as i,IndexRedirect as p,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/WellSummary/FracWirelineTimeChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/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 i=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},i.componentProps||{})):e(p,{to:"/login"})}};export default function(o){return function(n){var r=t(i,{path:"/",component:j,children:[e(p,{to:"app"}),e(i,{path:"app",component:C(o),componentProps:n}),e(i,{path:"login",component:a,onEnter:u}),e(i,{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/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/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/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/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
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import{showErrorNotification as o}from"../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import{useEffect as e}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import n from"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/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/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/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"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/slicedToArray";import a from"@babel/runtime/regenerator";import o from"@babel/runtime/helpers/asyncToGenerator";import{parse as s,stringify as i}from"query-string";import{getDCAppKey as c}from"../utils.js";import{removeAuthToken as p,getAuthToken as u}from"../clientStorage/index.js";import{DISPLAY_HTTP_MESSAGES as l}from"./httpMessages.js";function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?h(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={400:"Request Failed",403:"No Permission",404:"Not Found"},m=["POST","PUT","PATCH","DELETE"],y=function(){function t(r,n){e(this,t),this.status=r.status,this.statusText=r.statusText,this.message=n.message||"No Message"}return r(t,[{key:"isAuthenticationProblem",value:function(){return 401===this.status||"Invalid authentication token"===this.message}},{key:"isTermsProblem",value:function(){return 401===this.status&&"Please accept the latest terms of service"===this.message}}]),t}(),v=s(window.location.search).api_url||process.env.REACT_APP_API_URL||"https://api.qa.corva.ai",b={"Content-Type":"application/json",Accept:"application/json"};function g(t){var e=t.config,r=t.appKey,n=u();return n?f(f({},e),{},{headers:f(f({},e.headers||{}),{},{Authorization:"Bearer ".concat(n),"X-Corva-App":r})}):e}function w(t){t.isAuthenticationProblem&&t.isAuthenticationProblem()&&!t.isTermsProblem()&&(p(),console.error("Problem with user"),"/login"!==window.location.pathname&&(window.location.href="/login"))}var P=/^\/v1\/assets.*/;function x(){return(x=o(a.mark((function t(e){var r,n,o,s,i,c=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},n=c.length>2&&void 0!==c[2]?c[2]:{},o=n.apiUrl,s=void 0===o?v:o,i=n.appKey,P.test(e)&&(r.cache="reload"),t.abrupt("return",fetch("".concat(s).concat(e),g({config:r,appKey:i})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var j,O,k=(j=function(t){return x.apply(this,arguments)},O=o(a.mark((function t(e,r,n){var o,s,i,c,p,u,h;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j(e,r,n);case 2:if(o=t.sent,s=o.status,!o.ok){t.next=6;break}return t.abrupt("return",204===s?null:o);case 6:return t.prev=6,t.next=9,o.json();case 9:i=t.sent,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(6),i={};case 15:throw c=r.method,p=m.includes(c),u=l[i.message]||d[s],p&&u&&console.error("ERROR"),w(h=new y(o,i)),h;case 22:case"end":return t.stop()}}),t,null,[[6,12]])}))),function(t,e,r){return O.apply(this,arguments)});function T(t,e){return A.apply(this,arguments)}function A(){return(A=o(a.mark((function t(e,r){var n,o,s,i=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:{},o=n.apiUrl,t.next=4,k(e,{method:"POST",headers:b,body:JSON.stringify(r)},{apiUrl:o,appKey:c()});case 4:return s=t.sent,t.abrupt("return",s&&s.json());case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(t){return E.apply(this,arguments)}function E(){return(E=o(a.mark((function t(e){var r,n,o,s,c,p,u=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},n=u.length>2&&void 0!==u[2]?u[2]:{},o=n.apiUrl,s=n.appKey,c=i(r,{arrayFormat:"bracket"}),t.next=6,k("".concat(e).concat(c?"?":"").concat(c),{method:"GET"},{apiUrl:o,appKey:s});case 6:if(p=t.sent,t.t0=p,!t.t0){t.next=12;break}return t.next=11,p.json();case 11:t.t0=t.sent;case 12:return t.t1=t.t0,t.t2=p&&p.headers,t.abrupt("return",{data:t.t1,headers:t.t2});case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function K(t){return S.apply(this,arguments)}function S(){return(S=o(a.mark((function t(e){var r,n,o,s=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:{},t.next=4,U(e,r,f(f({},n),{},{appKey:n.appKey||c()}));case 4:return o=t.sent,t.abrupt("return",o.data);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t,e){return D.apply(this,arguments)}function D(){return(D=o(a.mark((function t(e,r){var n,o,s,p,u,l=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},o=l.length>3&&void 0!==l[3]?l[3]:{},s=o.apiUrl,p=i(n),t.next=6,k("".concat(e).concat(p?"?":"").concat(p),{method:"PUT",headers:b,body:JSON.stringify(r)},{apiUrl:s,appKey:c()});case 6:return u=t.sent,t.abrupt("return",u&&u.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(t,e){return R.apply(this,arguments)}function R(){return(R=o(a.mark((function t(e,r){var n,o,s,p,u,l=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},o=l.length>3&&void 0!==l[3]?l[3]:{},s=o.apiUrl,p=i(n),t.next=6,k("".concat(e).concat(p?"?":"").concat(p),{method:"PATCH",headers:b,body:JSON.stringify(r)},{apiUrl:s,appKey:c()});case 6:return u=t.sent,t.abrupt("return",u&&u.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(t){return _.apply(this,arguments)}function _(){return(_=o(a.mark((function t(e){var r,n,o,s,p,u=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},n=u.length>2&&void 0!==u[2]?u[2]:{},o=n.apiUrl,s=i(r),t.next=6,k(s?"".concat(e,"?").concat(s):e,{method:"DELETE",headers:b},{apiUrl:o,appKey:c()});case 6:return p=t.sent,t.abrupt("return",p&&p.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function q(t,e){return J.apply(this,arguments)}function J(){return(J=o(a.mark((function t(e,r){var o,s,p,u,l,h,f,d=arguments;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>2&&void 0!==d[2]?d[2]:{},s=d.length>3&&void 0!==d[3]?d[3]:{},p=i(o),u=s.method,l=void 0===u?"POST":u,h=new FormData,Object.entries(r).forEach((function(t){var e=n(t,2),r=e[0],a=e[1];Array.isArray(a)?a.forEach((function(t){h.append(r,t)})):h.append(r,a)})),t.next=8,k(p?"".concat(e,"?").concat(p):e,{method:l,headers:{Accept:"application/json"},body:h},{appKey:c()});case 8:return f=t.sent,t.abrupt("return",f&&f.json());case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{v as baseUrl,F as del,K as get,U as getWithHeaders,w as handleAuthenticationProblem,N as patch,T as post,C as put,q as sendFormData};
1
+ import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import{parse as o,stringify as s}from"query-string";import i from"@babel/runtime/helpers/createClass";import{getDCAppKey as c}from"../utils.js";import{removeAuthToken as p,getAuthToken as u}from"../clientStorage/index.js";import{DISPLAY_HTTP_MESSAGES as l}from"./httpMessages.js";function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?h(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={400:"Request Failed",403:"No Permission",404:"Not Found"},m=["POST","PUT","PATCH","DELETE"],y=function(){function t(e,n){r(this,t),this.status=e.status,this.statusText=e.statusText,this.message=n.message||"No Message"}return i(t,[{key:"isAuthenticationProblem",value:function(){return 401===this.status||"Invalid authentication token"===this.message}},{key:"isTermsProblem",value:function(){return 401===this.status&&"Please accept the latest terms of service"===this.message}}]),t}(),v=o(window.location.search).api_url||process.env.REACT_APP_API_URL||"https://api.qa.corva.ai",b={"Content-Type":"application/json",Accept:"application/json"};function g(t){var e=t.config,r=t.appKey,n=u();return n?f(f({},e),{},{headers:f(f({},e.headers||{}),{},{Authorization:"Bearer ".concat(n),"X-Corva-App":r})}):e}function w(t){t.isAuthenticationProblem&&t.isAuthenticationProblem()&&!t.isTermsProblem()&&(p(),console.error("Problem with user"),"/login"!==window.location.pathname&&(window.location.href="/login"))}var P=/^\/v1\/assets.*/;function x(){return(x=a(n.mark((function t(e){var r,a,o,s,i,c=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},a=c.length>2&&void 0!==c[2]?c[2]:{},o=a.apiUrl,s=void 0===o?v:o,i=a.appKey,P.test(e)&&(r.cache="reload"),t.abrupt("return",fetch("".concat(s).concat(e),g({config:r,appKey:i})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var j,O,k=(j=function(t){return x.apply(this,arguments)},O=a(n.mark((function t(e,r,a){var o,s,i,c,p,u,h;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j(e,r,a);case 2:if(o=t.sent,s=o.status,!o.ok){t.next=6;break}return t.abrupt("return",204===s?null:o);case 6:return t.prev=6,t.next=9,o.json();case 9:i=t.sent,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(6),i={};case 15:throw c=r.method,p=m.includes(c),u=l[i.message]||d[s],p&&u&&console.error("ERROR"),w(h=new y(o,i)),h;case 22:case"end":return t.stop()}}),t,null,[[6,12]])}))),function(t,e,r){return O.apply(this,arguments)});function T(t,e){return A.apply(this,arguments)}function A(){return(A=a(n.mark((function t(e,r){var a,o,s,i=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.length>2&&void 0!==i[2]?i[2]:{},o=a.apiUrl,t.next=4,k(e,{method:"POST",headers:b,body:JSON.stringify(r)},{apiUrl:o,appKey:c()});case 4:return s=t.sent,t.abrupt("return",s&&s.json());case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(t){return E.apply(this,arguments)}function E(){return(E=a(n.mark((function t(e){var r,a,o,i,c,p,u=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},a=u.length>2&&void 0!==u[2]?u[2]:{},o=a.apiUrl,i=a.appKey,c=s(r,{arrayFormat:"bracket"}),t.next=6,k("".concat(e).concat(c?"?":"").concat(c),{method:"GET"},{apiUrl:o,appKey:i});case 6:if(p=t.sent,t.t0=p,!t.t0){t.next=12;break}return t.next=11,p.json();case 11:t.t0=t.sent;case 12:return t.t1=t.t0,t.t2=p&&p.headers,t.abrupt("return",{data:t.t1,headers:t.t2});case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function K(t){return S.apply(this,arguments)}function S(){return(S=a(n.mark((function t(e){var r,a,o,s=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},a=s.length>2&&void 0!==s[2]?s[2]:{},t.next=4,U(e,r,f(f({},a),{},{appKey:a.appKey||c()}));case 4:return o=t.sent,t.abrupt("return",o.data);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t,e){return D.apply(this,arguments)}function D(){return(D=a(n.mark((function t(e,r){var a,o,i,p,u,l=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.length>2&&void 0!==l[2]?l[2]:{},o=l.length>3&&void 0!==l[3]?l[3]:{},i=o.apiUrl,p=s(a),t.next=6,k("".concat(e).concat(p?"?":"").concat(p),{method:"PUT",headers:b,body:JSON.stringify(r)},{apiUrl:i,appKey:c()});case 6:return u=t.sent,t.abrupt("return",u&&u.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(t,e){return R.apply(this,arguments)}function R(){return(R=a(n.mark((function t(e,r){var a,o,i,p,u,l=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.length>2&&void 0!==l[2]?l[2]:{},o=l.length>3&&void 0!==l[3]?l[3]:{},i=o.apiUrl,p=s(a),t.next=6,k("".concat(e).concat(p?"?":"").concat(p),{method:"PATCH",headers:b,body:JSON.stringify(r)},{apiUrl:i,appKey:c()});case 6:return u=t.sent,t.abrupt("return",u&&u.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(t){return _.apply(this,arguments)}function _(){return(_=a(n.mark((function t(e){var r,a,o,i,p,u=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},a=u.length>2&&void 0!==u[2]?u[2]:{},o=a.apiUrl,i=s(r),t.next=6,k(i?"".concat(e,"?").concat(i):e,{method:"DELETE",headers:b},{apiUrl:o,appKey:c()});case 6:return p=t.sent,t.abrupt("return",p&&p.json());case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function q(t,e){return J.apply(this,arguments)}function J(){return(J=a(n.mark((function t(r,a){var o,i,p,u,l,h,f,d=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>2&&void 0!==d[2]?d[2]:{},i=d.length>3&&void 0!==d[3]?d[3]:{},p=s(o),u=i.method,l=void 0===u?"POST":u,h=new FormData,Object.entries(a).forEach((function(t){var r=e(t,2),n=r[0],a=r[1];Array.isArray(a)?a.forEach((function(t){h.append(n,t)})):h.append(n,a)})),t.next=8,k(p?"".concat(r,"?").concat(p):r,{method:l,headers:{Accept:"application/json"},body:h},{appKey:c()});case 8:return f=t.sent,t.abrupt("return",f&&f.json());case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{v as baseUrl,F as del,K as get,U as getWithHeaders,w as handleAuthenticationProblem,N as patch,T as post,C as put,q as sendFormData};
@@ -1 +1 @@
1
- import e from"lodash/set";import r from"lodash/get";import t from"moment";import a from"lodash/unset";var o=function(e){return e.expiry?e.value:e};function i(e){if("string"==typeof e)localStorage.removeItem(e);else if(Array.isArray(e)&&e.length){var r=JSON.parse(localStorage.getItem(e[0]));a(r,e.slice(1)),localStorage.setItem(e[0],JSON.stringify(r))}}function l(r,a){var i,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,g=l&&l.length?{value:a,expiry:t().add(l[0],l[1])}:a;if("string"==typeof r?(i=g,localStorage.setItem(r,JSON.stringify(i))):Array.isArray(r)&&r.length&&(i=JSON.parse(localStorage.getItem(r[0]))||{},e(i,r.slice(1),g),localStorage.setItem(r[0],JSON.stringify(i))),i&&"function"==typeof n){var s=o(i);n(s)}}var n=function(e,r){var a=e;return Array.isArray(e)?(l(r,a=e.filter((function(e){return!e.expiry||t().diff(e.expiry)<0}))),a.map((function(e){return e.value}))):(e&&e.expiry&&t().diff(e.expiry)>0&&(i(r),a=void 0),a)};function g(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e)t=JSON.parse(localStorage.getItem(e));else if(Array.isArray(e)&&e.length){var o=JSON.parse(localStorage.getItem(e[0]));t=r(o,e.slice(1))}var i=n(t,e);return void 0!==i?i:a}function s(a,i){var l,n,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0,f=g&&g.length?{value:i,expiry:t().add(g[0],g[1])}:i;if("string"==typeof a?((n=JSON.parse(localStorage.getItem(a))||[]).push(f),localStorage.setItem(a,n)):Array.isArray(a)&&a.length&&(l=JSON.parse(localStorage.getItem(a[0]))||{},(n=r(l,a.slice(1),[])).push(f),e(l,a.slice(1),n),localStorage.setItem(a[0],JSON.stringify(l))),n&&"function"==typeof s){var c=n.map((function(e){return o(e)}));s(c)}}export{i as deleteValue,g as getValue,s as pushValue,l as setValue};
1
+ import e from"moment";import r from"lodash/get";import t from"lodash/set";import a from"lodash/unset";var o=function(e){return e.expiry?e.value:e};function i(e){if("string"==typeof e)localStorage.removeItem(e);else if(Array.isArray(e)&&e.length){var r=JSON.parse(localStorage.getItem(e[0]));a(r,e.slice(1)),localStorage.setItem(e[0],JSON.stringify(r))}}function l(r,a){var i,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,g=l&&l.length?{value:a,expiry:e().add(l[0],l[1])}:a;if("string"==typeof r?(i=g,localStorage.setItem(r,JSON.stringify(i))):Array.isArray(r)&&r.length&&(i=JSON.parse(localStorage.getItem(r[0]))||{},t(i,r.slice(1),g),localStorage.setItem(r[0],JSON.stringify(i))),i&&"function"==typeof n){var s=o(i);n(s)}}var n=function(r,t){var a=r;return Array.isArray(r)?(l(t,a=r.filter((function(r){return!r.expiry||e().diff(r.expiry)<0}))),a.map((function(e){return e.value}))):(r&&r.expiry&&e().diff(r.expiry)>0&&(i(t),a=void 0),a)};function g(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e)t=JSON.parse(localStorage.getItem(e));else if(Array.isArray(e)&&e.length){var o=JSON.parse(localStorage.getItem(e[0]));t=r(o,e.slice(1))}var i=n(t,e);return void 0!==i?i:a}function s(a,i){var l,n,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0,f=g&&g.length?{value:i,expiry:e().add(g[0],g[1])}:i;if("string"==typeof a?((n=JSON.parse(localStorage.getItem(a))||[]).push(f),localStorage.setItem(a,n)):Array.isArray(a)&&a.length&&(l=JSON.parse(localStorage.getItem(a[0]))||{},(n=r(l,a.slice(1),[])).push(f),t(l,a.slice(1),n),localStorage.setItem(a[0],JSON.stringify(l))),n&&"function"==typeof s){var c=n.map((function(e){return o(e)}));s(c)}}export{i as deleteValue,g as getValue,s as pushValue,l as setValue};
@@ -1 +1 @@
1
- import n from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/toConsumableArray";import{jsx as e}from"react/jsx-runtime";import{createContext as o,useReducer as a,useContext as i}from"react";import{node as c}from"prop-types";import{EDIT_ANNOTATION as d,DELETE_ANNOTATION as u,ADD_ANNOTATION as s,APPEND_ANNOTATIONS as p,SET_ANNOTATIONS as f}from"./constants.js";function l(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function m(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){n(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var y=o(),b=o();function v(n,t){switch(t.type){case f:return{annotations:t.annotations};case p:return m(m({},n),{},{annotations:{data:[].concat(r(n.annotations.data),r(t.annotations.data)),included:t.annotations.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)}});case s:return m(m({},n),{},{annotations:n.annotations.data?{data:[t.annotation.data].concat(r(n.annotations.data)),included:t.annotation.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)}:{data:[t.annotation.data],included:t.annotation.included}});case u:var e=n.annotations.data;return m(m({},n),{},{annotations:m(m({},n.annotations),{},{data:e.filter((function(n){return n.id!==t.id}))})});case d:return m(m({},n),{},{annotations:m(m({},n.annotations),{},{data:n.annotations.data.map((function(n){return n.id===t.id?t.annotation.data:n})),included:t.annotation.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)})});default:throw new Error("Unhandled action type: ".concat(t.type))}}function h(n){var r=n.children,o=a(v,{annotations:[]}),i=t(o,2),c=i[0],d=i[1];return e(y.Provider,{value:c,children:e(b.Provider,{value:d,children:r})})}function O(){var n=i(y);if(void 0===n)throw new Error("useAnnotationsState must be used within a AnnotationsProvider");return n}function w(){var n=i(b);if(void 0===n)throw new Error("useAnnotationsDispatch must be used within a AnnotationsProvider");return n}h.propTypes={children:c.isRequired};export{h as AnnotationsProvider,w as useAnnotationsDispatch,O as useAnnotationsState};
1
+ import n from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/slicedToArray";import{jsx as e}from"react/jsx-runtime";import{createContext as o,useReducer as a,useContext as i}from"react";import{node as c}from"prop-types";import{EDIT_ANNOTATION as d,DELETE_ANNOTATION as u,ADD_ANNOTATION as s,APPEND_ANNOTATIONS as p,SET_ANNOTATIONS as f}from"./constants.js";function l(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function m(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){n(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var y=o(),b=o();function v(n,r){switch(r.type){case f:return{annotations:r.annotations};case p:return m(m({},n),{},{annotations:{data:[].concat(t(n.annotations.data),t(r.annotations.data)),included:r.annotations.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)}});case s:return m(m({},n),{},{annotations:n.annotations.data?{data:[r.annotation.data].concat(t(n.annotations.data)),included:r.annotation.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)}:{data:[r.annotation.data],included:r.annotation.included}});case u:var e=n.annotations.data;return m(m({},n),{},{annotations:m(m({},n.annotations),{},{data:e.filter((function(n){return n.id!==r.id}))})});case d:return m(m({},n),{},{annotations:m(m({},n.annotations),{},{data:n.annotations.data.map((function(n){return n.id===r.id?r.annotation.data:n})),included:r.annotation.included.reduce((function(n,t){return n.find((function(n){var r=n.id,e=n.type;return r===t.id&&e===t.type}))?n:n.concat([t])}),n.annotations.included)})});default:throw new Error("Unhandled action type: ".concat(r.type))}}function h(n){var t=n.children,o=a(v,{annotations:[]}),i=r(o,2),c=i[0],d=i[1];return e(y.Provider,{value:c,children:e(b.Provider,{value:d,children:t})})}function O(){var n=i(y);if(void 0===n)throw new Error("useAnnotationsState must be used within a AnnotationsProvider");return n}function w(){var n=i(b);if(void 0===n)throw new Error("useAnnotationsDispatch must be used within a AnnotationsProvider");return n}h.propTypes={children:c.isRequired};export{h as AnnotationsProvider,w as useAnnotationsDispatch,O as useAnnotationsState};
@@ -1 +1 @@
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 y}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Tooltip.js";import D 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 T 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"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.js";import"../../../../../PinnableFilters/PinnableFilters.js";import"../../../../../HeaderLayout/HeaderLayout.js";import"../../../../../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=function(r){var c,v=r.appId,x=r.assetId,f=r.assetCompanyId,b=r.appSettings,y=r.currentUser,I=r.classes,P=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(P,"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:T.cAddAnnotationFormInput,children:[a(D,{displayName:"".concat(y.first_name," ").concat(y.last_name),imgSrc:y.profile_photo,size:36}),p("div",{className:g(T.cAddAnnotationFormInputPaper,(c={},e(c,T.cAddAnnotationFormInputPaperOpened,N),e(c,T.cAddAnnotationFormInputPaperClosed,!N),c)),children:[a(m,{in:!N,timeout:500,children:a(d,{className:T.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:T.cAddAnnotationFormInputPaperAddAnnotation,children:N&&a(L,{onSend:V,assetCompanyId:f,currentUser:y})})})]})]})};P.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},P.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([y((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(c(P));export default E;
1
+ import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import t from"moment";import"../../../../../../constants/alerts.js";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as p,jsx as a}from"react/jsx-runtime";import{Fade as m,Paper as d,Typography as l}from"@material-ui/core";import{memo as c,useState as j,useRef as u}from"react";import"querystring";import"uuid/v1";import{postAnnotation as C}from"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import A from"../../../../../../effects/useOutsideClick.js";import"uuid";import{number as 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 y}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Tooltip.js";import D 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 T 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"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.js";import"../../../../../PinnableFilters/PinnableFilters.js";import"../../../../../HeaderLayout/HeaderLayout.js";import"../../../../../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=function(r){var c,v=r.appId,x=r.assetId,f=r.assetCompanyId,b=r.appSettings,y=r.currentUser,I=r.classes,P=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(P,"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:T.cAddAnnotationFormInput,children:[a(D,{displayName:"".concat(y.first_name," ").concat(y.last_name),imgSrc:y.profile_photo,size:36}),p("div",{className:g(T.cAddAnnotationFormInputPaper,(c={},e(c,T.cAddAnnotationFormInputPaperOpened,N),e(c,T.cAddAnnotationFormInputPaperClosed,!N),c)),children:[a(m,{in:!N,timeout:500,children:a(d,{className:T.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:T.cAddAnnotationFormInputPaperAddAnnotation,children:N&&a(L,{onSend:V,assetCompanyId:f,currentUser:y})})})]})]})};P.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},P.defaultProps={currentUser:{},showSuccessNotification:function(){},dashboardType:null};var E=r([y((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(c(P));export default E;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/toConsumableArray";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{Button as i,Typography as a}from"@material-ui/core";import{useRef as c,useState as m,useEffect as u}from"react";import{getAnnotationComments as p,postAnnotationComment as l}from"../../../../../../clients/jsonApi/index.js";import{string as d,bool as f,number as C,func as h,shape as v}from"prop-types";import{withStyles as b}from"@material-ui/core/styles";import I from"../../../../../LoadingIndicator/LoadingIndicator.js";import y from"../../../../../CommentInput/index.js";import x from"../../../../../CommentLoader.js";import g from"../../../../../Comment/index.js";import k from"./style.css.js";var w=function(d){var f=d.annotationId,C=d.commentInputIsOpen,h=d.commentsCount,v=d.setCommentsCount,b=d.initialCommentsCount,w=d.classes,R=d.assetCompanyId,j=d.currentUser,q=c(),A=m([]),L=e(A,2),M=L[0],N=L[1],T=m(!1),U=e(T,2),_=U[0],O=U[1],V=m(!1),z=e(V,2),D=z[0],G=z[1],P=m(1),B=e(P,2),E=B[0],F=B[1],H=m(3),J=e(H,2),K=J[0],Q=J[1],S=function(e){var n=M.findIndex((function(n){return n.id===e.id})),t=r(M);t.splice(n,1,e),N(t)},W=function(e){N(M.filter((function(n){return n.id!==e}))),v(h-1)};u((function(){function e(){return(e=t(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return O(!0),e.prev=3,e.next=6,p(f,{page:E,per_page:3,order:"desc"});case 6:t=e.sent,N(t),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:O(!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var X,Y=(X=t(n.mark((function e(){var t,o,s;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),Q((o=(t=3===K)?7:10)+K),e.prev=4,e.next=7,p(f,{page:t?1:E,per_page:o,order:"desc",offset:1===E?M.length:h-b+10});case 7:s=e.sent,N([].concat(r(M),r(s))),t||F(E+1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:O(!1);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),function(){return X.apply(this,arguments)}),Z=M.slice(0,K).reverse(),$=h>K;return _&&!M.length?o(I,{fullscreen:!1}):s("div",{className:k.cAnnotationCommentsList,children:[$&&o(i,{"data-testid":"".concat("annotationComments","_viewMoreComments"),className:w.showMore,onClick:Y,children:o(a,{variant:"caption",color:"primary",children:"View more comments"})}),s("div",{className:k.cAnnotationCommentsListItems,children:[_&&M.length&&o(I,{fullscreen:!1,size:30}),Z.map((function(e){return o(g,{comment:e,handleDeleteCallback:W,patchCommentCallback:S,companyId:R,currentUser:j},e.id)}))]}),D&&o(x,{spaceAround:!0}),C&&o("div",{className:k.cAnnotationCommentsListInput,children:o(y,{inputRef:q,postComment:function(e){return l(f,e)},setIsPosting:G,postCommentCallback:function(e){N([e].concat(r(M))),v(h+1)},onMount:function(){var e=q.current;e&&(e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),e.focus())},companyId:R,currentUser:j})})]})};w.propTypes={annotationId:d.isRequired,commentInputIsOpen:f.isRequired,commentsCount:C.isRequired,initialCommentsCount:C.isRequired,setCommentsCount:h.isRequired,classes:v().isRequired,assetCompanyId:C.isRequired,currentUser:v({}).isRequired};var R=b({showMore:{textTransform:"none",backgroundColor:"transparent!important",padding:0}})(w);export default R;
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import n from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import r from"@babel/runtime/helpers/asyncToGenerator";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{Button as i,Typography as a}from"@material-ui/core";import{useRef as c,useState as m,useEffect as u}from"react";import{getAnnotationComments as p,postAnnotationComment as l}from"../../../../../../clients/jsonApi/index.js";import{string as d,bool as f,number as C,func as h,shape as v}from"prop-types";import{withStyles as b}from"@material-ui/core/styles";import I from"../../../../../LoadingIndicator/LoadingIndicator.js";import y from"../../../../../CommentInput/index.js";import x from"../../../../../CommentLoader.js";import g from"../../../../../Comment/index.js";import k from"./style.css.js";var w=function(d){var f=d.annotationId,C=d.commentInputIsOpen,h=d.commentsCount,v=d.setCommentsCount,b=d.initialCommentsCount,w=d.classes,R=d.assetCompanyId,j=d.currentUser,q=c(),A=m([]),L=n(A,2),M=L[0],N=L[1],T=m(!1),U=n(T,2),_=U[0],O=U[1],V=m(!1),z=n(V,2),D=z[0],G=z[1],P=m(1),B=n(P,2),E=B[0],F=B[1],H=m(3),J=n(H,2),K=J[0],Q=J[1],S=function(n){var t=M.findIndex((function(e){return e.id===n.id})),r=e(M);r.splice(t,1,n),N(r)},W=function(e){N(M.filter((function(n){return n.id!==e}))),v(h-1)};u((function(){function e(){return(e=r(t.mark((function e(){var n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return O(!0),e.prev=3,e.next=6,p(f,{page:E,per_page:3,order:"desc"});case 6:n=e.sent,N(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:O(!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var X,Y=(X=r(t.mark((function n(){var r,o,s;return t.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return O(!0),Q((o=(r=3===K)?7:10)+K),n.prev=4,n.next=7,p(f,{page:r?1:E,per_page:o,order:"desc",offset:1===E?M.length:h-b+10});case 7:s=n.sent,N([].concat(e(M),e(s))),r||F(E+1),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(4),console.error(n.t0);case 15:O(!1);case 16:case"end":return n.stop()}}),n,null,[[4,12]])}))),function(){return X.apply(this,arguments)}),Z=M.slice(0,K).reverse(),$=h>K;return _&&!M.length?o(I,{fullscreen:!1}):s("div",{className:k.cAnnotationCommentsList,children:[$&&o(i,{"data-testid":"".concat("annotationComments","_viewMoreComments"),className:w.showMore,onClick:Y,children:o(a,{variant:"caption",color:"primary",children:"View more comments"})}),s("div",{className:k.cAnnotationCommentsListItems,children:[_&&M.length&&o(I,{fullscreen:!1,size:30}),Z.map((function(e){return o(g,{comment:e,handleDeleteCallback:W,patchCommentCallback:S,companyId:R,currentUser:j},e.id)}))]}),D&&o(x,{spaceAround:!0}),C&&o("div",{className:k.cAnnotationCommentsListInput,children:o(y,{inputRef:q,postComment:function(e){return l(f,e)},setIsPosting:G,postCommentCallback:function(n){N([n].concat(e(M))),v(h+1)},onMount:function(){var e=q.current;e&&(e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),e.focus())},companyId:R,currentUser:j})})]})};w.propTypes={annotationId:d.isRequired,commentInputIsOpen:f.isRequired,commentsCount:C.isRequired,initialCommentsCount:C.isRequired,setCommentsCount:h.isRequired,classes:v().isRequired,assetCompanyId:C.isRequired,currentUser:v({}).isRequired};var R=b({showMore:{textTransform:"none",backgroundColor:"transparent!important",padding:0}})(w);export default R;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import"lodash/set";import"lodash/get";import"moment";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import n from"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import{useState as a,useEffect as o,useRef as s}from"react";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{mapAssetGetRequest as p}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import{PER_PAGE as i}from"../constants.js";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 u(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 f=function(e){return{sort:"name",order:"asc",fields:["".concat(e,".name"),"".concat(e,".asset_id")]}},l=function(e){return u(u({},e.attributes),{},{id:+e.id})};function m(s){var i=s.appKey,c=s.assetType,m=s.assetId,y=s.parentAssetType,b=s.parentAssetId,d=a([]),h=t(d,2),O=h[0],j=h[1],g=a(!0),v=t(g,2),w=v[0],x=v[1];return o((function(){function t(){return(t=n(r.mark((function t(){var n;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(c)(u(u({},f(c)),{},e({per_page:1e4},y,b),i&&{app_key:i}));case 2:n=t.sent,j(n.data.map(l)),x(!1);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}x(!0),function(){t.apply(this,arguments)}()}),[c,m,y,b,i]),{assets:O,loading:w}}function y(e){var c=e.appKey,m=e.assetType,y=e.companyId,b=e.currentValue,d=e.isMultiple,h=e.parentAssetId,O=e.parentAssetType,j=e.scrollPage,g=e.searchText,v=e.setCurrentOption,w=a([]),x=t(w,2),P=x[0],k=x[1],A=a(!1),T=t(A,2),_=T[0],D=T[1],I=s(),C=s();return o((function(){function e(){return(e=n(r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(m)(u(u({},f(m)),{},{ids:d?b:[b]}));case 2:t=e.sent,v((function(){if(d)return t.data.map(l);var e=t.data[0];return e?l(e):null}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(d?b.length:b)&&function(){e.apply(this,arguments)}()}),[]),o((function(){function e(){return(e=n(r.mark((function e(){var t,n,a,o,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,D(!0),t={per_page:i,page:j},O&&h&&(t[O]=h),y&&(t.company=y),g&&(t.search=g),c&&(t.app_key=c),n=p(m)(u(u({},f(m)),t)),C.current=n,e.next=11,n;case 11:if(a=e.sent,C.current===n){e.next=14;break}return e.abrupt("return");case 14:o=a.data.map(l),s=I.current!==m||1===j,k(s?o:function(e){return e.concat(o)}),I.current=m,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:D(!1);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[m,O,h,y,g,j,c]),{assets:P,loading:_}}export{y as useAssetAutoCompleteSelectData,m as useAssetSelectData};
1
+ import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"moment";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"lodash/get";import"lodash/set";import r from"@babel/runtime/regenerator";import n from"@babel/runtime/helpers/asyncToGenerator";import{useState as a,useEffect as o,useRef as s}from"react";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{mapAssetGetRequest as p}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import{PER_PAGE as i}from"../constants.js";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 u(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 f=function(e){return{sort:"name",order:"asc",fields:["".concat(e,".name"),"".concat(e,".asset_id")]}},l=function(e){return u(u({},e.attributes),{},{id:+e.id})};function m(s){var i=s.appKey,c=s.assetType,m=s.assetId,y=s.parentAssetType,b=s.parentAssetId,d=a([]),h=t(d,2),O=h[0],j=h[1],g=a(!0),v=t(g,2),w=v[0],x=v[1];return o((function(){function t(){return(t=n(r.mark((function t(){var n;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(c)(u(u({},f(c)),{},e({per_page:1e4},y,b),i&&{app_key:i}));case 2:n=t.sent,j(n.data.map(l)),x(!1);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}x(!0),function(){t.apply(this,arguments)}()}),[c,m,y,b,i]),{assets:O,loading:w}}function y(e){var c=e.appKey,m=e.assetType,y=e.companyId,b=e.currentValue,d=e.isMultiple,h=e.parentAssetId,O=e.parentAssetType,j=e.scrollPage,g=e.searchText,v=e.setCurrentOption,w=a([]),x=t(w,2),P=x[0],k=x[1],A=a(!1),T=t(A,2),_=T[0],D=T[1],I=s(),C=s();return o((function(){function e(){return(e=n(r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(m)(u(u({},f(m)),{},{ids:d?b:[b]}));case 2:t=e.sent,v((function(){if(d)return t.data.map(l);var e=t.data[0];return e?l(e):null}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(d?b.length:b)&&function(){e.apply(this,arguments)}()}),[]),o((function(){function e(){return(e=n(r.mark((function e(){var t,n,a,o,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,D(!0),t={per_page:i,page:j},O&&h&&(t[O]=h),y&&(t.company=y),g&&(t.search=g),c&&(t.app_key=c),n=p(m)(u(u({},f(m)),t)),C.current=n,e.next=11,n;case 11:if(a=e.sent,C.current===n){e.next=14;break}return e.abrupt("return");case 14:o=a.data.map(l),s=I.current!==m||1===j,k(s?o:function(e){return e.concat(o)}),I.current=m,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:D(!1);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[m,O,h,y,g,j,c]),{assets:P,loading:_}}export{y as useAssetAutoCompleteSelectData,m as useAssetSelectData};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import a from"@material-ui/core/colors/grey";import o from"../../utils/main.js";import{isNativeDetected as r}from"../../utils/mobileDetect.js";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import w from"file-extension";import x from"image-extensions";import N from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import U from"../ImageViewer/index.js";import R from"../GoogleDocsViewer/index.js";import C from"./styles.css.js";function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,a=v(e);if(t){var o=v(this).constructor;i=Reflect.construct(a,arguments,o)}else i=a.apply(this,arguments);return g(this,i)}}var A=a[200],F=a[400],W=a[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:A,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:C.cAttachmentImg,children:[s("img",{"data-testid":"".concat("attachment","_preview"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{className:C.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(U,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:C.cAttachmentFileWrapper,children:[l("div",{className:C.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(N,{fileName:e.displayName||e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("attachment","_name"),className:C.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:o.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(R,{fileUrl:e.attachmentUrl,fileName:o.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},V=function(a){f(r,c);var o=z(r);function r(i){var a;t(this,r),a=o.call(this,i),e(u(a),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(a),"handleLightboxOpen",(function(){a.props.isNative&&document.documentElement.addEventListener("touchmove",a.preventIOSScroll,{passive:!1})})),e(u(a),"handleLightboxClose",(function(){a.props.isNative&&document.documentElement.removeEventListener("touchmove",a.preventIOSScroll),a.setState({lightboxIsOpen:!1})})),e(u(a),"openLightbox",(function(){return a.setState({lightboxIsOpen:!0})})),e(u(a),"setImageIsLoaded",(function(){return a.setState({imageIsLoaded:!0})})),e(u(a),"openPreview",(function(){return a.setState({previewIsOpen:!0})})),e(u(a),"closePreview",(function(e){e.stopPropagation(),a.setState({previewIsOpen:!1})})),a.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=w(i.displayName||i.attachmentUrl);return a.isImage=x.includes(s),a.isVideo=y.includes(s),a}return i(r,[{key:"render",value:function(){return this.isImage?s("div",{className:C.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:C.cAttachment,children:s(L,{className:C.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:C.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),r}();V.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},V.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:r};var q=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(V);export default q;
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import a from"../../utils/main.js";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import r from"@babel/runtime/helpers/createClass";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import w from"file-extension";import x from"image-extensions";import N from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import U from"../ImageViewer/index.js";import R from"../GoogleDocsViewer/index.js";import C from"./styles.css.js";function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,a=v(e);if(t){var o=v(this).constructor;i=Reflect.construct(a,arguments,o)}else i=a.apply(this,arguments);return g(this,i)}}var A=i[200],F=i[400],W=i[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:A,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:C.cAttachmentImg,children:[s("img",{"data-testid":"".concat("attachment","_preview"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{className:C.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(U,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:C.cAttachmentFileWrapper,children:[l("div",{className:C.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(N,{fileName:e.displayName||e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("attachment","_name"),className:C.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(R,{fileUrl:e.attachmentUrl,fileName:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},V=function(i){f(o,c);var a=z(o);function o(i){var r;t(this,o),r=a.call(this,i),e(u(r),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(r),"handleLightboxOpen",(function(){r.props.isNative&&document.documentElement.addEventListener("touchmove",r.preventIOSScroll,{passive:!1})})),e(u(r),"handleLightboxClose",(function(){r.props.isNative&&document.documentElement.removeEventListener("touchmove",r.preventIOSScroll),r.setState({lightboxIsOpen:!1})})),e(u(r),"openLightbox",(function(){return r.setState({lightboxIsOpen:!0})})),e(u(r),"setImageIsLoaded",(function(){return r.setState({imageIsLoaded:!0})})),e(u(r),"openPreview",(function(){return r.setState({previewIsOpen:!0})})),e(u(r),"closePreview",(function(e){e.stopPropagation(),r.setState({previewIsOpen:!1})})),r.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=w(i.displayName||i.attachmentUrl);return r.isImage=x.includes(s),r.isVideo=y.includes(s),r}return r(o,[{key:"render",value:function(){return this.isImage?s("div",{className:C.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:C.cAttachment,children:s(L,{className:C.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:C.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),o}();V.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},V.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:o};var q=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(V);export default q;
@@ -1 +1 @@
1
- import e from"lodash/get";import t from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{withStyles as n,Tooltip as i,makeStyles as l,Chip as a,Input as c}from"@material-ui/core";import s from"@material-ui/icons/Close";import{useState as p,useRef as u}from"react";import f from"prop-types";import{withRouter as d}from"react-router";import{SEARCH_CATEGORIES as m,CATEGORY_KEY_VALUES as h}from"./constants.js";import x from"./AssetTypesSection.js";import g from"./AssetResultSection.js";import{useAssetsData as C}from"./effects/useAssetsData.js";var b=n((function(){return{tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}}}))(i),v=l((function(){return{wrapper:{width:"460px",display:"flex",flexDirection:"column",padding:16,minWidth:"376px"},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:"#BDBDBD","&:hover":{color:"#ffffff"}},closeIconButton:{padding:0,"&:hover $closeIcon":{color:"#fff"}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:"#BDBDBD",fontSize:"18px"}}})),y=function(n){var i=n.onClickAsset,l=n.company,f=p(null),d=t(f,2),y=d[0],D=d[1],I=p(null),w=t(I,2),A=w[0],B=w[1],S=p(1),j=t(S,2),k=j[0],R=j[1],W=v(),N=u(),T=C(A,y,k,l),z=t(T,2),q=z[0],K=z[1];return o("div",{className:W.wrapper,children:[r("div",{className:W.inputWrapper,children:o("div",{className:W.searchInput,children:[y&&r(a,{"data-not-migrated-muichip":!0,classes:{root:W.selectedChip,deleteIcon:W.selectedChipDeleteIcon},label:e(m,[y,"labelPlural"],"Assets"),deleteIcon:r(s,{}),onDelete:function(){D(null),R(1)}}),r(c,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:N,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:A||"",placeholder:"Search ".concat(e(m,[y,"labelPlural"],"assets"),"..."),onChange:function(e){var t=e.target.value;B(t),R(1)},onKeyUp:function(e){var o=e.target.value,r=e.keyCode,n=h.find((function(e){var r=t(e,2);r[0];return r[1].autoCategorizedKey===o.trim().toLowerCase()}));if(n&&(13===r||32===r))return B(""),D(n[0]),void R(1);""===o&&8===r&&(D(null),R(1))}}),r(b,{title:"Clear",children:r(s,{className:W.selectedChipDeleteIcon,onClick:function(){N.current.focus(),B(""),D(null),R(1)}})})]})}),!y&&!A&&r(x,{onClickAssetType:function(e){N.current.focus(),D(e),R(1)}}),(y||A)&&r(g,{loading:q,page:k,groupedAssets:K,onClickAsset:i,onScrollReached:function(e){"top"===e&&k>1&&R((function(e){return e-1})),"bottom"===e&&R((function(e){return e+1}))}})]})};y.propTypes={company:f.number.isRequired,onClickAsset:f.func.isRequired};var D=d(y);export default D;
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"lodash/get";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{withStyles as n,Tooltip as i,makeStyles as l,Chip as a,Input as c}from"@material-ui/core";import s from"@material-ui/icons/Close";import{useState as p,useRef as u}from"react";import f from"prop-types";import{withRouter as d}from"react-router";import{SEARCH_CATEGORIES as m,CATEGORY_KEY_VALUES as h}from"./constants.js";import x from"./AssetTypesSection.js";import g from"./AssetResultSection.js";import{useAssetsData as C}from"./effects/useAssetsData.js";var b=n((function(){return{tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}}}))(i),v=l((function(){return{wrapper:{width:"460px",display:"flex",flexDirection:"column",padding:16,minWidth:"376px"},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:"#BDBDBD","&:hover":{color:"#ffffff"}},closeIconButton:{padding:0,"&:hover $closeIcon":{color:"#fff"}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:"#BDBDBD",fontSize:"18px"}}})),y=function(n){var i=n.onClickAsset,l=n.company,f=p(null),d=e(f,2),y=d[0],D=d[1],I=p(null),w=e(I,2),A=w[0],B=w[1],S=p(1),j=e(S,2),k=j[0],R=j[1],W=v(),N=u(),T=C(A,y,k,l),z=e(T,2),q=z[0],K=z[1];return o("div",{className:W.wrapper,children:[r("div",{className:W.inputWrapper,children:o("div",{className:W.searchInput,children:[y&&r(a,{"data-not-migrated-muichip":!0,classes:{root:W.selectedChip,deleteIcon:W.selectedChipDeleteIcon},label:t(m,[y,"labelPlural"],"Assets"),deleteIcon:r(s,{}),onDelete:function(){D(null),R(1)}}),r(c,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:N,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:A||"",placeholder:"Search ".concat(t(m,[y,"labelPlural"],"assets"),"..."),onChange:function(e){var t=e.target.value;B(t),R(1)},onKeyUp:function(t){var o=t.target.value,r=t.keyCode,n=h.find((function(t){var r=e(t,2);r[0];return r[1].autoCategorizedKey===o.trim().toLowerCase()}));if(n&&(13===r||32===r))return B(""),D(n[0]),void R(1);""===o&&8===r&&(D(null),R(1))}}),r(b,{title:"Clear",children:r(s,{className:W.selectedChipDeleteIcon,onClick:function(){N.current.focus(),B(""),D(null),R(1)}})})]})}),!y&&!A&&r(x,{onClickAssetType:function(e){N.current.focus(),D(e),R(1)}}),(y||A)&&r(g,{loading:q,page:k,groupedAssets:K,onClickAsset:i,onScrollReached:function(e){"top"===e&&k>1&&R((function(e){return e-1})),"bottom"===e&&R((function(e){return e+1}))}})]})};y.propTypes={company:f.number.isRequired,onClickAsset:f.func.isRequired};var D=d(y);export default D;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"lodash/get";import r from"@babel/runtime/regenerator";import n from"@babel/runtime/helpers/asyncToGenerator";import a from"@babel/runtime/helpers/toConsumableArray";import{getAssets as s,getRigs as i,getFracFleets as u,getDrilloutUnits as o}from"../../../../../../clients/jsonApi/index.js";import c from"jsona";import l from"lodash/concat";function p(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 f(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=new c;function m(){return d.apply(this,arguments)}function d(){return(d=n(r.mark((function e(){var n,a,i,u,o=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:"well",a=o.length>1?o[1]:void 0,i=null,e.prev=3,e.next=6,s({types:["well"],company_id:a?+a:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","well.settings"],per_page:1e4,sort:"name"});case 6:i=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.error(e.t0);case 12:return u=i?i.data.map((function(e){return{id:Number(e.id),name:t(e,"attributes.name"),rigId:t(e,"attributes.parent_asset_id")||"Null",rigName:t(e,"attributes.parent_asset_name")||"Null",formation:t(e,"attributes.target_formation")||"Null",stringDesign:t(e,"attributes.string_design")||"Null",programName:t(e,"attributes.root_asset_name")||"Null",basin:t(e,"attributes.basin")||"Null",county:t(e,"attributes.county")||"Null",area:t(e,"attributes.area")||"Null",visibility:t(e,"attributes.visibility"),topHole:t(e,"attributes.top_hole"),rigReleaseDate:t(e,"attributes.stats.well_end"),totalDepth:t(e,"attributes.stats.total_depth"),is_usable:!0,apiNumber:t(e,"attributes.settings.api_number","-")}})).filter((function(e){return"visible"===e.visibility})):[],e.abrupt("return",u.map((function(e){return{redirectAssetId:e.id,apiNumber:e.api_number,name:e.name,asset_id:e.id,type:n}})));case 14:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function _(e,t){return g.apply(this,arguments)}function g(){return(g=n(r.mark((function e(n,a){var s,u,o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:n,fields:["rig.name","rig.active_well","rig.asset_id"],sort:"name",company:a},e.prev=2,e.next=5,i(s);case 5:u=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),u=[];case 12:return o=b.deserialize(u),e.abrupt("return",o.map((function(e){return f({redirectAssetId:t(e,["active_well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function y(e,t){return h.apply(this,arguments)}function h(){return(h=n(r.mark((function e(n,a){var s,i,o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:n,fields:["frac_fleet.name","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"],sort:"name",company:a},e.prev=2,e.next=5,u(s);case 5:i=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),i=[];case 12:return o=b.deserialize(i),e.abrupt("return",o.map((function(e){return f({redirectAssetId:t(e,["current_pad_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function v(e,t){return w.apply(this,arguments)}function w(){return(w=n(r.mark((function e(n,a){var s,i,u;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:n,fields:["drillout_unit.name","drillout_unit.well"],sort:"name",company:a},e.prev=2,e.next=5,o(s);case 5:i=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),i=[];case 12:return u=b.deserialize(i),e.abrupt("return",u.map((function(e){return f({redirectAssetId:t(e,["well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function x(e){return O.apply(this,arguments)}function O(){return(O=n(r.mark((function e(t){var n,s,i,u,o,c,p,f=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:1,s=f.length>2?f[2]:void 0,"well"!==t&&"api_number"!==t){e.next=7;break}return e.next=5,m(t,s);case 5:return i=e.sent,e.abrupt("return",i);case 7:if("rig"!==t){e.next=12;break}return e.next=10,_(n,s);case 10:return u=e.sent,e.abrupt("return",u);case 12:if("frac_fleet"!==t){e.next=17;break}return e.next=15,y(n,s);case 15:return o=e.sent,e.abrupt("return",o);case 17:if("drillout_unit"!==t){e.next=22;break}return e.next=20,v(n,s);case 20:return c=e.sent,e.abrupt("return",c);case 22:return e.next=24,Promise.all([m("well",s),_(n,s),y(n,s),v(n,s)]);case 24:return p=e.sent,e.abrupt("return",l.apply(void 0,a(p)));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{x as fetchAllAssets,m as fetchWells};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import r from"lodash/get";import n from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import{getAssets as s,getRigs as i,getFracFleets as u,getDrilloutUnits as o}from"../../../../../../clients/jsonApi/index.js";import c from"jsona";import l from"lodash/concat";function p(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 f(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=new c;function m(){return d.apply(this,arguments)}function d(){return(d=a(n.mark((function e(){var t,a,i,u,o=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"well",a=o.length>1?o[1]:void 0,i=null,e.prev=3,e.next=6,s({types:["well"],company_id:a?+a:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","well.settings"],per_page:1e4,sort:"name"});case 6:i=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.error(e.t0);case 12:return u=i?i.data.map((function(e){return{id:Number(e.id),name:r(e,"attributes.name"),rigId:r(e,"attributes.parent_asset_id")||"Null",rigName:r(e,"attributes.parent_asset_name")||"Null",formation:r(e,"attributes.target_formation")||"Null",stringDesign:r(e,"attributes.string_design")||"Null",programName:r(e,"attributes.root_asset_name")||"Null",basin:r(e,"attributes.basin")||"Null",county:r(e,"attributes.county")||"Null",area:r(e,"attributes.area")||"Null",visibility:r(e,"attributes.visibility"),topHole:r(e,"attributes.top_hole"),rigReleaseDate:r(e,"attributes.stats.well_end"),totalDepth:r(e,"attributes.stats.total_depth"),is_usable:!0,apiNumber:r(e,"attributes.settings.api_number","-")}})).filter((function(e){return"visible"===e.visibility})):[],e.abrupt("return",u.map((function(e){return{redirectAssetId:e.id,apiNumber:e.api_number,name:e.name,asset_id:e.id,type:t}})));case 14:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function _(e,t){return g.apply(this,arguments)}function g(){return(g=a(n.mark((function e(t,a){var s,u,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:t,fields:["rig.name","rig.active_well","rig.asset_id"],sort:"name",company:a},e.prev=2,e.next=5,i(s);case 5:u=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),u=[];case 12:return o=b.deserialize(u),e.abrupt("return",o.map((function(e){return f({redirectAssetId:r(e,["active_well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function y(e,t){return h.apply(this,arguments)}function h(){return(h=a(n.mark((function e(t,a){var s,i,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:t,fields:["frac_fleet.name","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"],sort:"name",company:a},e.prev=2,e.next=5,u(s);case 5:i=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),i=[];case 12:return o=b.deserialize(i),e.abrupt("return",o.map((function(e){return f({redirectAssetId:r(e,["current_pad_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function v(e,t){return w.apply(this,arguments)}function w(){return(w=a(n.mark((function e(t,a){var s,i,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={per_page:1e3,page:t,fields:["drillout_unit.name","drillout_unit.well"],sort:"name",company:a},e.prev=2,e.next=5,o(s);case 5:i=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0),i=[];case 12:return u=b.deserialize(i),e.abrupt("return",u.map((function(e){return f({redirectAssetId:r(e,["well","asset_id"])||null},e)})));case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function x(e){return O.apply(this,arguments)}function O(){return(O=a(n.mark((function e(r){var a,s,i,u,o,c,p,f=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=f.length>1&&void 0!==f[1]?f[1]:1,s=f.length>2?f[2]:void 0,"well"!==r&&"api_number"!==r){e.next=7;break}return e.next=5,m(r,s);case 5:return i=e.sent,e.abrupt("return",i);case 7:if("rig"!==r){e.next=12;break}return e.next=10,_(a,s);case 10:return u=e.sent,e.abrupt("return",u);case 12:if("frac_fleet"!==r){e.next=17;break}return e.next=15,y(a,s);case 15:return o=e.sent,e.abrupt("return",o);case 17:if("drillout_unit"!==r){e.next=22;break}return e.next=20,v(a,s);case 20:return c=e.sent,e.abrupt("return",c);case 22:return e.next=24,Promise.all([m("well",s),_(a,s),y(a,s),v(a,s)]);case 24:return p=e.sent,e.abrupt("return",l.apply(void 0,t(p)));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{x as fetchAllAssets,m as fetchWells};