@corva/ui 0.25.0-3 → 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.
- package/CLI/components/App/App.css.js +1 -1
- package/CLI/components/App/App.js +1 -1
- package/CLI/components/App/components/AppBar/AppBar.js +1 -1
- package/CLI/flags/index.js +1 -0
- package/CLI/hocs/constants.js +1 -0
- package/CLI/hocs/utils.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withCorvaMagicHOC.js +1 -1
- package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withMUIProvidersHOC.js +1 -1
- package/CLI/hocs/withPDFLayoutHOC.js +1 -0
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/clients/api/apiCore.js +1 -1
- package/clients/clientStorage/core.js +1 -1
- package/components/Annotations/AnnotationsContext.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
- package/components/AssetEditor/effects/index.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppHeader/PadMode.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
- package/components/EmptyView/index.js +1 -1
- package/components/FileUploadIconButton.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/partials/Icons/DocFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/ExelFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/IconCancel.js +1 -0
- package/components/FilesLoader/partials/Icons/IconSuccess.js +1 -0
- package/components/FilesLoader/partials/Icons/IconWarning.js +1 -0
- package/components/FilesLoader/partials/Icons/PdfFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/UnknownFileIcon.js +1 -0
- package/components/FilesLoader/partials/UploadingFileState/FileLoadingProgress.js +1 -0
- package/components/InfiniteList/index.js +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV2/constants.js +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/ParameterCharts/AddEditTrack.js +1 -1
- package/components/ParameterCharts/components/Track.js +1 -1
- package/components/ParameterCharts/components/TrackSettings.js +1 -1
- package/components/PostPreviewDialog/index.js +1 -1
- package/components/SlateFormattedText/SlateFormattedText.js +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/components/WellSummary/WellSummaryItemValue.js +1 -1
- package/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/config/theme/index.js +1 -1
- package/constants/apps.js +1 -1
- package/constants/index.js +1 -1
- package/constants/theme.js +1 -0
- package/package.json +1 -1
- package/utils/DrillstringUtils.js +1 -1
- package/utils/FluidCheckUtils.js +1 -1
- package/utils/apps.js +1 -0
- package/utils/casing/conversion.js +1 -1
- package/utils/casing/validation.js +1 -1
- package/utils/completion.js +1 -1
- package/utils/dashboardReports.js +1 -0
- package/utils/devcenter.js +1 -1
- package/utils/index.js +1 -1
- package/utils/lasParser.js +1 -1
- package/utils/main.js +1 -1
- package/utils/torqueAndHookloadUtils.js +1 -1
- package/components/FilesLoader/constants.js +0 -1
- package/components/FilesLoader/effects/useUploadingFile.js +0 -1
- package/components/FilesLoader/partials/FileIcon/FileIcon.js +0 -1
- package/components/FilesLoader/partials/UploadingFileState/UploadingFileState.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import p from'../../../ext-esm/style-inject/dist/style-inject.es.js';p(".App_app__38Vvn{min-height:100%;display:flex;flex-direction:column;touch-action:manipulation}.App_appContent__2_P6A{padding:10px}");export default{app:"App_app__38Vvn",appContent:"App_appContent__2_P6A"};
|
|
1
|
+
import p from'../../../ext-esm/style-inject/dist/style-inject.es.js';p(".App_app__38Vvn{min-height:100%;display:flex;flex-direction:column;touch-action:manipulation}.App_appContent__2_P6A{padding:10px;flex-grow:1;position:relative}.App_pdfAppContent__-4THK{padding:30px 0;background-color:#fff}");export default{app:"App_app__38Vvn",appContent:"App_appContent__2_P6A",pdfAppContent:"App_pdfAppContent__-4THK"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"
|
|
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
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{makeStyles as t,useTheme as i,AppBar as n,Toolbar as a,FormControlLabel as l,Checkbox as c,Tooltip as s,IconButton as m,Typography as p,Menu as h,MenuItem as u}from"@material-ui/core";import{useState as d}from"react";import f from"prop-types";import g from"../../../../../components/SwitchControl/index.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as b}from"../../../../hocs/constants.js";import{isPDFReportView as C}from"../../../../hocs/utils.js";import{useAuth as v}from"../../../../context/auth.js";import w from"@material-ui/icons/AccountCircle";import x from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as k}from"../../../../flags/index.js";var T=t((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},headerControl:{marginRight:32},formControlLabel:{fontSize:14}}}));function j(t){var f=t.toggleTheme,j=T(),L=v(),N=L.user,B=L.logout,y=i(),z=d(null),R=e(z,2),S=R[0],D=R[1],P=Boolean(S),A=function(){return D(null)},I=N.first_name,O=N.last_name,F="".concat(I[0]).concat(O[0]).toUpperCase();return r("div",{children:[o(n,{position:"static",className:j.appBar,children:r(a,{children:[o(x,{}),o("div",{className:j.grow}),k()&&o(l,{control:o(c,{checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:j.formControlLabel},className:j.headerControl}),k()&&o(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:o("div",{children:o(g,{className:j.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:y.isLightTheme,size:"small",title:""})})}),o("div",{children:o(m,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return D(e.currentTarget)},color:"inherit",className:j.iconButtonRoot,children:r("div",{className:j.flex,children:[o(p,{children:F}),o(w,{className:j.userProfileIcon})]})})})]})}),o(h,{anchorEl:S,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:P,onClose:A,children:o(u,{onClick:function(){B(),A()},children:"Sign Out"})})]})}j.propTypes={toggleTheme:f.func.isRequired};export default j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(){return!!localStorage.getItem("PDF_REPORTS")};export{t as isPDFReportsFeatureActive};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E="APP_THEME",P="PDF_REPORT_VIEW";export{E as LOCAL_STORAGE_APP_THEME_KEY,P as LOCAL_STORAGE_PDF_REPORT_VIEW_KEY};
|
package/CLI/hocs/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";function
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{DEFAULT_APP_SIZE as t}from"../../constants/apps.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as r}from"./constants.js";function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function n(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(e){return JSON.parse(localStorage.getItem(e))||{}}function c(e,t){var r=i(e)||{};localStorage.setItem(e,JSON.stringify(n(n({},r),t)))}var l=JSON.parse(localStorage.getItem(r)||"false"),a=function(e){var r,o,c,l,a=null!==(r=null==e||null===(o=e.application)||void 0===o||null===(c=o.ui)||void 0===c?void 0:c.initial_size)&&void 0!==r?r:t;return i(null==e||null===(l=e.application)||void 0===l?void 0:l.key).coordinates||n(n({},a),{},{x:0,y:0})};export{a as getAppCoordinates,i as getLocalAppData,l as isPDFReportView,c as updateLocalAppData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import"
|
|
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{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as o}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import r from"./withAppDataProviderHOC.js";import{isPDFReportView as i}from"./utils.js";import e from"./withCLIAppSettingsHOC.js";import a from"./withReactRouterHOC.js";import m from"./withGridLayoutHOC/withGridLayoutHOC.js";import p from"./withPDFLayoutHOC.js";import{withDevCenterRouterHOC as n}from"./withDevCenterRouterHOC.js";import"../../styles/index.global.css.js";import"../../styles/reactVirtualized.global.css.js";navigator.platform.indexOf("Mac")>-1||import("../../styles/customScrollbars.global.css.js"),s(),o();export default function(s){var o=s.component,l=s.settings,c=s.manifest,f=s.packageJson;return function(){var s=e(r({CLIAppComponent:o,CLIAppSettings:l,packageJson:f})),g=i?p(s):m(s),h=a(n(g));return t(h,{manifest:c,dashboardProps:{}})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{createDevCenterRouter as e}from"../../utils/devcenter.js";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import n from"@babel/runtime/helpers/objectWithoutProperties";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var p=function(r){return function(i){var p=i.router,u=n(i,["router"]),f=o((function(){return e(p)}),[p.location]);return t(r,c(c({},u),{},{devCenterRouter:f}))}};export{p as withDevCenterRouterHOC};
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{createDevCenterRouter as e}from"../../utils/devcenter.js";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import n from"@babel/runtime/helpers/objectWithoutProperties";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var p=function(r){return function(i){var p=i.router,u=n(i,["router"]),f=o((function(){return e(p)}),[p.location]);return t(r,c(c({},u),{},{devCenterRouter:f}))}};export default p;export{p as withDevCenterRouterHOC};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{
|
|
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 r from"moment";import{jsx as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"moment";import t from"@babel/runtime/helpers/slicedToArray";import{jsx as o}from"react/jsx-runtime";import{MuiThemeProvider as n}from"@material-ui/core";import{darkTheme as i,lightTheme as m}from"../../config/theme/index.js";import{useState as c}from"react";import{MuiPickersUtilsProvider as p}from"@material-ui/pickers";import f from"@date-io/moment";import{LOCAL_STORAGE_APP_THEME_KEY as a}from"./constants.js";import{THEMES as l}from"../../constants/theme.js";function s(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 u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}export default function(e){return function(s){var b,O=c(null!==(b=localStorage.getItem(a))&&void 0!==b?b:l.DARK),j=t(O,2),g=j[0],y=j[1],h=g===l.DARK;return o(n,{theme:h?i:m,children:o(p,{libInstance:r,utils:f,children:o(e,u(u({},s),{},{toggleTheme:function(){var e=h?l.LIGHT:l.DARK;localStorage.setItem(a,e),y(e)}}))})})}}
|
|
@@ -0,0 +1 @@
|
|
|
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"
|
|
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"
|
|
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;
|
package/clients/api/apiCore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/
|
|
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"
|
|
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/
|
|
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};
|
package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js
CHANGED
|
@@ -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
|
|
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;
|
package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/
|
|
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"
|
|
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};
|