@corva/ui 0.68.0-1 → 0.68.0-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/cjs-bundle/components/Icons/DangerousIcon.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/components/Listbox.js +1 -1
- package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
- package/cjs-bundle/components/Search/styles.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/constants/completion.js +1 -1
- package/cjs-bundle/hocs/index.js +1 -1
- package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -0
- package/cjs-bundle/permissions/constants/index.js +1 -1
- package/cjs-bundle/utils/devcenter.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +12 -11
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts +11 -10
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/index.d.ts +5 -4
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/Chip/index.d.ts +2 -1
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +2 -2
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +2 -2
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/Icons/DangerousIcon.d.ts.map +1 -1
- package/components/Icons/DangerousIcon.js +1 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/components/Listbox.js +1 -1
- package/components/Search/components/RecentSearches.d.ts +5 -1
- package/components/Search/components/RecentSearches.d.ts.map +1 -1
- package/components/Search/components/RecentSearches.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/Search/styles.d.ts.map +1 -1
- package/components/Search/styles.js +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/constants/completion.d.ts.map +1 -1
- package/constants/completion.js +1 -1
- package/hocs/index.d.ts +2 -1
- package/hocs/index.js +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts +3 -0
- package/hocs/withAssetEditorLockHOC.d.ts.map +1 -0
- package/hocs/withAssetEditorLockHOC.js +1 -0
- package/package.json +1 -1
- package/permissions/constants/index.d.ts +1 -0
- package/permissions/constants/index.d.ts.map +1 -1
- package/permissions/constants/index.js +1 -1
- package/utils/devcenter.d.ts.map +1 -1
- package/utils/devcenter.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAoBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;gBAyPC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as i}from"react";import a from"prop-types";import{get as n,isEmpty as l}from"lodash";import o from"classnames";import{makeStyles as p}from"@material-ui/core";import d from"./components/PrimaryAssetSelect.js";import c from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import u from"./components/MultipleAssetsToggle.js";import m from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as y,ACTIVE_ASSET_ID as f}from"./constants.js";import"../../constants/goals.js";import{PAD_GROUP as b,FRAC_FLEET_GROUP as g}from"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{ASSET_TYPES as A}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{getPrimaryAssetFields as v}from"./utils/index.js";import{jsxs as h,jsx as j}from"react/jsx-runtime";function I(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function T(e){for(var s=1;s<arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?I(Object(r),!0).forEach((function(s){t(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=p({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),S=function(a){var p=a.appKey,I=a.appType,S=a.className,P=a.company,C=a.defaultValue,F=a.
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as i}from"react";import a from"prop-types";import{get as n,isEmpty as l}from"lodash";import o from"classnames";import{makeStyles as p}from"@material-ui/core";import d from"./components/PrimaryAssetSelect.js";import c from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import u from"./components/MultipleAssetsToggle.js";import m from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as y,ACTIVE_ASSET_ID as f}from"./constants.js";import"../../constants/goals.js";import{PAD_GROUP as b,FRAC_FLEET_GROUP as g}from"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{ASSET_TYPES as A}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{getPrimaryAssetFields as v}from"./utils/index.js";import{jsxs as h,jsx as j}from"react/jsx-runtime";function I(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function T(e){for(var s=1;s<arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?I(Object(r),!0).forEach((function(s){t(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=p({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),S=function(a){var p=a.appKey,I=a.appType,S=a.className,P=a.company,C=a.defaultValue,F=a.disabled,D=a.isHiddenTitle,N=a.isNullable,V=a.label,R=a.onSettingsChange,w=a.primaryAssetFields,_=a.secondaryAssetFields,q=a.isExtendedSelect,x=a.isRequiredAssetId,E=a.settings,K=a.isVisibleMultipleAssetsToggle,L=a.assetsLimit,M=a.isDisabledSecondaryAssetSelect,G=a.isDrillingPlatformApp,W=n(I,["primaryAsset","assetType","type"]),k=n(I,["primaryAsset","assetType","id"]),H=n(I,["primaryAsset","assetType","label"]),z=n(I,["primaryAsset","groups"]),B=n(I,["secondaryAsset","assetType","type"]),J=n(I,["secondaryAsset","assetType","id"]),Q=n(I,["secondaryAsset","assetType","label"]),U=n(E,k),X=U?Number(U):null,Y=n(E,J)?Number(n(E,J)):null,Z=r({id:X||C}),$=s(Z,2),ee=$[0],te=$[1],se=r(Y),re=s(se,2),ie=re[0],ae=re[1],ne=r(!1),le=s(ne,2),oe=le[0],pe=le[1],de=r(),ce=s(de,2),ue=ce[0],me=ce[1],ye=r(!1),fe=s(ye,2),be=fe[0],ge=fe[1],Ae=O(),ve=W===A.rig.type?m:d,he=G&&null!=ee&&ee.assetId?null==ee?void 0:ee.assetId:null==ee?void 0:ee.id,je=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};te(s),ae(null),pe(!1);var r=(t(e={},k,null),t(e,J,null),t(e,"assets",null),e);R(r)},Ie=be?Boolean(ee.length)&&!oe:(null==ee?void 0:ee.id)&&!oe;return i((function(){l(E)&&je(be&&[])}),[E]),h("div",{className:o(Ae.main,S),children:[!D&&j("div",{className:Ae.title,children:"Asset"}),K&&j(u,{onChange:function(e){var t=e.target;ge(t.checked),je(t.checked&&[])}}),j(ve,{appKey:p,assetType:W,company:P,currentOption:ee,currentValue:null==ee?void 0:ee.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:C,disableClearable:!N,disabled:F,isNullable:N,isRequiredAssetId:x,label:V,multiple:be,onChange:function(s){if(be)!function(s){var r,i;if(!(s.length>L)){var a=(null===(r=s[0])||void 0===r?void 0:r.group)===b.name,n=(null===(i=s[0])||void 0===i?void 0:i.group)===g.name,l=1===s.length&&a,o=1===s.length&&n;if(l?(pe(!0),me(b)):o&&me(g),a){te(s);var p=null==s?void 0:s.reduce((function(t,s){var r=s.parentFracFleetId,i=s.id,a={fracFleetId:r,padId:i};return q&&(a.assetId=r,a.replacedPadId=i),r?[].concat(e(t),[a]):t}),[]);R({assets:p})}else{te(s);var d=s.reduce((function(s,r){var i=t({},"".concat(r.type,"Id"),r.id);return x&&(i.assetId=r.assetId),q&&(i.assetId=r.assetId||r.id),[].concat(e(s),[i])}),[]);R({assets:d})}}}(s);else{var r=s.id,i=s.type,a=s.parentFracFleetId;if(r)if(i!==A.pad.type){te(s),ae(null);var n=t({},k,r);x&&(n.assetId=s.assetId),J&&(n[J]=null),R(n),pe(!1)}else{var l;te(s),pe(!0),ae(r);var o=(t(l={},A.frac_fleet.id,Number(a)),t(l,A.pad.id,r),l);R(o)}}},setCurrentOption:te,selectedGroup:ue,onGroupChange:function(e){me(e),je(be&&[])},onGroupReset:function(){me(null),je(be&&[])},groups:z,onInputReset:je,onActiveAssetIdChange:function(e){te((function(t){return T(T({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:v(W,w,G)}),Ie&&j(c,{assetFields:B===A.pad.type?[].concat(e(_),["pad.active","pad.current"]):_,activeWellId:null==ee?void 0:ee.activeWellId,appKey:p,assetType:B,company:P,currentValue:ie,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:be?y:f,disabled:be||M||F,isDrillingPlatformApp:G,isNullable:N,isRequiredAssetId:x,onChange:function(e){var s=e.id,r=e.assetId;ae(s);var i=s===f?null:s,a=t({},J,i);x&&B===A.well.type?R(T(T({},a),{},{replacedAssetId:G?i:r})):R(a)},parentAssetId:he,parentAssetType:G?"parent_asset_id":W,primaryAssetLabel:H,secondaryAssetLabel:Q})]})};S.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[]},S.propTypes={assetsLimit:a.number,settings:a.shape({}).isRequired,appType:a.shape({}).isRequired,defaultValue:a.any,onSettingsChange:a.func.isRequired,label:a.string,isNullable:a.bool,isHiddenTitle:a.bool,appKey:a.string,isVisibleMultipleAssetsToggle:a.bool,isDisabledSecondaryAssetSelect:a.bool,primaryAssetFields:a.shape({}),secondaryAssetFields:a.shape({})};export{S as default};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChipProps as MuiChipProps } from '@material-ui/core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
interface ChipProps extends MuiChipProps, PropTypes.InferProps<typeof chipPropTypes> {
|
|
4
|
+
interface ChipProps extends Omit<MuiChipProps, 'variant'>, PropTypes.InferProps<typeof chipPropTypes> {
|
|
5
|
+
variant?: 'default' | 'outlined' | 'basic';
|
|
5
6
|
}
|
|
6
7
|
declare const Chip: {
|
|
7
8
|
(props: ChipProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,SAAS,MAAM,YAAY,CAAC;AAoFnC,UAAU,SACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC5C;AAED,QAAA,MAAM,IAAI;YAAW,SAAS,GAAG,WAAW;;;;;;;;;CAsB3C,CAAC;AAEF,QAAA,MAAM,aAAa;;;CAGlB,CAAC;AASF,eAAe,IAAI,CAAC"}
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as i,Chip as a}from"@material-ui/core";import r from"prop-types";import l from"classnames";var o=function(t){var e=t.width,i=void 0===e?18:e,a=t.height,r=void 0===a?14:a,l=t.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(r,"' viewBox='0 0 18 14' fill='").concat(l,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as i,Chip as a}from"@material-ui/core";import r from"prop-types";import l from"classnames";var o=function(t){var e=t.width,i=void 0===e?18:e,a=t.height,r=void 0===a?14:a,l=t.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(r,"' viewBox='0 0 18 14' fill='").concat(l,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},n=i((function(t){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:t.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:t.palette.background.b1,padding:0},"&:hover":{backgroundColor:t.palette.primary.main,"& .MuiChip-label":{color:t.palette.background.b1}}}}}})),p=function(i){var r,o=i.checked,p=i.classes,c=void 0===p?{}:p,d=i["data-testid"],s=n(),h=l(((r={})[s.basic]="basic"===i.variant,r));return e(a,t({"data-testid":d},i,o?{className:h,classes:t(t({},c),{root:l(c.root,s.checked)})}:{className:h}))},c={checked:r.bool,"data-testid":r.string};p.propTypes=c,p.defaultProps={checked:!1,"data-testid":"Chip"};export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AAoEtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAoGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{useState as n}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{Settings as s,Close as d}from"@material-ui/icons";import{isNativeDetected as p,isMobileDetected as m}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import g from"../../Modal/Modal.js";import u from"../../Button/index.js";var v=p||m,f=a((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{useState as n}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{Settings as s,Close as d}from"@material-ui/icons";import{isNativeDetected as p,isMobileDetected as m}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import g from"../../Modal/Modal.js";import u from"../../Button/index.js";var v=p||m,f=a((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function b(a){var m=a.Trigger,b=a.children,C=a.classes,x=a.defaultScrollable,k=void 0!==x&&x,H=a.header,S=void 0===H?"Settings":H,w=a.iconSettingsProps,T=void 0===w?{}:w,j=a.maxHeight,P=void 0===j?null:j,N=a.modalActions,y=void 0===N?null:N,z=a.modalProps,A=void 0===z?{}:z,B=a.onClose,I=void 0===B?function(){}:B,O=o(a,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),D=n(null),E=D[0],M=D[1],Y=n(!0),L=Y[0],W=Y[1],X=f({maxHeight:P,isScrollable:L,isNativeDetected:p}),_=C||{},q=_.popoverContent,F=o(_,["popoverContent"]),G=function(){M(null),I()},J=Boolean(E),K=function(o){return M(o.currentTarget)},Q=y||t(u,e({variation:"secondary",onClick:G},{children:"CLOSE"}));return i(r,{children:[m?t(m,{onClick:K}):t(h,e({isActive:J,onClick:K,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},T,{children:t(s,{})})),!v&&i(c,e({open:J,anchorEl:E,onClose:G,anchorOrigin:{vertical:L?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},O,{classes:e(e({},F),{paper:l(X.popoverPaper,L&&"scrollable",null==F?void 0:F.paper)})},{children:[i("div",e({className:l(X.popoverHeader,L&&"scrollable")},{children:[t("div",e({className:X.headerTitle},{children:S})),t(h,e({tooltipProps:{title:"Close"},onClick:G},{children:t(d,{})}))]})),t("div",e({className:l(X.popoverContentContainer,L&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!k&&W(!1)}},{children:t("div",e({className:l(X.popoverContent,q)},{children:b}))})),t("div",{className:X.shadow})]})),v&&t(g,e({actions:Q,onClose:G,open:J,actionsClassName:X.modalActions,title:S},A,{children:b}))]})}export{b as AppSettingsPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;gBAwPC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as s,pick as n,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import{BugReport as m}from"@material-ui/icons";import l from"../../Icons/AnnotationIcon.js";import d from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as c}from"../../Annotations/AnnotationsContext.js";import{jsx as j,jsxs as u,Fragment as C}from"react/jsx-runtime";import g from"./components/AppActions/AppActions.js";import"./components/AppSettingsDialog/AppSettingsDialog.js";import A from"./components/AppSettingsDialogV2/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import f from"./components/NonPriorityMenus/NonPriorityMenus.js";import b from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import S from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as h}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as I}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{isNativeDetected as P,isMobileDetected as v}from"../../../utils/mobileDetect.js";import x from"../../IconButton/index.js";import"../../Modal/CorvaModal.css.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../AppIcon/AppIcon.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import D from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import"jsona";import"../../../constants/segment.js";import"../../../utils/env.js";import{DEV_CENTER_CLI_APP_ID as y}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import"../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{getAppSegment as T,getAppName as M,getTimestampFromQuery as E}from"../../../utils/devcenter.js";import{HelpCenterIcon as B}from"../../HelpCenter/HelpCenterIcon.js";import L from"./effects/useAppSettings.js";import k from"./effects/useAnnotationsList.js";import O from"./effects/useAnnotationsData.js";import F from"./effects/useAppMaximized.js";import V from"../AppContext.js";import w from"./DevCenterAppContainer.css.js";import R from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as W,getAppAvailability as H}from"./utils.js";import z from"./components/PriorityMenus/PriorityMenus.js";import{DevCenterRouterContext as N}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{RollbarWrapper as G}from"./components/RollbarWrapper/RollbarWrapper.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../AssetEditor/index.js";import"../../AssetEditorV2/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.js";import"../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../EmptyState/EmptyState.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ChartActionsList/ChartActionsList.js";import"../../CopyToClipboard/CopyToClipboard.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../ColorPicker/ColorPicker.js";import"../../Chart/components/ChartButton.js";import"../../Chart/components/ChartButtons.js";import"../../Chart/components/ChartWrapper.js";import"../../Chart/components/AxisDropdown.js";import"../../Chart/components/ChartSelect.js";import"../../Chart/components/buttons/DragToZoomButton.js";import"../../Chart/components/buttons/ZoomInButton.js";import"../../Chart/components/buttons/ZoomOutButton.js";import"../../Chart/components/buttons/PanButton.js";import"../../Chart/components/buttons/ResetZoomButton.js";import"../../Chart/components/buttons/HideAxesButton.js";import"../../Chart/components/buttons/ChartTypeButton.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.js";import"./components/AppSettingsDialog/RemoveAppButton.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../Button/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Select/SelectFilterBy.js";import"../../CustomSelect/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.js";import"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientManager.styles.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Drillstring/BHATileIcon.js";import"../../Drillstring/BHATile/BHATile.js";import"../../Drillstring/BHAList/BHAList.js";import"../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../Casing/CasingTable/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTileIcon.js";import"../../Casing/CasingTableV2/CasingTableV2.js";import"../../Casing/CasingTile/CasingTile.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../OffsetWellPickerV3/index.js";import"../../OffsetWellChips/Chip.js";import"../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../Notifications/Toast.js";import"../../Toaster/Toaster.js";import{ToastContainer as _}from"../../Toaster/ToastContainer.js";import"../../ConfirmationDialog.js";import"../../TextLink/index.js";import"../../Avatar/index.js";import"../../Template/TemplatePopover/index.js";import"../../Template/TemplateSharingDialog/index.js";import"../../MenuItem/index.js";import"../../MiddleTruncate/MiddleTruncate.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PinnableFilters/PinnableFilters.js";import"../../HeaderLayout/HeaderLayout.js";import"../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../PadOffsetsPicker/OffsetAssetChip.js";import"../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../PadOffsetsPicker/StagesSelector.js";import"../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../Table/TableToolbar/TableToolbar.js";import"../../Table/TableContainer/TableContainer.js";import"../../Table/TableCell/TableCell.js";import"../../Tooltip/ScrollableTooltip.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";import"../../FilesLoader/Icons/FileIcon.js";import"../../SearchInput/index.js";import"../../FeedItem/FeedItem.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";import"../../Autocomplete/Autocomplete.js";import"../../DocumentViewer/DocumentViewer.js";import"../../ColorPickerPalette/ColorPickerPalette.js";import"../../Search/Search.js";import"../../Search/components/Listbox.js";import"../../Search/components/Paper.js";import"../../Search/components/RecentSearches.js";import"../../Search/components/InputAdornmentLeft.js";import"../../Search/components/Groups.js";import"../../StatusBadge/index.js";import"../../Attachment/index.js";import"../../EmojiIconButton.js";import"../../FileUploadIconButton.js";import"../../FilePreview/index.js";import"../../FailedFileUploading.js";import"../../UserMention/index.js";import"../../CommentsInfo/index.js";import"../../CommentInput/index.js";import"../../Comment/index.js";import"../../CommentLoader.js";import"../../AssetNameLabel/AssetStatusBadge.js";import"../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../AssetEditorV2/components/SelectItem.js";import"../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import{showSuccessNotification as U}from"../../../utils/notificationToasts.js";function Z(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function q(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?Z(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var K=P||v,J="DevCenter_AppContainer";function Q(t){var v,Z,Q,X,Y,$,tt,et,ot,it=t.CLIAppComponent,rt=t.CLIAppSettings,st=t.app,nt=t.appId,pt=t.className,at=t.coordinates,mt=t.currentDashboardAppsLastAnnotations,lt=t.currentUser,dt=t.devCenterRouter,ct=t.isActionsDisabled,jt=t.isSettingsDialogHidden,ut=t.layoutEnvironment,Ct=t.onAppContainerClick,gt=void 0===Ct?p:Ct,At=t.onAppRemove,ft=t.onReportBugClick,bt=t.onCloneDashboard,St=t.onHelpCenterClick,ht=t.onIsMaximizedChange,It=t.onSettingChange,Pt=t.onSettingsChange,vt=t.openIntercom,xt=void 0===vt?p:vt,Dt=t.setIsFullscreenModalMode,yt=void 0===Dt?p:Dt,Tt=t.timestamp,Mt=t.updateCurrentDashboardAppLastAnnotation,Et=o(V),Bt=a(),Lt=i([]),kt=e(Lt,2),Ot=kt[0],Ft=kt[1],Vt=i([]),wt=e(Vt,2),Rt=wt[0],Wt=wt[1],Ht=null!==(v=null==Et?void 0:Et[nt||st.id])&&void 0!==v?v:{isLoading:!0},zt=null===(Z=st.package)||void 0===Z||null===(Q=Z.manifest)||void 0===Q?void 0:Q.application,Nt=T(st),Gt=!(null==zt||null===(X=zt.ui)||void 0===X||!X.multi_rig),_t=M(st),Ut=F({onIsMaximizedChange:ht,devCenterRouter:dt,appId:nt}),Zt=Ut.isMaximized,qt=Ut.setIsMaximized,Kt=Tt||E(null===(Y=dt.location.query)||void 0===Y?void 0:Y.query),Jt=st.id===y,Qt=Jt&&K?q(q({},at),{},{w:12}):at,Xt=D({CLIAppComponent:it,CLIAppSettings:rt,app:st,version:W(st)}),Yt=Xt.isLoading,$t=Xt.AppSettings,te=Xt.AppComponent,ee=L({setIsFullscreenModalMode:yt}),oe=ee.isAppSettingsDialogOpened,ie=ee.toggleAppSettingsDialog,re=k(),se=re.isAnnotationsListOpened,ne=re.toggleAnnotationsList,pe=Yt||!lt||!Gt&&Ht.isLoading,ae=O({app:st,appData:Ht,currentDashboardAppsLastAnnotations:mt}),me=ae.appLastAnnotation,le=ae.assetCompanyId,de=ae.assetIdForAnnotation,ce=ae.isAppSupportsAnnotations,je=s(n(Ht,["well","rig","fracFleet","wells"]),Boolean);return j(G,{companyId:null==st||null===($=st.app)||void 0===$?void 0:$.company_id,appKey:null==zt?void 0:zt.key,isCLIApp:Jt,rollbarManifestConfig:null==st||null===(tt=st.package)||void 0===tt||null===(et=tt.manifest)||void 0===et||null===(ot=et.settings)||void 0===ot?void 0:ot.rollbar,children:j(N.Provider,{value:dt,children:j(h,{setIsFullscreenModalMode:yt,children:j(I,{value:!0,children:u("div",{className:r("dc-app-container",pt,Zt&&"dc-app-container__maximized",Bt.isLightTheme&&"dc-app-container__light-theme",w.container),"data-testid":"".concat(J,"_").concat(st.app.name),onClick:function(){return gt()},children:[j(_,{}),j("div",{className:w.containerContent,children:j(S,{AppComponent:te,app:st,appData:je,isAppLoading:Yt,availability:H(st.availability,lt.company.with_subscription),isCLIApp:Jt,isLoading:pe,isMultiRig:Gt,layoutEnvironment:ut,openIntercom:xt,segment:Nt,toggleAppSettingsDialog:ie,appProps:{coordinates:Qt,currentUser:lt,devCenterRouter:dt,onSettingChange:It,onSettingsChange:Pt,setIsFullscreenModalMode:yt,setIsMaximized:qt,setMainMenuItems:Ft,setSecondaryMenuItems:Wt,appHeaderProps:q({app:st,appLastAnnotation:me,appSettings:st.settings,coordinates:Qt,currentUser:lt,isMaximized:Zt,layoutEnvironment:ut,onSettingChange:It,toggleAnnotationsList:ne,updateCurrentDashboardAppLastAnnotation:Mt},je),isNative:P,layoutEnvironment:ut,timestamp:Kt}})}),oe&&j(A,{AppSettingsComponent:$t,app:st,appData:Ht,appName:_t,currentUser:lt,isMultiRig:Gt,isSettingsDialogHidden:jt,layoutEnvironment:ut,onAppRemove:At,onCloneDashboard:bt,onSettingChange:It,onSettingsChange:Pt,openIntercom:xt,segment:Nt,timestamp:Kt,toggleAppSettingsDialog:ie}),se&&j(c,{children:j(d,{appId:st.app.id,appSettings:st.settings,appTitle:st.name,assetCompanyId:le,assetId:de,currentUser:lt,onClose:ne,showSuccessNotification:U})}),!ct&&Zt&&j(R,{setIsMaximized:qt}),!ct&&u(g,{children:[ce&&j(x,{"data-testid":"".concat(J,"_addAnnotation"),className:w.footerIconButton,tooltipProps:{title:!K&&"Add Annotation"},onClick:ne,children:j(l,{})}),ft&&!Jt&&j(x,{onClick:function(){return ft()},className:w.footerIconButton,tooltipProps:{title:!K&&"Report Bug"},children:j(m,{})}),j(x,{"data-testid":"".concat(J,"_helpContent"),onClick:function(){return St()},className:w.footerIconButton,disabled:Jt,tooltipProps:{title:!K&&"Help Center"},children:j(B,{appId:st.app.id,helpContentUpdatedAt:st.help_content_updated_at})}),K&&!Zt?j(b,{setIsMaximized:qt}):u(C,{children:[j(z,{menuItems:Ot,devCenterRouter:dt,isMobileView:K}),j(f,{devCenterRouter:dt,isMaximized:Zt,isMobileView:K,menuItems:Rt,setIsFullscreenModalMode:yt,setIsMaximized:qt,toggleAppSettingsDialog:ie})]})]})]})})})})})}export{Q as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as n,pick as s,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import{BugReport as m}from"@material-ui/icons";import l from"../../Icons/AnnotationIcon.js";import d from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as c}from"../../Annotations/AnnotationsContext.js";import{jsx as j,jsxs as u,Fragment as C}from"react/jsx-runtime";import g from"./components/AppActions/AppActions.js";import"./components/AppSettingsDialog/AppSettingsDialog.js";import A from"./components/AppSettingsDialogV2/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import f from"./components/NonPriorityMenus/NonPriorityMenus.js";import b from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import S from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as h}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as I}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{isNativeDetected as v,isMobileDetected as P}from"../../../utils/mobileDetect.js";import x from"../../IconButton/index.js";import"../../Modal/CorvaModal.css.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../AppIcon/AppIcon.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import D from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import"jsona";import"../../../constants/segment.js";import"../../../utils/env.js";import{DEV_CENTER_CLI_APP_ID as y}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import"../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{getAppSegment as T,getAppName as M,getTimestampFromQuery as E}from"../../../utils/devcenter.js";import{HelpCenterIcon as B}from"../../HelpCenter/HelpCenterIcon.js";import L from"./effects/useAppSettings.js";import k from"./effects/useAnnotationsList.js";import O from"./effects/useAnnotationsData.js";import F from"./effects/useAppMaximized.js";import V from"../AppContext.js";import w from"./DevCenterAppContainer.css.js";import R from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as W,getAppAvailability as H}from"./utils.js";import z from"./components/PriorityMenus/PriorityMenus.js";import{DevCenterRouterContext as N}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{RollbarWrapper as G}from"./components/RollbarWrapper/RollbarWrapper.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../AssetEditor/index.js";import"../../AssetEditorV2/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.js";import"../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../EmptyState/EmptyState.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ChartActionsList/ChartActionsList.js";import"../../CopyToClipboard/CopyToClipboard.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../ColorPicker/ColorPicker.js";import"../../Chart/components/ChartButton.js";import"../../Chart/components/ChartButtons.js";import"../../Chart/components/ChartWrapper.js";import"../../Chart/components/AxisDropdown.js";import"../../Chart/components/ChartSelect.js";import"../../Chart/components/buttons/DragToZoomButton.js";import"../../Chart/components/buttons/ZoomInButton.js";import"../../Chart/components/buttons/ZoomOutButton.js";import"../../Chart/components/buttons/PanButton.js";import"../../Chart/components/buttons/ResetZoomButton.js";import"../../Chart/components/buttons/HideAxesButton.js";import"../../Chart/components/buttons/ChartTypeButton.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.js";import"./components/AppSettingsDialog/RemoveAppButton.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../Button/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Select/SelectFilterBy.js";import"../../CustomSelect/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.js";import"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientManager.styles.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Drillstring/BHATileIcon.js";import"../../Drillstring/BHATile/BHATile.js";import"../../Drillstring/BHAList/BHAList.js";import"../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../Casing/CasingTable/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTileIcon.js";import"../../Casing/CasingTableV2/CasingTableV2.js";import"../../Casing/CasingTile/CasingTile.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../OffsetWellPickerV3/index.js";import"../../OffsetWellChips/Chip.js";import"../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../Notifications/Toast.js";import"../../Toaster/Toaster.js";import{ToastContainer as _}from"../../Toaster/ToastContainer.js";import"../../ConfirmationDialog.js";import"../../TextLink/index.js";import"../../Avatar/index.js";import"../../Template/TemplatePopover/index.js";import"../../Template/TemplateSharingDialog/index.js";import"../../MenuItem/index.js";import"../../MiddleTruncate/MiddleTruncate.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PinnableFilters/PinnableFilters.js";import"../../HeaderLayout/HeaderLayout.js";import"../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../PadOffsetsPicker/OffsetAssetChip.js";import"../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../PadOffsetsPicker/StagesSelector.js";import"../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../Table/TableToolbar/TableToolbar.js";import"../../Table/TableContainer/TableContainer.js";import"../../Table/TableCell/TableCell.js";import"../../Tooltip/ScrollableTooltip.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";import"../../FilesLoader/Icons/FileIcon.js";import"../../SearchInput/index.js";import"../../FeedItem/FeedItem.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";import"../../Autocomplete/Autocomplete.js";import"../../DocumentViewer/DocumentViewer.js";import"../../ColorPickerPalette/ColorPickerPalette.js";import"../../Search/Search.js";import"../../Search/components/Listbox.js";import"../../Search/components/Paper.js";import"../../Search/components/RecentSearches.js";import"../../Search/components/InputAdornmentLeft.js";import"../../Search/components/Groups.js";import"../../StatusBadge/index.js";import"../../Attachment/index.js";import"../../EmojiIconButton.js";import"../../FileUploadIconButton.js";import"../../FilePreview/index.js";import"../../FailedFileUploading.js";import"../../UserMention/index.js";import"../../CommentsInfo/index.js";import"../../CommentInput/index.js";import"../../Comment/index.js";import"../../CommentLoader.js";import"../../AssetNameLabel/AssetStatusBadge.js";import"../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../AssetEditorV2/components/SelectItem.js";import"../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import{showSuccessNotification as U}from"../../../utils/notificationToasts.js";function Z(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function q(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?Z(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var K=v||P,J="DevCenter_AppContainer";function Q(t){var P,Z,Q,X,Y,$,tt,et,ot,it,rt,nt=t.CLIAppComponent,st=t.CLIAppSettings,pt=t.app,at=t.appId,mt=t.className,lt=t.coordinates,dt=t.currentDashboardAppsLastAnnotations,ct=t.currentUser,jt=t.devCenterRouter,ut=t.isActionsDisabled,Ct=t.isSettingsDialogHidden,gt=t.layoutEnvironment,At=t.onAppContainerClick,ft=void 0===At?p:At,bt=t.onAppRemove,St=t.onReportBugClick,ht=t.onCloneDashboard,It=t.onHelpCenterClick,vt=t.onIsMaximizedChange,Pt=t.onSettingChange,xt=t.onSettingsChange,Dt=t.openIntercom,yt=void 0===Dt?p:Dt,Tt=t.setIsFullscreenModalMode,Mt=void 0===Tt?p:Tt,Et=t.timestamp,Bt=t.updateCurrentDashboardAppLastAnnotation,Lt=o(V),kt=a(),Ot=i([]),Ft=e(Ot,2),Vt=Ft[0],wt=Ft[1],Rt=i([]),Wt=e(Rt,2),Ht=Wt[0],zt=Wt[1],Nt=null!==(P=null==Lt?void 0:Lt[at||pt.id])&&void 0!==P?P:{isLoading:!0},Gt=null===(Z=pt.package)||void 0===Z||null===(Q=Z.manifest)||void 0===Q?void 0:Q.application,_t=T(pt),Ut=!(null==Gt||null===(X=Gt.ui)||void 0===X||!X.multi_rig),Zt=M(pt),qt=F({onIsMaximizedChange:vt,devCenterRouter:jt,appId:at}),Kt=qt.isMaximized,Jt=qt.setIsMaximized,Qt=Et||E(null===(Y=jt.location.query)||void 0===Y?void 0:Y.query),Xt=pt.id===y,Yt=Xt&&K?q(q({},lt),{},{w:12}):lt,$t=D({CLIAppComponent:nt,CLIAppSettings:st,app:pt,version:W(pt)}),te=$t.isLoading,ee=$t.AppSettings,oe=$t.AppComponent,ie=L({setIsFullscreenModalMode:Mt}),re=ie.isAppSettingsDialogOpened,ne=ie.toggleAppSettingsDialog,se=k(),pe=se.isAnnotationsListOpened,ae=se.toggleAnnotationsList,me=te||!ct||!Ut&&Nt.isLoading,le=O({app:pt,appData:Nt,currentDashboardAppsLastAnnotations:dt}),de=le.appLastAnnotation,ce=le.assetCompanyId,je=le.assetIdForAnnotation,ue=le.isAppSupportsAnnotations,Ce=n(s(Nt,["well","rig","fracFleet","wells"]),Boolean);return j(G,{companyId:null==pt||null===($=pt.app)||void 0===$?void 0:$.company_id,appKey:null==Gt?void 0:Gt.key,isCLIApp:Xt,rollbarManifestConfig:null==pt||null===(tt=pt.package)||void 0===tt||null===(et=tt.manifest)||void 0===et||null===(ot=et.settings)||void 0===ot?void 0:ot.rollbar,children:j(N.Provider,{value:jt,children:j(h,{setIsFullscreenModalMode:Mt,children:j(I,{value:!0,children:u("div",{className:r("dc-app-container",mt,Kt&&"dc-app-container__maximized",kt.isLightTheme&&"dc-app-container__light-theme",w.container),"data-testid":"".concat(J,"_").concat(pt.app.name),onClick:function(){return ft()},children:[j(_,{}),j("div",{className:w.containerContent,children:j(S,{AppComponent:oe,app:pt,appData:Ce,isAppLoading:te,availability:H(pt.availability,ct.company.with_subscription),isCLIApp:Xt,isLoading:me,isMultiRig:Ut,layoutEnvironment:gt,openIntercom:yt,segment:_t,toggleAppSettingsDialog:ne,appProps:{coordinates:Yt,currentUser:ct,devCenterRouter:jt,onSettingChange:Pt,onSettingsChange:xt,setIsFullscreenModalMode:Mt,setIsMaximized:Jt,setMainMenuItems:wt,setSecondaryMenuItems:zt,toggleAppSettingsDialog:ne,appHeaderProps:q({app:pt,appLastAnnotation:de,appSettings:pt.settings,coordinates:Yt,currentUser:ct,isMaximized:Kt,layoutEnvironment:gt,onSettingChange:Pt,toggleAnnotationsList:ae,updateCurrentDashboardAppLastAnnotation:Bt},Ce),isNative:v,layoutEnvironment:gt,timestamp:Qt}})}),re&&j(A,{AppSettingsComponent:ee,app:pt,appData:Nt,appName:Zt,currentUser:ct,isMultiRig:Ut,isSettingsDialogHidden:Ct,layoutEnvironment:gt,onAppRemove:bt,onCloneDashboard:ht,onSettingChange:Pt,onSettingsChange:xt,openIntercom:yt,rigId:null!==(it=null===(rt=Nt.rig)||void 0===rt?void 0:rt.id)&&void 0!==it?it:null,segment:_t,timestamp:Qt,toggleAppSettingsDialog:ne}),pe&&j(c,{children:j(d,{appId:pt.app.id,appSettings:pt.settings,appTitle:pt.name,assetCompanyId:ce,assetId:je,currentUser:ct,onClose:ae,showSuccessNotification:U})}),!ut&&Kt&&j(R,{setIsMaximized:Jt}),!ut&&u(g,{children:[ue&&j(x,{"data-testid":"".concat(J,"_addAnnotation"),className:w.footerIconButton,tooltipProps:{title:!K&&"Add Annotation"},onClick:ae,children:j(l,{})}),St&&!Xt&&j(x,{onClick:function(){return St()},className:w.footerIconButton,tooltipProps:{title:!K&&"Report Bug"},children:j(m,{})}),j(x,{"data-testid":"".concat(J,"_helpContent"),onClick:function(){return It()},className:w.footerIconButton,disabled:Xt,tooltipProps:{title:!K&&"Help Center"},children:j(B,{appId:pt.app.id,helpContentUpdatedAt:pt.help_content_updated_at})}),K&&!Kt?j(b,{setIsMaximized:Jt}):u(C,{children:[j(z,{menuItems:Vt,devCenterRouter:jt,isMobileView:K}),j(f,{devCenterRouter:jt,isMaximized:Kt,isMobileView:K,menuItems:Ht,setIsFullscreenModalMode:Mt,setIsMaximized:Jt,toggleAppSettingsDialog:ne})]})]})]})})})})})}export{Q as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const PAGE_NAME: "AppInfoMessage";
|
|
2
2
|
export default AppInfoMessage;
|
|
3
|
-
declare function AppInfoMessage({
|
|
4
|
-
|
|
3
|
+
declare function AppInfoMessage({ appHeaderProps, children, message, submessage }: {
|
|
4
|
+
appHeaderProps: any;
|
|
5
5
|
children: any;
|
|
6
6
|
message: any;
|
|
7
7
|
submessage: any;
|
package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"prop-types";import e from"@material-ui/icons/InfoOutlined";import{jsxs as i,jsx as o,Fragment as r}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AppSettingsDialogV2/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"lodash";import"@material-ui/core";import"@material-ui/icons";import"../../../../../utils/mobileDetect.js";import"../../../../IconButton/index.js";import"../../../../Modal/CorvaModal.css.js";import"react";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import s from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"jsona";import"../../../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../EmptyState/EmptyState.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../AppSettingsDialog/RemoveAppButton.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/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"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/ScrollableTooltip.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";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import p from"./AppInfoMessage.css.js";var n="AppInfoMessage";function m(t){var n=t.app,m=t.children,a=t.message,l=t.submessage;return i("div",{className:p.appInfoMessage,"data-testid":"AppInfoMessage",children:[o(s,{app:n}),i("div",{className:p.content,children:[m,!m&&i(r,{children:[o(e,{size:"large",className:p.infoIcon}),o("p",{className:p.message,children:a}),l&&o("p",{className:p.submessage,children:l})]})]})]})}m.propTypes={app:t.shape({}).isRequired,children:t.node,message:t.oneOfType([t.node,t.string]),submessage:t.string},m.defaultProps={message:"",submessage:"",children:null};export{n as PAGE_NAME,m as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"prop-types";import r from"@material-ui/icons/InfoOutlined";import{jsxs as o,jsx as i,Fragment as s}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AppSettingsDialogV2/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"lodash";import"@material-ui/core";import"@material-ui/icons";import"../../../../../utils/mobileDetect.js";import"../../../../IconButton/index.js";import"../../../../Modal/CorvaModal.css.js";import"react";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import n from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"jsona";import"../../../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../EmptyState/EmptyState.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../AppSettingsDialog/RemoveAppButton.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/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"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/ScrollableTooltip.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";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import p from"./AppInfoMessage.css.js";function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var l="AppInfoMessage";function d(t){var e=t.appHeaderProps,m=t.children,l=t.message,d=t.submessage;return o("div",{className:p.appInfoMessage,"data-testid":"AppInfoMessage",children:[i(n,a({},e)),o("div",{className:p.content,children:[m,!m&&o(s,{children:[i(r,{size:"large",className:p.infoIcon}),i("p",{className:p.message,children:l}),d&&i("p",{className:p.submessage,children:d})]})]})]})}d.propTypes={app:e.shape({}).isRequired,children:e.node,message:e.oneOfType([e.node,e.string]),submessage:e.string},d.defaultProps={message:"",submessage:"",children:null};export{l as PAGE_NAME,d as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const PAGE_NAME: "DC_appSettings";
|
|
2
2
|
export default AppSettingsDialog;
|
|
3
|
-
declare function AppSettingsDialog({ AppSettingsComponent, app, appData, appName, currentUser, isMultiRig, isSettingsDialogHidden, layoutEnvironment, onAppRemove, onCloneDashboard, onSettingsChange, openIntercom, segment, toggleAppSettingsDialog, }: {
|
|
3
|
+
declare function AppSettingsDialog({ AppSettingsComponent, app, appData, appName, currentUser, isMultiRig, isSettingsDialogHidden, layoutEnvironment, onAppRemove, onCloneDashboard, onSettingsChange, openIntercom, rigId, segment, toggleAppSettingsDialog, }: {
|
|
4
4
|
AppSettingsComponent: any;
|
|
5
5
|
app: any;
|
|
6
6
|
appData: any;
|
|
@@ -13,6 +13,7 @@ declare function AppSettingsDialog({ AppSettingsComponent, app, appData, appName
|
|
|
13
13
|
onCloneDashboard: any;
|
|
14
14
|
onSettingsChange: any;
|
|
15
15
|
openIntercom: any;
|
|
16
|
+
rigId: any;
|
|
16
17
|
segment: any;
|
|
17
18
|
toggleAppSettingsDialog: any;
|
|
18
19
|
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js"],"names":[],"mappings":"AA0BA,yCAA0C;;AAK1C;;;;;;;;;;;;;;;;gBA0NC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as h,ExpandMore as v}from"@material-ui/icons";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../../../../config/theme/index.js";import{jsx as j,jsxs as C,Fragment as y}from"react/jsx-runtime";import b from"../../../../../hocs/withAssetEditorLockHOC.js";import A from"../../../../ErrorBoundary/ErrorBoundary.js";import S from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"../../../../Button/index.js";import O from"../../../../Modal/Modal.js";import N from"../../../../AssetEditorV2/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import k from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import E from"../../../../ConfirmationDialog.js";import{DEV_CENTER_CLI_APP_ID as R}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as w,SEGMENT_TO_ASSET_TYPE as x}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import{AppIcon as P}from"../../../../AppIcon/AppIcon.js";import T from"./RemoveAppButton.js";import M from"./styles.js";import{getIsSustainabilityApp as q}from"../../utils.js";import{showSuccessNotification as V}from"../../../../../utils/notificationToasts.js";function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var _="DC_appSettings",L=b(N);function U(r){var s,a,p,l=r.AppSettingsComponent,m=r.app,b=r.appData,B=r.appName,U=r.currentUser,G=r.isMultiRig,K=r.isSettingsDialogHidden,W=r.layoutEnvironment,Y=r.onAppRemove,z=r.onCloneDashboard,F=r.onSettingsChange,J=r.openIntercom,Q=r.rigId,X=r.segment,Z=r.toggleAppSettingsDialog,$=n(!1),ee=t($,2);ee[0];var te=ee[1],ne=n((function(){var e;return H(H({},c(m.settings)),{},{package:m.settings.package||(null==m||null===(e=m.package)||void 0===e?void 0:e.version)})})),oe=t(ne,2),ie=oe[0],re=oe[1],se=q(null==m||null===(s=m.app)||void 0===s?void 0:s.id),ae=n(!0),pe=t(ae,2),le=pe[0],ce=pe[1],de=o(null),me=Boolean(null===(a=de.current)||void 0===a?void 0:a.clientHeight),ue=M({isCompletionApp:X===w.COMPLETION,isSustainabilityApp:se,hasCustomAppSettings:me}),ge=m.id===R,fe=function(t,n){return re((function(o){return H(H({},o),{},e({},t,n))}))},he=function(e){return re((function(t){return H(H({},t),e)}))},ve=W&&"asset"===W.type,je=!(G||ve&&X===w.COMPLETION),Ce=ve?L:N;i((function(){d(te,200)(!0)}),[]);var ye=j("div",{ref:de,children:l&&j(l,{app:m,appData:b,settings:ie,onSettingChange:fe,onSettingsChange:he,layoutEnvironment:W,currentUser:U})}),be=C("div",{className:ue.modalTitleContainer,children:[j(P,{className:ue.appIcon,segment:null==m?void 0:m.segment,iconUrl:null==m||null===(p=m.icon)||void 0===p?void 0:p.url,height:48,width:48}),C("div",{children:[j("div",{children:"".concat(B," Settings")}),C("div",{"data-testid":"".concat(_,"_appstoreLink"),className:ue.appStoreButton,onClick:function(){var e,t;return window.open((t=null==m||null===(e=m.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(t)),"_top")},children:["Open in Appstore ",j(h,{className:ue.arrowIcon})]})]})]}),Ae=C("div",{className:ue.modalActions,children:[!K&&Y&&j(T,{appName:B,onAppRemove:Y}),C("div",{className:ue.mainActions,children:[j(D,{"data-testid":"".concat(_,"_cancel"),variation:"secondary",onClick:Z,children:"Cancel"}),K&&j(D,{variation:"primary",onClick:function(){return z()},children:"Copy Dashboard"}),!K&&j(D,{"data-testid":"".concat(_,"_save"),className:ue.saveButton,variation:"primary",onClick:function(){ie.package||ge?(F(ie),V("Successfully saved"),Z()):ce(!1)},children:"Save"})]})]}),Se=C(y,{children:[je&&j(Ce,{appKey:ge?null:m.app.app_key,appType:x[X],defaultValue:Q,isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:ve,label:"Asset",onSettingsChange:he,settings:ie}),j(I,{className:ue.appVersionSelect,appId:m.app.id,value:ie.package,onChange:function(e){return fe("package",e)}})]});return j(O,{open:!0,onClose:Z,title:be,contentContainerClassName:ue.modalContainer,modalTitleClassName:ue.modalTitle,closeIconClassName:ue.closeIcon,contentClassName:ue.modalContent,actions:Ae,children:C(A,{ErrorView:S,openIntercom:J,children:[j(E,{open:!le&&!ie.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ce(!0)}}),K&&j(k,{}),!K&&C(y,{children:[C(u,{defaultExpanded:!0,className:ue.assetAccordion,children:[j(g,{classes:{content:ue.summaryContent,expandIcon:ue.expandIcon},expandIcon:j(v,{}),children:"Asset"}),j(f,{classes:{root:ue.accordionDetails},children:Se})]}),C(u,{className:ue.accordion,defaultExpanded:!0,children:[j(g,{classes:{content:ue.summaryContent,expandIcon:ue.expandIcon},expandIcon:j(v,{}),children:"App Settings"}),j(f,{classes:{root:ue.accordionDetails},children:ye})]})]})]})})}U.propTypes={AppSettingsComponent:r,app:s({}).isRequired,appData:s({}).isRequired,appName:a.isRequired,currentUser:s({}).isRequired,isMultiRig:p.isRequired,isSettingsDialogHidden:p,layoutEnvironment:s({}).isRequired,onAppRemove:l,onCloneDashboard:l,onSettingsChange:l.isRequired,segment:a.isRequired,toggleAppSettingsDialog:l.isRequired},U.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:m};export{_ as PAGE_NAME,U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DcFullscreenElemsCoordinatorProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,EAAE,EACF,cAAc,EACd,QAAQ,EACR,SAAS,EACV,MAAM,OAAO,CAAC;AASf,UAAU,KAAK;IACb,wBAAwB,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACnC;AAED,UAAU,WAAW;IACnB,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,UAAU,GAAG;IACX,WAAW,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClE;AAgBD;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,oCAAoC,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"DcFullscreenElemsCoordinatorProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,EAAE,EACF,cAAc,EACd,QAAQ,EACR,SAAS,EACV,MAAM,OAAO,CAAC;AASf,UAAU,KAAK;IACb,wBAAwB,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACnC;AAED,UAAU,WAAW;IACnB,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,UAAU,GAAG;IACX,WAAW,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClE;AAgBD;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,oCAAoC,EAAE,EAAE,CAAC,KAAK,CA4H1D,CAAC;AAEF,wBAAgB,+BAA+B,QAE9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as n,__awaiter as r,__generator as e}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import{createContext as i,useRef as u,useMemo as o,useContext as c}from"react";var s;!function(n){n.CLOSED="CLOSED",n.OPENNING="OPENNING",n.OPENED="OPENED",n.CLOSING="CLOSING"}(s||(s={}));var a=i(null),l=function(i){var c=i.setIsFullscreenModalMode,l=i.children,f={name:s.CLOSED,currentElementInfo:null},d=u({}),E=o((function(){function n(n){var t=n.transitionFn,i=n.plannedAfterTransitionFinishCb;return r(this,void 0,void 0,(function(){var n;return e(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.error("Transition error: ",n),[3,3];case 3:return i(),[2]}}))}))}function t(n){var r=n.id;d.current[r]={name:s.OPENED,currentElementInfo:n},d.current[r].currentElementInfo.setIsOpened(!0)}function i(r){var e=r.id;d.current[e]={name:s.OPENNING,currentElementInfo:null},n({transitionFn:function(){return c(!0)},plannedAfterTransitionFinishCb:function(){t(r)}})}function u(t){var i=this;d.current[t].name=s.CLOSING,n({transitionFn:function(){return r(i,void 0,void 0,(function(){var n;return e(this,(function(r){return null===(n=d.current[t].currentElementInfo)||void 0===n||n.setIsOpened(!1),d.current[t].currentElementInfo=null,Object.keys(d.current).some((function(n){var r=d.current[n].name;return r===s.OPENNING||r===s.OPENED}))?[2]:[2,c(!1)]}))}))},plannedAfterTransitionFinishCb:function(){d.current[t].name=s.CLOSED}})}return{requestOpen:function(n){var r,e=n.id;switch((null===(r=d.current)||void 0===r?void 0:r[e])||(d.current[e]=f),d.current[n.id].name){case s.CLOSED:i(n);break;case s.OPENNING:case s.OPENED:t(n);break;case s.CLOSING:i(n)}},requestClose:function(n,r){var e;void 0===r&&(r=!1);var t=n.id;if((null===(e=d.current)||void 0===e?void 0:e[t])||(d.current[t]=f),r)return delete d.current[t],c(!1);u(t)}}}),[c]);return t(a.Provider,n({value:E},{children:l}))};function f(){return c(a)}export{l as DcFullscreenElemsCoordinatorProvider,f as useDcFullscreenElemsCoordinator};
|
|
1
|
+
import{__assign as n,__awaiter as r,__generator as e}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import{createContext as i,useRef as u,useMemo as o,useContext as c}from"react";var s;!function(n){n.CLOSED="CLOSED",n.OPENNING="OPENNING",n.OPENED="OPENED",n.CLOSING="CLOSING"}(s||(s={}));var a=i(null),l=function(i){var c=i.setIsFullscreenModalMode,l=i.children,f={name:s.CLOSED,currentElementInfo:null},d=u({}),E=o((function(){function n(n){var t=n.transitionFn,i=n.plannedAfterTransitionFinishCb;return r(this,void 0,void 0,(function(){var n;return e(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.error("Transition error: ",n),[3,3];case 3:return i(),[2]}}))}))}function t(n){var r=n.id;d.current[r]={name:s.OPENED,currentElementInfo:n},d.current[r].currentElementInfo.setIsOpened(!0)}function i(r){var e=r.id;d.current[e]={name:s.OPENNING,currentElementInfo:null},n({transitionFn:function(){return c(!0)},plannedAfterTransitionFinishCb:function(){t(r)}})}function u(t){var i=this;d.current[t].name=s.CLOSING,n({transitionFn:function(){return r(i,void 0,void 0,(function(){var n;return e(this,(function(r){return null===(n=d.current[t].currentElementInfo)||void 0===n||n.setIsOpened(!1),d.current[t].currentElementInfo=null,Object.keys(d.current).some((function(n){var r=d.current[n].name;return r===s.OPENNING||r===s.OPENED}))?[2]:[2,c(!1)]}))}))},plannedAfterTransitionFinishCb:function(){d.current[t]&&(d.current[t].name=s.CLOSED)}})}return{requestOpen:function(n){var r,e=n.id;switch((null===(r=d.current)||void 0===r?void 0:r[e])||(d.current[e]=f),d.current[n.id].name){case s.CLOSED:i(n);break;case s.OPENNING:case s.OPENED:t(n);break;case s.CLOSING:i(n)}},requestClose:function(n,r){var e;void 0===r&&(r=!1);var t=n.id;if((null===(e=d.current)||void 0===e?void 0:e[t])||(d.current[t]=f),r)return delete d.current[t],c(!1);u(t)}}}),[c]);return t(a.Provider,n({value:E},{children:l}))};function f(){return c(a)}export{l as DcFullscreenElemsCoordinatorProvider,f as useDcFullscreenElemsCoordinator};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevCenterAppView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DevCenterAppView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.tsx"],"names":[],"mappings":";AASA,eAAO,MAAM,sBAAsB,YAAa,MAAM,KAAG,MAAyC,CAAC;AAEnG,iBAAS,gBAAgB,CAAC,EACxB,YAAY,EACZ,GAAG,EACH,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,uBAAuB,GACxB;;;;;;;;;;;;;CAAA,eA6IA;kBA1JQ,gBAAgB;;;;;;;;AAmKzB,eAAe,gBAAgB,CAAC"}
|
package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import a from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import
|
|
1
|
+
import{__assign as t}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import a from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import r from"../../../../LoadingIndicator/LoadingIndicator.js";import{SEGMENTS as i}from"../../../../../constants/segment.js";import o from"../../../../EmptyState/EmptyState.js";import{ChooseAssetButton as p}from"./components/ChooseAssetButton.js";import s from"../AppInfoMessage/AppInfoMessage.js";var n="DevCenterAppView",l=function(t){return"".concat(t," has no active well")};function d(d){var c,S=d.AppComponent,u=d.app,m=d.appData,A=d.appProps,E=d.availability,g=d.isCLIApp,P=d.isLoading,f=d.isMultiRig,b=d.layoutEnvironment,M=d.openIntercom,v=d.segment,y=d.toggleAppSettingsDialog,I=A.appHeaderProps;if(!u.package)return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),title:o.APP_MESSAGES.appPackageWasNotFound.title,subtitle:o.APP_MESSAGES.appPackageWasNotFound.subtitle,image:o.IMAGES.AppLoadingError})}));if(P)return e(s,t({appHeaderProps:I},{children:e(r,{})}));if(!E.hasProductSubscription||!E.isAppSubscribedForAsset){var _=o.APP_MESSAGES,H=_.appNotSubscribed,N=_.appNotSubscribedForAsset,h=o.IMAGES.NoSubscription,G=E.hasProductSubscription?N:H,F=G.title,C=G.subtitle;return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),title:F,subtitle:C,image:h})}))}if(!S)return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),title:o.APP_MESSAGES.appComponentWasNotFound.title,image:o.IMAGES.AppLoadingError})}));if(!f){var j=g&&e(p,{toggleAppSettingsDialog:y});if(m.rig&&!m.well)return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),title:l(m.rig.name),image:o.IMAGES.RigHasNoActiveWell,subtitle:j})}));if("general"===(null==b?void 0:b.type)&&v===i.COMPLETION&&!m.fracFleet)return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),title:o.APP_MESSAGES.fracFleetWasNotFound.title,image:o.IMAGES.FracFleetHasNoActivePad,subtitle:j})}));if("general"===(null==b?void 0:b.type)&&v===i.COMPLETION&&!(null===(c=m.fracFleet)||void 0===c?void 0:c.current_pad_id)&&!u.settings.padId)return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),image:o.IMAGES.FracFleetHasNoActivePad,subtitle:j,title:o.APP_MESSAGES.fracFleetHasNoPad.title})}));if("general"===(null==b?void 0:b.type)&&v===i.COMPLETION&&(!m.wells||m.wells.length<1))return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),image:o.IMAGES.NoWellsSelected,subtitle:j,title:o.APP_MESSAGES.padHasNoWells.title})}));if(!(m.rig||m.well||m.settings||m.wells))return e(s,t({appHeaderProps:I},{children:e(o,{"data-testid":"".concat(n,"_EmptyState"),image:o.IMAGES.AssetHasNoData,subtitle:j,title:o.APP_MESSAGES.noAssetData.title})}))}return e(a,t({appHeaderProps:I,openIntercom:M},{children:e(S,t({app:u},u.settings,m,A))}))}d.defaultProps={availability:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}};export{d as default,l as getNoActiveWellMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useEffect as o}from"react";import r from"prop-types";import{makeStyles as i}from"@material-ui/core";import s from"classnames";import n from"moment-timezone";import{jsx as p}from"react/jsx-runtime";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"lodash";import"@material-ui/icons";import"../../../utils/mobileDetect.js";import"../../IconButton/index.js";import"../../Modal/CorvaModal.css.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../AppIcon/AppIcon.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import m from"../DevCenterAppContainer/DevCenterAppContainer.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"./DevCenterIsolatedApp.js";import a from"../AppContext.js";import"../../AssetEditor/index.js";import"../../AssetEditorV2/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.js";import"../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../Annotations/AnnotationsContext.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../EmptyState/EmptyState.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ChartActionsList/ChartActionsList.js";import"../../CopyToClipboard/CopyToClipboard.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../ColorPicker/ColorPicker.js";import"../../Chart/components/ChartButton.js";import"../../Chart/components/ChartButtons.js";import"../../Chart/components/ChartWrapper.js";import"../../Chart/components/AxisDropdown.js";import"../../Chart/components/ChartSelect.js";import"../../Chart/components/buttons/DragToZoomButton.js";import"../../Chart/components/buttons/ZoomInButton.js";import"../../Chart/components/buttons/ZoomOutButton.js";import"../../Chart/components/buttons/PanButton.js";import"../../Chart/components/buttons/ResetZoomButton.js";import"../../Chart/components/buttons/HideAxesButton.js";import"../../Chart/components/buttons/ChartTypeButton.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.js";import"../DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../Button/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Select/SelectFilterBy.js";import"../../CustomSelect/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../GradientManager/configuration/constants.js";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.js";import"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientManager.styles.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Drillstring/BHATileIcon.js";import"../../Drillstring/BHATile/BHATile.js";import"../../Drillstring/BHAList/BHAList.js";import"../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../Casing/CasingTable/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTileIcon.js";import"../../Casing/CasingTableV2/CasingTableV2.js";import"../../Casing/CasingTile/CasingTile.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../clients/jsonApi/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../utils/env.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../OffsetWellPickerV3/index.js";import"../../OffsetWellChips/Chip.js";import"../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../Notifications/Toast.js";import"../../Toaster/Toaster.js";import"../../ConfirmationDialog.js";import"../../TextLink/index.js";import"../../Avatar/index.js";import"../../Template/TemplatePopover/index.js";import"../../Template/TemplateSharingDialog/index.js";import"../../MenuItem/index.js";import"../../MiddleTruncate/MiddleTruncate.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PinnableFilters/PinnableFilters.js";import"../../HeaderLayout/HeaderLayout.js";import"../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../PadOffsetsPicker/OffsetAssetChip.js";import"../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../PadOffsetsPicker/StagesSelector.js";import"../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../Table/TableToolbar/TableToolbar.js";import"../../Table/TableContainer/TableContainer.js";import"../../Table/TableCell/TableCell.js";import"../../Tooltip/ScrollableTooltip.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";import"../../FilesLoader/Icons/FileIcon.js";import"../../SearchInput/index.js";import"../../FeedItem/FeedItem.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";import"../../HelpCenter/HelpCenterIcon.js";import"../../Autocomplete/Autocomplete.js";import"../../DocumentViewer/DocumentViewer.js";import"../../ColorPickerPalette/ColorPickerPalette.js";import"../../Search/Search.js";import"../../Search/components/Listbox.js";import"../../Search/components/Paper.js";import"../../Search/components/RecentSearches.js";import"../../Search/components/InputAdornmentLeft.js";import"../../Search/components/Groups.js";import"../../StatusBadge/index.js";import"../../Attachment/index.js";import"../../EmojiIconButton.js";import"../../FileUploadIconButton.js";import"../../FilePreview/index.js";import"../../FailedFileUploading.js";import"../../UserMention/index.js";import"../../CommentsInfo/index.js";import"../../CommentInput/index.js";import"../../Comment/index.js";import"../../CommentLoader.js";import"../../AssetNameLabel/AssetStatusBadge.js";import"../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../AssetEditorV2/components/SelectItem.js";import"../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import l from"../../../hocs/withMUIProvidersHOC.js";import{THEMES as c}from"../../../constants/theme.js";import{LOCAL_STORAGE_APP_THEME_KEY as j}from"../../../CLI/hocs/constants.js";import{setThemeVariables as d}from"../../../utils/themeVariables.js";import{isPDFReportView as C}from"../../../CLI/hocs/utils.js";import{PermissionsContext as u}from"../../../permissions/PermissionsContext.js";import{updateUserUnits as A}from"../../../utils/index.js";import"../../../config/initGlobalDependencies.js";import"../../../styles/globalStyles.js";import{useXProps as g}from"./effects/useXProps.js";import{ISOLATED_PAGE_APP_CONTAINER_ID as f}from"./constants.js";import{replaceUndefinedValuesWithNull as b}from"./utils/replaceUndefinedValuesWithNull.js";import"./DevCenterAppZoidComponent.js";var S=["appContextValue","globalMixpanelEventTracker","globalNotificationToastsAPI","onSettingChange","onSettingsChange","permissionsContextValue","timezone","userUnits"];function P(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function h(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?P(Object(r),!0).forEach((function(o){t(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=l(m),D=i((function(){return{"@global":{body:{backgroundColor:"transparent",overflow:"hidden"}}}}));function T(t){var r,i=t.CLIAppComponent,m=t.CLIAppSettings,l=t.containerReportClassName;D();var P=g(),T=P.appContextValue,v=P.globalMixpanelEventTracker,I=P.globalNotificationToastsAPI,y=P.onSettingChange,E=P.onSettingsChange,B=P.permissionsContextValue,V=P.timezone,L=P.userUnits,O=e(P,S),k=O.location.pathname.startsWith("/reports/")||C,M=null!==(r=localStorage.getItem(j))&&void 0!==r?r:c.DARK,F=!k&&M===c.DARK;return o((function(){d(F)}),[F]),o((function(){window[Symbol.for("notificationToasts")]=I,window[Symbol.for("logToMixpanel")]=v}),[I,v]),o((function(){A({userUnits:L})}),[]),o((function(){return V&&n.tz.setDefault(V),function(){return n.tz.setDefault(null)}}),[V]),p(u.Provider,{value:B,children:p(a.Provider,{value:T,children:p("div",{id:f,className:s(k&&l),children:p(x,h(h({},O),{},{theme:F?c.DARK:c.LIGHT,onSettingsChange:function(t){return E(b(t))},onSettingChange:function(t,e){return y(t,b(e))},CLIAppComponent:i,CLIAppSettings:m}))})})})}T.propTypes={CLIAppComponent:r.node,CLIAppSettings:r.node,containerReportClassName:r.string},T.defaultProps={CLIAppComponent:null,CLIAppSettings:null,containerReportClassName:null};export{T as DevCenterIsolatedAppPage};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useEffect as o}from"react";import r from"prop-types";import{makeStyles as i}from"@material-ui/core";import s from"classnames";import n from"moment-timezone";import{jsx as p}from"react/jsx-runtime";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"lodash";import"@material-ui/icons";import"../../../utils/mobileDetect.js";import"../../IconButton/index.js";import"../../Modal/CorvaModal.css.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../AppIcon/AppIcon.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import m from"../DevCenterAppContainer/DevCenterAppContainer.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"./DevCenterIsolatedApp.js";import a from"../AppContext.js";import"../../AssetEditor/index.js";import"../../AssetEditorV2/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.js";import"../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../Annotations/AnnotationsContext.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../EmptyState/EmptyState.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ChartActionsList/ChartActionsList.js";import"../../CopyToClipboard/CopyToClipboard.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../ColorPicker/ColorPicker.js";import"../../Chart/components/ChartButton.js";import"../../Chart/components/ChartButtons.js";import"../../Chart/components/ChartWrapper.js";import"../../Chart/components/AxisDropdown.js";import"../../Chart/components/ChartSelect.js";import"../../Chart/components/buttons/DragToZoomButton.js";import"../../Chart/components/buttons/ZoomInButton.js";import"../../Chart/components/buttons/ZoomOutButton.js";import"../../Chart/components/buttons/PanButton.js";import"../../Chart/components/buttons/ResetZoomButton.js";import"../../Chart/components/buttons/HideAxesButton.js";import"../../Chart/components/buttons/ChartTypeButton.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.js";import"../DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../Button/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Select/SelectFilterBy.js";import"../../CustomSelect/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../GradientManager/configuration/constants.js";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.js";import"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientManager.styles.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Drillstring/BHATileIcon.js";import"../../Drillstring/BHATile/BHATile.js";import"../../Drillstring/BHAList/BHAList.js";import"../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../Casing/CasingTable/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTileIcon.js";import"../../Casing/CasingTableV2/CasingTableV2.js";import"../../Casing/CasingTile/CasingTile.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../clients/jsonApi/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../utils/env.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../OffsetWellPickerV3/index.js";import"../../OffsetWellChips/Chip.js";import"../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../Notifications/Toast.js";import"../../Toaster/Toaster.js";import"../../ConfirmationDialog.js";import"../../TextLink/index.js";import"../../Avatar/index.js";import"../../Template/TemplatePopover/index.js";import"../../Template/TemplateSharingDialog/index.js";import"../../MenuItem/index.js";import"../../MiddleTruncate/MiddleTruncate.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PinnableFilters/PinnableFilters.js";import"../../HeaderLayout/HeaderLayout.js";import"../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../PadOffsetsPicker/OffsetAssetChip.js";import"../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../PadOffsetsPicker/StagesSelector.js";import"../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../Table/TableToolbar/TableToolbar.js";import"../../Table/TableContainer/TableContainer.js";import"../../Table/TableCell/TableCell.js";import"../../Tooltip/ScrollableTooltip.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";import"../../FilesLoader/Icons/FileIcon.js";import"../../SearchInput/index.js";import"../../FeedItem/FeedItem.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";import"../../HelpCenter/HelpCenterIcon.js";import"../../Autocomplete/Autocomplete.js";import"../../DocumentViewer/DocumentViewer.js";import"../../ColorPickerPalette/ColorPickerPalette.js";import"../../Search/Search.js";import"../../Search/components/Listbox.js";import"../../Search/components/Paper.js";import"../../Search/components/RecentSearches.js";import"../../Search/components/InputAdornmentLeft.js";import"../../Search/components/Groups.js";import"../../StatusBadge/index.js";import"../../Attachment/index.js";import"../../EmojiIconButton.js";import"../../FileUploadIconButton.js";import"../../FilePreview/index.js";import"../../FailedFileUploading.js";import"../../UserMention/index.js";import"../../CommentsInfo/index.js";import"../../CommentInput/index.js";import"../../Comment/index.js";import"../../CommentLoader.js";import"../../AssetNameLabel/AssetStatusBadge.js";import"../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../AssetEditorV2/components/SelectItem.js";import"../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import l from"../../../hocs/withMUIProvidersHOC.js";import"../../../hocs/withAssetEditorLockHOC.js";import{THEMES as c}from"../../../constants/theme.js";import{LOCAL_STORAGE_APP_THEME_KEY as j}from"../../../CLI/hocs/constants.js";import{setThemeVariables as d}from"../../../utils/themeVariables.js";import{isPDFReportView as C}from"../../../CLI/hocs/utils.js";import{PermissionsContext as u}from"../../../permissions/PermissionsContext.js";import{updateUserUnits as A}from"../../../utils/index.js";import"../../../config/initGlobalDependencies.js";import"../../../styles/globalStyles.js";import{useXProps as g}from"./effects/useXProps.js";import{ISOLATED_PAGE_APP_CONTAINER_ID as f}from"./constants.js";import{replaceUndefinedValuesWithNull as b}from"./utils/replaceUndefinedValuesWithNull.js";import"./DevCenterAppZoidComponent.js";var S=["appContextValue","globalMixpanelEventTracker","globalNotificationToastsAPI","onSettingChange","onSettingsChange","permissionsContextValue","timezone","userUnits"];function P(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function h(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?P(Object(r),!0).forEach((function(o){t(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=l(m),D=i((function(){return{"@global":{body:{backgroundColor:"transparent",overflow:"hidden"}}}}));function T(t){var r,i=t.CLIAppComponent,m=t.CLIAppSettings,l=t.containerReportClassName;D();var P=g(),T=P.appContextValue,v=P.globalMixpanelEventTracker,I=P.globalNotificationToastsAPI,y=P.onSettingChange,E=P.onSettingsChange,B=P.permissionsContextValue,L=P.timezone,V=P.userUnits,O=e(P,S),k=O.location.pathname.startsWith("/reports/")||C,M=null!==(r=localStorage.getItem(j))&&void 0!==r?r:c.DARK,w=!k&&M===c.DARK;return o((function(){d(w)}),[w]),o((function(){window[Symbol.for("notificationToasts")]=I,window[Symbol.for("logToMixpanel")]=v}),[I,v]),o((function(){A({userUnits:V})}),[]),o((function(){return L&&n.tz.setDefault(L),function(){return n.tz.setDefault(null)}}),[L]),p(u.Provider,{value:B,children:p(a.Provider,{value:T,children:p("div",{id:f,className:s(k&&l),children:p(x,h(h({},O),{},{theme:w?c.DARK:c.LIGHT,onSettingsChange:function(t){return E(b(t))},onSettingChange:function(t,e){return y(t,b(e))},CLIAppComponent:i,CLIAppSettings:m}))})})})}T.propTypes={CLIAppComponent:r.node,CLIAppSettings:r.node,containerReportClassName:r.string},T.defaultProps={CLIAppComponent:null,CLIAppSettings:null,containerReportClassName:null};export{T as DevCenterIsolatedAppPage};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default DevCenterAppErrorView;
|
|
2
|
-
declare function DevCenterAppErrorView({
|
|
3
|
-
|
|
2
|
+
declare function DevCenterAppErrorView({ appHeaderProps, openIntercom }: {
|
|
3
|
+
appHeaderProps: any;
|
|
4
4
|
openIntercom: any;
|
|
5
5
|
}): JSX.Element;
|
|
6
6
|
declare namespace DevCenterAppErrorView {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevCenterAppErrorView.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DevCenterAppErrorView.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"],"names":[],"mappings":";AAgBA;;;gBAYC"}
|