@corva/ui 0.77.0-2 → 0.77.0-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/clients/index.js +1 -1
- package/cjs-bundle/clients/jsonApi/index.js +1 -1
- package/cjs-bundle/clients/sso/auth0.js +1 -0
- package/cjs-bundle/clients/sso/index.js +1 -0
- package/cjs-bundle/clients/sso/oauth2.js +1 -0
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/AssetEditor/effects/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartButtons.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.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/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/MenuItem/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/cjs-bundle/components/TextField/effects/index.js +1 -1
- package/cjs-bundle/components/TextField/index.js +1 -1
- package/cjs-bundle/components/TextLink/index.js +1 -1
- package/cjs-bundle/components/TruncatedText/index.js +1 -1
- package/clients/index.d.ts +1 -0
- package/clients/index.d.ts.map +1 -1
- package/clients/index.js +1 -1
- package/clients/jsonApi/index.d.ts +4 -1
- package/clients/jsonApi/index.d.ts.map +1 -1
- package/clients/jsonApi/index.js +1 -1
- package/clients/sso/auth0.d.ts +9 -0
- package/clients/sso/auth0.d.ts.map +1 -0
- package/clients/sso/auth0.js +1 -0
- package/clients/sso/index.d.ts +14 -0
- package/clients/sso/index.d.ts.map +1 -0
- package/clients/sso/index.js +1 -0
- package/clients/sso/oauth2.d.ts +11 -0
- package/clients/sso/oauth2.d.ts.map +1 -0
- package/clients/sso/oauth2.js +1 -0
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AssetEditor/effects/index.js +1 -1
- package/components/AssetEditorV2/effects/index.js +1 -1
- package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Chart/components/ChartButtons.d.ts +1 -1
- package/components/Chart/components/ChartButtons.js +1 -1
- package/components/Chart/components/ChartWrapper.d.ts +4 -4
- package/components/Chart/components/ChartWrapper.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.d.ts +2 -2
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.d.ts +2 -2
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.d.ts +1 -5
- package/components/Chart/components/buttons/HideAxesButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.d.ts +2 -2
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.d.ts +3 -3
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.d.ts +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.d.ts +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/ColorPicker/ColorPicker.d.ts +27 -3
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/DatePicker/index.d.ts.map +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.d.ts.map +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/MenuItem/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/components/TextField/effects/index.d.ts +2 -2
- package/components/TextField/effects/index.js +1 -1
- package/components/TextField/index.d.ts +18 -39
- package/components/TextField/index.d.ts.map +1 -1
- package/components/TextField/index.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/TruncatedText/index.d.ts +3 -3
- package/components/TruncatedText/index.js +1 -1
- package/package.json +2 -1
|
@@ -50,7 +50,6 @@ export function deleteFeedItem(feedItemId: any): Promise<any>;
|
|
|
50
50
|
export function getUserAutocomplete(type: any, value: any, companyId: any): Promise<any>;
|
|
51
51
|
export function getS3SignedUrl(filename: any, contentType: any): Promise<any>;
|
|
52
52
|
export function getS3DownloadLink(filename: any, contentDisposition?: string): Promise<any>;
|
|
53
|
-
export function getUserAuthSchemas(email: any): Promise<any>;
|
|
54
53
|
export function getFracFleetWells(options: any): Promise<any>;
|
|
55
54
|
export function getPadWells(padId: any, options: any): Promise<any>;
|
|
56
55
|
export function getTask(taskId: any): Promise<any>;
|
|
@@ -60,6 +59,10 @@ export function getUserSetting(userId: any, settingKey: any): Promise<any>;
|
|
|
60
59
|
export function logout(): Promise<any>;
|
|
61
60
|
export function getPermissionCheck(options?: {}): Promise<any>;
|
|
62
61
|
export function getDashboards(params?: {}): Promise<any>;
|
|
62
|
+
export function loginWithAuth0Token(platform: any, token: any): Promise<any>;
|
|
63
|
+
export function getUserAuthSchemas(queryParams: any): Promise<any>;
|
|
64
|
+
export function getUserAuthPlatform(platform: any): Promise<any>;
|
|
65
|
+
export function postUserAuthTokenExchange(platform: any, code: any): Promise<any>;
|
|
63
66
|
export * from "./postTaskAndWaitResult";
|
|
64
67
|
export function getLASFileList(assetId: any): Promise<any>;
|
|
65
68
|
export function getLASMetadata(assetId: any, fileName: any): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/jsonApi/index.js"],"names":[],"mappings":"AAYA,+CASC;AAED,2DAEC;AAED,qDAEC;AAED,6DAEC;AAED,4DAEC;AAED,oDAEC;AAED,wDAEC;AAED,8DAEC;AAED,sDAEC;AAED,8DAEC;AAED,oDAEC;AAED,0DAEC;AAED,iFAEC;AAED,6DAEC;AAED,wGAEC;AAED,wFAEC;AAED,uGAMC;AAED,6FAIC;AAED,sGAIC;AAED,kHAEC;AAED,sHAIC;AAED,wFAEC;AAED,4FAIC;AAED,sEAEC;AAED,6CAEC;AAED,qDAEC;AAED,6CAEC;AAED,8DAEC;AAwED;;;KAGK;AACL,8CAHW,MAAM,sBAoBhB;AAED,sEASC;AA+CD,4EAKC;AAED,kFAIC;AAED,kEAEC;AAED,8FAMC;AAED,8GAMC;AAED,qEAEC;AAED,qFAEC;AAED,qFAEC;AAED,2DAEC;AAED,kGAEC;AAED,iFAEC;AAED,qFAEC;AAED,kEAEC;AAED,4EAEC;AAED,8DAEC;AAED,yFAWC;AAED,8EAEC;AAED,4FAKC;AAMD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/jsonApi/index.js"],"names":[],"mappings":"AAYA,+CASC;AAED,2DAEC;AAED,qDAEC;AAED,6DAEC;AAED,4DAEC;AAED,oDAEC;AAED,wDAEC;AAED,8DAEC;AAED,sDAEC;AAED,8DAEC;AAED,oDAEC;AAED,0DAEC;AAED,iFAEC;AAED,6DAEC;AAED,wGAEC;AAED,wFAEC;AAED,uGAMC;AAED,6FAIC;AAED,sGAIC;AAED,kHAEC;AAED,sHAIC;AAED,wFAEC;AAED,4FAIC;AAED,sEAEC;AAED,6CAEC;AAED,qDAEC;AAED,6CAEC;AAED,8DAEC;AAwED;;;KAGK;AACL,8CAHW,MAAM,sBAoBhB;AAED,sEASC;AA+CD,4EAKC;AAED,kFAIC;AAED,kEAEC;AAED,8FAMC;AAED,8GAMC;AAED,qEAEC;AAED,qFAEC;AAED,qFAEC;AAED,2DAEC;AAED,kGAEC;AAED,iFAEC;AAED,qFAEC;AAED,kEAEC;AAED,4EAEC;AAED,8DAEC;AAED,yFAWC;AAED,8EAEC;AAED,4FAKC;AAMD,8DAEC;AAED,oEAEC;AAED,mDAEC;AAED,qDAEC;AAwDD,qFAEC;AAED,2EAEC;AAED,uCAEC;AAED,+DAEC;AAED,yDAEC;AAED,6EAKC;AAED,mEAEC;AAED,iEAEC;AAED,kFAEC;;AArWM,2DAyBN;AAEM,0EAQN;AAEM,iGAoBN;AAEM;;;;mBAKN;AAEM;;;iBAEN;AAoCM,wEAEN;AAEM,uEAEN;AAEM;;;iBAKN;AAEM,yFAEN;AAEM,8EAEN;AAEM,mFAEN;AAEM;;;;iBAMN;AAEM;;;;;iBAQN;AAmGM,2EAEN;AAkBM,mEAEN;AAEM,2EAEN;AAEM;;;iBAWN;AAEM;;;iBAON;AAEM,8EAEN;AAEM,2FAGN;AAEM,qDAaN"}
|
package/clients/jsonApi/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{range as e,flattenDepth as a}from"lodash";import*as c from"query-string";import{APIException as u,baseUrl as p,get as s,post as o,del as i,put as f,sendFormData as l,patch as h}from"../api/apiCore.js";import{CORVA_API_URLS as v}from"../constants.js";export{postTaskAndWaitResult}from"./postTaskAndWaitResult.js";function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function m(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function y(){return w.apply(this,arguments)}function w(){return(w=n(r.mark((function t(){var n,e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(p,"/v1/users/current"),{credentials:"include"});case 2:return n=t.sent,t.next=5,n.json();case 5:if(e=t.sent,null!=n&&n.ok){t.next=8;break}throw new u(n,e);case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){return b.apply(this,arguments)}function b(){return b=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/integration/wellview/bha",n));case 2:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function g(t){return k.apply(this,arguments)}function k(){return(k=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return O.apply(this,arguments)}function O(){return O=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/wells/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function j(t){return A.apply(this,arguments)}function A(){return A=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/rigs/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function P(){return $.apply(this,arguments)}function $(){return $=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/rigs",n));case 2:case"end":return t.stop()}}),t)}))),$.apply(this,arguments)}function I(){return D.apply(this,arguments)}function D(){return D=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/programs",n));case 2:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}function T(t){return U.apply(this,arguments)}function U(){return U=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/assets/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function q(){return C.apply(this,arguments)}function C(){return C=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/assets",n));case 2:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function N(){return R.apply(this,arguments)}function R(){return R=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return E=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/pads",n));case 2:case"end":return t.stop()}}),t)}))),E.apply(this,arguments)}function J(){return K.apply(this,arguments)}function K(){return K=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/frac_fleets",n));case 2:case"end":return t.stop()}}),t)}))),K.apply(this,arguments)}function W(t){return F.apply(this,arguments)}function F(){return F=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/drillout_units/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),F.apply(this,arguments)}function G(){return M.apply(this,arguments)}function M(){return M=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)}))),M.apply(this,arguments)}function z(t,n,r){return B.apply(this,arguments)}function B(){return(B=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,n,r){return L.apply(this,arguments)}function L(){return(L=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e,"/").concat(a)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,n,r){return V.apply(this,arguments)}function V(){return V=n(r.mark((function t(n,e,a){var c,u=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=u.length>3&&void 0!==u[3]?u[3]:{},t.abrupt("return",s("/v1/data/".concat(n,"/").concat(e),m(m({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)}))),V.apply(this,arguments)}function X(t,n){return Y.apply(this,arguments)}function Y(){return Y=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function Z(t,n){return tt.apply(this,arguments)}function tt(){return tt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/aggregate/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function nt(t,n,r,e){return rt.apply(this,arguments)}function rt(){return rt=n(r.mark((function t(n,e,a,c){var u,p=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=p.length>4&&void 0!==p[4]?p[4]:{},t.abrupt("return",f("/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)}))),rt.apply(this,arguments)}function et(t,n,r,e,a){return at.apply(this,arguments)}function at(){return(at=n(r.mark((function t(n,e,a,c,u){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f("/api/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(t,n,r){return ut.apply(this,arguments)}function ut(){return(ut=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(t,n,r){return st.apply(this,arguments)}function st(){return(st=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/api/v1/data/".concat(n,"/").concat(e),a,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t){return it.apply(this,arguments)}function it(){return(it=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/competitor_analysis",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return lt.apply(this,arguments)}function lt(){return(lt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(t){return vt.apply(this,arguments)}function vt(){return(vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/picklists/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return mt.apply(this,arguments)}function mt(){return(mt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yt(t){return wt.apply(this,arguments)}function wt(){return(wt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies/".concat(n,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var _t,bt,gt,kt,xt=(_t=n(r.mark((function t(n){var e,a,c,u;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:e},{$group:a},{$sort:c}])},t.prev=4,t.next=7,Q("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return _t.apply(this,arguments)}),Ot=(bt=n(r.mark((function t(n,e){var a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(e,"'}"),t.prev=1,t.next=4,Q("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return bt.apply(this,arguments)}),jt=(gt=n(r.mark((function t(n,e,a){var c,u,p,s,o,i;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+n,"metadata.file":e},u=1e4*a,p={"data.md":1},s={data:"$data"},o={aggregate:JSON.stringify([{$match:c},{$sort:p},{$skip:u},{$limit:1e4},{$project:s}])},t.prev=6,t.next=9,Q("corva","formation-evaluation.data",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return gt.apply(this,arguments)}),At=(kt=n(r.mark((function t(n){var c,u,p,s,o;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=n.assetId,u=n.fileName,p=n.recordsCount,s=Math.ceil(p/1e4),o=e(s).map((function(t){return jt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return a(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return kt.apply(this,arguments)}),Pt=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return s("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function $t(t){switch(t){case"program":return I;case"rig":return P;case"well":return g;case"frac_fleet":return J;case"drillout_unit":return G;case"pad":return S;default:return q}}function It(t){switch(t){case"rig":return j;case"well":return x;default:return T}}var Dt=function(t,n){return s("/v2/apps/".concat(t,"/app_media"),n)},Tt=function(t,n){return i("/v2/apps/".concat(t,"/app_media/").concat(n),null)},Ut=function(t,n){var r=n.file,e=n.mediaType;return l("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},qt=function(t,n,r){return h("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},Ct=function(t,n){return s("/v2/apps/".concat(t,"/app_help_contents"),n)},Nt=function(t,n){return i("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},Rt=function(t,n){var r=n.title,e=n.description,a=n.url;return l("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},St=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return h("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function Et(t){return Jt.apply(this,arguments)}function Jt(){return Jt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",o("/v2/dashboard_app_annotations",m({app_annotation:n},e)));case 2:case"end":return t.stop()}}),t)}))),Jt.apply(this,arguments)}function Kt(t,n){return Wt.apply(this,arguments)}function Wt(){return(Wt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n),{app_annotation:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ft(t){return Gt.apply(this,arguments)}function Gt(){return(Gt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mt(t,n){return zt.apply(this,arguments)}function zt(){return zt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",m({app_id:n,asset_id:e},a)));case 2:case"end":return t.stop()}}),t)}))),zt.apply(this,arguments)}function Bt(t,n,r){return Ht.apply(this,arguments)}function Ht(){return(Ht=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},e&&(c.asset_id=e),a&&(c.parent_asset_id=a),t.abrupt("return",s("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Lt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Vt(t,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t){return Zt.apply(this,arguments)}function Zt(){return Zt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 2:case"end":return t.stop()}}),t)}))),Zt.apply(this,arguments)}function tn(t){return"".concat(p,"/v1/file/download?file_name=").concat(t)}function nn(t,n,r){return rn.apply(this,arguments)}function rn(){return(rn=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n,"/comments/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function en(t,n){return an.apply(this,arguments)}function an(){return(an=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function cn(t,n){return un.apply(this,arguments)}function un(){return(un=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n,"/comments/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pn(t){return sn.apply(this,arguments)}function sn(){return(sn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function on(t,n){return fn.apply(this,arguments)}function fn(){return(fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ln(t){return hn.apply(this,arguments)}function hn(){return(hn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vn(t,n,r){return dn.apply(this,arguments)}function dn(){return(dn=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},e&&(c.search=e),a&&(c.company_id=a),t.abrupt("return",s("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mn(t,n){return yn.apply(this,arguments)}function yn(){return(yn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/file/sign?file_name=".concat(encodeURIComponent(n),"&contentType=").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wn(t){return _n.apply(this,arguments)}function _n(){return _n=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",s("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(e),{}));case 2:case"end":return t.stop()}}),t)}))),_n.apply(this,arguments)}var bn=function(t,n){return s("/v2/apps/".concat(t,"/packages"),n)};function gn(t){return kn.apply(this,arguments)}function kn(){return(kn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/sessions/schemas",{email:n,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xn(t){return On.apply(this,arguments)}function On(){return(On=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function jn(t,n){return An.apply(this,arguments)}function An(){return(An=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/pads/".concat(n,"/app_wells"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Pn(t){return $n.apply(this,arguments)}function $n(){return($n=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function In(){return Dn.apply(this,arguments)}function Dn(){return Dn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)}))),Dn.apply(this,arguments)}var Tn=function(t){return s("/v2/apps/".concat(t,"/app_settings_templates"),{})},Un=function(t,n){return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},qn=function(t,n,r){var e=r.name,a=r.settings;return h("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},Cn=function(t,n){var r=n.name,e=n.settings;return o("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},Nn=function(t,n){return i("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Rn=function(t,n,r){var e=c.stringify({user_id:r},{arrayFormat:"bracket"});return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},Sn=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,p=t.companyId,o=t.ids;return s("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==p?p:void 0})};function En(t,n){return Jn.apply(this,arguments)}function Jn(){return(Jn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/users/".concat(n,"/settings"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kn(t,n){return Wn.apply(this,arguments)}function Wn(){return(Wn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fn(){return Gn.apply(this,arguments)}function Gn(){return(Gn=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mn(){return zn.apply(this,arguments)}function zn(){return zn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)}))),zn.apply(this,arguments)}function Bn(){return Hn.apply(this,arguments)}function Hn(){return Hn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/dashboards",n));case 2:case"end":return t.stop()}}),t)}))),Hn.apply(this,arguments)}export{Lt as closeLastAnnotation,Ft as deleteAnnotation,Nt as deleteAppHelpContent,Tt as deleteAppMedia,Nn as deleteAppSettingsTemplate,H as deleteAppStorage,z as deleteAppStorageRecords,ln as deleteFeedItem,cn as deleteFeedItemComment,At as getAllLASFileData,Yt as getAnnotationComments,Mt as getAnnotations,Ct as getAppHelpContent,Dt as getAppMedia,bn as getAppPackages,Un as getAppSettingsTemplate,Tn as getAppSettingsTemplates,Q as getAppStorage,T as getAsset,q as getAssets,ft as getCompanies,yt as getCompanyGoals,ot as getCompetitorAnalysisData,y as getCurrentUser,Bt as getDashboardLastAnnotations,Bn as getDashboards,X as getDataAppStorage,Z as getDataAppStorageAggregate,W as getDrilloutUnit,G as getDrilloutUnits,dt as getFavorites,tn as getFileDownloadLink,xn as getFracFleetWells,J as getFracFleets,jt as getLASFileDataByPage,xt as getLASFileList,Ot as getLASMetadata,jn as getPadWells,S as getPads,Mn as getPermissionCheck,ht as getPicklist,I as getPrograms,N as getResolvedAssets,j as getRig,P as getRigs,wn as getS3DownloadLink,mn as getS3SignedUrl,Pt as getStreams,Pn as getTask,gn as getUserAuthSchemas,vn as getUserAutocomplete,Kn as getUserSetting,Sn as getUsers,x as getWell,_ as getWellViewBha,g as getWells,Fn as logout,It as mapAssetByIdGetRequest,$t as mapAssetGetRequest,Kt as patchAnnotation,qn as patchAppSettingsTemplate,on as patchFeedItem,nn as patchFeedItemComment,Et as postAnnotation,Vt as postAnnotationComment,Cn as postAppSettingsTemplate,ct as postAppStorage,pt as postDataAppStorage,en as postFeedItemComment,In as postTask,nt as putAppStorage,et as putDataAppStorage,En as setCurrentUserSettings,Rn as shareAppSettingsTemplate,pn as toggleFeedItemLike,St as updateAppHelpContent,qt as updateAppMedia,Rt as uploadAppHelpContent,Ut as uploadAppMedia};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{range as e,flattenDepth as a}from"lodash";import*as c from"query-string";import{APIException as u,baseUrl as p,get as s,post as o,del as i,put as f,sendFormData as l,patch as h}from"../api/apiCore.js";import{CORVA_API_URLS as v}from"../constants.js";export{postTaskAndWaitResult}from"./postTaskAndWaitResult.js";function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function m(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function y(){return w.apply(this,arguments)}function w(){return(w=n(r.mark((function t(){var n,e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(p,"/v1/users/current"),{credentials:"include"});case 2:return n=t.sent,t.next=5,n.json();case 5:if(e=t.sent,null!=n&&n.ok){t.next=8;break}throw new u(n,e);case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(){return _.apply(this,arguments)}function _(){return _=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/integration/wellview/bha",n));case 2:case"end":return t.stop()}}),t)}))),_.apply(this,arguments)}function g(t){return k.apply(this,arguments)}function k(){return(k=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return O.apply(this,arguments)}function O(){return O=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/wells/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function j(t){return A.apply(this,arguments)}function A(){return A=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/rigs/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function P(){return $.apply(this,arguments)}function $(){return $=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/rigs",n));case 2:case"end":return t.stop()}}),t)}))),$.apply(this,arguments)}function I(){return D.apply(this,arguments)}function D(){return D=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/programs",n));case 2:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}function T(t){return U.apply(this,arguments)}function U(){return U=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/assets/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function q(){return C.apply(this,arguments)}function C(){return C=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/assets",n));case 2:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function N(){return R.apply(this,arguments)}function R(){return R=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return E=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/pads",n));case 2:case"end":return t.stop()}}),t)}))),E.apply(this,arguments)}function J(){return K.apply(this,arguments)}function K(){return K=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/frac_fleets",n));case 2:case"end":return t.stop()}}),t)}))),K.apply(this,arguments)}function W(t){return F.apply(this,arguments)}function F(){return F=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/drillout_units/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),F.apply(this,arguments)}function G(){return M.apply(this,arguments)}function M(){return M=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)}))),M.apply(this,arguments)}function z(t,n,r){return B.apply(this,arguments)}function B(){return(B=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,n,r){return L.apply(this,arguments)}function L(){return(L=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e,"/").concat(a)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,n,r){return V.apply(this,arguments)}function V(){return V=n(r.mark((function t(n,e,a){var c,u=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=u.length>3&&void 0!==u[3]?u[3]:{},t.abrupt("return",s("/v1/data/".concat(n,"/").concat(e),m(m({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)}))),V.apply(this,arguments)}function X(t,n){return Y.apply(this,arguments)}function Y(){return Y=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function Z(t,n){return tt.apply(this,arguments)}function tt(){return tt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/aggregate/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function nt(t,n,r,e){return rt.apply(this,arguments)}function rt(){return rt=n(r.mark((function t(n,e,a,c){var u,p=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=p.length>4&&void 0!==p[4]?p[4]:{},t.abrupt("return",f("/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)}))),rt.apply(this,arguments)}function et(t,n,r,e,a){return at.apply(this,arguments)}function at(){return(at=n(r.mark((function t(n,e,a,c,u){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f("/api/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(t,n,r){return ut.apply(this,arguments)}function ut(){return(ut=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(t,n,r){return st.apply(this,arguments)}function st(){return(st=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/api/v1/data/".concat(n,"/").concat(e),a,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t){return it.apply(this,arguments)}function it(){return(it=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/competitor_analysis",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return lt.apply(this,arguments)}function lt(){return(lt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(t){return vt.apply(this,arguments)}function vt(){return(vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/picklists/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return mt.apply(this,arguments)}function mt(){return(mt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yt(t){return wt.apply(this,arguments)}function wt(){return(wt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies/".concat(n,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var bt,_t,gt,kt,xt=(bt=n(r.mark((function t(n){var e,a,c,u;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:e},{$group:a},{$sort:c}])},t.prev=4,t.next=7,Q("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return bt.apply(this,arguments)}),Ot=(_t=n(r.mark((function t(n,e){var a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(e,"'}"),t.prev=1,t.next=4,Q("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return _t.apply(this,arguments)}),jt=(gt=n(r.mark((function t(n,e,a){var c,u,p,s,o,i;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+n,"metadata.file":e},u=1e4*a,p={"data.md":1},s={data:"$data"},o={aggregate:JSON.stringify([{$match:c},{$sort:p},{$skip:u},{$limit:1e4},{$project:s}])},t.prev=6,t.next=9,Q("corva","formation-evaluation.data",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return gt.apply(this,arguments)}),At=(kt=n(r.mark((function t(n){var c,u,p,s,o;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=n.assetId,u=n.fileName,p=n.recordsCount,s=Math.ceil(p/1e4),o=e(s).map((function(t){return jt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return a(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return kt.apply(this,arguments)}),Pt=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return s("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function $t(t){switch(t){case"program":return I;case"rig":return P;case"well":return g;case"frac_fleet":return J;case"drillout_unit":return G;case"pad":return S;default:return q}}function It(t){switch(t){case"rig":return j;case"well":return x;default:return T}}var Dt=function(t,n){return s("/v2/apps/".concat(t,"/app_media"),n)},Tt=function(t,n){return i("/v2/apps/".concat(t,"/app_media/").concat(n),null)},Ut=function(t,n){var r=n.file,e=n.mediaType;return l("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},qt=function(t,n,r){return h("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},Ct=function(t,n){return s("/v2/apps/".concat(t,"/app_help_contents"),n)},Nt=function(t,n){return i("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},Rt=function(t,n){var r=n.title,e=n.description,a=n.url;return l("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},St=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return h("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function Et(t){return Jt.apply(this,arguments)}function Jt(){return Jt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",o("/v2/dashboard_app_annotations",m({app_annotation:n},e)));case 2:case"end":return t.stop()}}),t)}))),Jt.apply(this,arguments)}function Kt(t,n){return Wt.apply(this,arguments)}function Wt(){return(Wt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n),{app_annotation:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ft(t){return Gt.apply(this,arguments)}function Gt(){return(Gt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mt(t,n){return zt.apply(this,arguments)}function zt(){return zt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",m({app_id:n,asset_id:e},a)));case 2:case"end":return t.stop()}}),t)}))),zt.apply(this,arguments)}function Bt(t,n,r){return Ht.apply(this,arguments)}function Ht(){return(Ht=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},e&&(c.asset_id=e),a&&(c.parent_asset_id=a),t.abrupt("return",s("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Lt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Vt(t,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t){return Zt.apply(this,arguments)}function Zt(){return Zt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 2:case"end":return t.stop()}}),t)}))),Zt.apply(this,arguments)}function tn(t){return"".concat(p,"/v1/file/download?file_name=").concat(t)}function nn(t,n,r){return rn.apply(this,arguments)}function rn(){return(rn=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n,"/comments/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function en(t,n){return an.apply(this,arguments)}function an(){return(an=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function cn(t,n){return un.apply(this,arguments)}function un(){return(un=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n,"/comments/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pn(t){return sn.apply(this,arguments)}function sn(){return(sn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function on(t,n){return fn.apply(this,arguments)}function fn(){return(fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ln(t){return hn.apply(this,arguments)}function hn(){return(hn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vn(t,n,r){return dn.apply(this,arguments)}function dn(){return(dn=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},e&&(c.search=e),a&&(c.company_id=a),t.abrupt("return",s("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mn(t,n){return yn.apply(this,arguments)}function yn(){return(yn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/file/sign?file_name=".concat(encodeURIComponent(n),"&contentType=").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wn(t){return bn.apply(this,arguments)}function bn(){return bn=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",s("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(e),{}));case 2:case"end":return t.stop()}}),t)}))),bn.apply(this,arguments)}var _n=function(t,n){return s("/v2/apps/".concat(t,"/packages"),n)};function gn(t){return kn.apply(this,arguments)}function kn(){return(kn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xn(t,n){return On.apply(this,arguments)}function On(){return(On=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/pads/".concat(n,"/app_wells"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function jn(t){return An.apply(this,arguments)}function An(){return(An=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Pn(){return $n.apply(this,arguments)}function $n(){return $n=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)}))),$n.apply(this,arguments)}var In=function(t){return s("/v2/apps/".concat(t,"/app_settings_templates"),{})},Dn=function(t,n){return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Tn=function(t,n,r){var e=r.name,a=r.settings;return h("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},Un=function(t,n){var r=n.name,e=n.settings;return o("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},qn=function(t,n){return i("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Cn=function(t,n,r){var e=c.stringify({user_id:r},{arrayFormat:"bracket"});return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},Nn=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,p=t.companyId,o=t.ids;return s("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==p?p:void 0})};function Rn(t,n){return Sn.apply(this,arguments)}function Sn(){return(Sn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/users/".concat(n,"/settings"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function En(t,n){return Jn.apply(this,arguments)}function Jn(){return(Jn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kn(){return Wn.apply(this,arguments)}function Wn(){return(Wn=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fn(){return Gn.apply(this,arguments)}function Gn(){return Gn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)}))),Gn.apply(this,arguments)}function Mn(){return zn.apply(this,arguments)}function zn(){return zn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/dashboards",n));case 2:case"end":return t.stop()}}),t)}))),zn.apply(this,arguments)}function Bn(t,n){return o("/v1/user_token",{auth:{token:n},platform:t})}function Hn(t){return Ln.apply(this,arguments)}function Ln(){return(Ln=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/sessions/schemas",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Qn(t){return Vn.apply(this,arguments)}function Vn(){return(Vn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/sessions/platforms/".concat(n),null));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Xn(t,n){return Yn.apply(this,arguments)}function Yn(){return(Yn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/sessions/platforms/".concat(n,"/token"),{code:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{Lt as closeLastAnnotation,Ft as deleteAnnotation,Nt as deleteAppHelpContent,Tt as deleteAppMedia,qn as deleteAppSettingsTemplate,H as deleteAppStorage,z as deleteAppStorageRecords,ln as deleteFeedItem,cn as deleteFeedItemComment,At as getAllLASFileData,Yt as getAnnotationComments,Mt as getAnnotations,Ct as getAppHelpContent,Dt as getAppMedia,_n as getAppPackages,Dn as getAppSettingsTemplate,In as getAppSettingsTemplates,Q as getAppStorage,T as getAsset,q as getAssets,ft as getCompanies,yt as getCompanyGoals,ot as getCompetitorAnalysisData,y as getCurrentUser,Bt as getDashboardLastAnnotations,Mn as getDashboards,X as getDataAppStorage,Z as getDataAppStorageAggregate,W as getDrilloutUnit,G as getDrilloutUnits,dt as getFavorites,tn as getFileDownloadLink,gn as getFracFleetWells,J as getFracFleets,jt as getLASFileDataByPage,xt as getLASFileList,Ot as getLASMetadata,xn as getPadWells,S as getPads,Fn as getPermissionCheck,ht as getPicklist,I as getPrograms,N as getResolvedAssets,j as getRig,P as getRigs,wn as getS3DownloadLink,mn as getS3SignedUrl,Pt as getStreams,jn as getTask,Qn as getUserAuthPlatform,Hn as getUserAuthSchemas,vn as getUserAutocomplete,En as getUserSetting,Nn as getUsers,x as getWell,b as getWellViewBha,g as getWells,Bn as loginWithAuth0Token,Kn as logout,It as mapAssetByIdGetRequest,$t as mapAssetGetRequest,Kt as patchAnnotation,Tn as patchAppSettingsTemplate,on as patchFeedItem,nn as patchFeedItemComment,Et as postAnnotation,Vt as postAnnotationComment,Un as postAppSettingsTemplate,ct as postAppStorage,pt as postDataAppStorage,en as postFeedItemComment,Pn as postTask,Xn as postUserAuthTokenExchange,nt as putAppStorage,et as putDataAppStorage,Rn as setCurrentUserSettings,Cn as shareAppSettingsTemplate,pn as toggleFeedItemLike,St as updateAppHelpContent,qt as updateAppMedia,Rt as uploadAppHelpContent,Ut as uploadAppMedia};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const provider: Auth0SSOProvider;
|
|
2
|
+
declare class Auth0SSOProvider {
|
|
3
|
+
configure: (options: any) => void;
|
|
4
|
+
handler: any;
|
|
5
|
+
authorize: (connection: any) => Promise<void>;
|
|
6
|
+
authenticate: () => Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=auth0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../../../src/clients/sso/auth0.js"],"names":[],"mappings":"AA2BA,wCAA+C;AAzB/C;IACE,kCAKE;IADA,aAA6D;IAG/D,8CAEE;IAEF,iCAUE;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/regenerator";import i from"auth0-js";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){n(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var s=new(r((function r(){var c,s=this;t(this,r),n(this,"configure",(function(e){var r=process.env.REACT_APP_AUTH0_REDIRECT_URI||e.redirectUri||"";s.handler=new i.WebAuth(a(a({},e),{},{redirectUri:r}))})),n(this,"authorize",(c=e(o.mark((function e(r){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.handler.authorize({connection:r});case 1:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})),n(this,"authenticate",e(o.mark((function e(){return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){s.handler.parseHash((function(t,n){t?r(new Error(t)):e(n.accessToken)}))})));case 1:case"end":return e.stop()}}),e)}))))})));export{s as provider};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function getSSOProvider(platform: any): {
|
|
2
|
+
configure: (options: any) => void;
|
|
3
|
+
handler: any;
|
|
4
|
+
authorize: (connection: any) => Promise<void>;
|
|
5
|
+
authenticate: () => Promise<any>;
|
|
6
|
+
} | {
|
|
7
|
+
configure: (options: any) => void;
|
|
8
|
+
options: any;
|
|
9
|
+
handler: import("@badgateway/oauth2-client").OAuth2Client;
|
|
10
|
+
authorize: (connection: any) => Promise<void>;
|
|
11
|
+
authenticate: () => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
export function isSSOPlatformSupported(platform: any): boolean;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/sso/index.js"],"names":[],"mappings":"AAGO;;;;;;;;;;;EASN;AAEM,+DAGN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provider as r}from"./auth0.js";import{provider as t}from"./oauth2.js";var u=function(u){switch(u){case"auth0":return r;case"oauth2":return t;default:return null}},n=function(r){return null!==u(r)};export{u as getSSOProvider,n as isSSOPlatformSupported};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const provider: Oauth2SSOProvider;
|
|
2
|
+
declare class Oauth2SSOProvider {
|
|
3
|
+
configure: (options: any) => void;
|
|
4
|
+
options: any;
|
|
5
|
+
handler: OAuth2Client;
|
|
6
|
+
authorize: (connection: any) => Promise<void>;
|
|
7
|
+
authenticate: () => Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=oauth2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../src/clients/sso/oauth2.js"],"names":[],"mappings":"AA6BA,yCAAgD;AAzBhD;IACE,kCAGE;IAFA,aAAsB;IACtB,sBAA6C;IAG/C,8CAQE;IAEF,iCAME;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/regenerator";import{OAuth2Client as a}from"@badgateway/oauth2-client";import{postUserAuthTokenExchange as i}from"../jsonApi/index.js";var s=new(r((function r(){var s,c=this;t(this,r),n(this,"configure",(function(e){c.options=e,c.handler=new a(c.options)})),n(this,"authorize",(s=e(o.mark((function e(r){var t,n;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.options.redirectUri,n=c.options.scope||r,e.next=4,c.handler.authorizationCode.getAuthorizeUri({redirectUri:t,scope:n});case 4:document.location=e.sent;case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})),n(this,"authenticate",e(o.mark((function e(){var r,t,n,a;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new URL(document.location).searchParams,t=r.get("code"),e.next=4,i("oauth2",t);case 4:return n=e.sent,a=n.token,e.abrupt("return",a.access_token);case 7:case"end":return e.stop()}}),e)}))))})));export{s as provider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as o}from"react";import{func as i,node as n,shape as s,number as p}from"prop-types";import{makeStyles as a,Popover as m,Grid as l,Typography as c}from"@material-ui/core";import d from"classnames";import{jsxs as j,jsx as C}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"lodash";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.js";import"../../utils/mobileDetect.js";import u from"../IconButton/index.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";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/appPackages.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"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/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"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.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"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.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"./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/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"../EChartsWrapper/EChartsWrapper.js";import A from"../Icons/SendIcon.js";import g from"./components/Content.js";var b=["anchorEl","anchorOrigin","onClose","onSave","startAdornment","endAdornment","customContent","userCompanyId"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function v(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?h(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var D=a((function(e){return{paper:{width:368,padding:16},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}}));function P(e){var i=e.anchorEl,n=e.anchorOrigin,s=e.onClose,p=e.onSave,a=e.startAdornment,h=e.endAdornment,P=e.customContent,S=e.userCompanyId,f=r(e,b),x=D(),y=o(),T=t(y,2),I=T[0],E=T[1];return j(m,v(v({open:!0,anchorEl:i,anchorOrigin:n,onClose:s,classes:{paper:x.paper}},f),{},{children:[C(g,{userCompanyId:S,startAdornment:a,endAdornment:h,customContent:P,setComment:E,onSave:function(){return p(I)},smallerView:!0,comment:I}),j(l,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:x.actions,children:[C(l,{item:!0,children:C(c,{"data-testid":"".concat("AddCommentPopover","_cancel"),variant:"caption",className:d(x.inputMain,x.cancelText,x.highlightedLabel),component:"div",gutterBottom:!0,onClick:s,children:"Cancel"})}),j(l,{item:!0,direction:"row",alignItems:"center",className:x.sendRow,children:[j(c,{variant:"caption",className:d(x.inputMain,x.inputHelper),component:"div",gutterBottom:!0,children:["Press ",C(c,{variant:"caption",color:"primary",className:d(x.inputMain,x.highlightedLabel),children:"Enter"})," to send"]}),C(u,{"data-testid":"".concat("AddCommentPopover","_send"),onClick:function(){return p(I)},className:x.sendIcon,disabled:!I||!I.body&&!I.attachment,children:C(A,{})})]})]})]}))}P.propTypes={onClose:i,onSave:i.isRequired,anchorEl:n.isRequired,anchorOrigin:s,startAdornment:n,endAdornment:n,customContent:n,userCompanyId:p.isRequired},P.defaultProps={anchorOrigin:{horizontal:"right",vertical:"bottom"},onClose:function(){},startAdornment:null,endAdornment:null,customContent:null};export{P as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as o}from"react";import{func as i,node as n,shape as s,number as p}from"prop-types";import{makeStyles as a,Popover as m,Grid as l,Typography as c}from"@material-ui/core";import d from"classnames";import{jsxs as j,jsx as C}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"lodash";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.js";import"../../utils/mobileDetect.js";import u from"../IconButton/index.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";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/appPackages.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"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/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"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.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"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.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"./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/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"../EChartsWrapper/EChartsWrapper.js";import A from"../Icons/SendIcon.js";import g from"./components/Content.js";var b=["anchorEl","anchorOrigin","onClose","onSave","startAdornment","endAdornment","customContent","userCompanyId"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function v(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?h(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var D=a((function(e){return{paper:{width:368,padding:16},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}}));function P(e){var i=e.anchorEl,n=e.anchorOrigin,s=e.onClose,p=e.onSave,a=e.startAdornment,h=e.endAdornment,P=e.customContent,S=e.userCompanyId,f=r(e,b),x=D(),y=o(),T=t(y,2),I=T[0],E=T[1];return j(m,v(v({open:!0,anchorEl:i,anchorOrigin:n,onClose:s,classes:{paper:x.paper}},f),{},{children:[C(g,{userCompanyId:S,startAdornment:a,endAdornment:h,customContent:P,setComment:E,onSave:function(){return p(I)},smallerView:!0,comment:I}),j(l,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:x.actions,children:[C(l,{item:!0,children:C(c,{"data-testid":"".concat("AddCommentPopover","_cancel"),variant:"caption",className:d(x.inputMain,x.cancelText,x.highlightedLabel),component:"div",gutterBottom:!0,onClick:s,children:"Cancel"})}),j(l,{item:!0,direction:"row",alignItems:"center",className:x.sendRow,children:[j(c,{variant:"caption",className:d(x.inputMain,x.inputHelper),component:"div",gutterBottom:!0,children:["Press ",C(c,{variant:"caption",color:"primary",className:d(x.inputMain,x.highlightedLabel),children:"Enter"})," to send"]}),C(u,{"data-testid":"".concat("AddCommentPopover","_send"),onClick:function(){return p(I)},className:x.sendIcon,disabled:!I||!I.body&&!I.attachment,children:C(A,{})})]})]})]}))}P.propTypes={onClose:i,onSave:i.isRequired,anchorEl:n.isRequired,anchorOrigin:s,startAdornment:n,endAdornment:n,customContent:n,userCompanyId:p.isRequired},P.defaultProps={anchorOrigin:{horizontal:"right",vertical:"bottom"},onClose:function(){},startAdornment:null,endAdornment:null,customContent:null};export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as e}from"react";import{node as t,number as r,func as o,bool as i,shape as s}from"prop-types";import{makeStyles as n}from"@material-ui/core";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"lodash";import"../../../icons/WithCustomSize.js";import"../../../icons/IconParkProvider.js";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"../../DevCenter/AppHeader/AppHeader.js";import"../../DevCenter/AppSideBar/AppSideBar.js";import"../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@material-ui/icons";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/appPackages.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"../../DevCenter/AppContext.js";import"../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../DevCenter/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"../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.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"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.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 a from"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../Popover.js";import"../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/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"../../EChartsWrapper/EChartsWrapper.js";import{isSuggestionsListOpened as l}from"../../UserMention/utils/index.js";var d=n({postInput:{paddingBottom:8},filePreviewWrapper:function(e){return{width:"100%",marginLeft:0,maxHeight:e.smallerView?127:251}}});function j(t){var r=t.userCompanyId,o=t.startAdornment,i=t.endAdornment,s=t.customContent,n=t.setComment,j=t.smallerView,c=t.onSave,C=t.comment,u=d({smallerView:j}),A=e();return p("div",{ref:A,children:[o,s||m(a,{userCompanyId:r,onChange:n,filePreviewWrapperClass:u.filePreviewWrapper,className:u.postInput,smallerView:j,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||l()||(e.preventDefault(),c(C))},suggestionsPortalHost:A.current,allowSuggestionsAboveCursor:!0}),i]})}j.propTypes={startAdornment:t,endAdornment:t,customContent:t,userCompanyId:r.isRequired,setComment:o,onSave:o,smallerView:i,comment:s()},j.defaultProps={startAdornment:null,endAdornment:null,customContent:null,setComment:function(){},onSave:function(){},smallerView:!1,comment:void 0};export{j as default};
|
|
1
|
+
import{useRef as e}from"react";import{node as t,number as r,func as o,bool as i,shape as s}from"prop-types";import{makeStyles as n}from"@material-ui/core";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"lodash";import"../../../icons/WithCustomSize.js";import"../../../icons/IconParkProvider.js";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"../../DevCenter/AppHeader/AppHeader.js";import"../../DevCenter/AppSideBar/AppSideBar.js";import"../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@material-ui/icons";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/appPackages.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"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../HelpCenter/HelpCenterIcon.js";import"../../DevCenter/AppContext.js";import"../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../DevCenter/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"../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../RangeSlider/RangeSlider.js";import"../../AdvancedSlider/AdvancedSlider.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"../../GradientPicker/GradientPicker.js";import"../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../../GradientManager/GradientPreview/GradientPreview.js";import"../../GradientManager/GradientSelect.styles.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 a from"../../PostInput/PostInput.js";import"../../KeyboardDateTimePicker.js";import"../Popover.js";import"../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/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"../../EChartsWrapper/EChartsWrapper.js";import{isSuggestionsListOpened as l}from"../../UserMention/utils/index.js";var d=n({postInput:{paddingBottom:8},filePreviewWrapper:function(e){return{width:"100%",marginLeft:0,maxHeight:e.smallerView?127:251}}});function j(t){var r=t.userCompanyId,o=t.startAdornment,i=t.endAdornment,s=t.customContent,n=t.setComment,j=t.smallerView,c=t.onSave,C=t.comment,u=d({smallerView:j}),A=e();return p("div",{ref:A,children:[o,s||m(a,{userCompanyId:r,onChange:n,filePreviewWrapperClass:u.filePreviewWrapper,className:u.postInput,smallerView:j,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||l()||(e.preventDefault(),c(C))},suggestionsPortalHost:A.current,allowSuggestionsAboveCursor:!0}),i]})}j.propTypes={startAdornment:t,endAdornment:t,customContent:t,userCompanyId:r.isRequired,setComment:o,onSave:o,smallerView:i,comment:s()},j.defaultProps={startAdornment:null,endAdornment:null,customContent:null,setComment:function(){},onSave:function(){},smallerView:!1,comment:void 0};export{j as default};
|
package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as i,useState as s,useRef as n}from"react";import{number as p,shape as a,string as m}from"prop-types";import l from"classnames";import{flowRight as d,get as c}from"lodash";import j from"moment";import{withStyles as C}from"@material-ui/core/styles";import{Fade as u,Paper as A,Typography as v}from"@material-ui/core";import D from"../../../../../Avatar/index.js";import b from"../../../../../../effects/useOutsideClick.js";import"../../../../../../utils/index.js";import{postAnnotation as f}from"../../../../../../clients/jsonApi/index.js";import{useAnnotationsDispatch as g}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as h}from"../../../../constants.js";import P from"../AnnotationInput/index.js";import S from"./style.css.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../../../../../Icons/AnnotationIcon.js";import"../../index.js";import"../../../LastAnnotation/index.js";import{jsxs as x,jsx as I}from"react/jsx-runtime";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../../icons/WithCustomSize.js";import"../../../../../../icons/IconParkProvider.js";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"../../../../../DevCenter/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"../../../../../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"../../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../AdvancedSlider/AdvancedSlider.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"../../../../../GradientPicker/GradientPicker.js";import"../../../../../GradientManager/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../../GradientManager/GradientSelect.styles.js";import"../../../../../GradientManager/GradientManager.styles.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../../../../clients/subscriptions.js";import"../../../../../../clients/api/apiCore.js";import"../../../../../../clients/constants.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"../../../../../../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/appPackages.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"../../../../../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"@babel/runtime/helpers/objectWithoutProperties";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/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"../../../../../EChartsWrapper/EChartsWrapper.js";import"querystring";import"uuid/v1";import"jsona";import"../../../../../StatusBadge/constants.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as T}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import"rollbar";import"@rollbar/react";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import{showSuccessNotification as y,showErrorNotification as E}from"../../../../../../utils/notificationToasts.js";var B=function(i){var p,a=i.appId,m=i.assetId,d=i.assetCompanyId,C=i.appSettings,T=i.currentUser,B=i.classes,k=i.location,F=i.dashboardType,V=g(),L=s(!1),M=r(L,2),W=M[0],O=M[1],R=n(null);b(R,(function(){O(!1)}));var w,H=(w=t(o.mark((function e(t,r,i){var s,n,p,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s={app_id:a,asset_id:m,body:t,active_until:r,attachment:{file_name:i&&i.attachmentName,s3_link:i&&i.attachmentUrl},settings:C},n={},F&&(n.dashboard_type=F),(p=c(k,"query.time"))&&(s.data_timestamp=j(p).format()),e.next=8,f(s,n);case 8:l=e.sent,V({type:h,annotation:l}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),E("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:y("Annotation has been added"),O(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return w.apply(this,arguments)});return x("div",{className:S.cAddAnnotationFormInput,children:[I(D,{displayName:"".concat(T.first_name," ").concat(T.last_name),imgSrc:T.profile_photo,size:36}),x("div",{className:l(S.cAddAnnotationFormInputPaper,(p={},e(p,S.cAddAnnotationFormInputPaperOpened,W),e(p,S.cAddAnnotationFormInputPaperClosed,!W),p)),children:[I(u,{in:!W,timeout:500,children:I(A,{className:S.cAddAnnotationFormInputPaperLabel,children:I(v,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:B.inputLabel,onClick:function(){return O(!0)},children:"Type annotation here"})})}),I(u,{in:W,timeout:100,children:I("div",{className:S.cAddAnnotationFormInputPaperAddAnnotation,children:W&&I(P,{onSend:H,assetCompanyId:d,currentUser:T})})})]})]})};B.propTypes={appId:p.isRequired,assetId:p.isRequired,assetCompanyId:p.isRequired,appSettings:a().isRequired,currentUser:a({}),classes:a().isRequired,location:a().isRequired,dashboardType:m},B.defaultProps={currentUser:{},dashboardType:null};var k=d([C((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),T])(i(B));export{k as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as i,useState as s,useRef as n}from"react";import{number as p,shape as a,string as m}from"prop-types";import l from"classnames";import{flowRight as d,get as c}from"lodash";import j from"moment";import{withStyles as C}from"@material-ui/core/styles";import{Fade as u,Paper as A,Typography as v}from"@material-ui/core";import D from"../../../../../Avatar/index.js";import b from"../../../../../../effects/useOutsideClick.js";import"../../../../../../utils/index.js";import{postAnnotation as f}from"../../../../../../clients/jsonApi/index.js";import{useAnnotationsDispatch as h}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as g}from"../../../../constants.js";import P from"../AnnotationInput/index.js";import S from"./style.css.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../../../../../Icons/AnnotationIcon.js";import"../../index.js";import"../../../LastAnnotation/index.js";import{jsxs as x,jsx as I}from"react/jsx-runtime";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../../icons/WithCustomSize.js";import"../../../../../../icons/IconParkProvider.js";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"../../../../../DevCenter/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"../../../../../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"../../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../AdvancedSlider/AdvancedSlider.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"../../../../../GradientPicker/GradientPicker.js";import"../../../../../GradientManager/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"@material-ui/icons/Delete";import"../../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../../GradientManager/GradientSelect.styles.js";import"../../../../../GradientManager/GradientManager.styles.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../../../../../clients/subscriptions.js";import"../../../../../../clients/api/apiCore.js";import"../../../../../../clients/constants.js";import"../../../../../../clients/sso/auth0.js";import"../../../../../../clients/sso/oauth2.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"../../../../../../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/appPackages.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"../../../../../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"@babel/runtime/helpers/objectWithoutProperties";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/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"../../../../../EChartsWrapper/EChartsWrapper.js";import"querystring";import"uuid/v1";import"jsona";import"../../../../../StatusBadge/constants.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as T}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import"rollbar";import"@rollbar/react";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import{showSuccessNotification as y,showErrorNotification as E}from"../../../../../../utils/notificationToasts.js";var B=function(i){var p,a=i.appId,m=i.assetId,d=i.assetCompanyId,C=i.appSettings,T=i.currentUser,B=i.classes,k=i.location,F=i.dashboardType,V=h(),L=s(!1),M=r(L,2),W=M[0],O=M[1],R=n(null);b(R,(function(){O(!1)}));var w,H=(w=t(o.mark((function e(t,r,i){var s,n,p,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s={app_id:a,asset_id:m,body:t,active_until:r,attachment:{file_name:i&&i.attachmentName,s3_link:i&&i.attachmentUrl},settings:C},n={},F&&(n.dashboard_type=F),(p=c(k,"query.time"))&&(s.data_timestamp=j(p).format()),e.next=8,f(s,n);case 8:l=e.sent,V({type:g,annotation:l}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),E("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:y("Annotation has been added"),O(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return w.apply(this,arguments)});return x("div",{className:S.cAddAnnotationFormInput,children:[I(D,{displayName:"".concat(T.first_name," ").concat(T.last_name),imgSrc:T.profile_photo,size:36}),x("div",{className:l(S.cAddAnnotationFormInputPaper,(p={},e(p,S.cAddAnnotationFormInputPaperOpened,W),e(p,S.cAddAnnotationFormInputPaperClosed,!W),p)),children:[I(u,{in:!W,timeout:500,children:I(A,{className:S.cAddAnnotationFormInputPaperLabel,children:I(v,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:B.inputLabel,onClick:function(){return O(!0)},children:"Type annotation here"})})}),I(u,{in:W,timeout:100,children:I("div",{className:S.cAddAnnotationFormInputPaperAddAnnotation,children:W&&I(P,{onSend:H,assetCompanyId:d,currentUser:T})})})]})]})};B.propTypes={appId:p.isRequired,assetId:p.isRequired,assetCompanyId:p.isRequired,appSettings:a().isRequired,currentUser:a({}),classes:a().isRequired,location:a().isRequired,dashboardType:m},B.defaultProps={currentUser:{},dashboardType:null};var k=d([C((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),T])(i(B));export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/regenerator";import{useState as s,useEffect as o,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as c,getAssets as u}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import{PER_PAGE as l}from"../constants.js";function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:["".concat(e,".name"),"".concat(e,".asset_id")].concat(n(t))}},y=function(e){var t,r,n;return f(f({},e.attributes),{},{id:+e.id,programId:+(null===(t=e.relationships)||void 0===t||null===(r=t.program)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.id)})};function b(n){var i=n.appKey,p=n.assetType,u=n.assetId,l=n.parentAssetType,m=n.parentAssetId,b=n.queryParams,h=void 0===b?null:b,v=s([]),g=t(v,2),j=g[0],O=g[1],x=s(!0),w=t(x,2),P=w[0],k=w[1];return o((function(){function t(){return(t=e(a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(p)(f(f(f({},d(p)),{},r({per_page:1e4},l,m),i&&{app_key:i}),h));case 2:t=e.sent,O(t.data.map(y)),k(!1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}k(!0),function(){t.apply(this,arguments)}()}),[p,u,l,m,i]),{assets:j,loading:P}}function h(r){var n=r.appKey,m=r.assetType,b=r.companyId,h=r.currentValue,v=r.isMultiple,g=r.parentAssetId,j=r.parentAssetType,O=r.scrollPage,x=r.searchText,w=r.setCurrentOption,P=r.queryParams,k=r.assetFields,A=s([]),T=t(A,2),I=T[0],_=T[1],D=s(!1),C=t(D,2),q=C[0],E=C[1],K=i(),S=i();return o((function(){function t(){return(t=e(a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(m)(f(f({},d(m,k)),{},{ids:v?h:[h]},P));case 2:if(t=e.sent,!p(t.data)){e.next=7;break}return e.next=6,u(f(f({},d(m,k)),{},{ids:v?h:[h]},P));case 6:t=e.sent;case 7:w((function(){if(v)return t.data.map(y);var e=t.data[0];return e?y(e):null}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(v?h.length:h)&&function(){t.apply(this,arguments)}()}),[]),o((function(){function t(){return(t=e(a.mark((function e(){var t,r,s,o,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E(!0),t={per_page:l,page:O},j&&g&&(t[j]=g),b&&(t.company=b),x&&(t.search=x),n&&(t.app_key=n),r=c(m)(f(f(f({},d(m,k)),t),P)),S.current=r,e.next=11,r;case 11:if(s=e.sent,S.current===r){e.next=14;break}return e.abrupt("return");case 14:o=s.data.map(y),i=K.current!==m||1===O,_(i?o:function(e){return e.concat(o)}),K.current=m,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:E(!1);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[m,j,g,b,x,O,n]),{assets:I,loading:q}}export{h as useAssetAutoCompleteSelectData,b as useAssetSelectData};
|