@corva/ui 0.31.0-7 → 0.32.0-0

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.
Files changed (97) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  3. package/CLI/hocs/withReactRouterHOC.js +1 -1
  4. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  5. package/assets/1f460d664d596ce949f316a08308473d.svg +12 -0
  6. package/assets/27836bcdc3e809b0c0f1852a4b5a7e9e.svg +15 -0
  7. package/assets/27afcb4e5f3f2b6d8fc1166fe4dc5580.svg +19 -0
  8. package/assets/2f3ed40f34ad7a7f2e6a5e1eda45c5f4.svg +20 -0
  9. package/assets/48c0221a3d0faf6ab12f78c420df8e3a.svg +18 -0
  10. package/assets/493f8add7c4f51e48777410e8adcd94b.svg +19 -0
  11. package/assets/b976051fc561f69a449fa6b1575a9f38.svg +26 -0
  12. package/assets/c90b07a56f57b35270d42804a6610c78.svg +18 -0
  13. package/assets/de87fc2dd3cd91d1433e2ead8e03c691.svg +3 -0
  14. package/assets/eb59357d9fdc0d3aa2556c4accf76a1e.svg +29 -0
  15. package/assets/f8311dcb5efee59526c9665598ff8916.svg +22 -0
  16. package/clients/jsonApi/index.js +1 -1
  17. package/components/AddComment/Popover.js +1 -0
  18. package/components/AddComment/Popup.js +1 -0
  19. package/components/AddComment/components/Content.js +1 -0
  20. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  21. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  22. package/components/Attachment/index.js +1 -1
  23. package/components/BICOffsetPickerDialog/index.js +1 -1
  24. package/components/Breadcrumbs/index.js +1 -1
  25. package/components/CollapsableSidebar.js +1 -1
  26. package/components/CollapsibleContent.js +1 -0
  27. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  28. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  29. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  30. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  31. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  32. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  33. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  34. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  35. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  36. package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js +1 -1
  37. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  38. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  39. package/components/FeedItem/FeedItem.css.js +1 -0
  40. package/components/FeedItem/FeedItem.js +1 -0
  41. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -0
  42. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -0
  43. package/components/FeedItem/components/Actions.js +1 -0
  44. package/components/FeedItem/components/AvatarIcon.js +1 -0
  45. package/components/FeedItem/components/Comments.js +1 -0
  46. package/components/FeedItem/components/Content.js +1 -0
  47. package/components/FeedItem/components/CreatedAt.js +1 -0
  48. package/components/FeedItem/components/FeedComments.js +1 -0
  49. package/components/FeedItem/components/Icon.js +1 -0
  50. package/components/FeedItem/components/Reactions.js +1 -0
  51. package/components/FeedItem/components/RigAndWell.js +1 -0
  52. package/components/FeedItem/components/TypeAndAssetTitle.js +1 -0
  53. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -0
  54. package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -0
  55. package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -0
  56. package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -0
  57. package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -0
  58. package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -0
  59. package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -0
  60. package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -0
  61. package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -0
  62. package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -0
  63. package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -0
  64. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.js +1 -0
  65. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.js +1 -0
  66. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.js +1 -0
  67. package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -0
  68. package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -0
  69. package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -0
  70. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -0
  71. package/components/FilePreview/index.js +1 -1
  72. package/components/KeyboardDateTimePicker.js +1 -0
  73. package/components/Modal/Modal.css.js +1 -1
  74. package/components/Modal/index.js +1 -1
  75. package/components/Notifications/NotificationsContainer.js +1 -1
  76. package/components/Notifications/components/Toast.js +1 -1
  77. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  78. package/components/PostInput/PostInput.css.js +1 -0
  79. package/components/PostInput/PostInput.js +1 -0
  80. package/components/PostPreviewDialog/index.js +1 -1
  81. package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
  82. package/components/Tooltip/Tooltip.js +1 -1
  83. package/components/TracesEditModal/TracesEditModal.css.js +1 -0
  84. package/components/TracesEditModal/TracesEditModal.js +1 -0
  85. package/components/TracesEditModal/TracesEditModalContainer.js +1 -0
  86. package/components/UserCard/index.js +1 -1
  87. package/components/WellSummary/WellSummaryItemValue.js +1 -1
  88. package/components/WellSummary/effects/useWellSummaryData.js +1 -1
  89. package/components/index.js +1 -1
  90. package/config/theme/lightThemePalette.mjs.js +1 -1
  91. package/constants/feed.js +1 -0
  92. package/constants/index.js +1 -1
  93. package/package.json +1 -1
  94. package/styles/generatedThemesVariables.global.css +1 -1
  95. package/styles/generatedThemesVariables.global.css.js +1 -1
  96. package/utils/devcenter.js +1 -1
  97. package/utils/feed.js +1 -0
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{range as r,flattenDepth as n}from"lodash";import e from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import{stringify as c}from"query-string";import{baseUrl as u,get as p,post as s,del as o,put as i,sendFormData as f,patch as l}from"../api/apiCore.js";import{CORVA_API_URLS as h}from"../constants.js";function v(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function d(r){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?v(Object(e),!0).forEach((function(n){t(r,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}function m(){return y.apply(this,arguments)}function y(){return(y=a(e.mark((function t(){var r;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(u,"/v1/users/current"),{credentials:"include"});case 3:if(null!=(r=t.sent)&&r.ok){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,r.json();case 8:return t.abrupt("return",t.sent);case 11:return t.prev=11,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}function w(t){return _.apply(this,arguments)}function _(){return(_=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/wells",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return g.apply(this,arguments)}function g(){return(g=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/wells/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(t){return x.apply(this,arguments)}function x(){return(x=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/rigs/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(){return j.apply(this,arguments)}function j(){return(j=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/rigs",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(){return $.apply(this,arguments)}function $(){return($=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/programs",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t){return D.apply(this,arguments)}function D(){return(D=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/assets/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(){return T.apply(this,arguments)}function T(){return(T=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/assets",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(){return q.apply(this,arguments)}function q(){return(q=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",s("/v2/assets/resolve",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(){return S.apply(this,arguments)}function S(){return(S=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/pads",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(){return E.apply(this,arguments)}function E(){return(E=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/frac_fleets",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(t){return K.apply(this,arguments)}function K(){return(K=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/drillout_units/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return(G=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/drillout_units",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(t,r,n){return R.apply(this,arguments)}function R(){return(R=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(r,"/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function z(t,r,n){return B.apply(this,arguments)}function B(){return(B=a(e.mark((function t(r,n,a){var c,u=arguments;return e.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",p("/v1/data/".concat(r,"/").concat(n),d(d({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,r){return L.apply(this,arguments)}function L(){return(L=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/api/v1/data/".concat(r,"/").concat(n,"/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,r){return V.apply(this,arguments)}function V(){return(V=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/api/v1/data/".concat(r,"/").concat(n,"/aggregate/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t,r,n,e){return X.apply(this,arguments)}function X(){return(X=a(e.mark((function t(r,n,a,c){var u,p=arguments;return e.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",i("/v1/data/".concat(r,"/").concat(n,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(t,r,n,e,a){return Z.apply(this,arguments)}function Z(){return(Z=a(e.mark((function t(r,n,a,c,u){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/api/v1/data/".concat(r,"/").concat(n,"/").concat(a),c,u,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,r,n){return rt.apply(this,arguments)}function rt(){return(rt=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/data/".concat(r,"/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function nt(t,r,n){return et.apply(this,arguments)}function et(){return(et=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/api/v1/data/".concat(r,"/").concat(n),a,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(t){return ct.apply(this,arguments)}function ct(){return(ct=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/competitor_analysis",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(){return pt.apply(this,arguments)}function pt(){return(pt=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function st(t){return ot.apply(this,arguments)}function ot(){return(ot=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/picklists/".concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(){return ft.apply(this,arguments)}function ft(){return(ft=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(t){return ht.apply(this,arguments)}function ht(){return(ht=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies/".concat(r,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var vt,dt,mt,yt,wt=(vt=a(e.mark((function t(r){var n,a,c,u;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={asset_id:+r},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:n},{$group:a},{$sort:c}])},t.prev=4,t.next=7,z("corva","formation-evaluation.metadata",r,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 vt.apply(this,arguments)}),_t=(dt=a(e.mark((function t(r,n){var a;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(r,"}AND{file#eq#'").concat(n,"'}"),t.prev=1,t.next=4,z("corva","formation-evaluation.metadata",r,{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,r){return dt.apply(this,arguments)}),bt=(mt=a(e.mark((function t(r,n,a){var c,u,p,s,o,i;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+r,"metadata.file":n},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,z("corva","formation-evaluation.data",r,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,r,n){return mt.apply(this,arguments)}),gt=(yt=a(e.mark((function t(a){var c,u,p,s,o;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=a.assetId,u=a.fileName,p=a.recordsCount,s=Math.ceil(p/1e4),o=r(s).map((function(t){return bt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return n(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return yt.apply(this,arguments)}),kt=function(t){var r=t.assetId,n=t.segment,e=void 0===n?"drilling":n;return p("/v1/app_streams?asset_id=".concat(r,"&segment=").concat(e))};function xt(t){switch(t){case"program":return P;case"rig":return O;case"well":return w;case"frac_fleet":return C;case"drillout_unit":return F;case"pad":return N;default:return I}}function Ot(t){switch(t){case"rig":return k;case"well":return b;default:return A}}var jt=function(t,r){return p("/v2/apps/".concat(t,"/app_media"),r)},Pt=function(t,r){return o("/v2/apps/".concat(t,"/app_media/").concat(r),null)},$t=function(t,r){var n=r.file,e=r.mediaType;return f("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":n})},At=function(t,r,n){return l("/v2/apps/".concat(t,"/app_media/").concat(r),{app_media:n})},Dt=function(t,r){return p("/v2/apps/".concat(t,"/app_help_contents"),r)},It=function(t,r){return o("/v2/apps/".concat(t,"/app_help_contents/").concat(r),null)},Tt=function(t,r){var n=r.title,e=r.description,a=r.url;return f("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":n,"app_help_content[description]":e,"app_help_content[url]":a})},Ut=function(t,r,n){var e=n.title,a=n.description,c=n.url,u=n.position;return l("/v2/apps/".concat(t,"/app_help_contents/").concat(r),{app_help_content:{title:e,description:a,url:c,position:u}})};function qt(t){return Nt.apply(this,arguments)}function Nt(){return(Nt=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",d({app_annotation:r},n)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function St(t,r){return Ct.apply(this,arguments)}function Ct(){return(Ct=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(r),{app_annotation:n}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Et(t){return Jt.apply(this,arguments)}function Jt(){return(Jt=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kt(t,r){return Ft.apply(this,arguments)}function Ft(){return(Ft=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/v2/dashboard_app_annotations",d({app_id:r,asset_id:n},a)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gt(t,r,n){return Mt.apply(this,arguments)}function Mt(){return(Mt=a(e.mark((function t(r,n,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:r},n&&(c.asset_id=n),a&&(c.parent_asset_id=a),t.abrupt("return",p("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rt(t){return zt.apply(this,arguments)}function zt(){return(zt=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(r,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Bt(t,r){return Ht.apply(this,arguments)}function Ht(){return(Ht=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(r,"/comments/"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Lt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/dashboard_app_annotations/".concat(r,"/comments/"),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Vt(t){return"".concat(u,"/v1/file/download?file_name=").concat(t)}function Wt(t,r,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(r,"/comments/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t,r){return Zt.apply(this,arguments)}function Zt(){return(Zt=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(r,"/comments/").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tr(t,r,n){return rr.apply(this,arguments)}function rr(){return(rr=a(e.mark((function t(r,n,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:r},n&&(c.search=n),a&&(c.company_id=a),t.abrupt("return",p("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function nr(t,r){return er.apply(this,arguments)}function er(){return(er=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/file/sign?file_name=".concat(encodeURIComponent(r),"&contentType=").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ar=function(t,r){return p("/v2/apps/".concat(t,"/packages"),r)};function cr(t){return ur.apply(this,arguments)}function ur(){return(ur=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/sessions/schemas",{email:r,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pr(t){return sr.apply(this,arguments)}function sr(){return(sr=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/frac_fleets/wells",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function or(t,r){return ir.apply(this,arguments)}function ir(){return(ir=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/pads/".concat(r,"/app_wells"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function fr(t){return lr.apply(this,arguments)}function lr(){return(lr=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/tasks/".concat(r),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function hr(){return vr.apply(this,arguments)}function vr(){return(vr=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",s("/v2/tasks",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var dr=function(t){return p("/v2/apps/".concat(t,"/app_settings_templates"),{})},mr=function(t,r){return p("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{})},yr=function(t,r,n){var e=n.name,a=n.settings;return l("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{app_settings_template:{name:e,settings:a}},{})},wr=function(t,r){var n=r.name,e=r.settings;return s("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:n,settings:e}})},_r=function(t,r){return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{})},br=function(t,r,n){var e=c({user_id:n},{arrayFormat:"bracket"});return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(r,"/share?").concat(e),{})},gr=function(t){var r=t.page,n=t.perPage,e=void 0===n?1e3:n,a=t.sort,c=t.order,u=t.search,s=t.companyId,o=t.ids;return p("/v1/users",{page:r,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==s?s:void 0})};function kr(t,r){return xr.apply(this,arguments)}function xr(){return(xr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(r,"/settings"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Or(t,r){return jr.apply(this,arguments)}function jr(){return(jr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/users/".concat(r,"/settings/").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Pr(){return $r.apply(this,arguments)}function $r(){return($r=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{Rt as closeLastAnnotation,Et as deleteAnnotation,It as deleteAppHelpContent,Pt as deleteAppMedia,_r as deleteAppSettingsTemplate,M as deleteAppStorageRecords,Yt as deleteFeedItemComment,gt as getAllLASFileData,Lt as getAnnotationComments,Kt as getAnnotations,Dt as getAppHelpContent,jt as getAppMedia,ar as getAppPackages,mr as getAppSettingsTemplate,dr as getAppSettingsTemplates,z as getAppStorage,A as getAsset,I as getAssets,ut as getCompanies,lt as getCompanyGoals,at as getCompetitorAnalysisData,m as getCurrentUser,Gt as getDashboardLastAnnotations,H as getDataAppStorage,Q as getDataAppStorageAggregate,J as getDrilloutUnit,F as getDrilloutUnits,it as getFavorites,Vt as getFileDownloadLink,pr as getFracFleetWells,C as getFracFleets,bt as getLASFileDataByPage,wt as getLASFileList,_t as getLASMetadata,or as getPadWells,N as getPads,st as getPicklist,P as getPrograms,U as getResolvedAssets,k as getRig,O as getRigs,nr as getS3SignedUrl,kt as getStreams,fr as getTask,cr as getUserAuthSchemas,tr as getUserAutocomplete,Or as getUserSetting,gr as getUsers,b as getWell,w as getWells,Pr as logout,Ot as mapAssetByIdGetRequest,xt as mapAssetGetRequest,St as patchAnnotation,yr as patchAppSettingsTemplate,Wt as patchFeedItemComment,qt as postAnnotation,Bt as postAnnotationComment,wr as postAppSettingsTemplate,tt as postAppStorage,nt as postDataAppStorage,hr as postTask,W as putAppStorage,Y as putDataAppStorage,kr as setCurrentUserSettings,br as shareAppSettingsTemplate,Ut as updateAppHelpContent,At as updateAppMedia,Tt as uploadAppHelpContent,$t as uploadAppMedia};
1
+ import t from"@babel/runtime/helpers/defineProperty";import{range as r,flattenDepth as n}from"lodash";import e from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import{stringify as c}from"query-string";import{baseUrl as u,get as p,post as s,del as o,put as i,sendFormData as f,patch as l}from"../api/apiCore.js";import{CORVA_API_URLS as h}from"../constants.js";function v(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function d(r){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?v(Object(e),!0).forEach((function(n){t(r,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}function m(){return y.apply(this,arguments)}function y(){return(y=a(e.mark((function t(){var r;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(u,"/v1/users/current"),{credentials:"include"});case 3:if(null!=(r=t.sent)&&r.ok){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,r.json();case 8:return t.abrupt("return",t.sent);case 11:return t.prev=11,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}function w(t){return _.apply(this,arguments)}function _(){return(_=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/wells",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return g.apply(this,arguments)}function g(){return(g=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/wells/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(t){return x.apply(this,arguments)}function x(){return(x=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/rigs/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(){return j.apply(this,arguments)}function j(){return(j=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/rigs",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(){return $.apply(this,arguments)}function $(){return($=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/programs",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t){return D.apply(this,arguments)}function D(){return(D=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/assets/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(){return T.apply(this,arguments)}function T(){return(T=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/assets",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(){return q.apply(this,arguments)}function q(){return(q=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",s("/v2/assets/resolve",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(){return S.apply(this,arguments)}function S(){return(S=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/pads",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(){return E.apply(this,arguments)}function E(){return(E=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/frac_fleets",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(t){return K.apply(this,arguments)}function K(){return(K=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/drillout_units/".concat(r),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return(G=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",p("/v2/drillout_units",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(t,r,n){return R.apply(this,arguments)}function R(){return(R=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(r,"/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function z(t,r,n){return B.apply(this,arguments)}function B(){return(B=a(e.mark((function t(r,n,a){var c,u=arguments;return e.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",p("/v1/data/".concat(r,"/").concat(n),d(d({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,r){return L.apply(this,arguments)}function L(){return(L=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/api/v1/data/".concat(r,"/").concat(n,"/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,r){return V.apply(this,arguments)}function V(){return(V=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/api/v1/data/".concat(r,"/").concat(n,"/aggregate/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t,r,n,e){return X.apply(this,arguments)}function X(){return(X=a(e.mark((function t(r,n,a,c){var u,p=arguments;return e.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",i("/v1/data/".concat(r,"/").concat(n,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(t,r,n,e,a){return Z.apply(this,arguments)}function Z(){return(Z=a(e.mark((function t(r,n,a,c,u){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/api/v1/data/".concat(r,"/").concat(n,"/").concat(a),c,u,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,r,n){return rt.apply(this,arguments)}function rt(){return(rt=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/data/".concat(r,"/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function nt(t,r,n){return et.apply(this,arguments)}function et(){return(et=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/api/v1/data/".concat(r,"/").concat(n),a,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(t){return ct.apply(this,arguments)}function ct(){return(ct=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/competitor_analysis",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(){return pt.apply(this,arguments)}function pt(){return(pt=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function st(t){return ot.apply(this,arguments)}function ot(){return(ot=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/picklists/".concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(){return ft.apply(this,arguments)}function ft(){return(ft=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(t){return ht.apply(this,arguments)}function ht(){return(ht=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies/".concat(r,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var vt,dt,mt,yt,wt=(vt=a(e.mark((function t(r){var n,a,c,u;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={asset_id:+r},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:n},{$group:a},{$sort:c}])},t.prev=4,t.next=7,z("corva","formation-evaluation.metadata",r,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 vt.apply(this,arguments)}),_t=(dt=a(e.mark((function t(r,n){var a;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(r,"}AND{file#eq#'").concat(n,"'}"),t.prev=1,t.next=4,z("corva","formation-evaluation.metadata",r,{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,r){return dt.apply(this,arguments)}),bt=(mt=a(e.mark((function t(r,n,a){var c,u,p,s,o,i;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+r,"metadata.file":n},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,z("corva","formation-evaluation.data",r,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,r,n){return mt.apply(this,arguments)}),gt=(yt=a(e.mark((function t(a){var c,u,p,s,o;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=a.assetId,u=a.fileName,p=a.recordsCount,s=Math.ceil(p/1e4),o=r(s).map((function(t){return bt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return n(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return yt.apply(this,arguments)}),kt=function(t){var r=t.assetId,n=t.segment,e=void 0===n?"drilling":n;return p("/v1/app_streams?asset_id=".concat(r,"&segment=").concat(e))};function xt(t){switch(t){case"program":return P;case"rig":return O;case"well":return w;case"frac_fleet":return C;case"drillout_unit":return F;case"pad":return N;default:return I}}function Ot(t){switch(t){case"rig":return k;case"well":return b;default:return A}}var jt=function(t,r){return p("/v2/apps/".concat(t,"/app_media"),r)},Pt=function(t,r){return o("/v2/apps/".concat(t,"/app_media/").concat(r),null)},$t=function(t,r){var n=r.file,e=r.mediaType;return f("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":n})},At=function(t,r,n){return l("/v2/apps/".concat(t,"/app_media/").concat(r),{app_media:n})},Dt=function(t,r){return p("/v2/apps/".concat(t,"/app_help_contents"),r)},It=function(t,r){return o("/v2/apps/".concat(t,"/app_help_contents/").concat(r),null)},Tt=function(t,r){var n=r.title,e=r.description,a=r.url;return f("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":n,"app_help_content[description]":e,"app_help_content[url]":a})},Ut=function(t,r,n){var e=n.title,a=n.description,c=n.url,u=n.position;return l("/v2/apps/".concat(t,"/app_help_contents/").concat(r),{app_help_content:{title:e,description:a,url:c,position:u}})};function qt(t){return Nt.apply(this,arguments)}function Nt(){return(Nt=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",d({app_annotation:r},n)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function St(t,r){return Ct.apply(this,arguments)}function Ct(){return(Ct=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(r),{app_annotation:n}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Et(t){return Jt.apply(this,arguments)}function Jt(){return(Jt=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kt(t,r){return Ft.apply(this,arguments)}function Ft(){return(Ft=a(e.mark((function t(r,n){var a,c=arguments;return e.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",p("/v2/dashboard_app_annotations",d({app_id:r,asset_id:n},a)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gt(t,r,n){return Mt.apply(this,arguments)}function Mt(){return(Mt=a(e.mark((function t(r,n,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:r},n&&(c.asset_id=n),a&&(c.parent_asset_id=a),t.abrupt("return",p("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rt(t){return zt.apply(this,arguments)}function zt(){return(zt=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(r,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Bt(t,r){return Ht.apply(this,arguments)}function Ht(){return(Ht=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(r,"/comments/"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Lt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=a(e.mark((function t(r){var n,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/dashboard_app_annotations/".concat(r,"/comments/"),n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Vt(t){return"".concat(u,"/v1/file/download?file_name=").concat(t)}function Wt(t,r,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=a(e.mark((function t(r,n,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(r,"/comments/").concat(n),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t,r){return Zt.apply(this,arguments)}function Zt(){return(Zt=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(r,"/comments"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tr(t,r){return rr.apply(this,arguments)}function rr(){return(rr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(r,"/comments/").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function nr(t){return er.apply(this,arguments)}function er(){return(er=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(r,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ar(t,r){return cr.apply(this,arguments)}function cr(){return(cr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(r),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ur(t){return pr.apply(this,arguments)}function pr(){return(pr=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function sr(t,r,n){return or.apply(this,arguments)}function or(){return(or=a(e.mark((function t(r,n,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:r},n&&(c.search=n),a&&(c.company_id=a),t.abrupt("return",p("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ir(t,r){return fr.apply(this,arguments)}function fr(){return(fr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/file/sign?file_name=".concat(encodeURIComponent(r),"&contentType=").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var lr=function(t,r){return p("/v2/apps/".concat(t,"/packages"),r)};function hr(t){return vr.apply(this,arguments)}function vr(){return(vr=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/sessions/schemas",{email:r,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dr(t){return mr.apply(this,arguments)}function mr(){return(mr=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/frac_fleets/wells",r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yr(t,r){return wr.apply(this,arguments)}function wr(){return(wr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/pads/".concat(r,"/app_wells"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _r(t){return br.apply(this,arguments)}function br(){return(br=a(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/tasks/".concat(r),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function gr(){return kr.apply(this,arguments)}function kr(){return(kr=a(e.mark((function t(){var r,n=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",s("/v2/tasks",r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var xr=function(t){return p("/v2/apps/".concat(t,"/app_settings_templates"),{})},Or=function(t,r){return p("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{})},jr=function(t,r,n){var e=n.name,a=n.settings;return l("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{app_settings_template:{name:e,settings:a}},{})},Pr=function(t,r){var n=r.name,e=r.settings;return s("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:n,settings:e}})},$r=function(t,r){return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(r),{})},Ar=function(t,r,n){var e=c({user_id:n},{arrayFormat:"bracket"});return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(r,"/share?").concat(e),{})},Dr=function(t){var r=t.page,n=t.perPage,e=void 0===n?1e3:n,a=t.sort,c=t.order,u=t.search,s=t.companyId,o=t.ids;return p("/v1/users",{page:r,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==s?s:void 0})};function Ir(t,r){return Tr.apply(this,arguments)}function Tr(){return(Tr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(r,"/settings"),n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ur(t,r){return qr.apply(this,arguments)}function qr(){return(qr=a(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/users/".concat(r,"/settings/").concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Nr(){return Sr.apply(this,arguments)}function Sr(){return(Sr=a(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{Rt as closeLastAnnotation,Et as deleteAnnotation,It as deleteAppHelpContent,Pt as deleteAppMedia,$r as deleteAppSettingsTemplate,M as deleteAppStorageRecords,ur as deleteFeedItem,tr as deleteFeedItemComment,gt as getAllLASFileData,Lt as getAnnotationComments,Kt as getAnnotations,Dt as getAppHelpContent,jt as getAppMedia,lr as getAppPackages,Or as getAppSettingsTemplate,xr as getAppSettingsTemplates,z as getAppStorage,A as getAsset,I as getAssets,ut as getCompanies,lt as getCompanyGoals,at as getCompetitorAnalysisData,m as getCurrentUser,Gt as getDashboardLastAnnotations,H as getDataAppStorage,Q as getDataAppStorageAggregate,J as getDrilloutUnit,F as getDrilloutUnits,it as getFavorites,Vt as getFileDownloadLink,dr as getFracFleetWells,C as getFracFleets,bt as getLASFileDataByPage,wt as getLASFileList,_t as getLASMetadata,yr as getPadWells,N as getPads,st as getPicklist,P as getPrograms,U as getResolvedAssets,k as getRig,O as getRigs,ir as getS3SignedUrl,kt as getStreams,_r as getTask,hr as getUserAuthSchemas,sr as getUserAutocomplete,Ur as getUserSetting,Dr as getUsers,b as getWell,w as getWells,Nr as logout,Ot as mapAssetByIdGetRequest,xt as mapAssetGetRequest,St as patchAnnotation,jr as patchAppSettingsTemplate,ar as patchFeedItem,Wt as patchFeedItemComment,qt as postAnnotation,Bt as postAnnotationComment,Pr as postAppSettingsTemplate,tt as postAppStorage,nt as postDataAppStorage,Yt as postFeedItemComment,gr as postTask,W as putAppStorage,Y as putDataAppStorage,Ir as setCurrentUserSettings,Ar as shareAppSettingsTemplate,nr as toggleFeedItemLike,Ut as updateAppHelpContent,At as updateAppMedia,Tt as uploadAppHelpContent,$t as uploadAppMedia};
@@ -0,0 +1 @@
1
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import e from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{makeStyles as r,Popover as i,Grid as n,Typography as s}from"@material-ui/core";import{useState as p}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{func as m,node as a,shape as l,bool as d,number as c}from"prop-types";import j from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import C from"../Icons/SendIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import u from"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../KeyboardDateTimePicker.js";import"../PostInput/PostInput.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import A from"./components/Content.js";import"./Popup.js";var g=r((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"}}}));function v(r){var m=r.anchorEl,a=r.anchorOrigin,l=r.onClose,d=r.isSaveDisabled,c=r.onSave,v=r.startAdornment,D=r.endAdornment,x=r.customContent,h=r.userCompanyId,S=g(),b=p(),P=e(b,2),f=P[0],y=P[1];return t(i,{open:!0,anchorEl:m,anchorOrigin:a,onClose:l,classes:{paper:S.paper},children:[o(A,{userCompanyId:h,startAdornment:v,endAdornment:D,customContent:x,setComment:y}),t(n,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:S.actions,children:[o(n,{item:!0,children:o(s,{variant:"caption",className:j(S.inputMain,S.cancelText,S.highlightedLabel),component:"div",gutterBottom:!0,onClick:l,children:"Cancel"})}),t(n,{item:!0,direction:"row",alignItems:"center",className:S.sendRow,children:[t(s,{variant:"caption",className:j(S.inputMain,S.inputHelper),component:"div",gutterBottom:!0,children:["Press ",o(s,{variant:"caption",color:"primary",className:j(S.inputMain,S.highlightedLabel),children:"Enter"})," to send"]}),o(u,{onClick:function(){return c(f)},disabled:d,children:o(C,{})})]})]})]})}v.propTypes={onClose:m,onSave:m.isRequired,anchorEl:a.isRequired,anchorOrigin:l,isSaveDisabled:d,startAdornment:a,endAdornment:a,customContent:a,userCompanyId:c.isRequired},v.defaultProps={anchorOrigin:{horizontal:"right",vertical:"bottom"},onClose:function(){},isSaveDisabled:!1,startAdornment:null,endAdornment:null,customContent:null};export default v;
@@ -0,0 +1 @@
1
+ import n from"@babel/runtime/helpers/slicedToArray";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{makeStyles as t,Grid as r,Button as i}from"@material-ui/core";import{useState as s}from"react";import{func as m,bool as a,node as d,number as l}from"prop-types";import c from"../Modal/index.js";import p from"./components/Content.js";var u=t({modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1}});function C(t){var m=t.onClose,a=t.isProcessing,d=t.isSaveDisabled,l=t.onSave,C=t.startAdornment,f=t.endAdornment,A=t.actionsAdornment,h=t.customContent,v=t.userCompanyId,y=u(),b=s(),g=n(b,2),x=g[0],S=g[1];return e(c,{open:!0,onClose:m,title:"Add a Comment",contentClassName:y.modal,actions:o(r,{container:!0,direction:"row",justify:"flex-end",alignItems:"center",spacing:2,children:[A&&e(r,{item:!0,className:y.actionsAdornment,children:A}),e(r,{item:!0,children:e(i,{color:"primary",disabled:a,onClick:m,children:"Cancel"})}),e(r,{item:!0,children:e(i,{variant:"contained",color:"primary",disabled:d,onClick:function(){return l(x)},children:a?"Processing...":"Send"})})]}),children:e(p,{userCompanyId:v,startAdornment:C,endAdornment:f,customContent:h,setComment:S})})}C.propTypes={onClose:m,onSave:m.isRequired,isProcessing:a,isSaveDisabled:a,startAdornment:d,endAdornment:d,actionsAdornment:d,customContent:d,userCompanyId:l.isRequired},C.defaultProps={onClose:function(){},isProcessing:!1,isSaveDisabled:!1,startAdornment:null,endAdornment:null,customContent:null,actionsAdornment:null};export default C;
@@ -0,0 +1 @@
1
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{debounce as e}from"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as t,Fragment as r,jsx as o}from"react/jsx-runtime";import{makeStyles as i}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{node as n,number as s,func as p}from"prop-types";import"classnames";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../ConfirmationDialog.js";import"../../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../../DevCenter/AppHeader/AppHeader.js";import"../../DevCenter/AppSideBar/AppSideBar.js";import"../../DevCenter/AppContext.js";import"../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../Button/index.js";import"../../MenuItem/index.js";import"../../ContextMenuItem/index.js";import"../../FolderMenuItem/index.js";import"../../EditableItem/EditableItem/index.js";import"../../EditableItem/EditableItemWithBadge/index.js";import"../../Checkbox/index.js";import"../../FolderMenuItemWithLinks/index.js";import"../../IconButton/index.js";import"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../Notifications/Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.js";import"../../PinnableFilters/PinnableFilters.js";import"../../HeaderLayout/HeaderLayout.js";import"../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../PadOffsetsPicker/OffsetAssetChip.js";import"../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../PadOffsetsPicker/StagesSelector.js";import"../../Table/TableToolbar/TableToolbar.js";import"../../PriceInput/PriceInput.js";import"../../LabelsCounter/LabelsCounter.js";import"../../Stepper/Step.js";import"../../Stepper/StepsWrapper.js";import"../../Stepper/Stepper.js";import"../../Comment/CommentIcon/index.js";import"../../FilesLoader/FilesLoader.js";import"../../SearchInput/index.js";import"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import m from"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../Popover.js";import"../Popup.js";var a=i({postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0}});function d(i){var n=i.userCompanyId,s=i.startAdornment,p=i.endAdornment,d=i.customContent,l=i.setComment,j=a(),c=e(l,1500);return t(r,{children:[s,d||o(m,{userCompanyId:n,onChange:c,filePreviewWrapperClass:j.filePreviewWrapper,className:j.postInput}),p]})}d.propTypes={startAdornment:n,endAdornment:n,customContent:n,userCompanyId:s.isRequired,setComment:p},d.defaultProps={startAdornment:null,endAdornment:null,customContent:null,setComment:function(){}};export default d;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import t from"moment";import"../../../../../../constants/alerts.js";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import{showSuccessNotification as p,showErrorNotification as a}from"../../../../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";import{Fade as l,Paper as c,Typography as j}from"@material-ui/core";import{memo as u,useState as C,useRef as A}from"react";import"querystring";import"uuid/v1";import{postAnnotation as v}from"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import D from"../../../../../../effects/useOutsideClick.js";import"uuid";import{number as f,shape as g,string as x}from"prop-types";import S from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as b}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../ConfirmationDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../../../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.js";import y from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as P}from"../../../../constants.js";import{useAnnotationsDispatch as h}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as I}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import T from"../AnnotationInput/index.js";import L from"./style.css.js";import"../../index.js";import"../../../LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/EmptyView.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/index.js";import"../../../../../ContextMenuItem/index.js";import"../../../../../FolderMenuItem/index.js";import"../../../../../EditableItem/EditableItem/index.js";import"../../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../../Checkbox/index.js";import"../../../../../FolderMenuItemWithLinks/index.js";import"../../../../../IconButton/index.js";import"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.js";import"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.js";import"../../../../../PinnableFilters/PinnableFilters.js";import"../../../../../HeaderLayout/HeaderLayout.js";import"../../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../../Table/TableToolbar/TableToolbar.js";import"../../../../../PriceInput/PriceInput.js";import"../../../../../LabelsCounter/LabelsCounter.js";import"../../../../../Stepper/Step.js";import"../../../../../Stepper/StepsWrapper.js";import"../../../../../Stepper/Stepper.js";import"../../../../../Comment/CommentIcon/index.js";import"../../../../../FilesLoader/FilesLoader.js";import"../../../../../SearchInput/index.js";var E=function(r){var u,f=r.appId,g=r.assetId,x=r.assetCompanyId,b=r.appSettings,I=r.currentUser,E=r.classes,k=r.location,B=r.dashboardType,F=h(),M=C(!1),W=i(M,2),w=W[0],R=W[1],H=A(null);D(H,(function(){R(!1)}));var O,V=(O=s(n.mark((function e(r,i,s){var m,d,l,c;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m={app_id:f,asset_id:g,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:b},d={},B&&(d.dashboard_type=B),(l=o(k,"query.time"))&&(m.data_timestamp=t(l).format()),e.next=8,v(m,d);case 8:c=e.sent,F({type:P,annotation:c}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),a("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:p("Annotation has been added"),R(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return O.apply(this,arguments)});return m("div",{className:L.cAddAnnotationFormInput,children:[d(y,{displayName:"".concat(I.first_name," ").concat(I.last_name),imgSrc:I.profile_photo,size:36}),m("div",{className:S(L.cAddAnnotationFormInputPaper,(u={},e(u,L.cAddAnnotationFormInputPaperOpened,w),e(u,L.cAddAnnotationFormInputPaperClosed,!w),u)),children:[d(l,{in:!w,timeout:500,children:d(c,{className:L.cAddAnnotationFormInputPaperLabel,children:d(j,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:E.inputLabel,onClick:function(){return R(!0)},children:"Type annotation here"})})}),d(l,{in:w,timeout:100,children:d("div",{className:L.cAddAnnotationFormInputPaperAddAnnotation,children:w&&d(T,{onSend:V,assetCompanyId:x,currentUser:I})})})]})]})};E.propTypes={appId:f.isRequired,assetId:f.isRequired,assetCompanyId:f.isRequired,appSettings:g().isRequired,currentUser:g({}),classes:g().isRequired,location:g().isRequired,dashboardType:x},E.defaultProps={currentUser:{},dashboardType:null};var k=r([b((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(u(E));export default k;
1
+ import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import t from"moment";import"../../../../../../constants/alerts.js";import{flowRight as r,get as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import"../../../../../../constants/feed.js";import n from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import{showSuccessNotification as p,showErrorNotification as m}from"../../../../../../utils/notificationToasts.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as a,jsx as d}from"react/jsx-runtime";import{Fade as l,Paper as c,Typography as j}from"@material-ui/core";import{memo as u,useState as C,useRef as A}from"react";import"querystring";import"uuid/v1";import{postAnnotation as v}from"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import D from"../../../../../../effects/useOutsideClick.js";import"uuid";import{number as f,shape as g,string as x}from"prop-types";import P from"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import{withStyles as b}from"@material-ui/core/styles";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../ConfirmationDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../../../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.js";import S from"../../../../../Avatar/index.js";import{ADD_ANNOTATION as y}from"../../../../constants.js";import{useAnnotationsDispatch as h}from"../../../../AnnotationsContext.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as I}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import T from"../AnnotationInput/index.js";import E from"./style.css.js";import"../../index.js";import"../../../LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/EmptyView.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/index.js";import"../../../../../ContextMenuItem/index.js";import"../../../../../FolderMenuItem/index.js";import"../../../../../EditableItem/EditableItem/index.js";import"../../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../../Checkbox/index.js";import"../../../../../FolderMenuItemWithLinks/index.js";import"../../../../../IconButton/index.js";import"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.js";import"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.js";import"../../../../../PinnableFilters/PinnableFilters.js";import"../../../../../HeaderLayout/HeaderLayout.js";import"../../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../../Table/TableToolbar/TableToolbar.js";import"../../../../../PriceInput/PriceInput.js";import"../../../../../LabelsCounter/LabelsCounter.js";import"../../../../../Stepper/Step.js";import"../../../../../Stepper/StepsWrapper.js";import"../../../../../Stepper/Stepper.js";import"../../../../../Comment/CommentIcon/index.js";import"../../../../../FilesLoader/FilesLoader.js";import"../../../../../SearchInput/index.js";import"../../../../../FeedItem/FeedItem.js";import"../../../../../KeyboardDateTimePicker.js";import"../../../../../PostInput/PostInput.js";import"../../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../../AddComment/Popover.js";import"../../../../../AddComment/Popup.js";var L=function(r){var u,f=r.appId,g=r.assetId,x=r.assetCompanyId,b=r.appSettings,I=r.currentUser,L=r.classes,k=r.location,F=r.dashboardType,B=h(),M=C(!1),W=i(M,2),w=W[0],R=W[1],H=A(null);D(H,(function(){R(!1)}));var O,V=(O=s(n.mark((function e(r,i,s){var a,d,l,c;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a={app_id:f,asset_id:g,body:r,active_until:i,attachment:{file_name:s&&s.attachmentName,s3_link:s&&s.attachmentUrl},settings:b},d={},F&&(d.dashboard_type=F),(l=o(k,"query.time"))&&(a.data_timestamp=t(l).format()),e.next=8,v(a,d);case 8:c=e.sent,B({type:y,annotation:c}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),m("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:p("Annotation has been added"),R(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return O.apply(this,arguments)});return a("div",{className:E.cAddAnnotationFormInput,children:[d(S,{displayName:"".concat(I.first_name," ").concat(I.last_name),imgSrc:I.profile_photo,size:36}),a("div",{className:P(E.cAddAnnotationFormInputPaper,(u={},e(u,E.cAddAnnotationFormInputPaperOpened,w),e(u,E.cAddAnnotationFormInputPaperClosed,!w),u)),children:[d(l,{in:!w,timeout:500,children:d(c,{className:E.cAddAnnotationFormInputPaperLabel,children:d(j,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:L.inputLabel,onClick:function(){return R(!0)},children:"Type annotation here"})})}),d(l,{in:w,timeout:100,children:d("div",{className:E.cAddAnnotationFormInputPaperAddAnnotation,children:w&&d(T,{onSend:V,assetCompanyId:x,currentUser:I})})})]})]})};L.propTypes={appId:f.isRequired,assetId:f.isRequired,assetCompanyId:f.isRequired,appSettings:g().isRequired,currentUser:g({}),classes:g().isRequired,location:g().isRequired,dashboardType:x},L.defaultProps={currentUser:{},dashboardType:null};var k=r([b((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),I])(u(L));export default k;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{maxBy as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import{PACKAGE_STATUSES as r}from"../../constants/appPackages.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{makeStyles as n,Grid as s,FormControl as p,InputLabel as a,Select as m,ListSubheader as l,MenuItem as d}from"@material-ui/core";import{useState as c,useMemo as u,useEffect as j}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{string as C,func as v,shape as A}from"prop-types";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{isUserDeveloperAdmin as b}from"../../utils/user.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import D from"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import g from"./effects/index.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";var f=r,S=n({select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999"}}),x=function(r){var n=r.value,C=r.onChange,v=r.appId,A=r.currentUser,x=S(),P=g(v,{status:[f.DRAFT,f.PUBLISHED]}),h=P.isLoading,y=P.packages,E=b(A),L=c(n),T=t(L,2),I=T[0],B=T[1],k=u((function(){var e={},t=[{label:"Stable Release - no stable version",value:"PROD",disabled:!0},{label:"Beta - no beta version",value:"BETA",disabled:!0}],r=[];return y.filter((function(e){return e.attributes.status!==f.FAILURE})).forEach((function(o){var i=o.attributes,n=i.version,s=i.package_code_version,p=i.notes,a=i.label,m=i.status,l="v".concat(s||n);if(a){var d="PROD"===a?t[0]:t[1];d.label="".concat("PROD"===a?"Stable Release":"Beta"," ").concat(l," ").concat(p?"- ".concat(p):""),d.disabled=!1,e[d.value]=o}else E&&(e[n]=o,r.push({label:"".concat(l," ").concat(p?"- ".concat(p):""),value:n,status:m}))})),{labeled:t,unlabeled:r,packageByValue:e}}),[y,E]),M=k.labeled,R=k.unlabeled,V=k.packageByValue,F=function(e){return C(e,V[e])};return j((function(){if(E&&!n){var t=M.find((function(e){return!e.disabled}))||e(R.filter((function(e){return"published"===e.status})),"value");B(null==t?void 0:t.value),F(null==t?void 0:t.value)}}),[M,R]),o(s,{children:i(p,{className:x.select,children:[o(a,{shrink:!(!n&&!I),htmlFor:"appVersion",children:"App Version"}),i(m,{"data-testid":"".concat("DC_versionSelect","_dropdown"),value:n||I,onChange:function(e){return F(e.target.value)},disabled:h,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:x.menuListRoot}}},children:[E&&o(l,{className:x.group,children:"Labelled Versions (When selected always shows current Beta or Stable Release Versions)"}),M.map((function(e){var t=e.label,r=e.value,i=e.disabled;return o(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,disabled:i,children:t})})),E&&o(l,{className:x.group,children:"Other versions (App will always show selected version until version is deleted)"}),R.map((function(e){var t=e.label,r=e.value;return o(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,children:o(D,{children:t})})}))]})]})})};x.propTypes={value:C,onChange:v.isRequired,appId:C.isRequired,currentUser:A({}).isRequired},x.defaultProps={value:null};export default x;
1
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{maxBy as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import{PACKAGE_STATUSES as r}from"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{makeStyles as n,Grid as s,FormControl as p,InputLabel as a,Select as m,ListSubheader as l,MenuItem as d}from"@material-ui/core";import{useState as c,useMemo as u,useEffect as j}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import{string as C,func as v,shape as A}from"prop-types";import"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{isUserDeveloperAdmin as b}from"../../utils/user.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import D from"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import g from"./effects/index.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../KeyboardDateTimePicker.js";import"../PostInput/PostInput.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";var P=r,f=n({select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999"}}),S=function(r){var n=r.value,C=r.onChange,v=r.appId,A=r.currentUser,S=f(),x=g(v,{status:[P.DRAFT,P.PUBLISHED]}),h=x.isLoading,y=x.packages,I=b(A),E=c(n),L=t(E,2),T=L[0],B=L[1],k=u((function(){var e={},t=[{label:"Stable Release - no stable version",value:"PROD",disabled:!0},{label:"Beta - no beta version",value:"BETA",disabled:!0}],r=[];return y.filter((function(e){return e.attributes.status!==P.FAILURE})).forEach((function(o){var i=o.attributes,n=i.version,s=i.package_code_version,p=i.notes,a=i.label,m=i.status,l="v".concat(s||n);if(a){var d="PROD"===a?t[0]:t[1];d.label="".concat("PROD"===a?"Stable Release":"Beta"," ").concat(l," ").concat(p?"- ".concat(p):""),d.disabled=!1,e[d.value]=o}else I&&(e[n]=o,r.push({label:"".concat(l," ").concat(p?"- ".concat(p):""),value:n,status:m}))})),{labeled:t,unlabeled:r,packageByValue:e}}),[y,I]),F=k.labeled,M=k.unlabeled,R=k.packageByValue,V=function(e){return C(e,R[e])};return j((function(){if(I&&!n){var t=F.find((function(e){return!e.disabled}))||e(M.filter((function(e){return"published"===e.status})),"value");B(null==t?void 0:t.value),V(null==t?void 0:t.value)}}),[F,M]),o(s,{children:i(p,{className:S.select,children:[o(a,{shrink:!(!n&&!T),htmlFor:"appVersion",children:"App Version"}),i(m,{"data-testid":"".concat("DC_versionSelect","_dropdown"),value:n||T,onChange:function(e){return V(e.target.value)},disabled:h,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:S.menuListRoot}}},children:[I&&o(l,{className:S.group,children:"Labelled Versions (When selected always shows current Beta or Stable Release Versions)"}),F.map((function(e){var t=e.label,r=e.value,i=e.disabled;return o(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,disabled:i,children:t})})),I&&o(l,{className:S.group,children:"Other versions (App will always show selected version until version is deleted)"}),M.map((function(e){var t=e.label,r=e.value;return o(d,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,children:o(D,{children:t})})}))]})]})})};S.propTypes={value:C,onChange:v.isRequired,appId:C.isRequired,currentUser:A({}).isRequired},S.defaultProps={value:null};export default S;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import a from"../../utils/main.js";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import r from"@babel/runtime/helpers/createClass";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import w from"file-extension";import x from"image-extensions";import N from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import U from"../ImageViewer/index.js";import R from"../GoogleDocsViewer/index.js";import C from"./styles.css.js";function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,a=v(e);if(t){var o=v(this).constructor;i=Reflect.construct(a,arguments,o)}else i=a.apply(this,arguments);return g(this,i)}}var A=i[200],F=i[400],W=i[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:A,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:C.cAttachmentImg,children:[s("img",{"data-testid":"".concat("attachment","_preview"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{className:C.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(U,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:C.cAttachmentFileWrapper,children:[l("div",{className:C.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(N,{fileName:e.displayName||e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("attachment","_name"),className:C.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(R,{fileUrl:e.attachmentUrl,fileName:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},V=function(i){f(o,c);var a=z(o);function o(i){var r;t(this,o),r=a.call(this,i),e(u(r),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(r),"handleLightboxOpen",(function(){r.props.isNative&&document.documentElement.addEventListener("touchmove",r.preventIOSScroll,{passive:!1})})),e(u(r),"handleLightboxClose",(function(){r.props.isNative&&document.documentElement.removeEventListener("touchmove",r.preventIOSScroll),r.setState({lightboxIsOpen:!1})})),e(u(r),"openLightbox",(function(){return r.setState({lightboxIsOpen:!0})})),e(u(r),"setImageIsLoaded",(function(){return r.setState({imageIsLoaded:!0})})),e(u(r),"openPreview",(function(){return r.setState({previewIsOpen:!0})})),e(u(r),"closePreview",(function(e){e.stopPropagation(),r.setState({previewIsOpen:!1})})),r.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=w(i.displayName||i.attachmentUrl);return r.isImage=x.includes(s),r.isVideo=y.includes(s),r}return r(o,[{key:"render",value:function(){return this.isImage?s("div",{className:C.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:C.cAttachment,children:s(L,{className:C.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:C.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),o}();V.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},V.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:o};var q=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(V);export default q;
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import a from"@material-ui/core/colors/grey";import i from"../../utils/main.js";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import r from"@babel/runtime/helpers/createClass";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import x from"file-extension";import N from"image-extensions";import w from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import A from"../ImageViewer/index.js";import U from"../GoogleDocsViewer/index.js";import R from"./styles.css.js";function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=v(e);if(t){var o=v(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return g(this,a)}}var z=a[200],F=a[400],W=a[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:z,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:R.cAttachmentImg,children:[s("img",{"data-testid":"".concat("Attachment","_image"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{"data-testid":"".concat("Attachment","_button"),className:R.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{"data-testid":"".concat("Attachment","_placeholder"),className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(A,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:R.cAttachmentFileWrapper,children:[l("div",{className:R.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(w,{fileName:e.displayName||e.attachmentUrl,className:R.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("Attachment","_name"),className:R.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:i.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(U,{fileUrl:e.attachmentUrl,fileName:i.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:R.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("Attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},_=function(a){f(o,c);var i=C(o);function o(a){var r;t(this,o),r=i.call(this,a),e(u(r),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(r),"handleLightboxOpen",(function(){r.props.isNative&&document.documentElement.addEventListener("touchmove",r.preventIOSScroll,{passive:!1})})),e(u(r),"handleLightboxClose",(function(){r.props.isNative&&document.documentElement.removeEventListener("touchmove",r.preventIOSScroll),r.setState({lightboxIsOpen:!1})})),e(u(r),"openLightbox",(function(){return r.setState({lightboxIsOpen:!0})})),e(u(r),"setImageIsLoaded",(function(){return r.setState({imageIsLoaded:!0})})),e(u(r),"openPreview",(function(){return r.setState({previewIsOpen:!0})})),e(u(r),"closePreview",(function(e){e.stopPropagation(),r.setState({previewIsOpen:!1})})),r.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=x(a.displayName||a.attachmentUrl);return r.isImage=N.includes(s),r.isVideo=y.includes(s),r}return r(o,[{key:"render",value:function(){return this.isImage?s("div",{className:R.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:R.cAttachment,children:s(L,{"data-testid":"".concat("Attachment","_player"),className:R.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:R.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),o}();_.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},_.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:o};var V=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(_);export default V;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{get as r,uniq as n,includes as i,isEqual as o}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import l from"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as p,Fragment as a,jsx as m}from"react/jsx-runtime";import{makeStyles as c,Dialog as d,DialogTitle as u,Typography as f,Tooltip as j,IconButton as C,DialogContent as v,DialogActions as b,Button as g}from"@material-ui/core";import{useRef as x,useState as A,useMemo as h,useEffect as S,useCallback as D}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import y from"prop-types";import I from"classnames";import{Close as W}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import P from"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import{useWells as k,useFetchBicWellsData as E}from"./effects/index.js";import T from"./components/Map/index.js";import w from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as B}from"./constants.js";import O from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";function L(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 M(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?L(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=c({paper:{width:"541px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px"},description:{fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"rgba(255, 255, 255, 0.54)"},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{display:"flex",justifyContent:"flex-end",boxShadow:"0px -4px 10px rgba(0, 0, 0, 0.25)",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",marginTop:"2px",marginBottom:"24px",flexDirection:"column"}});function F(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"name")||"-"}function H(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"rigName")||"-"}function R(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function V(e){return e.map((function(e){return M(M({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var t=r(e,"bicWellIds")||[],i=r(e,"manualWellIds")||[],o=r(e,"selectedWellIds")||[];return n(t.concat(i).concat(o))}function z(e){var c=e.defaultSubjectWell,y=e.offsetSetting,L=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=N(),$=x(!0),J=A(r(c,"companyId")||r(y,"companyId")||+r(L,"company_id")),X=s(J,2),Y=X[0],Z=X[1],ee=A(r(c,"asset_id")||r(y,"subjectWellId")||null),te=s(ee,2),re=te[0],ne=te[1],ie=k(Y,z),oe=E(re,z),se=A([]),le=s(se,2),pe=le[0],ae=le[1],me=A(!1),ce=s(me,2),de=ce[0],ue=ce[1],fe=A(y),je=s(fe,2),Ce=je[0],ve=je[1],be=A(!1),ge=s(be,2),xe=ge[0],Ae=ge[1],he=h((function(){if(ie){var e=U(Ce);return ie.filter((function(t){return e.find((function(e){return e===r(t,"id")}))}))}return[]}),[ie,Ce]);S((function(){z&&(Z(r(c,"companyId")||r(y,"companyId")||+r(L,"company_id")),ne(r(c,"asset_id")||r(y,"subjectWellId")||null),ve(y),Ae(!1),$.current=!0)}),[y,z]),S((function(){if(z&&ie&&$.current){var e,o=r(Ce,"selectedWellIds")||[],s=r(Ce,"manualWellIds")||[],p=r(Ce,"bicWellIds")||[],a=o.concat(s),m=a.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:F(ie,e),rigName:H(ie,e),kind:o.includes(e)?"advanced":"manual"}}));if(oe&&oe.filters&&oe.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(t(r(oe,["filters","filterTabs"]))),f=(null===(c=oe.filters)||void 0===c?void 0:c.filterMode)||"holeSize",j=n(u);e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(j.map((function(e){var t;return{name:R(e,f),wells:(null===(t=oe.result[e.value])||void 0===t?void 0:t.filter((function(e){return ie.find((function(t){return t.id===e}))})).map((function(e){var t="object"===l(e)?e.id:e;return d.push(t),{id:t,checked:!1,name:F(ie,t),rigName:H(ie,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:xe}].concat(t(B));var C=e.map((function(e){var t=e.wells.map((function(e){return i(p,e.id)||i(a,e.id)?M(M({},e),{},{checked:!0}):M({},e)}));return M(M({},e),{},{wells:t})}));ae(V(C))}}),[z,ie,oe,Ce]);var Se=D((function(){return U(Ce).length}),[Ce]),De=D((function(){return(r(Ce,"bicWellIds")||[]).length})),ye=!ie;return p(a,{children:[p(d,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Q.paper},children:[m(u,{children:p("div",{className:Q.dialogTitles,children:[p("div",{className:Q.titleContent,children:[m(f,{className:Q.title,children:"Select Offset Wells"}),m(j,{title:"Close",children:m(C,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Q.closeIconButton,onClick:_,children:m(W,{className:Q.closeIcon})})})]}),m("div",{className:Q.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),m(v,{className:Q.dialogContent,children:ye?m(P,{fullscreen:!1}):p(a,{children:[m(T,{wells:he,offsetWells:he}),m(w,{company:Y,wellSections:pe,getWellName:F,onChangeWellSections:function(e){var t=V(e);ae(t),Ae(t[0].expanded);var r=[],i=[],o=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&i.push(e.id),e.checked&&"best"===e.kind&&o.push(e.id)}))}));var s=r.concat(i).concat(o),l=M(M({},Ce),{},{selectedWellIds:n(r),manualWellIds:n(i),bicWellIds:n(o),resultWellIds:n(s)});ve(l),$.current=!1},onExploreMode:function(){ue(!0)}})]})}),m(b,{className:I(Q.dialogActions),children:p("div",{children:[m(g,{onClick:_,color:"primary",children:"Cancel"}),p(g,{variant:"contained",color:"primary",onClick:function(){var e=U(Ce),t=ie.filter((function(t){return i(e,t.id)})),r=M(M({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(r,t)},children:["Add (",Se(),")"]})]})})]}),de&&m(O,{defaultSubjectWellId:r(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:L,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:De(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var t=e;c||(o(re,r(t,"subjectWellId"))&&o(Y,r(t,"companyId"))||(t=M(M({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ne(r(t,"subjectWellId")),Z(r(t,"companyId")));var n=r(t,"manualWellIds")||[],i=r(t,"selectedWellIds")||[];n=n.filter((function(e){return!i.includes(e)})),t=M(M({},t),{},{manualWellIds:n}),ve(t),$.current=!0,Ae(!0),ue(!1)}})]})}z.propTypes={defaultSubjectWell:y.shape({}),offsetSetting:y.shape({subjectWellId:y.number,companyId:y.number}),currentUser:y.shape({}),isOpen:y.bool.isRequired,onClose:y.func.isRequired,onSave:y.func.isRequired,addWellsUsabilityInfo:y.func,unusableWellAlarm:y.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export default z;
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import{get as r,uniq as n,includes as o,isEqual as i}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import p from"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as l,Fragment as a,jsx as m}from"react/jsx-runtime";import{makeStyles as c,Dialog as d,DialogTitle as u,Typography as j,Tooltip as f,IconButton as C,DialogContent as v,DialogActions as b,Button as g}from"@material-ui/core";import{useRef as A,useState as x,useMemo as h,useEffect as I,useCallback as S}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import D from"prop-types";import y from"classnames";import{Close as W}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import P from"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import{useWells as E,useFetchBicWellsData as k}from"./effects/index.js";import T from"./components/Map/index.js";import w from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as B}from"./constants.js";import O from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../KeyboardDateTimePicker.js";import"../PostInput/PostInput.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";function L(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(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?L(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var M=c({paper:{width:"541px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px"},description:{fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"rgba(255, 255, 255, 0.54)"},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:"#BDBDBD"},dialogActions:{display:"flex",justifyContent:"flex-end",boxShadow:"0px -4px 10px rgba(0, 0, 0, 0.25)",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",marginTop:"2px",marginBottom:"24px",flexDirection:"column"}});function N(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"name")||"-"}function H(e,t){var n=e.find((function(e){return e.id===t}));return r(n,"rigName")||"-"}function R(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function V(e){return e.map((function(e){return F(F({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var t=r(e,"bicWellIds")||[],o=r(e,"manualWellIds")||[],i=r(e,"selectedWellIds")||[];return n(t.concat(o).concat(i))}function z(e){var c=e.defaultSubjectWell,D=e.offsetSetting,L=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,K=e.addWellsUsabilityInfo,G=e.unusableWellAlarm,Q=M(),$=A(!0),J=x(r(c,"companyId")||r(D,"companyId")||+r(L,"company_id")),X=s(J,2),Y=X[0],Z=X[1],ee=x(r(c,"asset_id")||r(D,"subjectWellId")||null),te=s(ee,2),re=te[0],ne=te[1],oe=E(Y,z),ie=k(re,z),se=x([]),pe=s(se,2),le=pe[0],ae=pe[1],me=x(!1),ce=s(me,2),de=ce[0],ue=ce[1],je=x(D),fe=s(je,2),Ce=fe[0],ve=fe[1],be=x(!1),ge=s(be,2),Ae=ge[0],xe=ge[1],he=h((function(){if(oe){var e=U(Ce);return oe.filter((function(t){return e.find((function(e){return e===r(t,"id")}))}))}return[]}),[oe,Ce]);I((function(){z&&(Z(r(c,"companyId")||r(D,"companyId")||+r(L,"company_id")),ne(r(c,"asset_id")||r(D,"subjectWellId")||null),ve(D),xe(!1),$.current=!0)}),[D,z]),I((function(){if(z&&oe&&$.current){var e,i=r(Ce,"selectedWellIds")||[],s=r(Ce,"manualWellIds")||[],l=r(Ce,"bicWellIds")||[],a=i.concat(s),m=a.filter((function(e){return oe.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:N(oe,e),rigName:H(oe,e),kind:i.includes(e)?"advanced":"manual"}}));if(ie&&ie.filters&&ie.result){var c,d=[],u=[{name:"Wells within Area",value:"area"}].concat(t(r(ie,["filters","filterTabs"]))),j=(null===(c=ie.filters)||void 0===c?void 0:c.filterMode)||"holeSize",f=n(u);e=[{name:"Search Results",wells:m,expanded:Ae}].concat(t(f.map((function(e){var t;return{name:R(e,j),wells:(null===(t=ie.result[e.value])||void 0===t?void 0:t.filter((function(e){return oe.find((function(t){return t.id===e}))})).map((function(e){var t="object"===p(e)?e.id:e;return d.push(t),{id:t,checked:!1,name:N(oe,t),rigName:H(oe,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:Ae}].concat(t(B));var C=e.map((function(e){var t=e.wells.map((function(e){return o(l,e.id)||o(a,e.id)?F(F({},e),{},{checked:!0}):F({},e)}));return F(F({},e),{},{wells:t})}));ae(V(C))}}),[z,oe,ie,Ce]);var Ie=S((function(){return U(Ce).length}),[Ce]),Se=S((function(){return(r(Ce,"bicWellIds")||[]).length})),De=!oe;return l(a,{children:[l(d,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Q.paper},children:[m(u,{children:l("div",{className:Q.dialogTitles,children:[l("div",{className:Q.titleContent,children:[m(j,{className:Q.title,children:"Select Offset Wells"}),m(f,{title:"Close",children:m(C,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Q.closeIconButton,onClick:_,children:m(W,{className:Q.closeIcon})})})]}),m("div",{className:Q.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),m(v,{className:Q.dialogContent,children:De?m(P,{fullscreen:!1}):l(a,{children:[m(T,{wells:he,offsetWells:he}),m(w,{company:Y,wellSections:le,getWellName:N,onChangeWellSections:function(e){var t=V(e);ae(t),xe(t[0].expanded);var r=[],o=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&o.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var s=r.concat(o).concat(i),p=F(F({},Ce),{},{selectedWellIds:n(r),manualWellIds:n(o),bicWellIds:n(i),resultWellIds:n(s)});ve(p),$.current=!1},onExploreMode:function(){ue(!0)}})]})}),m(b,{className:y(Q.dialogActions),children:l("div",{children:[m(g,{onClick:_,color:"primary",children:"Cancel"}),l(g,{variant:"contained",color:"primary",onClick:function(){var e=U(Ce),t=oe.filter((function(t){return o(e,t.id)})),r=F(F({},Ce),{},{companyId:+Y,resultWellIds:e});ue(!1),q(r,t)},children:["Add (",Ie(),")"]})]})})]}),de&&m(O,{defaultSubjectWellId:r(c,"asset_id"),companyId:+Y,offsetSetting:Ce,currentUser:L,addWellsUsabilityInfo:K,unusableWellAlarm:G,isAdvancedSearch:!0,bestCount:Se(),isOpen:de,onClose:function(){ue(!1)},onSave:function(e){var t=e;c||(i(re,r(t,"subjectWellId"))&&i(Y,r(t,"companyId"))||(t=F(F({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ne(r(t,"subjectWellId")),Z(r(t,"companyId")));var n=r(t,"manualWellIds")||[],o=r(t,"selectedWellIds")||[];n=n.filter((function(e){return!o.includes(e)})),t=F(F({},t),{},{manualWellIds:n}),ve(t),$.current=!0,xe(!0),ue(!1)}})]})}z.propTypes={defaultSubjectWell:D.shape({}),offsetSetting:D.shape({subjectWellId:D.number,companyId:D.number}),currentUser:D.shape({}),isOpen:D.bool.isRequired,onClose:D.func.isRequired,onSave:D.func.isRequired,addWellsUsabilityInfo:D.func,unusableWellAlarm:D.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export default z;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs as o}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as s}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";var p=r((function(e){return{container:{fontSize:"0.8125rem"},pathPart:{color:e.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var i=r.pathItems,m=p();return t(o,{className:m.container,children:i.map((function(r,o,i){return t(s,{className:n(m.pathPart,e({},m.lastPathPart,o===i.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:i.arrayOf(i.shape({text:i.string,href:i.string})).isRequired};export default m;
1
+ import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs as o}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../ConfirmationDialog.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as s}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../PadModeSelect/PadModeSelect.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../TruncatedText/index.js";import"../AssetEditor/SingleAssetEditor.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../ColorPicker/ColorPicker.js";import"../ParameterCharts/AddEditTrack.js";import"../ParameterCharts/ParameterCharts.js";import"../ChartActionsList/ChartActionsList.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../RangeSlider/RangeSlider.js";import"../Login/components/Login.js";import"../Login/components/PasswordField.js";import"../Login/components/Chip.js";import"../Login/components/StepFooter.js";import"../Login/components/StepContent.js";import"../Login/components/StepHeader.js";import"../Login/components/Step.js";import"../Login/components/OrDivider.js";import"../Login/components/HiddenEmailField.js";import"../Login/components/EmailField.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../Button/index.js";import"../MenuItem/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTable/index.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../Notifications/Notifications.js";import"../TextLink/index.js";import"../Template/TemplatePopover/index.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../KeyboardDateTimePicker.js";import"../PostInput/PostInput.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";var p=r((function(e){return{container:{fontSize:"0.8125rem"},pathPart:{color:e.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var i=r.pathItems,m=p();return t(o,{className:m.container,children:i.map((function(r,o,i){return t(s,{className:n(m.pathPart,e({},m.lastPathPart,o===i.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:i.arrayOf(i.shape({text:i.string,href:i.string})).isRequired};export default m;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./ConfirmationDialog.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./Tooltip/MuiTooltipDcWrapper.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./PadModeSelect/PadModeSelect.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./ColorPicker/ColorPicker.js";import"./ParameterCharts/AddEditTrack.js";import"./ParameterCharts/ParameterCharts.js";import"./ChartActionsList/ChartActionsList.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./RangeSlider/RangeSlider.js";import"./Login/components/Login.js";import"./Login/components/PasswordField.js";import"./Login/components/Chip.js";import"./Login/components/StepFooter.js";import"./Login/components/StepContent.js";import"./Login/components/StepHeader.js";import"./Login/components/Step.js";import"./Login/components/OrDivider.js";import"./Login/components/HiddenEmailField.js";import"./Login/components/EmailField.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/EmptyView.js";import"./Button/index.js";import"./MenuItem/index.js";import"./ContextMenuItem/index.js";import"./FolderMenuItem/index.js";import"./EditableItem/EditableItem/index.js";import"./EditableItem/EditableItemWithBadge/index.js";import"./Checkbox/index.js";import"./FolderMenuItemWithLinks/index.js";import"./IconButton/index.js";import"./TextField/index.js";import"./Chip/index.js";import"./Counter/index.js";import"./AnchorsList/AnchorsList.js";import"./Select/index.js";import"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTable/index.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./Notifications/Notifications.js";import"./TextLink/index.js";import"./Template/TemplatePopover/index.js";import"./PinnableFilters/PinnableFilters.js";import"./HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker/PadOffsetsPicker.js";import"./PadOffsetsPicker/OffsetAssetChip.js";import"./PadOffsetsPicker/OffsetAssetsListExpander.js";import"./PadOffsetsPicker/StagesSelector.js";import"./Table/TableToolbar/TableToolbar.js";import"./PriceInput/PriceInput.js";import"./LabelsCounter/LabelsCounter.js";import"./Stepper/Step.js";import"./Stepper/StepsWrapper.js";import"./Stepper/Stepper.js";import"./Comment/CommentIcon/index.js";import"./FilesLoader/FilesLoader.js";import"./SearchInput/index.js";var C=function(t){var n,m=t.classes,C=t.children,u=t.onStateChange,g=t.initialState,f=t.drawerPaperClassName,D=t.isToolbarGutterShown,A=t.openedDrawerWidth,v=t.anchor,h=a(g),x=o(h,2),b=x[0],S=x[1],P=function(){S(!b),u(!b)},T="left"===v?d:c;return r(j,{isToolbarGutterShown:D,drawerWidth:A,drawerClassName:l(m.drawer,!b&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,f,!b&&m.drawerClosed),anchor:v,listClassName:m.list,onClick:function(){b||P()},children:[C,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!b),e(n,m.openToggleContainerOpened,b),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:P,children:i(T,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!b))})})})]})};C.propTypes={children:m.node.isRequired,onStateChange:m.func,initialState:m.bool,drawerPaperClassName:m.string,isToolbarGutterShown:m.bool,openedDrawerWidth:m.oneOfType([m.string,m.number]),anchor:m.oneOf(["left","right"]),closedWidth:m.oneOfType([m.string,m.number])},C.defaultProps={onStateChange:t,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=n((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(C);export default u;
1
+ import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import{noop as t}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./ConfirmationDialog.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./Tooltip/MuiTooltipDcWrapper.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./PadModeSelect/PadModeSelect.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./ColorPicker/ColorPicker.js";import"./ParameterCharts/AddEditTrack.js";import"./ParameterCharts/ParameterCharts.js";import"./ChartActionsList/ChartActionsList.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./RangeSlider/RangeSlider.js";import"./Login/components/Login.js";import"./Login/components/PasswordField.js";import"./Login/components/Chip.js";import"./Login/components/StepFooter.js";import"./Login/components/StepContent.js";import"./Login/components/StepHeader.js";import"./Login/components/Step.js";import"./Login/components/OrDivider.js";import"./Login/components/HiddenEmailField.js";import"./Login/components/EmailField.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/EmptyView.js";import"./Button/index.js";import"./MenuItem/index.js";import"./ContextMenuItem/index.js";import"./FolderMenuItem/index.js";import"./EditableItem/EditableItem/index.js";import"./EditableItem/EditableItemWithBadge/index.js";import"./Checkbox/index.js";import"./FolderMenuItemWithLinks/index.js";import"./IconButton/index.js";import"./TextField/index.js";import"./Chip/index.js";import"./Counter/index.js";import"./AnchorsList/AnchorsList.js";import"./Select/index.js";import"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTable/index.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./Notifications/Notifications.js";import"./TextLink/index.js";import"./Template/TemplatePopover/index.js";import"./PinnableFilters/PinnableFilters.js";import"./HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker/PadOffsetsPicker.js";import"./PadOffsetsPicker/OffsetAssetChip.js";import"./PadOffsetsPicker/OffsetAssetsListExpander.js";import"./PadOffsetsPicker/StagesSelector.js";import"./Table/TableToolbar/TableToolbar.js";import"./PriceInput/PriceInput.js";import"./LabelsCounter/LabelsCounter.js";import"./Stepper/Step.js";import"./Stepper/StepsWrapper.js";import"./Stepper/Stepper.js";import"./Comment/CommentIcon/index.js";import"./FilesLoader/FilesLoader.js";import"./SearchInput/index.js";import"./FeedItem/FeedItem.js";import"./KeyboardDateTimePicker.js";import"./PostInput/PostInput.js";import"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"./AddComment/Popover.js";import"./AddComment/Popup.js";var C=function(t){var n,m=t.classes,C=t.children,u=t.onStateChange,g=t.initialState,f=t.drawerPaperClassName,A=t.isToolbarGutterShown,D=t.openedDrawerWidth,v=t.anchor,h=a(g),x=o(h,2),b=x[0],S=x[1],P=function(){S(!b),u(!b)},T="left"===v?d:c;return r(j,{isToolbarGutterShown:A,drawerWidth:D,drawerClassName:l(m.drawer,!b&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,f,!b&&m.drawerClosed),anchor:v,listClassName:m.list,onClick:function(){b||P()},children:[C,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!b),e(n,m.openToggleContainerOpened,b),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:P,children:i(T,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!b))})})})]})};C.propTypes={children:m.node.isRequired,onStateChange:m.func,initialState:m.bool,drawerPaperClassName:m.string,isToolbarGutterShown:m.bool,openedDrawerWidth:m.oneOfType([m.string,m.number]),anchor:m.oneOf(["left","right"]),closedWidth:m.oneOfType([m.string,m.number])},C.defaultProps={onStateChange:t,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=n((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(C);export default u;