@corva/ui 0.24.0-3 → 0.24.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as t}from"../../constants/devcenter.js";import"../../constants/drillstring.js";import"@babel/runtime/helpers/typeof";import{jsx as e}from"react/jsx-runtime";import"@material-ui/core";import"react";import"../../clients/jsonApi/index.js";import"uuid";import n from"@babel/runtime/helpers/objectWithoutProperties";import"../../components/Modal/index.js";import"../../components/IconMenu/index.js";import"../../components/StyledMenuItem/index.js";import"../../components/LoadingIndicator/LoadingIndicator.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import r from"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../components/ErrorBoundary/ErrorBoundary.js";import"../../components/Typography.js";import"../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../components/SlateFormattedText/RenderElements.js";import"../../components/SlateFormattedText/SlateFormattedText.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import s from"../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../components/DevCenter/SideBar/SideBar.js";import"../../components/TruncatedText/index.js";import"../../components/AssetEditor/SingleAssetEditor.js";import"../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../components/AssetEditor/index.js";import"../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../components/CollapsableSidebar.js";import"../../components/DateTimePicker/index.js";import"../../components/DatePicker/index.js";import"../../components/ColorPicker/ColorPicker.js";import"../../components/ParameterCharts/AddEditTrack.js";import"../../components/ParameterCharts/ParameterCharts.js";import"../../components/ChartActionsList/ChartActionsList.js";import"../../components/SettingEditors/ColorEditor/index.js";import"../../components/SettingEditors/DropdownEditor/index.js";import"../../components/SettingEditors/RadioEditor/index.js";import"../../components/SwitchControl/index.js";import"../../components/RangeSlider/RangeSlider.js";import"../../components/Login/components/Login.js";import"../../components/Login/components/PasswordField.js";import"../../components/Login/components/Chip.js";import"../../components/Login/components/StepFooter.js";import"../../components/Login/components/StepContent.js";import"../../components/Login/components/StepHeader.js";import"../../components/Login/components/Step.js";import"../../components/Login/components/OrDivider.js";import"../../components/Login/components/HiddenEmailField.js";import"../../components/Login/components/EmailField.js";import"../../components/Breadcrumbs/index.js";import"../../components/VirtualizedTable/index.js";import"../../components/EmptyView/index.js";import"../../components/EmptyView/EmptyAppView/index.js";import"../../components/Button/index.js";import"../../components/MenuItem/index.js";import"../../components/ContextMenuItem/index.js";import"../../components/FolderMenuItem/index.js";import"../../components/EditableItem/EditableItem/index.js";import"../../components/EditableItem/EditableItemWithBadge/index.js";import"../../components/Checkbox/index.js";import"../../components/FolderMenuItemWithLinks/index.js";import"../../components/IconButton/index.js";import"../../components/Chip/index.js";import"../../components/Counter/index.js";import"../../components/AnchorsList/AnchorsList.js";import"../../components/Select/index.js";import"../../components/Tabs/Tabs.js";import"../../components/Tabs/Tab.js";import"../../components/Drillstring/BHASchematic.js";import"../../components/Drillstring/BHAComponentIcon.js";import"../../components/Drillstring/BHATable/index.js";import"../../components/Drillstring/BHAComponentDetail/index.js";import"../../components/Casing/CasingComponentIcon.js";import"../../components/Casing/CasingTable/index.js";import"../../components/WellSummary/WellSummaryItemLabel.js";import"../../components/WellSummary/WellSummaryItemTitle.js";import"../../components/WellSummary/WellSummaryItemValue.js";import"../../components/WellSummary/ActivitySummaryChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/Table/TableToolbar/TableToolbar.js";import"../../components/PriceInput/PriceInput.js";import"../../components/LabelsCounter/LabelsCounter.js";import"../../components/Stepper/Step.js";import"../../components/Stepper/StepsWrapper.js";import"../../components/Stepper/Stepper.js";import"../../components/Comment/CommentIcon/index.js";import"../../components/FilesLoader/FilesLoader.js";function i(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}export default function(o){var i=o.CLIAppComponent,m=o.CLIAppSettings,a=o.packageJson;return function(o){var c=o.manifest,d=o.dashboardProps,l=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=c.application.key,C=a.version,b={id:t,app:{app_key:u},settings:j.settings,package:{manifest:c,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:d.assetId,apps:[b],children:e(s,p(p({},j),{},{app:b,coordinates:l,CLIAppComponent:i,CLIAppSettings:m}))})}}
1
+ import o from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/goals.js";import"../../constants/apps.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as t}from"../../constants/devcenter.js";import"../../constants/drillstring.js";import"@babel/runtime/helpers/typeof";import{jsx as e}from"react/jsx-runtime";import"@material-ui/core";import"react";import"../../clients/jsonApi/index.js";import"uuid";import n from"@babel/runtime/helpers/objectWithoutProperties";import"../../components/Modal/index.js";import"../../components/IconMenu/index.js";import"../../components/StyledMenuItem/index.js";import"../../components/LoadingIndicator/LoadingIndicator.js";import"../../components/Avatar/index.js";import"../../components/Annotations/AnnotationsContext.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../components/ConfirmationDialog.js";import"../../components/Annotations/components/AnnotationsList/index.js";import"../../components/Annotations/components/LastAnnotation/index.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../components/DevCenter/AppHeader/AppHeader.js";import"../../components/DevCenter/AppSideBar/AppSideBar.js";import r from"../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../components/ErrorBoundary/ErrorBoundary.js";import"../../components/Typography.js";import"../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../components/SlateFormattedText/RenderElements.js";import"../../components/SlateFormattedText/SlateFormattedText.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import s from"../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../components/DevCenter/SideBar/SideBar.js";import"../../components/TruncatedText/index.js";import"../../components/AssetEditor/SingleAssetEditor.js";import"../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../components/AssetEditor/index.js";import"../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../components/CollapsableSidebar.js";import"../../components/DateTimePicker/index.js";import"../../components/DatePicker/index.js";import"../../components/ColorPicker/ColorPicker.js";import"../../components/ParameterCharts/AddEditTrack.js";import"../../components/ParameterCharts/ParameterCharts.js";import"../../components/ChartActionsList/ChartActionsList.js";import"../../components/SettingEditors/ColorEditor/index.js";import"../../components/SettingEditors/DropdownEditor/index.js";import"../../components/SettingEditors/RadioEditor/index.js";import"../../components/SwitchControl/index.js";import"../../components/RangeSlider/RangeSlider.js";import"../../components/Login/components/Login.js";import"../../components/Login/components/PasswordField.js";import"../../components/Login/components/Chip.js";import"../../components/Login/components/StepFooter.js";import"../../components/Login/components/StepContent.js";import"../../components/Login/components/StepHeader.js";import"../../components/Login/components/Step.js";import"../../components/Login/components/OrDivider.js";import"../../components/Login/components/HiddenEmailField.js";import"../../components/Login/components/EmailField.js";import"../../components/Breadcrumbs/index.js";import"../../components/VirtualizedTable/index.js";import"../../components/EmptyView/index.js";import"../../components/EmptyView/EmptyAppView/index.js";import"../../components/Button/index.js";import"../../components/MenuItem/index.js";import"../../components/ContextMenuItem/index.js";import"../../components/FolderMenuItem/index.js";import"../../components/EditableItem/EditableItem/index.js";import"../../components/EditableItem/EditableItemWithBadge/index.js";import"../../components/Checkbox/index.js";import"../../components/FolderMenuItemWithLinks/index.js";import"../../components/IconButton/index.js";import"../../components/Chip/index.js";import"../../components/Counter/index.js";import"../../components/AnchorsList/AnchorsList.js";import"../../components/Select/index.js";import"../../components/Tabs/Tabs.js";import"../../components/Tabs/Tab.js";import"../../components/Drillstring/BHASchematic.js";import"../../components/Drillstring/BHAComponentIcon.js";import"../../components/Drillstring/BHATable/index.js";import"../../components/Drillstring/BHAComponentDetail/index.js";import"../../components/Casing/CasingComponentIcon.js";import"../../components/Casing/CasingTable/index.js";import"../../components/WellSummary/WellSummaryItemLabel.js";import"../../components/WellSummary/WellSummaryItemTitle.js";import"../../components/WellSummary/WellSummaryItemValue.js";import"../../components/WellSummary/ActivitySummaryChart.js";import"../../components/BICOffsetPickerDialog/index.js";import"../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../components/Notifications/Notifications.js";import"../../components/TextLink/index.js";import"../../components/Template/TemplatePopover/index.js";import"../../components/PinnableFilters/PinnableFilters.js";import"../../components/HeaderLayout/HeaderLayout.js";import"../../components/Table/TableToolbar/TableToolbar.js";import"../../components/PriceInput/PriceInput.js";import"../../components/LabelsCounter/LabelsCounter.js";import"../../components/Stepper/Step.js";import"../../components/Stepper/StepsWrapper.js";import"../../components/Stepper/Stepper.js";import"../../components/Comment/CommentIcon/index.js";import"../../components/FilesLoader/FilesLoader.js";function i(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}export default function(o){var i=o.CLIAppComponent,m=o.CLIAppSettings,a=o.packageJson;return function(o){var c=o.manifest,d=o.dashboardProps,l=o.coordinates,j=n(o,["manifest","dashboardProps","coordinates"]),u=c.application.key,C=a.version,b={id:t,app:{app_key:u,platform:"dev_center"},settings:j.settings,package:{manifest:c,build:"".concat(u,"-").concat(C),version:C}};return e(r,{dashboardAssetId:d.assetId,apps:[b],children:e(s,p(p({},j),{},{app:b,coordinates:l,CLIAppComponent:i,CLIAppSettings:m}))})}}
@@ -1 +1 @@
1
- import{get as e}from"lodash";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import{SEGMENTS as t}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as n}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{jsxs as a,jsx as s}from"react/jsx-runtime";import i from"prop-types";import"../../Annotations/AnnotationsContext.js";import"../../Annotations/components/AnnotationsList/index.js";import o from"../../Annotations/components/LastAnnotation/index.js";import r from"./VersionBadge.js";import p from"./PadMode.js";import l from"./AppHeader.css.js";import d from"../../AssetNameLabel/index.js";function m(i){var m,c,u=i.app,g=i.appLastAnnotation,h=i.appSettings,A=i.badge,v=i.classes,b=i.coordinates,f=i.currentUser,L=i.fracFleet,j=i.isMaximized,w=i.onSettingChange,x=i.openAnnotationsList,C=i.rig,I=i.showLastAnnotation,N=i.updateCurrentDashboardAppLastAnnotation,_=i.well,y=i.wells,D=e(u,"package.manifest.application",{}),S=D.name,H=D.subtitle,k=e(u,"package.manifest.application.segments.0",t.DRILLING),M=k===t.DRILLING,W=(null==u?void 0:u.settings)||{},F=W.wellId,P=W.rigId,R=W.fracFleetId,z=M?null==C?void 0:C.name:null==L?void 0:L.name,T=F&&(null==_?void 0:_.name),U=!!(F||P||R),q=M?z&&"assets/".concat(null==_?void 0:_.asset_id):"assets/types/pad/".concat(null==L?void 0:L.current_pad_id),O=u&&u.id===n;return a("div",{className:v.appHeader,children:[a("div",{className:v.appHeaderTitleWrapper,children:[a("div",{children:[a("div",{className:l.titleWrapper,children:[s("h6",{"data-testid":"".concat("DevCenter_AppHeader","_name"),className:l.title,children:S}),s(r,{label:null==u||null===(m=u.package)||void 0===m?void 0:m.label,version:null==u||null===(c=u.package)||void 0===c?void 0:c.version}),k===t.COMPLETION&&s(p,{fracFleet:L,wells:y,well:_,onSettingChange:w,appSettings:h})]}),A]}),u&&b&&s(d,{isPrimaryNameVisible:U,primaryAssetName:z,secondaryAssetName:T,coordinatesPixelWidth:b.pixelWidth,primaryAssetLink:!O&&q,isMaximized:j})]}),H&&s("h6",{"data-testid":"".concat("DevCenter_AppHeader","_subtitle"),className:l.subtitle,children:H}),I&&g&&s(o,{dashboardAppId:u.id,appId:e(u,["app","id"]),annotation:g,openAnnotationsList:x,updateCurrentDashboardAppLastAnnotation:N,currentUser:f})]})}m.propTypes={app:i.shape({id:i.number.isRequired,package:i.shape({label:i.string,version:i.string}),settings:i.shape({wellId:i.number,rigId:i.number})}).isRequired,badge:i.node,classes:i.shape({appHeader:i.string,appHeaderTitleWrapper:i.string}),showLastAnnotation:i.bool,currentUser:i.shape({}),appLastAnnotation:i.shape({}),updateCurrentDashboardAppLastAnnotation:i.func,openAnnotationsList:i.func,rig:i.shape({name:i.string,asset_id:i.number}),well:i.shape({name:i.string,asset_id:i.number}),fracFleet:i.shape({name:i.string,current_pad_id:i.number}),wells:i.arrayOf(i.shape({})),coordinates:i.shape({pixelWidth:i.number.isRequired}),isMaximized:i.bool,appSettings:i.shape({}),onSettingChange:i.func},m.defaultProps={appLastAnnotation:null,appSettings:void 0,badge:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null};export default m;
1
+ import{get as t}from"lodash";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import{SEGMENTS as n}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as e}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{getAppName as a}from"../../../utils/devcenter.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";import o from"prop-types";import"../../Annotations/AnnotationsContext.js";import"../../Annotations/components/AnnotationsList/index.js";import r from"../../Annotations/components/LastAnnotation/index.js";import p from"./VersionBadge.js";import l from"./PadMode.js";import d from"../../AssetNameLabel/index.js";import m from"./AppHeader.css.js";function c(o){var c,u,h,g,A,v,f,L,b=o.app,j=o.appLastAnnotation,x=o.appSettings,w=o.badge,C=o.classes,N=o.coordinates,_=o.currentUser,I=o.fracFleet,y=o.isMaximized,D=o.onSettingChange,S=o.openAnnotationsList,H=o.rig,M=o.showLastAnnotation,W=o.updateCurrentDashboardAppLastAnnotation,F=o.well,P=o.wells,z=a(b),R=null==b||null===(c=b.package)||void 0===c||null===(u=c.manifest)||void 0===u||null===(h=u.application)||void 0===h?void 0:h.subtitle,T=null!==(g=null==b||null===(A=b.package)||void 0===A||null===(v=A.manifest)||void 0===v||null===(f=v.application)||void 0===f||null===(L=f.segments)||void 0===L?void 0:L[0])&&void 0!==g?g:n.DRILLING,U=T===n.DRILLING,k=(null==b?void 0:b.settings)||{},O=k.wellId,q=k.rigId,G=k.fracFleetId,V=U?null==H?void 0:H.name:null==I?void 0:I.name,B=O&&(null==F?void 0:F.name),E=!!(O||q||G),J=U?V&&"assets/".concat(null==F?void 0:F.asset_id):"assets/types/pad/".concat(null==I?void 0:I.current_pad_id),K=b&&b.id===e;return s("div",{className:C.appHeader,children:[s("div",{className:C.appHeaderTitleWrapper,children:[s("div",{children:[s("div",{className:m.titleWrapper,children:[i("h6",{"data-testid":"".concat("DevCenter_AppHeader","_name"),className:m.title,children:z}),i(p,{app:b}),T===n.COMPLETION&&i(l,{fracFleet:I,wells:P,well:F,onSettingChange:D,appSettings:x})]}),w]}),b&&N&&i(d,{isPrimaryNameVisible:E,primaryAssetName:V,secondaryAssetName:B,coordinatesPixelWidth:N.pixelWidth,primaryAssetLink:!K&&J,isMaximized:y})]}),R&&i("h6",{"data-testid":"".concat("DevCenter_AppHeader","_subtitle"),className:m.subtitle,children:R}),M&&j&&i(r,{dashboardAppId:b.id,appId:t(b,["app","id"]),annotation:j,openAnnotationsList:S,updateCurrentDashboardAppLastAnnotation:W,currentUser:_})]})}c.propTypes={app:o.object.isRequired,badge:o.node,classes:o.shape({appHeader:o.string,appHeaderTitleWrapper:o.string}),showLastAnnotation:o.bool,currentUser:o.shape({}),appLastAnnotation:o.shape({}),updateCurrentDashboardAppLastAnnotation:o.func,openAnnotationsList:o.func,rig:o.shape({name:o.string,asset_id:o.number}),well:o.shape({name:o.string,asset_id:o.number}),fracFleet:o.shape({name:o.string,current_pad_id:o.number}),wells:o.arrayOf(o.shape({})),coordinates:o.shape({pixelWidth:o.number.isRequired}),isMaximized:o.bool,appSettings:o.shape({}),onSettingChange:o.func},c.defaultProps={appLastAnnotation:null,appSettings:void 0,badge:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null};export default c;
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import r from"prop-types";import s from"classnames";import a from"./VersionBadge.css.js";var i=function(r){var i=r.label,n=r.version;return"PROD"===i?null:e("div",{className:s(a.versionContainer,i&&a.versionContainerBeta),children:e("p",{"data-testid":"DC_versionBadge",className:a.versionText,children:i?"Beta":"v".concat(n)})})};i.propTypes={label:r.string,version:r.string.isRequired},i.defaultProps={label:null};export default i;
1
+ import{jsx as e}from"react/jsx-runtime";import r from"prop-types";import a from"classnames";import o from"./VersionBadge.css.js";var t=function(r){var t=r.app;if(!t.package)return null;var n=t.package,p=n.label,s=n.version;return"PROD"===p?null:e("div",{className:a(o.versionContainer,p&&o.versionContainerBeta),children:e("p",{"data-testid":"DC_versionBadge",className:o.versionText,children:p?"Beta":"v".concat(s)})})};t.propTypes={app:r.object},t.defaultProps={app:{}};export default t;
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import{get as e,mapValues as t,merge as n}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import{ASSET_TYPES as a}from"../../../../constants/assetTypes.js";import{useState as u,useEffect as c}from"react";import{isDevCenterApp as p,getAppAssetSpecificTypeId as f}from"./utils.js";import{resolveAppsDataForAssetDashboard as l,resolveAppsDataForGeneralDashboard as d,resolveAppsDataForFeedPage as m}from"./dataResolvers.js";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var h=function(r){return[f(r,a.well.id),f(r,a.rig.id),f(r,a.frac_fleet.id),f(r,"deprecatedAssetId")].join("-")},O={id:null,rig:null,well:null,fracFleet:null,wells:null,isLoading:!1,appHash:null};function j(b){var j=b.apps,y=b.dashboardAssetId,v=j.filter(p),w=u((function(){return function(e){return e.reduce((function(e,t){return g(g({},e),{},r({},t.id,g(g({},O),{},{id:t.id,isLoading:!0,appHash:h(t)})))}),{})}(v)})),P=i(w,2),x=P[0],S=P[1],k=[],A=[],D=[],H=[],L=[],_=[];v.forEach((function(r){if(!e(r,["app","ui_settings","multi_rig"])){var t=f(r,a.well.id),n=f(r,a.rig.id),i=f(r,a.frac_fleet.id),o=f(r,"deprecatedAssetId"),s=r.id;H.push([s]),t?k.push([s,t]):n?A.push([s,n]):o?L.push([s,o]):i?D.push([s,i]):y&&_.push([s])}}));var E=!!y,I=!y&&L.length,T=function(e){return v.reduce((function(t,n){var i=n.id,o=e[i],s=h(n);return o&&s===o.appHash?g(g({},t),{},r({},i,o)):g(g({},t),{},r({},i,g(g({},O),{},{id:i,isLoading:!0,appHash:s})))}),{})};return c(s(o.mark((function r(){var e;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e={},S(T),!I){r.next=8;break}return r.next=5,m(L,k,A);case 5:e=r.sent,r.next=18;break;case 8:return r.next=10,d(k,A,D,v);case 10:if(e=r.sent,!E){r.next=18;break}return r.t0=n,r.t1=e,r.next=16,l(y,_);case 16:r.t2=r.sent,e=(0,r.t0)(r.t1,r.t2);case 18:S((function(r){return t(r,(function(r){var t=e[r.id]||{};return g(g(g({},r),t),{},{isLoading:!1})}))}));case 19:case"end":return r.stop()}}),r)}))),[String(k),String(A),String(D),String(H),String(_),y]),x}export default j;
1
+ import r from"@babel/runtime/helpers/defineProperty";import{get as e,mapValues as t,merge as n}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import{ASSET_TYPES as a}from"../../../../constants/assetTypes.js";import{isDevCenterApp as u}from"../../../../utils/devcenter.js";import{useState as c,useEffect as p}from"react";import{getAppAssetSpecificTypeId as f}from"./utils.js";import{resolveAppsDataForAssetDashboard as l,resolveAppsDataForGeneralDashboard as d,resolveAppsDataForFeedPage as m}from"./dataResolvers.js";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var h=function(r){return[f(r,a.well.id),f(r,a.rig.id),f(r,a.frac_fleet.id),f(r,"deprecatedAssetId")].join("-")},O={id:null,rig:null,well:null,fracFleet:null,wells:null,isLoading:!1,appHash:null};function j(b){var j=b.apps,y=b.dashboardAssetId,v=j.filter(u),w=c((function(){return function(e){return e.reduce((function(e,t){return g(g({},e),{},r({},t.id,g(g({},O),{},{id:t.id,isLoading:!0,appHash:h(t)})))}),{})}(v)})),P=i(w,2),x=P[0],S=P[1],k=[],A=[],D=[],H=[],L=[],_=[];v.forEach((function(r){if(!e(r,["app","ui_settings","multi_rig"])){var t=f(r,a.well.id),n=f(r,a.rig.id),i=f(r,a.frac_fleet.id),o=f(r,"deprecatedAssetId"),s=r.id;H.push([s]),t?k.push([s,t]):n?A.push([s,n]):o?L.push([s,o]):i?D.push([s,i]):y&&_.push([s])}}));var E=!!y,I=!y&&L.length,T=function(e){return v.reduce((function(t,n){var i=n.id,o=e[i],s=h(n);return o&&s===o.appHash?g(g({},t),{},r({},i,o)):g(g({},t),{},r({},i,g(g({},O),{},{id:i,isLoading:!0,appHash:s})))}),{})};return p(s(o.mark((function r(){var e;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e={},S(T),!I){r.next=8;break}return r.next=5,m(L,k,A);case 5:e=r.sent,r.next=18;break;case 8:return r.next=10,d(k,A,D,v);case 10:if(e=r.sent,!E){r.next=18;break}return r.t0=n,r.t1=e,r.next=16,l(y,_);case 16:r.t2=r.sent,e=(0,r.t0)(r.t1,r.t2);case 18:S((function(r){return t(r,(function(r){var t=e[r.id]||{};return g(g(g({},r),t),{},{isLoading:!1})}))}));case 19:case"end":return r.stop()}}),r)}))),[String(k),String(A),String(D),String(H),String(_),y]),x}export default j;
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import{get as e,uniq as t,first as n,keyBy as a}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import u from"@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{DEV_CENTER_CLI_APP_ID as c}from"../../../../constants/devcenter.js";import"../../../../constants/drillstring.js";import{getWells as o,getRigs as l,getResolvedAssets as p,getFracFleets as f,getFracFleetWells as d}from"../../../../clients/jsonApi/index.js";import m from"jsona";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var v=new m,w=function(r){return!!r.package},y=function(r,t){return+e(r,["settings",t])},g=function(r){return t(r.map((function(r){var e=i(r,2);e[0];return e[1]})).filter(Number.isFinite))};function _(r){return j.apply(this,arguments)}function j(){return(j=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,o({ids:e,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.rig","rig.name","rig.asset_id","company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function x(r){return O.apply(this,arguments)}function O(){return(O=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,l({ids:e,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function k(r){return P.apply(this,arguments)}function P(){return(P=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,p({assets:e});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}var D=function(r,t){return{well:r&&h(h({},r.attributes),{},{id:r.id,companyId:e(r,"relationships.company.data.id")}),rig:{name:e(t,"attributes.name"),id:e(t,"id"),asset_id:e(t,"attributes.asset_id")}}},z=function(r,t,n){return t?r.reduce((function(r,a){var s=i(a,2),u=s[0],c=s[1],o=n(t,c),l=t[e(o,"relationships.rig.data.id")];return r[u]=D(o,l),r}),{}):{}},A=function(r,t,n){return t?r.reduce((function(r,a){var s=i(a,2),u=s[0],c=s[1],o=n(t,c),l=t[e(o,"relationships.active_well.data.id")];return r[u]=D(l,o),r}),{}):{}},E=function(r,e,t){return e||t?r.reduce((function(r,n){var a=i(n,2),s=a[0],u=a[1],c=null==e?void 0:e[u],o=null==t?void 0:t[s];return r[s]={fracFleet:c,wells:o},r}),{}):{}};function F(r){return S.apply(this,arguments)}function S(){return(S=u(s.mark((function r(e){var t;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,f({ids:e,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"]});case 5:return t=r.sent,r.abrupt("return",n(v.deserialize(t)));case 9:return r.prev=9,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",{});case 13:case"end":return r.stop()}}),r,null,[[2,9]])})))).apply(this,arguments)}function T(r,e){return G.apply(this,arguments)}function G(){return(G=u(s.mark((function r(t,n){var o,l,p;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=a(n,"id"),l=t.map(function(){var r=u(s.mark((function r(t){var n,a,u,l,p,f;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i(t,2),a=n[0],u=n[1],l={fields:"all",frac_fleet_id:u},p=o[a],a===c?l.app_key=e(p,["app","app_key"]):l.app_id=e(p,["app","id"]),r.next=6,d(l);case 6:return f=r.sent,r.abrupt("return",v.deserialize(f));case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()),r.next=5,Promise.all(l);case 5:return p=r.sent,r.abrupt("return",p.reduce((function(r,e,n){return r[t[n][0]]=e,r}),{}));case 9:return r.prev=9,r.t0=r.catch(0),console.error(r.t0),r.abrupt("return",null);case 13:case"end":return r.stop()}}),r,null,[[0,9]])})))).apply(this,arguments)}export{k as fetchAssetEntitiesByAssetIds,T as fetchFracFleetWells,F as fetchFracFleets,x as fetchRigs,_ as fetchWells,y as getAppAssetSpecificTypeId,E as getAppsDataByFFs,A as getAppsDataByRigs,z as getAppsDataByWells,g as getUniqAssetIds,w as isDevCenterApp};
1
+ import r from"@babel/runtime/helpers/defineProperty";import{get as e,uniq as t,first as n,keyBy as a}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import u from"@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{DEV_CENTER_CLI_APP_ID as c}from"../../../../constants/devcenter.js";import"../../../../constants/drillstring.js";import{getWells as o,getRigs as l,getResolvedAssets as p,getFracFleets as f,getFracFleetWells as d}from"../../../../clients/jsonApi/index.js";import m from"jsona";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var v=new m,w=function(r,t){return+e(r,["settings",t])},y=function(r){return t(r.map((function(r){var e=i(r,2);e[0];return e[1]})).filter(Number.isFinite))};function g(r){return _.apply(this,arguments)}function _(){return(_=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,o({ids:e,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.rig","rig.name","rig.asset_id","company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function j(r){return x.apply(this,arguments)}function x(){return(x=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,l({ids:e,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function O(r){return k.apply(this,arguments)}function k(){return(k=u(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,p({assets:e});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}var P=function(r,t){return{well:r&&h(h({},r.attributes),{},{id:r.id,companyId:e(r,"relationships.company.data.id")}),rig:{name:e(t,"attributes.name"),id:e(t,"id"),asset_id:e(t,"attributes.asset_id")}}},D=function(r,t,n){return t?r.reduce((function(r,a){var s=i(a,2),u=s[0],c=s[1],o=n(t,c),l=t[e(o,"relationships.rig.data.id")];return r[u]=P(o,l),r}),{}):{}},z=function(r,t,n){return t?r.reduce((function(r,a){var s=i(a,2),u=s[0],c=s[1],o=n(t,c),l=t[e(o,"relationships.active_well.data.id")];return r[u]=P(l,o),r}),{}):{}},A=function(r,e,t){return e||t?r.reduce((function(r,n){var a=i(n,2),s=a[0],u=a[1],c=null==e?void 0:e[u],o=null==t?void 0:t[s];return r[s]={fracFleet:c,wells:o},r}),{}):{}};function E(r){return F.apply(this,arguments)}function F(){return(F=u(s.mark((function r(e){var t;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,f({ids:e,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"]});case 5:return t=r.sent,r.abrupt("return",n(v.deserialize(t)));case 9:return r.prev=9,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",{});case 13:case"end":return r.stop()}}),r,null,[[2,9]])})))).apply(this,arguments)}function S(r,e){return T.apply(this,arguments)}function T(){return(T=u(s.mark((function r(t,n){var o,l,p;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=a(n,"id"),l=t.map(function(){var r=u(s.mark((function r(t){var n,a,u,l,p,f;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i(t,2),a=n[0],u=n[1],l={fields:"all",frac_fleet_id:u},p=o[a],a===c?l.app_key=e(p,["app","app_key"]):l.app_id=e(p,["app","id"]),r.next=6,d(l);case 6:return f=r.sent,r.abrupt("return",v.deserialize(f));case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()),r.next=5,Promise.all(l);case 5:return p=r.sent,r.abrupt("return",p.reduce((function(r,e,n){return r[t[n][0]]=e,r}),{}));case 9:return r.prev=9,r.t0=r.catch(0),console.error(r.t0),r.abrupt("return",null);case 13:case"end":return r.stop()}}),r,null,[[0,9]])})))).apply(this,arguments)}export{O as fetchAssetEntitiesByAssetIds,S as fetchFracFleetWells,E as fetchFracFleets,j as fetchRigs,g as fetchWells,w as getAppAssetSpecificTypeId,A as getAppsDataByFFs,z as getAppsDataByRigs,D as getAppsDataByWells,y as getUniqAssetIds};
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@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{SEGMENTS as s}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as r}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{getTimestampFromQuery as p}from"../../../utils/devcenter.js";import{isNativeDetected as a,isMobileDetected as m}from"../../../utils/mobileDetect.js";import"../../../utils/index.js";import{jsx as c,jsxs as l,Fragment as u}from"react/jsx-runtime";import{useContext as d,useState as g}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import A from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import f from"classnames";import{AnnotationsProvider as j}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as C}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import v from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import b from"../AppContext.js";import h from"./effects/useAppSettings.js";import y from"./effects/useAnnotationsList.js";import I from"./effects/useAnnotationsData.js";import D from"./effects/useAppMaximized.js";import S from"./components/AppActions/AppActions.js";import M from"./components/AppSettingsDialog/AppSettingsDialog.js";import L from"./components/AnnotationsButton/AnnotationsButton.js";import x from"./components/NonPriorityMenus/NonPriorityMenus.js";import O from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import P from"./components/DevCenterAppView/DevCenterAppView.js";import R from"./DevCenterAppContainer.css.js";import w from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as z}from"./utils.js";import N from"./components/PriorityMenus/PriorityMenus.js";function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function F(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?E(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var U=a||m;function k(t){var m,E,k,B=t.CLIAppComponent,q=t.CLIAppSettings,_=t.app,T=t.appId,G=t.coordinates,V=t.currentDashboardAppsLastAnnotations,H=t.currentUser,K=t.isActionsDisabled,W=t.layoutEnvironment,J=t.onAppRemove,Q=t.onSettingChange,X=t.onSettingsChange,Y=t.showSuccessNotification,Z=t.updateCurrentDashboardAppLastAnnotation,$=t.onIsMaximizedChange,tt=t.devCenterRouter,et=t.isAppNotSubscribed,nt=t.setIsFullscreenModalMode,ot=void 0===nt?o:nt,it=d(b),st=g([]),rt=i(st,2),pt=rt[0],at=rt[1],mt=g([]),ct=i(mt,2),lt=ct[0],ut=ct[1],dt=it&&it[T||_.id]||{isLoading:!0},gt=_.package.manifest.application,At=(null==gt||null===(m=gt.segments)||void 0===m?void 0:m[0])||s.DRILLING,ft=!(null==gt||null===(E=gt.ui)||void 0===E||!E.multi_rig),jt=D({onIsMaximizedChange:$,devCenterRouter:tt,appId:T}),Ct=jt.isMaximized,vt=jt.setIsMaximized,bt=p(null===(k=tt.location.query)||void 0===k?void 0:k.query),ht=_.id===r&&U?F(F({},G),{},{w:12}):G,yt=A({CLIAppComponent:B,CLIAppSettings:q,url:_.package.url,appKey:_.app.app_key,version:z(_)}),It=yt.isLoading,Dt=yt.AppSettings,St=yt.AppComponent,Mt=h({setIsFullscreenModalMode:ot}),Lt=Mt.isAppSettingsDialogOpened,xt=Mt.toggleAppSettingsDialog,Ot=y(),Pt=Ot.isAnnotationsListOpened,Rt=Ot.toggleAnnotationsList,wt=It||!H||!ft&&dt.isLoading,zt=tt.location,Nt=zt.pathname,Et=zt.query,Ft=I({app:_,appData:dt,currentDashboardAppsLastAnnotations:V}),Ut=Ft.appLastAnnotation,kt=Ft.assetCompanyId,Bt=Ft.assetIdForAnnotation,qt=Ft.isAppSupportsAnnotations,_t=e(n(dt,["well","rig","fracFleet","wells"]),Boolean);return c(C.Provider,{value:tt,children:l("div",{className:f("dc-app-container",R.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(_.app.name),children:[c("div",{className:R.containerContent,children:c(P,{AppComponent:St,app:_,isAppNotSubscribed:et,appData:_t,isLoading:wt,isMultiRig:ft,segment:At,layoutEnvironment:W,appProps:{coordinates:ht,currentUser:H,devCenterRouter:tt,setMainMenuItems:at,setSecondaryMenuItems:ut,setIsMaximized:vt,setIsFullscreenModalMode:ot,onSettingsChange:X,onSettingChange:Q,appHeaderProps:F({appLastAnnotation:Ut,updateCurrentDashboardAppLastAnnotation:Z,toggleAnnotationsList:Rt,onSettingChange:Q,app:_,currentUser:H,appSettings:_.settings,layoutEnvironment:W,coordinates:ht,isMaximized:Ct},_t),isNative:a,layoutEnvironment:W,timestamp:bt}})}),Lt&&c(M,{AppSettingsComponent:Dt,app:_,appData:dt,currentUser:H,isMultiRig:ft,layoutEnvironment:W,onAppRemove:J,onSettingChange:Q,onSettingsChange:X,segment:At,timestamp:bt,toggleAppSettingsDialog:xt}),Pt&&c(j,{children:c(v,{appId:_.app.id,appSettings:_.settings,appTitle:_.name,assetCompanyId:kt,assetId:Bt,currentUser:H,onClose:Rt,showSuccessNotification:Y})}),!K&&Ct&&c(w,{setIsMaximized:vt}),l(S,{children:[qt&&c(L,{toggleAnnotationsList:Rt}),U&&!Ct?c(O,{setIsMaximized:vt}):l(u,{children:[c(N,{menuItems:pt,devCenterRouter:tt}),c(x,{toggleAppSettingsDialog:xt,appId:_.id,pathname:Nt,query:Et,menuItems:lt,isMaximized:Ct,setIsMaximized:vt,devCenterRouter:tt})]})]})]})})}export default k;
1
+ import t from"@babel/runtime/helpers/defineProperty";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@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{SEGMENTS as s}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as r}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{jsx as c,jsxs as u,Fragment as d}from"react/jsx-runtime";import{useContext as g,useState as A}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import f from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import v from"classnames";import{AnnotationsProvider as j}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as C}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import b from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import h from"../AppContext.js";import y from"./effects/useAppSettings.js";import I from"./effects/useAnnotationsList.js";import D from"./effects/useAnnotationsData.js";import S from"./effects/useAppMaximized.js";import M from"./components/AppActions/AppActions.js";import L from"./components/AppSettingsDialog/AppSettingsDialog.js";import x from"./components/AnnotationsButton/AnnotationsButton.js";import O from"./components/NonPriorityMenus/NonPriorityMenus.js";import P from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import R from"./components/DevCenterAppView/DevCenterAppView.js";import w from"./DevCenterAppContainer.css.js";import z from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as N}from"./utils.js";import E from"./components/PriorityMenus/PriorityMenus.js";function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function U(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?F(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):F(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var k=m||l;function B(t){var l,F,B,q,_,T,G,V=t.CLIAppComponent,H=t.CLIAppSettings,K=t.app,W=t.appId,J=t.coordinates,Q=t.currentDashboardAppsLastAnnotations,X=t.currentUser,Y=t.devCenterRouter,Z=t.isActionsDisabled,$=t.isAppNotSubscribed,tt=t.layoutEnvironment,et=t.onAppRemove,nt=t.onIsMaximizedChange,ot=t.onSettingChange,it=t.onSettingsChange,st=t.setIsFullscreenModalMode,rt=void 0===st?o:st,pt=t.showSuccessNotification,at=t.updateCurrentDashboardAppLastAnnotation,mt=g(h),lt=A([]),ct=i(lt,2),ut=ct[0],dt=ct[1],gt=A([]),At=i(gt,2),ft=At[0],vt=At[1],jt=null!==(l=null==mt?void 0:mt[W||K.id])&&void 0!==l?l:{isLoading:!0},Ct=null===(F=K.package)||void 0===F||null===(B=F.manifest)||void 0===B?void 0:B.application,bt=(null==Ct||null===(q=Ct.segments)||void 0===q?void 0:q[0])||s.DRILLING,ht=!(null==Ct||null===(_=Ct.ui)||void 0===_||!_.multi_rig),yt=p(K),It=S({onIsMaximizedChange:nt,devCenterRouter:Y,appId:W}),Dt=It.isMaximized,St=It.setIsMaximized,Mt=a(null===(T=Y.location.query)||void 0===T?void 0:T.query),Lt=K.id===r&&k?U(U({},J),{},{w:12}):J,xt=f({CLIAppComponent:V,CLIAppSettings:H,url:null==K||null===(G=K.package)||void 0===G?void 0:G.url,appKey:K.app.app_key,version:N(K)}),Ot=xt.isLoading,Pt=xt.AppSettings,Rt=xt.AppComponent,wt=y({setIsFullscreenModalMode:rt}),zt=wt.isAppSettingsDialogOpened,Nt=wt.toggleAppSettingsDialog,Et=I(),Ft=Et.isAnnotationsListOpened,Ut=Et.toggleAnnotationsList,kt=Ot||!X||!ht&&jt.isLoading,Bt=Y.location,qt=Bt.pathname,_t=Bt.query,Tt=D({app:K,appData:jt,currentDashboardAppsLastAnnotations:Q}),Gt=Tt.appLastAnnotation,Vt=Tt.assetCompanyId,Ht=Tt.assetIdForAnnotation,Kt=Tt.isAppSupportsAnnotations,Wt=e(n(jt,["well","rig","fracFleet","wells"]),Boolean);return c(C.Provider,{value:Y,children:u("div",{className:v("dc-app-container",w.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(K.app.name),children:[c("div",{className:w.containerContent,children:c(R,{AppComponent:Rt,app:K,appData:Wt,isAppLoading:Ot,isAppNotSubscribed:$,isLoading:kt,isMultiRig:ht,segment:bt,layoutEnvironment:tt,appProps:{coordinates:Lt,currentUser:X,devCenterRouter:Y,onSettingChange:ot,onSettingsChange:it,setIsFullscreenModalMode:rt,setIsMaximized:St,setMainMenuItems:dt,setSecondaryMenuItems:vt,appHeaderProps:U({app:K,appLastAnnotation:Gt,appSettings:K.settings,coordinates:Lt,currentUser:X,isMaximized:Dt,layoutEnvironment:tt,onSettingChange:ot,toggleAnnotationsList:Ut,updateCurrentDashboardAppLastAnnotation:at},Wt),isNative:m,layoutEnvironment:tt,timestamp:Mt}})}),zt&&c(L,{AppSettingsComponent:Pt,app:K,appData:jt,appName:yt,currentUser:X,isMultiRig:ht,layoutEnvironment:tt,onAppRemove:et,onSettingChange:ot,onSettingsChange:it,segment:bt,timestamp:Mt,toggleAppSettingsDialog:Nt}),Ft&&c(j,{children:c(b,{appId:K.app.id,appSettings:K.settings,appTitle:K.name,assetCompanyId:Vt,assetId:Ht,currentUser:X,onClose:Ut,showSuccessNotification:pt})}),!Z&&Dt&&c(z,{setIsMaximized:St}),u(M,{children:[Kt&&c(x,{toggleAnnotationsList:Ut}),k&&!Dt?c(P,{setIsMaximized:St}):u(d,{children:[c(E,{menuItems:ut,devCenterRouter:Y}),c(O,{appId:K.id,devCenterRouter:Y,isMaximized:Dt,menuItems:ft,pathname:qt,query:_t,setIsMaximized:St,toggleAppSettingsDialog:Nt})]})]})]})})}export default B;
@@ -1 +1 @@
1
- import e from'../../../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppInfoMessage_appInfoMessage__1oElS{padding:12px 12px 30px}.AppInfoMessage_appInfoMessage__1oElS,.AppInfoMessage_content__3GPHC{display:flex;flex-direction:column;height:100%}.AppInfoMessage_content__3GPHC{align-items:center;justify-content:center}.AppInfoMessage_message__1GGOS{color:#bdbdbd;font-size:24px;text-align:center;line-height:1.5}.AppInfoMessage_infoIcon__2L4pj{color:#bdbdbd;width:7em!important;height:7em!important}");export default{appInfoMessage:"AppInfoMessage_appInfoMessage__1oElS",content:"AppInfoMessage_content__3GPHC",message:"AppInfoMessage_message__1GGOS",infoIcon:"AppInfoMessage_infoIcon__2L4pj"};
1
+ import e from'../../../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppInfoMessage_appInfoMessage__1oElS{padding:12px 12px 30px}.AppInfoMessage_appInfoMessage__1oElS,.AppInfoMessage_content__3GPHC{display:flex;flex-direction:column;height:100%}.AppInfoMessage_content__3GPHC{align-items:center;justify-content:center}.AppInfoMessage_message__1GGOS{font-size:24px;line-height:1.5}.AppInfoMessage_message__1GGOS,.AppInfoMessage_submessage__39jGT{color:#bdbdbd;text-align:center}.AppInfoMessage_submessage__39jGT{font-size:14px;line-height:1.2}.AppInfoMessage_infoIcon__2L4pj{color:#bdbdbd;width:7em!important;height:7em!important}");export default{appInfoMessage:"AppInfoMessage_appInfoMessage__1oElS",content:"AppInfoMessage_content__3GPHC",message:"AppInfoMessage_message__1GGOS",submessage:"AppInfoMessage_submessage__39jGT",infoIcon:"AppInfoMessage_infoIcon__2L4pj"};
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import o from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"@material-ui/icons/InfoOutlined";import n from"./AppInfoMessage.css.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function p(r){var p=r.message,m=r.app,a=r.children;return t("div",{className:n.appInfoMessage,children:[e(o,{app:m}),t("div",{className:n.content,children:[a&&a,!a&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:p})]})]})]})}p.propTypes={message:r.oneOfType([r.node,r.string]),app:r.shape({}).isRequired,children:r.node},p.defaultProps={message:"",children:void 0};export default p;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import o from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"@material-ui/icons/InfoOutlined";import n from"./AppInfoMessage.css.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function p(r){var p=r.app,m=r.children,a=r.message,l=r.submessage;return t("div",{className:n.appInfoMessage,children:[e(o,{app:p}),t("div",{className:n.content,children:[m,!m&&t(i,{children:[e(s,{size:"large",className:n.infoIcon}),e("p",{className:n.message,children:a}),l&&e("p",{className:n.submessage,children:l})]})]})]})}p.propTypes={app:r.shape({}).isRequired,children:r.node,message:r.oneOfType([r.node,r.string]),submessage:r.string},p.defaultProps={message:"",submessage:"",children:null};export default p;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENT_TO_ASSET_TYPE as o,SEGMENTS as n}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as p}from"../../../../../constants/devcenter.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as s,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as c,Tabs as d,DialogTitle as u,Divider as j,DialogContent as g,Tab as A,DialogActions as b}from"@material-ui/core";import{useState as S}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as C,shape as y,string as f,bool as x}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import h from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import v from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import P from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import D from"./AppDetails.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import T from"../../../../AssetEditor/index.js";import L from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import I from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function B(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?k(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O="DC_appSettings",R=l({paper:{height:"40rem"}})(c),w=l({root:{marginBottom:10}})(d),F="SETTINGS",M="APP DETAILS",V="VIEW APP PAGE";function W(l){var c=l.toggleAppSettingsDialog,d=l.onSettingsChange,C=l.app,y=l.appData,f=l.onAppRemove,x=l.AppSettingsComponent,k=l.currentUser,W=l.layoutEnvironment,H=l.segment,q=l.isMultiRig,N=l.isProductSubscriptionFeatureActive,_=S(F),U=i(_,2),G=U[0],z=U[1],K=S((function(){return B(B({},e(C.settings)),{},{package:C.settings.package||C.package.version})})),Y=i(K,2),J=Y[0],Q=Y[1],X=S(!0),Z=i(X,2),$=Z[0],tt=Z[1],et=C.id===p,rt=function(e,r){return Q((function(i){return B(B({},i),{},t({},e,r))}))},it=function(t){return Q((function(e){return B(B({},e),t)}))},ot=W&&"asset"===W.type,nt=!(q||ot&&H===n.COMPLETION);return s(R,{open:!0,onBackdropClick:c,children:[s(u,{children:[C.package.manifest.application.name," settings"]}),a(j,{}),s(g,{children:[s(w,{value:G,onChange:function(t,e){return z(e)},indicatorColor:"primary",textColor:"primary",children:[a(A,{"data-testid":"".concat(O,"_settingsTab"),label:F,value:F}),a(A,{"data-testid":"".concat(O,"_appDetailsTab"),label:M,value:M}),a(A,{"data-testid":"".concat(O,"_viewAppPageTab"),label:V,value:V})]}),x&&s(v,{ErrorView:P,app:C,children:[a(h,{open:!$&&!J.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return tt(!0)}}),G===F&&s(m,{children:[nt&&a(T,{appKey:N&&!et?C.app_key:null,settings:J,onSettingsChange:it,appType:o[H],isNullable:!1,label:"Active Asset"}),a(x,{app:C,appData:y,settings:J,onSettingChange:rt,onSettingsChange:it,layoutEnvironment:W,currentUser:k}),!et&&a(L,{appId:C.app.id,value:J.package,onChange:function(t){return rt("package",t)},currentUser:k})]}),G===M&&a(D,{appDescription:r(C,"app.description"),appSummary:r(C,"app.summary")})]})]}),s(b,{children:[f&&a(E,{app:C,onAppRemove:f}),a(I,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:c,children:"Cancel"}),a(I,{"data-testid":"".concat(O,"_save"),variation:"primary",onClick:function(){J.package||et?(d(J),c()):tt(!1)},children:"Save"})]})]})}W.propTypes={toggleAppSettingsDialog:C.isRequired,onSettingsChange:C.isRequired,app:y({}).isRequired,appData:y({}).isRequired,onAppRemove:C,AppSettingsComponent:C,currentUser:y({}).isRequired,layoutEnvironment:y({}).isRequired,segment:f.isRequired,isMultiRig:x.isRequired,isProductSubscriptionFeatureActive:x},W.defaultProps={AppSettingsComponent:null,onAppRemove:void 0,isProductSubscriptionFeatureActive:!1};export default W;
1
+ import t from"@babel/runtime/helpers/defineProperty";import{cloneDeep as e,get as r}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENT_TO_ASSET_TYPE as o,SEGMENTS as n}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as p}from"../../../../../constants/devcenter.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as s,jsx as a,Fragment as m}from"react/jsx-runtime";import{withStyles as l,Dialog as c,Tabs as d,DialogTitle as u,Divider as j,DialogContent as g,Tab as A,DialogActions as b}from"@material-ui/core";import{useState as S}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as C,shape as y,string as x,bool as f}from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import h from"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import v from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import P from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import E from"./RemoveAppButton.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import D from"./AppDetails.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import T from"../../../../AssetEditor/index.js";import L from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import I from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function B(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?k(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O="DC_appSettings",R=l({paper:{height:"40rem"}})(c),w=l({root:{marginBottom:10}})(d),F="SETTINGS",M="APP DETAILS",V="VIEW APP PAGE";function W(l){var c=l.AppSettingsComponent,d=l.app,C=l.appData,y=l.appName,x=l.currentUser,f=l.isMultiRig,k=l.isProductSubscriptionFeatureActive,W=l.layoutEnvironment,N=l.onAppRemove,q=l.onSettingsChange,H=l.segment,_=l.toggleAppSettingsDialog,U=S(F),G=i(U,2),z=G[0],K=G[1],Y=S((function(){return B(B({},e(d.settings)),{},{package:d.settings.package||d.package.version})})),J=i(Y,2),Q=J[0],X=J[1],Z=S(!0),$=i(Z,2),tt=$[0],et=$[1],rt=d.id===p,it=function(e,r){return X((function(i){return B(B({},i),{},t({},e,r))}))},ot=function(t){return X((function(e){return B(B({},e),t)}))},nt=W&&"asset"===W.type,pt=!(f||nt&&H===n.COMPLETION);return s(R,{open:!0,onBackdropClick:_,children:[s(u,{children:[y," settings"]}),a(j,{}),s(g,{children:[s(w,{value:z,onChange:function(t,e){return K(e)},indicatorColor:"primary",textColor:"primary",children:[a(A,{"data-testid":"".concat(O,"_settingsTab"),label:F,value:F}),a(A,{"data-testid":"".concat(O,"_appDetailsTab"),label:M,value:M}),a(A,{"data-testid":"".concat(O,"_viewAppPageTab"),label:V,value:V})]}),s(v,{ErrorView:P,app:d,children:[a(h,{open:!tt&&!Q.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return et(!0)}}),z===F&&s(m,{children:[pt&&a(T,{appKey:k&&!rt?d.app_key:null,settings:Q,onSettingsChange:ot,appType:o[H],isNullable:!1,label:"Active Asset"}),c&&a(c,{app:d,appData:C,settings:Q,onSettingChange:it,onSettingsChange:ot,layoutEnvironment:W,currentUser:x}),!rt&&a(L,{appId:d.app.id,value:Q.package,onChange:function(t){return it("package",t)},currentUser:x})]}),z===M&&a(D,{appDescription:r(d,"app.description"),appSummary:r(d,"app.summary")})]})]}),s(b,{children:[N&&a(E,{appName:y,onAppRemove:N}),a(I,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),a(I,{"data-testid":"".concat(O,"_save"),variation:"primary",onClick:function(){Q.package||rt?(q(Q),_()):et(!1)},children:"Save"})]})]})}W.propTypes={AppSettingsComponent:C,app:y({}).isRequired,appData:y({}).isRequired,appName:x.isRequired,currentUser:y({}).isRequired,isMultiRig:f.isRequired,isProductSubscriptionFeatureActive:f,layoutEnvironment:y({}).isRequired,onAppRemove:C,onSettingsChange:C.isRequired,segment:x.isRequired,toggleAppSettingsDialog:C.isRequired},W.defaultProps={AppSettingsComponent:null,isProductSubscriptionFeatureActive:!1,onAppRemove:void 0};export default W;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as e,Fragment as i,jsx as r}from"react/jsx-runtime";import{Dialog as o,DialogTitle as n,DialogContent as s,DialogContentText as p,DialogActions as m}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import d from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function j(l){var j=l.app,c=l.onAppRemove,u=a(!1),A=t(u,2),x=A[0],C=A[1],g=function(){return C(!1)};return e(i,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return C(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),e(o,{open:x,onClose:g,children:[e(n,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",j.app.name]}),r(s,{children:r(p,{children:"Are you sure you want to remove this app?"})}),e(m,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:g,children:"Cancel"}),r(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return c()},variation:"dangerPrimary",children:"Remove"})]})]})]})}j.propTypes={app:l.shape({app:l.shape({name:l.string})}).isRequired,onAppRemove:l.func.isRequired};export default j;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsxs as e,Fragment as i,jsx as r}from"react/jsx-runtime";import{Dialog as o,DialogTitle as n,DialogContent as s,DialogContentText as p,DialogActions as m}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/index.js";import"../../../../EmptyView/EmptyAppView/index.js";import d from"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function j(l){var j=l.appName,c=l.onAppRemove,u=a(!1),A=t(u,2),x=A[0],C=A[1],g=function(){return C(!1)};return e(i,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return C(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),e(o,{open:x,onClose:g,children:[e(n,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",j]}),r(s,{children:r(p,{children:"Are you sure you want to remove this app?"})}),e(m,{children:[r(d,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:g,children:"Cancel"}),r(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return c()},variation:"dangerPrimary",children:"Remove"})]})]})]})}j.propTypes={appName:l.string.isRequired,onAppRemove:l.func.isRequired};export default j;
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsx as r,jsxs as i,Fragment as o}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import n from"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import s from"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import p from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import m from"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import a from"../../../../EmptyView/index.js";import l from"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function j(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?d(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(t){var d=t.AppComponent,c=t.app,u=t.appData,g=t.appProps,b=t.isLoading,x=t.isMultiRig,A=t.isAppNotSubscribed,S=t.layoutEnvironment,f=t.segment;if(b)return r(n,{});if(A){var C=g.coordinates,y=C.pixelWidth,h=C.pixelHeight,P=l.APP_MESSAGES.appNotSubscribed,E=P.title,L=P.subtitle;return r(m,{app:c,children:r(l,{title:E,subtitle:L,appHeight:h,appWidth:y})})}if(!d)return r(m,{message:"App package was not found"});if(!x){if(u.rig&&!u.well)return r(m,{app:c,message:i(o,{children:[u.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==S?void 0:S.type)&&f===e.COMPLETION&&!u.fracFleet)return r(m,{app:c,children:r(a,{title:"Frac fleet was not found"})});if("general"===(null==S?void 0:S.type)&&f===e.COMPLETION&&(!u.wells||u.wells.length<1))return r(m,{app:c,children:r(a,{title:"This pad has no wells"})});if(!(u.rig||u.well||u.settings||u.wells))return r(m,{app:c,message:"No asset data were found"})}return r(p,{ErrorView:s,app:c,withAppHeader:!0,children:r(d,j(j(j({app:c},c.settings),u),g))})}export default c;
1
+ import t from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/goals.js";import"../../../../../constants/apps.js";import"../../../../../constants/completion.js";import{SEGMENTS as e}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/drillstring.js";import"../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../utils/index.js";import{jsx as r,jsxs as i,Fragment as o}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import n from"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../AppActions/AppActions.css.js";import s from"../../../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import p from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import m from"../AppInfoMessage/AppInfoMessage.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../../TruncatedText/index.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../Login/components/Login.js";import"../../../../Login/components/PasswordField.js";import"../../../../Login/components/Chip.js";import"../../../../Login/components/StepFooter.js";import"../../../../Login/components/StepContent.js";import"../../../../Login/components/StepHeader.js";import"../../../../Login/components/Step.js";import"../../../../Login/components/OrDivider.js";import"../../../../Login/components/HiddenEmailField.js";import"../../../../Login/components/EmailField.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import a from"../../../../EmptyView/index.js";import l from"../../../../EmptyView/EmptyAppView/index.js";import"../../../../Button/index.js";import"../../../../MenuItem/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTable/index.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../Notifications/Notifications.js";import"../../../../TextLink/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function j(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?d(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(t){var d=t.AppComponent,c=t.app,u=t.appData,g=t.appProps,b=t.isAppNotSubscribed,A=t.isLoading,x=t.isMultiRig,f=t.layoutEnvironment,S=t.segment;if(!c.package)return r(m,{message:"App package was not found",submessage:"Please choose another version in the app settings menu or delete and add app again on your dashboard",app:c});if(A)return r(n,{});if(b){var h=g.coordinates,y=h.pixelWidth,C=h.pixelHeight,P=l.APP_MESSAGES.appNotSubscribed,E=P.title,L=P.subtitle;return r(m,{app:c,children:r(l,{title:E,subtitle:L,appHeight:C,appWidth:y})})}if(!d)return r(m,{message:"App component was not found",app:c});if(!x){if(u.rig&&!u.well)return r(m,{app:c,message:i(o,{children:[u.rig.name,r("br",{}),"has no active well"]})});if("general"===(null==f?void 0:f.type)&&S===e.COMPLETION&&!u.fracFleet)return r(m,{app:c,children:r(a,{title:"Frac fleet was not found"})});if("general"===(null==f?void 0:f.type)&&S===e.COMPLETION&&(!u.wells||u.wells.length<1))return r(m,{app:c,children:r(a,{title:"This pad has no wells"})});if(!(u.rig||u.well||u.settings||u.wells))return r(m,{app:c,message:"No asset data were found"})}return r(p,{ErrorView:s,app:c,withAppHeader:!0,children:r(d,j(j(j({app:c},c.settings),u),g))})}export default c;
@@ -1 +1 @@
1
- import{get as n}from"lodash";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{useMemo as o}from"react";export default function(i){var a,s,l,r,p,d,e,u,m=i.app,c=i.appData,v=i.currentDashboardAppsLastAnnotations,f=null===(a=m.package.manifest)||void 0===a||null===(s=a.application)||void 0===s||null===(l=s.ui)||void 0===l?void 0:l.disable_platform_annotations,_=(null==c||null===(r=c.well)||void 0===r?void 0:r.asset_id)||(null==c||null===(p=c.rig)||void 0===p?void 0:p.assset_id),g=(null==c||null===(d=c.well)||void 0===d?void 0:d.company_id)||(null==c||null===(e=c.rig)||void 0===e?void 0:e.company_id),j=!f&&m.id!==t&&_&&(null===(u=m.segment)||void 0===u?void 0:u.includes("drilling")),A=o((function(){if(!v||!j)return null;var t=v.find((function(n){return n.id===m.id}));return t?n(t,["last_app_annotation","data"])&&t.last_app_annotation:null}),[v,m]);return{assetIdForAnnotation:_,assetCompanyId:g,isAppSupportsAnnotations:j,appLastAnnotation:A}}
1
+ import{get as n}from"lodash";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{useMemo as o}from"react";export default function(i){var a,l,s,p,r,d,e,u,c,m=i.app,v=i.appData,f=i.currentDashboardAppsLastAnnotations,_=null==m||null===(a=m.package)||void 0===a||null===(l=a.manifest)||void 0===l||null===(s=l.application)||void 0===s||null===(p=s.ui)||void 0===p?void 0:p.disable_platform_annotations,g=(null==v||null===(r=v.well)||void 0===r?void 0:r.asset_id)||(null==v||null===(d=v.rig)||void 0===d?void 0:d.assset_id),j=(null==v||null===(e=v.well)||void 0===e?void 0:e.company_id)||(null==v||null===(u=v.rig)||void 0===u?void 0:u.company_id),A=m.package&&!_&&m.id!==t&&g&&(null===(c=m.segment)||void 0===c?void 0:c.includes("drilling")),y=o((function(){if(!f||!A)return null;var t=f.find((function(n){return n.id===m.id}));return t?n(t,["last_app_annotation","data"])&&t.last_app_annotation:null}),[f,m]);return{assetIdForAnnotation:g,assetCompanyId:j,isAppSupportsAnnotations:A,appLastAnnotation:y}}
@@ -1 +1 @@
1
- import{last as p,get as a}from"lodash";function r(r){var t=p(String(a(r,"package.build","".concat(r.app.app_key,"-0.0.1"))).split("-"));return"0"===t?"0.0.1":t}export{r as getAppVersion};
1
+ import{last as p,get as a}from"lodash";var r=function(r){return p(String(a(r,"package.build","".concat(r.app.app_key,"-0.0.1"))).split("-"))};export{r as getAppVersion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.24.0-3",
3
+ "version": "0.24.0-4",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1 +1 @@
1
- import"lodash";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";var n=function(t,n){return t?"".concat(t.replace(/\./g,"_"),"-").concat(n):""},o=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return o===+(null==n?void 0:n.maximizeDC)};function r(t){return{push:function(n){"string"==typeof n?t.push(n):t.push({pathname:n.pathname,query:n.query})},location:{pathname:t.location.pathname,query:t.location.query}}}var s=function(t){return t?+(t.split("#")[2]||"").replace("}",""):void 0};export{r as createDevCenterRouter,n as getAppIdentifier,s as getTimestampFromQuery,o as isAppMaximized};
1
+ import"lodash";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 n}from"../constants/devcenter.js";import"../constants/drillstring.js";var t=function(n,t){return n?"".concat(n.replace(/\./g,"_"),"-").concat(t):""},o=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:n.location.pathname,query:n.location.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},e=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:n.name},i=function(n){return"dev_center"===n.app.platform};export{a as createDevCenterRouter,t as getAppIdentifier,e as getAppName,r as getTimestampFromQuery,o as isAppMaximized,i as isDevCenterApp};