@corva/ui 0.24.0-3 → 0.24.0-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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}))})}}
package/README.md CHANGED
@@ -4,10 +4,12 @@ This repo contains components/utils which are shared for Corva ui apps.
4
4
 
5
5
  #### Things to know:
6
6
 
7
- 1. `yarn start` will open ExampleApp.js in your browser.
7
+ 1. How to bump the version? What should be the branch name? And other more advanced cases, like release/hotfixes. The guideline for all of these cases can be found [here (Corva access required)](https://www.notion.so/corva/corva-web-repo-d510f545ffb74c9bafd6b1bfbc0b99bf#2283b08cd4c8477981dabc8974cc13c0)
8
+
9
+ 2. `yarn start` will open ExampleApp.js in your browser.
8
10
  That's a playground for building components.
9
11
 
10
- 2. To link this repo with your app, you should:
12
+ 3. To link this repo with your app, you should:
11
13
 
12
14
  ### Mac
13
15
  1. Run `yarn build` or `yarn build-watch` in @corva/ui repo (only first time)
@@ -0,0 +1,40 @@
1
+ <svg width="217" height="217" viewBox="0 0 217 217" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_3151_161440" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="217" height="217">
3
+ <circle cx="108.237" cy="108.236" r="108" fill="#C4C4C4"/>
4
+ </mask>
5
+ <g mask="url(#mask0_3151_161440)">
6
+ <g filter="url(#filter0_f_3151_161440)">
7
+ <circle cx="108.237" cy="108.236" r="107" stroke="#64B5F6" stroke-width="2"/>
8
+ </g>
9
+ <g filter="url(#filter1_f_3151_161440)">
10
+ <circle cx="108.237" cy="108.236" r="107" stroke="#64B5F6" stroke-width="2"/>
11
+ </g>
12
+ </g>
13
+ <defs>
14
+ <filter id="filter0_f_3151_161440" x="-31.7632" y="-31.7637" width="280" height="280" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
15
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
16
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
17
+ <feGaussianBlur stdDeviation="16" result="effect1_foregroundBlur_3151_161440"/>
18
+ </filter>
19
+ <filter id="filter1_f_3151_161440" x="-31.7632" y="-31.7637" width="280" height="280" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
20
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
21
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
22
+ <feGaussianBlur stdDeviation="16" result="effect1_foregroundBlur_3151_161440"/>
23
+ </filter>
24
+ <filter id="filter2_di_3151_161440" x="61.2368" y="63.2363" width="94" height="94" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
25
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
26
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
27
+ <feOffset dy="2"/>
28
+ <feGaussianBlur stdDeviation="1"/>
29
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>
30
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_3151_161440"/>
31
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_3151_161440" result="shape"/>
32
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
33
+ <feOffset dy="1"/>
34
+ <feGaussianBlur stdDeviation="0.5"/>
35
+ <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
36
+ <feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0"/>
37
+ <feBlend mode="normal" in2="shape" result="effect2_innerShadow_3151_161440"/>
38
+ </filter>
39
+ </defs>
40
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="229" height="229" viewBox="0 0 229 229" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="114.237" cy="114.236" r="113" stroke="url(#paint0_linear_3151_161439)" stroke-width="2"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_3151_161439" x1="114.237" y1="103.736" x2="114.237" y2="228.236" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#414141"/>
6
+ <stop offset="1" stop-color="#333333" stop-opacity="0"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -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 d,Tabs as c,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 v 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 h 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:{minWidth:"50rem",height:"40rem"}})(d),w=l({root:{marginBottom:10}})(c),F="SETTINGS",M="APP DETAILS",V="VIEW APP PAGE";function W(l){var d=l.AppSettingsComponent,c=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(){var t;return B(B({},e(c.settings)),{},{package:c.settings.package||(null==c||null===(t=c.package)||void 0===t?void 0:t.version)})})),J=i(Y,2),Q=J[0],X=J[1],Z=S(!0),$=i(Z,2),tt=$[0],et=$[1],rt=c.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(h,{ErrorView:P,app:c,children:[a(v,{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?c.app_key:null,settings:Q,onSettingsChange:ot,appType:o[H],isNullable:!1,label:"Active Asset"}),d&&a(d,{app:c,appData:C,settings:Q,onSettingChange:it,onSettingsChange:ot,layoutEnvironment:W,currentUser:x}),!rt&&a(L,{appId:c.app.id,value:Q.package,onChange:function(t){return it("package",t)},currentUser:x})]}),z===M&&a(D,{appDescription:r(c,"app.description"),appSummary:r(c,"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};
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{sumBy as e,upperFirst as i}from"lodash";import{jsxs as o,jsx as a,Fragment as r}from"react/jsx-runtime";import{makeStyles as n,Typography as d}from"@material-ui/core";import{useRef as l,useMemo as c,useEffect as s}from"react";import p from"prop-types";import h from"classnames";import{Regular14 as m}from"../Typography.js";var u=n({root:{width:"228px",height:"228px",borderRadius:"50%",border:"2px solid #3e3e3e",padding:"6px",position:"relative"},backgroundRoot:{width:"100%",height:"100%",borderRadius:"50%",border:"2px solid #5d666e",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},emptyStateBackground:{background:"radial-gradient(50% 50% at 50% 50%, rgba(100, 181, 246, 0) 54.4%, rgba(100, 181, 246, 0.01) 76.49%, rgba(100, 181, 246, 0.06) 100%)"},dropShadowRoot:{width:"100%",height:"100%",borderRadius:"50%",filter:"blur(36px)",border:"2px solid #64B5F6",display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",left:0,top:0},lastActivityRoot:{width:"90px",height:"90px",background:"#3B3B3B",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.1), inset 0px 1px 1px rgba(255, 255, 255, 0.05)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"8px 0"},activityDuration:{fontSize:"24px"},durationUnit:{fontSize:"16px"},activityTimeRange:{fontSize:"10px",textTransform:"uppercase",color:"#9E9E9E",lineHeight:"24px",fontWeight:500},activityName:{fontSize:"12px",lineHeight:"14px",fontWeight:500},noOperationsRoot:{width:90,height:90},noOperationsText:{marginTop:24,color:"#9E9E9E"},chart:{position:"absolute",left:0,top:0,width:"100%",height:"100%",padding:"12px"},canvas:{width:"100%",height:"100%"}});function f(t,e,i,o,a,r,n){t.beginPath(),t.moveTo(e,i),t.arc(e,i,o,a,r),t.closePath(),t.fillStyle=n,t.fill()}function g(n){var p=n.currentActivityName,g=n.activities,x=u(),v=l(null),y=c((function(){return e(g,"duration")}),[g]),b=c((function(){return g.find((function(t){return t.name===p}))}),[g,p]);return s((function(){var t=v.current,e=t.getContext("2d");t.width=200,t.height=200,t.style.width="200px",t.style.height="200px";var i=0;g.forEach((function(t){if(t.duration){var o=i,a=o+t.duration/y*Math.PI*2;t.name===p&&function(t,e,i,o,a,r){t.beginPath(),t.moveTo(e,i),t.arc(e,i,o-8,a,r),t.closePath();var n=t.createRadialGradient(e,i,5,e,i,o);n.addColorStop(0,"#41515d00"),n.addColorStop(.3,"#41515d00"),n.addColorStop(.6,"#41515d4d"),n.addColorStop(.9,"#41515db3"),t.fillStyle=n,t.fill()}(e,100,100,100,o,a),function(t,e,i,o,a,r,n,d){t.beginPath(),t.moveTo(e,i),t.arc(e,i,o,a+0,r-0),t.closePath();var l=t.createRadialGradient(e,i,8,e,i,o);l.addColorStop(0,"".concat(n,"00")),l.addColorStop(.9,"".concat(n,"00")),l.addColorStop(.93,n),l.addColorStop(1,n),t.fillStyle=l,t.fill(),d&&(f(t,100+95*Math.cos(a+0),100+95*Math.sin(a+0),5,0,2*Math.PI,n),f(t,100+95*Math.cos(r-0),100+95*Math.sin(r-0),5,0,2*Math.PI,n))}(e,100,100,100,o,a,t.color||"#000000"),i=a}}))})),o("div",{className:x.root,children:[a("div",{className:h(x.backgroundRoot,t({},x.emptyStateBackground,!g.length)),children:a("div",{className:x.dropShadowRoot})}),o("div",{className:x.content,children:[a(d,{className:x.activityTimeRange,children:"Last 24hrs"}),g.length?o(r,{children:[a("div",{className:x.lastActivityRoot,children:b&&b.duration?o(d,{className:x.activityDuration,children:[(b.duration/3600).toFixed(1)," ",a("span",{className:x.durationUnit,children:"h"})]}):null}),a(d,{className:x.activityName,children:i(p)})]}):a("div",{className:x.noOperationsRoot,children:a(m,{className:x.noOperationsText,children:"No operations"})})]}),a("div",{className:x.chart,children:a("canvas",{ref:v,className:x.canvas})})]})}g.propTypes={activities:p.arrayOf(p.shape({name:p.string,day:p.number,night:p.number})).isRequired,currentActivityName:p.string.isRequired};export default g;
1
+ import t from"@babel/runtime/helpers/defineProperty";import{sumBy as e,upperFirst as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{jsxs as a,jsx as n,Fragment as r}from"react/jsx-runtime";import{makeStyles as c,Typography as l,Tooltip as d}from"@material-ui/core";import{useRef as s,useState as p,useMemo as h,useEffect as u,createRef as f}from"react";import m from"prop-types";import g from"classnames";import{Regular14 as x}from"../Typography.js";var v=c({root:{width:"228px",height:"228px",borderRadius:"50%",padding:"6px",position:"relative",background:"url(".concat("/static/media/9bda514bfc837939d0b6f7d8dbe94d03.svg",")"),backgroundRepeat:"no-repeat"},backgroundRoot:{width:"100%",height:"100%",borderRadius:"50%",border:"2px solid #616161",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",background:"url(".concat("/static/media/49092309a3fda5ecf77311bd794ac103.svg",")")},emptyStateBackground:{background:"radial-gradient(50% 50% at 50% 50%, rgba(100, 181, 246, 0) 54.4%, rgba(100, 181, 246, 0.01) 76.49%, rgba(100, 181, 246, 0.06) 100%)"},dropShadowRoot:{width:"100%",height:"100%",borderRadius:"50%",filter:"blur(36px)",border:"2px solid #64B5F6",display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",left:0,top:0},lastActivityRoot:{width:"90px",height:"90px",background:"#3B3B3B",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.1), inset 0px 1px 1px rgba(255, 255, 255, 0.05)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"8px 0"},activityDuration:{fontSize:"36px",lineHeight:"24px",fontWeight:300,letterSpacing:"0.4px"},durationUnit:{fontSize:"12px",lineHeight:"24px",fontWeight:500,letterSpacing:"0.4px"},activityTimeRange:{fontSize:"10px",textTransform:"uppercase",color:"#9E9E9E",lineHeight:"24px",fontWeight:500,letterSpacing:"1px"},activityName:{fontSize:"12px",lineHeight:"14px",fontWeight:500},noOperationsRoot:{width:90,height:90},noOperationsText:{marginTop:24,color:"#9E9E9E"},chart:{position:"absolute",left:2,top:2,width:"100%",height:"100%",padding:"12px"},canvas:{width:"100%",height:"100%"},activities:{position:"absolute",left:12,top:12}});function b(t,e,o,i,a,n){t.moveTo(e,o),t.arc(e,o,i,a,n)}function y(c){var m=c.currentActivityName,y=c.activities,S=c.showTooltip,w=v(),N=s(null),R=s([]),C=p(!1),T=i(C,2),E=T[0],P=T[1],A=p(null),k=i(A,2),I=k[0],D=k[1],M=h((function(){return y.filter((function(t){return t.duration}))}),[y]),j=h((function(){return e(y,"duration")}),[y]),B=h((function(){return y.find((function(t){return t.name===m}))}),[y,m]),O=function(){P(!0)},z=function(){P(!1),D(null)},H=function(t){var e=!1;E&&R.current.forEach((function(o,i){var a=o.current;if(a&&!e){var n=a.getContext("2d");(e=n.isPointInPath(t.offsetX,t.offsetY))&&D(i)}})),e||D(null)};return u((function(){var t=N.current,e=t.getContext("2d");t.width=200,t.height=200,t.style.width="".concat(200,"px"),t.style.height="".concat(200,"px");var o=M.length;R.current.length!==o&&(R.current=Array(o).fill().map((function(t,e){return R.current[e]||f()})));var i=0;M.forEach((function(t,o){var a=R.current[o].current;if(a){a.width=200,a.height=200,a.style.width="".concat(200,"px"),a.style.height="".concat(200,"px"),S&&(a.onmouseenter=O,a.onmouseleave=z,a.onmousemove=H);var n=a.getContext("2d"),r=i,c=r+t.duration/j*Math.PI*2;t.name===m&&function(t,e,o,i,a,n){t.beginPath(),t.moveTo(e,o),t.arc(e,o,i-8,a,n),t.closePath();var r=t.createRadialGradient(e,o,5,e,o,i);r.addColorStop(0,"#3E4D5A00"),r.addColorStop(.3,"#3E4D5A00"),r.addColorStop(.6,"#3E4D5A4d"),r.addColorStop(.9,"#3E4D5Ab3"),t.fillStyle=r,t.fill()}(e,100,100,100,r,c),function(t,e,o,i,a,n,r,c){var l=n-a>.0833393628,d=l?.0416696814:0,s=l?4:0,p=100-s;t.beginPath(),t.moveTo(e,o),t.arc(e,o,i,a+d,n-d),c&&l&&(b(t,100+p*Math.cos(a+d),100+p*Math.sin(a+d),s,0,2*Math.PI),b(t,100+p*Math.cos(n-d),100+p*Math.sin(n-d),s,0,2*Math.PI)),t.closePath();var h=t.createRadialGradient(e,o,8,e,o,i);h.addColorStop(0,"".concat(r,"00")),h.addColorStop(.9,"".concat(r,"00")),h.addColorStop(.93,r),h.addColorStop(1,r),t.fillStyle=h,t.fill()}(n,100,100,100,r,c,t.color||"#000000",!0),i=c}}))})),a("div",{className:w.root,children:[n("div",{className:g(w.backgroundRoot,t({},w.emptyStateBackground,!y.length)),children:n("div",{className:w.dropShadowRoot})}),a("div",{className:w.content,children:[n(l,{className:w.activityTimeRange,children:"Last 24hrs"}),y.length?a(r,{children:[n("div",{className:w.lastActivityRoot,children:B&&B.duration?a(l,{className:w.activityDuration,children:[(B.duration/3600).toFixed(1),n("span",{className:w.durationUnit,children:"h"})]}):null}),n(l,{className:w.activityName,children:o(m)})]}):n("div",{className:w.noOperationsRoot,children:n(x,{className:w.noOperationsText,children:"No operations"})})]}),n(d,{title:null!==I?"".concat(M[I].name,": ").concat((M[I].duration/3600).toFixed(3),"h"):"",placement:"bottom",children:a("div",{className:w.chart,children:[n("canvas",{ref:N,className:w.canvas}),M.map((function(t,e){return n("canvas",{ref:R.current[e],className:w.activities})}))]})})]})}y.propTypes={activities:m.arrayOf(m.shape({name:m.string,day:m.number,night:m.number})).isRequired,currentActivityName:m.string.isRequired,showTooltip:m.bool},y.defaultProps={showTooltip:!1};export default y;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import a from"moment";import{upperFirst as t}from"lodash";import{convertValue as r,getUnitDisplay as n}from"../../utils/convert.js";import"../../constants/goals.js";import"../../constants/apps.js";import i from"../../utils/main.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import{DRILLING_WELL_SUMMARY as l,COMPLETION_WELL_SUMMARY as s,DRILLOUT_WELL_SUMMARY as c}from"../../constants/wellSummary.js";import"../../utils/drillstring/conversion.js";import{getBHASchematic as o}from"../../utils/drillstring/schematic.js";import{orDash as m}from"../../utils/formatting.js";import{jsxs as d,jsx as p,Fragment as u}from"react/jsx-runtime";import{makeStyles as h,Typography as f}from"@material-ui/core";import g from"prop-types";import y from"classnames";import v from"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";var N="/static/media/6684df900ff63f28b07f9c505fb7a66e.svg",k=h({value:{fontSize:"14px",fontWeight:500},valueSuffix:{color:"#9E9E9E"},hasLeftMargin:{marginLeft:4},bhaRoot:{display:"flex",alignItems:"center"},bhaIdRoot:{backgroundColor:"#2196F3",borderRadius:"50%",marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},realBhaRoot:{width:"16px",height:"16px"},bhaIdLabel:{fontWeight:500,fontSize:"12px"},dummyBhaIdLabel:{paddingLeft:"4px",paddingRight:"4px"},bhaActiveIndicator:{fontSize:"12px",padding:"4px",fontWeight:500},nptRoot:{display:"flex",alignItems:"center"},rectIndicator:{width:"8px",height:"8px",backgroundColor:"#D32F2F",borderRadius:"2px",marginRight:"8px"},stageActual:{fontSize:"16px"},stagePercent:{color:"#9E9E9E",marginLeft:"4px"},fluidProppantType:{color:"#9E9E9E"},valueWrapper:{display:"flex",alignItems:"center"},rightImg:{marginRight:"4px"},centerImg:{marginLeft:"4px",marginRight:"4px"},rotate:{transform:"rotate(180deg)"},profileRoot:{display:"flex",alignItems:"flex-start"},profile:{width:"20px",height:"20px",borderRadius:"50%",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",backgroundSize:"20px 20px",backgroundRepeat:"no-repeat",backgroundPosition:"center"},plugsIcon:{marginLeft:-8}});function b(h){var g=h.item,b=h.summaryData,I=k();if(!b)return null;if(g.key===l.HOLE_DEPTH.key){var x=g.dataGetter(b).holeDepth;return Number.isFinite(x)?d("div",{className:I.valueWrapper,children:[p("img",{src:N,alt:"hole_depth",className:I.centerImg}),d("span",{className:y(I.value,I.hasLeftMargin),children:[Math.floor(x),"’"]})]}):"-"}if(g.key===l.BIT_HOLE_DEPTH.key){var T=g.dataGetter(b),R=T.bitDepth,A=T.holeDepth;return[R,A].every(Number.isFinite)?d("div",{className:I.valueWrapper,children:[p("img",{src:"/static/media/fa2667bad3591deb178e99b521571578.svg",alt:"bit_depth",className:I.rightImg}),d("span",{className:I.value,children:[Math.floor(R),"’ / "]}),p("img",{src:N,alt:"hole_depth",className:I.centerImg}),d("span",{className:I.value,children:[Math.floor(A),"’"]})]}):"-"}if(g.key===l.DIVERGENCE.key){var E=g.dataGetter(b),S=E.distance,D=E.ahead,G=E.right;return[S,D,G].every(Number.isFinite)?d("div",{className:I.valueWrapper,children:[p("span",{className:I.value,children:"".concat(r(S,"length","ft")," ").concat(n("length"))}),p("img",{src:"/static/media/53cecdbd86f03352bda956fca25b537d.svg",alt:"up_arrow",className:y(I.centerImg,e({},I.rotate,D<0))}),p("span",{className:I.value,children:"".concat(Math.abs(r(D,"length","ft"))," ").concat(n("length")," ").concat(D>0?"Ahead":"Behind")}),p("img",{src:"/static/media/d32edb0ff9a69145d2c7917855263251.svg",alt:"left_arrow",className:y(I.centerImg,e({},I.rotate,G>0))}),p("span",{className:I.value,children:"".concat(Math.abs(r(G,"length","ft"))," ").concat(n("length")," ").concat(G>0?"Right":"Left")})]}):"-"}if(g.key===l.LAST_ACTIVE.key||g.key===s.LAST_ACTIVE.key){var L=g.dataGetter(b).timestamp;return p(f,{className:I.value,children:L?a.unix(L).format("MM/DD/YYYY HH:mm"):"-"})}if(g.key===l.CURRENT_ACTIVITY.key||g.key===s.CURRENT_ACTIVITY.key){var _=g.dataGetter(b).activityName;return p(f,{className:I.value,children:m(t(_||"-"))})}if(g.key===l.PHASE.key){var C=g.dataGetter(b).phaseName;return p(f,{className:I.value,children:m(C)})}if(g.key===l.HOLE_SECTION.key){var P=g.dataGetter(b).sectionName;return p(f,{className:I.value,children:m(P)})}if([l.MUD.key,c.MUD.key].includes(g.key)){var j=g.dataGetter(b),H=j.mudType,M=j.mudDensity;return p(f,{className:I.value,children:H||M?d(u,{children:[H&&"".concat(H,", "),M&&"".concat(r(M,"density","ppg")," ").concat(n("density"))]}):"-"})}if(g.key===l.NPT.key||g.key===s.NPT.key){var O=g.dataGetter(b),B=O.nptType,Y=O.startTime,F=O.endTime;return B&&Y&&F?d("div",{className:I.nptRoot,children:[p("div",{className:I.rectIndicator}),d(f,{className:I.value,children:[t(B),": ",((F-Y)/3600).fixFloat(1)," hr"]})]}):"-"}if(g.key===l.OPERATIONS_SUMMARY.key||g.key===s.OPERATIONS_SUMMARY.key){var U=g.dataGetter(b),W=U.dateTime,w=U.summary;return d(f,{className:I.value,children:[W?a.unix(W).format("MM/DD/YYYY HH:mm"):"-",p("br",{}),w]})}if(g.key===s.STAGE.key){var V=g.dataGetter(b),z=V.planned,q=V.actual;return q&&z?d(f,{className:I.value,children:[p("span",{className:I.stageActual,children:q||"-"}),p("span",{children:"/"}),p("span",{children:z||"-"}),z&&q?d("span",{className:I.stagePercent,children:["Stg ",Math.floor(q/z*100)," %"]}):null]}):null}if(g.key===s.FLUIDS.key){var J=g.dataGetter(b).fluids;return p("div",{children:J.map((function(e){var a=e.type,t=e.amount,i=e.unit;return d(f,{className:I.value,children:[d("span",{className:I.fluidProppantType,children:[a," - "]}),p("span",{children:"".concat(r(t,"oil",i)," ").concat(n("oil"))})]},"".concat(a,"_").concat(t))}))})}if(g.key===s.PROPPANTS.key){var K=g.dataGetter(b).proppants;return p("div",{children:K.map((function(e){var a=e.type,t=e.amount,i=e.unit;return d(f,{className:I.value,children:[d("span",{className:I.fluidProppantType,children:[a," - "]}),p("span",{children:"".concat(r(t,"mass",i)," ").concat(n("mass"))})]},"".concat(a,"_").concat(t))}))})}if(g.key===l.ALERT.key||g.key===s.ALERT.key){var Q=g.dataGetter(b).decisionPath;return p(f,{className:I.value,children:m(Q)})}if(g.key===l.ANNOTATION.key||g.key===s.ANNOTATION.key){var X=g.dataGetter(b),Z=X.firstName,$=X.lastName,ee=X.profilePhoto,ae=X.content,te="".concat(Z," ").concat($),re="".concat((Z||"").charAt(0)).concat(($||"").charAt(0));return ae?d("div",{className:I.profileRoot,children:[p("div",{className:I.profile,style:{backgroundColor:"#".concat(i.getColorFromString(te)),backgroundImage:"url(".concat(ee,")")},children:ee?null:re}),p(f,{className:I.value,children:ae})]}):"-"}if([l.BHA.key,c.BHA.key].includes(g.key)){var ne=c.BHA.key===g.key,ie=g.dataGetter(b),le=ie.bhaId,se=ie.components,ce=le&&String(le)||"-",oe=le&&o(se||[],ne)||[];return d("div",{className:I.bhaRoot,children:[p("div",{className:y(I.bhaIdRoot,e({},I.realBhaRoot,!ce.includes("."))),children:p(f,{className:y(I.bhaIdLabel,e({},I.dummyBhaIdLabel,ce.includes("."))),children:ce})}),p(v,{schematic:oe,containerHeight:20,containerWidth:120})]})}if(g.key===l.CASING.key){var me=g.dataGetter(b).outerDiameter;return me?p(f,{className:I.value,children:"".concat(r(me,"shortLength")," ").concat(n("shortLength"))}):null}if(g.key===l.BHA_COUNT.key){var de=g.dataGetter(b).count;return p(f,{className:I.value,children:m(de)})}if(g.key===s.STAGES_DESIGN.key){var pe=g.dataGetter(b).totalNumberOfStages;return Number.isFinite(pe)?d(f,{className:I.value,children:["-/",pe," ",p("span",{className:I.valueSuffix,children:"Stg"})]}):"-"}if(g.key===s.PLUGS_DRILLED_COUNT.key){var ue=g.dataGetter(b).plugsDrilledCount;return Number.isFinite(ue)?d("div",{className:I.valueWrapper,children:[p("img",{src:"/static/media/b0c8b3ba66c35ef3128cc93c5c538060.svg",alt:"drillout",className:I.plugsIcon}),p("span",{className:y(I.value,I.hasLeftMargin),children:ue})]}):"-"}if("development"===process.env.NODE_ENV)throw new Error("".concat(g.key," wasn't handled in WellSummaryItemValue. Returning null"));return null}b.propTypes={item:g.shape({key:g.string,label:g.string,icon:g.node,dataGetter:g.func}).isRequired,summaryData:g.shape({}).isRequired};export default b;
1
+ import e from"@babel/runtime/helpers/defineProperty";import a from"moment";import{upperFirst as t}from"lodash";import{convertValue as r,getUnitDisplay as n}from"../../utils/convert.js";import"../../constants/goals.js";import"../../constants/apps.js";import i from"../../utils/main.js";import"../../constants/completion.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/drillstring.js";import{DRILLING_WELL_SUMMARY as l,COMPLETION_WELL_SUMMARY as s,DRILLOUT_WELL_SUMMARY as c}from"../../constants/wellSummary.js";import"../../utils/drillstring/conversion.js";import{getBHASchematic as o}from"../../utils/drillstring/schematic.js";import{orDash as m}from"../../utils/formatting.js";import{jsxs as d,jsx as p,Fragment as u}from"react/jsx-runtime";import{makeStyles as h,Typography as f}from"@material-ui/core";import g from"prop-types";import y from"classnames";import v from"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";var N="/static/media/6684df900ff63f28b07f9c505fb7a66e.svg",k=h({value:{fontSize:"14px",fontWeight:500},valueSuffix:{color:"#9E9E9E"},hasLeftMargin:{marginLeft:4},bhaRoot:{display:"flex",alignItems:"center"},bhaIdRoot:{backgroundColor:"#2196F3",borderRadius:"50%",marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},realBhaRoot:{width:"16px",height:"16px"},bhaIdLabel:{fontWeight:500,fontSize:"12px"},dummyBhaIdLabel:{paddingLeft:"4px",paddingRight:"4px"},bhaActiveIndicator:{fontSize:"12px",padding:"4px",fontWeight:500},nptRoot:{display:"flex",alignItems:"center"},rectIndicator:{width:"8px",height:"8px",backgroundColor:"#D32F2F",borderRadius:"2px",marginRight:"8px"},stageActual:{fontSize:"16px"},stagePercent:{color:"#9E9E9E",marginLeft:"4px"},fluidProppantType:{color:"#9E9E9E"},valueWrapper:{display:"flex",alignItems:"center"},rightImg:{marginRight:"4px"},centerImg:{marginLeft:"4px",marginRight:"4px"},rotate:{transform:"rotate(180deg)"},profileRoot:{display:"flex",alignItems:"flex-start"},profile:{width:"20px",height:"20px",borderRadius:"50%",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",backgroundSize:"20px 20px",backgroundRepeat:"no-repeat",backgroundPosition:"center"},plugsIcon:{marginLeft:-8}});function b(h){var g=h.item,b=h.summaryData,I=k();if(!b)return null;if(g.key===l.HOLE_DEPTH.key){var x=g.dataGetter(b).holeDepth;return Number.isFinite(x)?d("div",{className:I.valueWrapper,children:[p("img",{src:N,alt:"hole_depth",className:I.centerImg}),d("span",{className:y(I.value,I.hasLeftMargin),children:[Math.floor(x),"’"]})]}):"-"}if(g.key===l.BIT_HOLE_DEPTH.key){var T=g.dataGetter(b),R=T.bitDepth,A=T.holeDepth;return[R,A].every(Number.isFinite)?d("div",{className:I.valueWrapper,children:[p("img",{src:"/static/media/fa2667bad3591deb178e99b521571578.svg",alt:"bit_depth",className:I.rightImg}),d("span",{className:I.value,children:[Math.floor(R),"’ / "]}),p("img",{src:N,alt:"hole_depth",className:I.centerImg}),d("span",{className:I.value,children:[Math.floor(A),"’"]})]}):"-"}if(g.key===l.DIVERGENCE.key){var E=g.dataGetter(b),S=E.distance,D=E.ahead,G=E.right;return[S,D,G].every(Number.isFinite)?d("div",{className:I.valueWrapper,children:[p("span",{className:I.value,children:"".concat(r(S,"length","ft")," ").concat(n("length"))}),p("img",{src:"/static/media/53cecdbd86f03352bda956fca25b537d.svg",alt:"up_arrow",className:y(I.centerImg,e({},I.rotate,D<0))}),p("span",{className:I.value,children:"".concat(Math.abs(r(D,"length","ft"))," ").concat(n("length")," ").concat(D>0?"Ahead":"Behind")}),p("img",{src:"/static/media/d32edb0ff9a69145d2c7917855263251.svg",alt:"left_arrow",className:y(I.centerImg,e({},I.rotate,G>0))}),p("span",{className:I.value,children:"".concat(Math.abs(r(G,"length","ft"))," ").concat(n("length")," ").concat(G>0?"Right":"Left")})]}):"-"}if(g.key===l.LAST_ACTIVE.key||g.key===s.LAST_ACTIVE.key){var L=g.dataGetter(b).timestamp;return p(f,{className:I.value,children:L?a.unix(L).format("MM/DD/YYYY HH:mm"):"-"})}if(g.key===l.CURRENT_ACTIVITY.key||g.key===s.CURRENT_ACTIVITY.key){var _=g.dataGetter(b).activityName;return p(f,{className:I.value,children:m(t(_||"-"))})}if(g.key===l.PHASE.key){var C=g.dataGetter(b).phaseName;return p(f,{className:I.value,children:m(C)})}if(g.key===l.HOLE_SECTION.key){var P=g.dataGetter(b).sectionName;return p(f,{className:I.value,children:m(P)})}if([l.MUD.key,c.MUD.key].includes(g.key)){var j=g.dataGetter(b),H=j.mudType,M=j.mudDensity;return p(f,{className:I.value,children:H||M?d(u,{children:[H&&"".concat(H,", "),M&&"".concat(r(M,"density","ppg")," ").concat(n("density"))]}):"-"})}if(g.key===l.NPT.key||g.key===s.NPT.key){var O=g.dataGetter(b),B=O.nptType,Y=O.startTime,F=O.endTime;return B&&Y&&F?d("div",{className:I.nptRoot,children:[p("div",{className:I.rectIndicator}),d(f,{className:I.value,children:[t(B),": ",((F-Y)/3600).fixFloat(1)," hr"]})]}):"-"}if(g.key===l.OPERATIONS_SUMMARY.key||g.key===s.OPERATIONS_SUMMARY.key){var U=g.dataGetter(b),W=U.dateTime,w=U.summary;return d(f,{className:I.value,children:[W?a.unix(W).format("MM/DD/YYYY HH:mm"):"-",p("br",{}),w]})}if(g.key===s.STAGE.key){var V=g.dataGetter(b),z=V.planned,q=V.actual;return q&&z?d(f,{className:I.value,children:[p("span",{className:I.stageActual,children:q}),p("span",{children:"/"}),p("span",{children:z}),d("span",{className:I.stagePercent,children:["Stg ",Math.floor(q/z*100)," %"]})]}):"-"}if(g.key===s.FLUIDS.key){var J=g.dataGetter(b).fluids;return p("div",{children:0===J.length?"-":J.map((function(e){var a=e.type,t=e.amount,i=e.unit;return d(f,{className:I.value,children:[d("span",{className:I.fluidProppantType,children:[a," - "]}),p("span",{children:"".concat(r(t,"oil",i)," ").concat(n("oil"))})]},"".concat(a,"_").concat(t))}))})}if(g.key===s.PROPPANTS.key){var K=g.dataGetter(b).proppants;return p("div",{children:0===K.length?"-":K.map((function(e){var a=e.type,t=e.amount,i=e.unit;return d(f,{className:I.value,children:[d("span",{className:I.fluidProppantType,children:[a," - "]}),p("span",{children:"".concat(r(t,"mass",i)," ").concat(n("mass"))})]},"".concat(a,"_").concat(t))}))})}if(g.key===l.ALERT.key||g.key===s.ALERT.key){var Q=g.dataGetter(b).decisionPath;return p(f,{className:I.value,children:m(Q)})}if(g.key===l.ANNOTATION.key||g.key===s.ANNOTATION.key){var X=g.dataGetter(b),Z=X.firstName,$=X.lastName,ee=X.profilePhoto,ae=X.content,te="".concat(Z," ").concat($),re="".concat((Z||"").charAt(0)).concat(($||"").charAt(0));return ae?d("div",{className:I.profileRoot,children:[p("div",{className:I.profile,style:{backgroundColor:"#".concat(i.getColorFromString(te)),backgroundImage:"url(".concat(ee,")")},children:ee?null:re}),p(f,{className:I.value,children:ae})]}):"-"}if([l.BHA.key,c.BHA.key].includes(g.key)){var ne=c.BHA.key===g.key,ie=g.dataGetter(b),le=ie.bhaId,se=ie.components,ce=le&&String(le)||"-",oe=le&&o(se||[],ne)||[];return d("div",{className:I.bhaRoot,children:[p("div",{className:y(I.bhaIdRoot,e({},I.realBhaRoot,!ce.includes("."))),children:p(f,{className:y(I.bhaIdLabel,e({},I.dummyBhaIdLabel,ce.includes("."))),children:ce})}),p(v,{schematic:oe,containerHeight:20,containerWidth:120})]})}if(g.key===l.CASING.key){var me=g.dataGetter(b).outerDiameter;return me?p(f,{className:I.value,children:"".concat(r(me,"shortLength")," ").concat(n("shortLength"))}):null}if(g.key===l.BHA_COUNT.key){var de=g.dataGetter(b).count;return p(f,{className:I.value,children:m(de)})}if(g.key===s.STAGES_DESIGN.key){var pe=g.dataGetter(b).totalNumberOfStages;return Number.isFinite(pe)?d(f,{className:I.value,children:["-/",pe," ",p("span",{className:I.valueSuffix,children:"Stg"})]}):"-"}if(g.key===s.PLUGS_DRILLED_COUNT.key){var ue=g.dataGetter(b).plugsDrilledCount;return Number.isFinite(ue)?d("div",{className:I.valueWrapper,children:[p("img",{src:"/static/media/b0c8b3ba66c35ef3128cc93c5c538060.svg",alt:"drillout",className:I.plugsIcon}),p("span",{className:y(I.value,I.hasLeftMargin),children:ue})]}):"-"}if("development"===process.env.NODE_ENV)throw new Error("".concat(g.key," wasn't handled in WellSummaryItemValue. Returning null"));return null}b.propTypes={item:g.shape({key:g.string,label:g.string,icon:g.node,dataGetter:g.func}).isRequired,summaryData:g.shape({}).isRequired};export default b;
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-7",
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};