@corva/ui 0.33.0-10 → 0.33.0-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import{range as n,flattenDepth as r}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,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function d(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function m(){return y.apply(this,arguments)}function y(){return(y=a(e.mark((function t(){var n;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!=(n=t.sent)&&n.ok){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,n.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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/wells",n));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(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/wells/".concat(n),r));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(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/rigs/".concat(n),r));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 n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/rigs",n));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 n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/programs",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t){return I.apply(this,arguments)}function I(){return(I=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/assets/".concat(n),r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(){return T.apply(this,arguments)}function T(){return(T=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/assets",n));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 n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",s("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(){return N.apply(this,arguments)}function N(){return(N=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/pads",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return(E=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/frac_fleets",n));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(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/drillout_units/".concat(n),r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(){return F.apply(this,arguments)}function F(){return(F=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function G(t,n,r){return M.apply(this,arguments)}function M(){return(M=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function z(t,n,r){return B.apply(this,arguments)}function B(){return(B=a(e.mark((function t(n,r,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(n,"/").concat(r),d(d({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,n){return L.apply(this,arguments)}function L(){return(L=a(e.mark((function t(n,r){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(n,"/").concat(r,"/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,n){return V.apply(this,arguments)}function V(){return(V=a(e.mark((function t(n,r){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(n,"/").concat(r,"/aggregate/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t,n,r,e){return X.apply(this,arguments)}function X(){return(X=a(e.mark((function t(n,r,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(n,"/").concat(r,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(t,n,r,e,a){return Z.apply(this,arguments)}function Z(){return(Z=a(e.mark((function t(n,r,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(n,"/").concat(r,"/").concat(a),c,u,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,n,r){return nt.apply(this,arguments)}function nt(){return(nt=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/data/".concat(n,"/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rt(t,n,r){return et.apply(this,arguments)}function et(){return(et=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(r),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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/competitor_analysis",n));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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/picklists/".concat(n)));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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies/".concat(n,"/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(n){var r,a,c,u;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:r},{$group:a},{$sort:c}])},t.prev=4,t.next=7,z("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return vt.apply(this,arguments)}),_t=(dt=a(e.mark((function t(n,r){var a;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(r,"'}"),t.prev=1,t.next=4,z("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return dt.apply(this,arguments)}),bt=(mt=a(e.mark((function t(n,r,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:+n,"metadata.file":r},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",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return 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=n(s).map((function(t){return bt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return r(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return yt.apply(this,arguments)}),kt=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return p("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function xt(t){switch(t){case"program":return P;case"rig":return O;case"well":return w;case"frac_fleet":return S;case"drillout_unit":return R;case"pad":return C;default:return D}}function Ot(t){switch(t){case"rig":return k;case"well":return b;default:return A}}var jt=function(t,n){return p("/v2/apps/".concat(t,"/app_media"),n)},Pt=function(t,n){return o("/v2/apps/".concat(t,"/app_media/").concat(n),null)},$t=function(t,n){var r=n.file,e=n.mediaType;return f("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},At=function(t,n,r){return l("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},It=function(t,n){return p("/v2/apps/".concat(t,"/app_help_contents"),n)},Dt=function(t,n){return o("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},Tt=function(t,n){var r=n.title,e=n.description,a=n.url;return f("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},Ut=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return l("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function qt(t){return Ct.apply(this,arguments)}function Ct(){return(Ct=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",d({app_annotation:n},r)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Nt(t,n){return St.apply(this,arguments)}function St(){return(St=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(n),{app_annotation:r}));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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kt(t,n){return Rt.apply(this,arguments)}function Rt(){return(Rt=a(e.mark((function t(n,r){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:n,asset_id:r},a)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ft(t,n,r){return Gt.apply(this,arguments)}function Gt(){return(Gt=a(e.mark((function t(n,r,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},r&&(c.asset_id=r),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 Mt(t){return zt.apply(this,arguments)}function zt(){return(zt=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Bt(t,n){return Ht.apply(this,arguments)}function Ht(){return(Ht=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),r));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(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/dashboard_app_annotations/".concat(n,"/comments/"),r));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,n,r){return Xt.apply(this,arguments)}function Xt(){return(Xt=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(n,"/comments/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t,n){return Zt.apply(this,arguments)}function Zt(){return(Zt=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(n,"/comments"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tn(t,n){return nn.apply(this,arguments)}function nn(){return(nn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments/").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rn(t){return en.apply(this,arguments)}function en(){return(en=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function an(t,n){return cn.apply(this,arguments)}function cn(){return(cn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(n),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function un(t){return pn.apply(this,arguments)}function pn(){return(pn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function sn(t,n,r){return on.apply(this,arguments)}function on(){return(on=a(e.mark((function t(n,r,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},r&&(c.search=r),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 fn(t,n){return ln.apply(this,arguments)}function ln(){return(ln=a(e.mark((function t(n,r){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(n),"&contentType=").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function hn(t){return vn.apply(this,arguments)}function vn(){return(vn=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",p("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(r),{}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var dn=function(t,n){return p("/v2/apps/".concat(t,"/packages"),n)};function mn(t){return yn.apply(this,arguments)}function yn(){return(yn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/sessions/schemas",{email:n,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wn(t){return _n.apply(this,arguments)}function _n(){return(_n=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bn(t,n){return gn.apply(this,arguments)}function gn(){return(gn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/pads/".concat(n,"/app_wells"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kn(t){return xn.apply(this,arguments)}function xn(){return(xn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function On(){return jn.apply(this,arguments)}function jn(){return(jn=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",s("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Pn=function(t){return p("/v2/apps/".concat(t,"/app_settings_templates"),{})},$n=function(t,n){return p("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},An=function(t,n,r){var e=r.name,a=r.settings;return l("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},In=function(t,n){var r=n.name,e=n.settings;return s("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},Dn=function(t,n){return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Tn=function(t,n,r){var e=c({user_id:r},{arrayFormat:"bracket"});return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},Un=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,s=t.companyId,o=t.ids;return p("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==s?s:void 0})};function qn(t,n){return Cn.apply(this,arguments)}function Cn(){return(Cn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Nn(t,n){return Sn.apply(this,arguments)}function Sn(){return(Sn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/users/".concat(n,"/settings/").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function En(){return Jn.apply(this,arguments)}function Jn(){return(Jn=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)}function Kn(){return Rn.apply(this,arguments)}function Rn(){return(Rn=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{Mt as closeLastAnnotation,Et as deleteAnnotation,Dt as deleteAppHelpContent,Pt as deleteAppMedia,Dn as deleteAppSettingsTemplate,G as deleteAppStorageRecords,un as deleteFeedItem,tn as deleteFeedItemComment,gt as getAllLASFileData,Lt as getAnnotationComments,Kt as getAnnotations,It as getAppHelpContent,jt as getAppMedia,dn as getAppPackages,$n as getAppSettingsTemplate,Pn as getAppSettingsTemplates,z as getAppStorage,A as getAsset,D as getAssets,ut as getCompanies,lt as getCompanyGoals,at as getCompetitorAnalysisData,m as getCurrentUser,Ft as getDashboardLastAnnotations,H as getDataAppStorage,Q as getDataAppStorageAggregate,J as getDrilloutUnit,R as getDrilloutUnits,it as getFavorites,Vt as getFileDownloadLink,wn as getFracFleetWells,S as getFracFleets,bt as getLASFileDataByPage,wt as getLASFileList,_t as getLASMetadata,bn as getPadWells,C as getPads,Kn as getPermissionCheck,st as getPicklist,P as getPrograms,U as getResolvedAssets,k as getRig,O as getRigs,hn as getS3DownloadLink,fn as getS3SignedUrl,kt as getStreams,kn as getTask,mn as getUserAuthSchemas,sn as getUserAutocomplete,Nn as getUserSetting,Un as getUsers,b as getWell,w as getWells,En as logout,Ot as mapAssetByIdGetRequest,xt as mapAssetGetRequest,Nt as patchAnnotation,An as patchAppSettingsTemplate,an as patchFeedItem,Wt as patchFeedItemComment,qt as postAnnotation,Bt as postAnnotationComment,In as postAppSettingsTemplate,tt as postAppStorage,rt as postDataAppStorage,Yt as postFeedItemComment,On as postTask,W as putAppStorage,Y as putDataAppStorage,qn as setCurrentUserSettings,Tn as shareAppSettingsTemplate,rn as toggleFeedItemLike,Ut as updateAppHelpContent,At as updateAppMedia,Tt as uploadAppHelpContent,$t as uploadAppMedia};
1
+ import t from"@babel/runtime/helpers/defineProperty";import{range as n,flattenDepth as r}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,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function d(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function m(){return y.apply(this,arguments)}function y(){return(y=a(e.mark((function t(){var n;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!=(n=t.sent)&&n.ok){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,n.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(){return _.apply(this,arguments)}function _(){return(_=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/integration/wellview/bha",n));case 2: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(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/wells",n));case 1: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(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/wells/".concat(n),r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(t){return j.apply(this,arguments)}function j(){return(j=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/rigs/".concat(n),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 n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/rigs",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(){return I.apply(this,arguments)}function I(){return(I=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/programs",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(t){return T.apply(this,arguments)}function T(){return(T=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/assets/".concat(n),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 n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/assets",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(){return N.apply(this,arguments)}function N(){return(N=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",s("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return(E=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/pads",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(){return K.apply(this,arguments)}function K(){return(K=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/frac_fleets",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(t){return F.apply(this,arguments)}function F(){return(F=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/drillout_units/".concat(n),r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function G(){return M.apply(this,arguments)}function M(){return(M=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function z(t,n,r){return B.apply(this,arguments)}function B(){return(B=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function H(t,n,r){return L.apply(this,arguments)}function L(){return(L=a(e.mark((function t(n,r,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(n,"/").concat(r),d(d({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t,n){return V.apply(this,arguments)}function V(){return(V=a(e.mark((function t(n,r){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(n,"/").concat(r,"/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t,n){return X.apply(this,arguments)}function X(){return(X=a(e.mark((function t(n,r){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(n,"/").concat(r,"/aggregate/"),a,{apiUrl:h.DATA_API}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(t,n,r,e){return Z.apply(this,arguments)}function Z(){return(Z=a(e.mark((function t(n,r,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(n,"/").concat(r,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,n,r,e,a){return nt.apply(this,arguments)}function nt(){return(nt=a(e.mark((function t(n,r,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(n,"/").concat(r,"/").concat(a),c,u,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rt(t,n,r){return et.apply(this,arguments)}function et(){return(et=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/data/".concat(n,"/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(t,n,r){return ct.apply(this,arguments)}function ct(){return(ct=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(r),a,{apiUrl:h.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(t){return pt.apply(this,arguments)}function pt(){return(pt=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/competitor_analysis",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function st(){return ot.apply(this,arguments)}function ot(){return(ot=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 it(t){return ft.apply(this,arguments)}function ft(){return(ft=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/picklists/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(){return ht.apply(this,arguments)}function ht(){return(ht=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 vt(t){return dt.apply(this,arguments)}function dt(){return(dt=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/companies/".concat(n,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var mt,yt,wt,_t,bt=(mt=a(e.mark((function t(n){var r,a,c,u;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:r},{$group:a},{$sort:c}])},t.prev=4,t.next=7,H("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return mt.apply(this,arguments)}),gt=(yt=a(e.mark((function t(n,r){var a;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(r,"'}"),t.prev=1,t.next=4,H("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return yt.apply(this,arguments)}),kt=(wt=a(e.mark((function t(n,r,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:+n,"metadata.file":r},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,H("corva","formation-evaluation.data",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return wt.apply(this,arguments)}),xt=(_t=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=n(s).map((function(t){return kt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return r(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return _t.apply(this,arguments)}),Ot=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return p("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function jt(t){switch(t){case"program":return A;case"rig":return P;case"well":return b;case"frac_fleet":return J;case"drillout_unit":return G;case"pad":return S;default:return U}}function Pt(t){switch(t){case"rig":return O;case"well":return k;default:return D}}var $t=function(t,n){return p("/v2/apps/".concat(t,"/app_media"),n)},At=function(t,n){return o("/v2/apps/".concat(t,"/app_media/").concat(n),null)},It=function(t,n){var r=n.file,e=n.mediaType;return f("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},Dt=function(t,n,r){return l("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},Tt=function(t,n){return p("/v2/apps/".concat(t,"/app_help_contents"),n)},Ut=function(t,n){return o("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},qt=function(t,n){var r=n.title,e=n.description,a=n.url;return f("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},Ct=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return l("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function Nt(t){return St.apply(this,arguments)}function St(){return(St=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",d({app_annotation:n},r)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Et(t,n){return Jt.apply(this,arguments)}function Jt(){return(Jt=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(n),{app_annotation:r}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kt(t){return Rt.apply(this,arguments)}function Rt(){return(Rt=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ft(t,n){return Gt.apply(this,arguments)}function Gt(){return(Gt=a(e.mark((function t(n,r){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:n,asset_id:r},a)));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mt(t,n,r){return zt.apply(this,arguments)}function zt(){return(zt=a(e.mark((function t(n,r,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},r&&(c.asset_id=r),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 Bt(t){return Ht.apply(this,arguments)}function Ht(){return(Ht=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Lt(t,n){return Qt.apply(this,arguments)}function Qt(){return(Qt=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Vt(t){return Wt.apply(this,arguments)}function Wt(){return(Wt=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",p("/v2/dashboard_app_annotations/".concat(n,"/comments/"),r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Xt(t){return"".concat(u,"/v1/file/download?file_name=").concat(t)}function Yt(t,n,r){return Zt.apply(this,arguments)}function Zt(){return(Zt=a(e.mark((function t(n,r,a){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(n,"/comments/").concat(r),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tn(t,n){return nn.apply(this,arguments)}function nn(){return(nn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(n,"/comments"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rn(t,n){return en.apply(this,arguments)}function en(){return(en=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments/").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function an(t){return cn.apply(this,arguments)}function cn(){return(cn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function un(t,n){return pn.apply(this,arguments)}function pn(){return(pn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l("/v1/activities/".concat(n),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function sn(t){return on.apply(this,arguments)}function on(){return(on=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function fn(t,n,r){return ln.apply(this,arguments)}function ln(){return(ln=a(e.mark((function t(n,r,a){var c;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},r&&(c.search=r),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 hn(t,n){return vn.apply(this,arguments)}function vn(){return(vn=a(e.mark((function t(n,r){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(n),"&contentType=").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dn(t){return mn.apply(this,arguments)}function mn(){return(mn=a(e.mark((function t(n){var r,a=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",p("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(r),{}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var yn=function(t,n){return p("/v2/apps/".concat(t,"/packages"),n)};function wn(t){return _n.apply(this,arguments)}function _n(){return(_n=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/sessions/schemas",{email:n,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bn(t){return gn.apply(this,arguments)}function gn(){return(gn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kn(t,n){return xn.apply(this,arguments)}function xn(){return(xn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/pads/".concat(n,"/app_wells"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function On(t){return jn.apply(this,arguments)}function jn(){return(jn=a(e.mark((function t(n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Pn(){return $n.apply(this,arguments)}function $n(){return($n=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",s("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var An=function(t){return p("/v2/apps/".concat(t,"/app_settings_templates"),{})},In=function(t,n){return p("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Dn=function(t,n,r){var e=r.name,a=r.settings;return l("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},Tn=function(t,n){var r=n.name,e=n.settings;return s("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},Un=function(t,n){return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},qn=function(t,n,r){var e=c({user_id:r},{arrayFormat:"bracket"});return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},Cn=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,s=t.companyId,o=t.ids;return p("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==s?s:void 0})};function Nn(t,n){return Sn.apply(this,arguments)}function Sn(){return(Sn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings"),r));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function En(t,n){return Jn.apply(this,arguments)}function Jn(){return(Jn=a(e.mark((function t(n,r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p("/v1/users/".concat(n,"/settings/").concat(r)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Kn(){return Rn.apply(this,arguments)}function Rn(){return(Rn=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)}function Fn(){return Gn.apply(this,arguments)}function Gn(){return(Gn=a(e.mark((function t(){var n,r=arguments;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.abrupt("return",p("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{Bt as closeLastAnnotation,Kt as deleteAnnotation,Ut as deleteAppHelpContent,At as deleteAppMedia,Un as deleteAppSettingsTemplate,z as deleteAppStorageRecords,sn as deleteFeedItem,rn as deleteFeedItemComment,xt as getAllLASFileData,Vt as getAnnotationComments,Ft as getAnnotations,Tt as getAppHelpContent,$t as getAppMedia,yn as getAppPackages,In as getAppSettingsTemplate,An as getAppSettingsTemplates,H as getAppStorage,D as getAsset,U as getAssets,st as getCompanies,vt as getCompanyGoals,ut as getCompetitorAnalysisData,m as getCurrentUser,Mt as getDashboardLastAnnotations,Q as getDataAppStorage,W as getDataAppStorageAggregate,R as getDrilloutUnit,G as getDrilloutUnits,lt as getFavorites,Xt as getFileDownloadLink,bn as getFracFleetWells,J as getFracFleets,kt as getLASFileDataByPage,bt as getLASFileList,gt as getLASMetadata,kn as getPadWells,S as getPads,Fn as getPermissionCheck,it as getPicklist,A as getPrograms,C as getResolvedAssets,O as getRig,P as getRigs,dn as getS3DownloadLink,hn as getS3SignedUrl,Ot as getStreams,On as getTask,wn as getUserAuthSchemas,fn as getUserAutocomplete,En as getUserSetting,Cn as getUsers,k as getWell,w as getWellViewBha,b as getWells,Kn as logout,Pt as mapAssetByIdGetRequest,jt as mapAssetGetRequest,Et as patchAnnotation,Dn as patchAppSettingsTemplate,un as patchFeedItem,Yt as patchFeedItemComment,Nt as postAnnotation,Lt as postAnnotationComment,Tn as postAppSettingsTemplate,rt as postAppStorage,at as postDataAppStorage,tn as postFeedItemComment,Pn as postTask,Y as putAppStorage,tt as putDataAppStorage,Nn as setCurrentUserSettings,qn as shareAppSettingsTemplate,an as toggleFeedItemLike,Ct as updateAppHelpContent,Dt as updateAppMedia,qt as uploadAppHelpContent,It as uploadAppMedia};
@@ -0,0 +1 @@
1
+ import"@babel/runtime/helpers/defineProperty";import{formatAssetName as e}from"../../utils/formatting.js";import{jsx as r}from"react/jsx-runtime";import{memo as t}from"react";import"@babel/runtime/helpers/objectWithoutProperties";import i from"prop-types";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as o}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withSize as s}from"react-sizeme";import m from"./styles.css.js";var a=function(t){var i=t.primaryAssetName,s=t.pageName,a=t.coordinatesPixelWidth,n=t.primaryAssetLink;return r(o,{"data-testid":"".concat(s,"_primaryAsset"),href:n||"/feed",children:r("div",{className:m.item,children:e(i,a)})})};a.propTypes={primaryAssetName:i.string.isRequired,pageName:i.string.isRequired,primaryAssetLink:i.any.isRequired,coordinatesPixelWidth:i.number},a.defaultProps={coordinatesPixelWidth:void 0};var n=t(s()(a));export default n;
@@ -0,0 +1 @@
1
+ import"@babel/runtime/helpers/defineProperty";import{formatAssetName as e}from"../../utils/formatting.js";import{jsx as r}from"react/jsx-runtime";import{Tooltip as t}from"@material-ui/core";import{memo as s}from"react";import"@babel/runtime/helpers/objectWithoutProperties";import i from"prop-types";import o from"classnames";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as a}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withSize as n}from"react-sizeme";import m from"./styles.css.js";var c=function(s){var i=s.secondaryAssetName,n=s.coordinatesPixelWidth,c=s.secondaryAssetLink,d=s.pageName;return r(t,{title:i,children:r("div",{className:m.seccondaryAssetWrapper,children:r(a,{href:c,className:m.seccondaryAssetLink,children:r("div",{id:"assetLabel","data-testid":"".concat(d,"_secondaryAsset"),className:o(m.item,m.secondaryAsset),children:e(i,n)})})})})};c.propTypes={pageName:i.string.isRequired,secondaryAssetName:i.string,secondaryAssetLink:i.any.isRequired,coordinatesPixelWidth:i.number},c.defaultProps={secondaryAssetName:"",coordinatesPixelWidth:void 0};var d=s(n()(c));export default d;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,FormControl as n,InputLabel as i,Select as l}from"@material-ui/core";import p from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function s(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var u=o((function(e){return{formControl:{width:"100%",height:function(e){return e}},inputLabel:{color:e.palette.primary.text6,fontSize:"14px",letterSpacing:"0.8px"},select:{background:e.palette.background.b7,"&::before":{borderBottom:"none !important"},"&::after":{borderBottom:"none !important"}},selectedItem:{display:"flex",alignItems:"center"},iconOpen:{color:e.palette.primary.main},paper:{marginTop:function(e){return e+10}},disabled:{color:e.palette.primary.text8}}})),m=function(e){var o,a=e.label,c=e.height,m=e.children,b=p(e,["label","height","children"]),d=u(c);return r(n,{variant:"filled",className:d.formControl,fullWidth:!0,children:[t(i,{className:d.inputLabel,children:a}),t(l,s(s({className:d.select,classes:{select:d.selectedItem,iconOpen:d.iconOpen,disabled:d.disabled},MenuProps:s({classes:s({paper:d.paper},null==b||null===(o=b.MenuProps)||void 0===o?void 0:o.classes)},null==b?void 0:b.MenuProps)},b),{},{children:m}))]})};m.propTypes={children:a.shape().isRequired,label:a.string.isRequired,height:a.number,MenuProps:a.shape()},m.defaultProps={height:56,MenuProps:{}};export default m;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,FormControl as n,InputLabel as i,Select as l}from"@material-ui/core";import p from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import s from"classnames";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var m=o((function(e){return{formControl:{width:"100%",height:function(e){return e}},inputLabel:{color:e.palette.primary.text6,fontSize:"14px",letterSpacing:"0.8px"},select:{background:e.palette.background.b7,"&::before":{borderBottom:"none !important"},"&::after":{borderBottom:"none !important"}},selectedItem:{display:"flex",alignItems:"center"},iconOpen:{color:e.palette.primary.main},paper:{marginTop:function(e){return e+10}},disabled:{color:e.palette.primary.text8}}})),d=function(e){var o,a,c,d=e.label,b=e.height,f=e.children,h=p(e,["label","height","children"]),O=m(b);return r(n,{variant:"filled",className:O.formControl,fullWidth:!0,children:[t(i,{className:O.inputLabel,children:d}),t(l,u(u({className:O.select,classes:{select:O.selectedItem,iconOpen:O.iconOpen,disabled:O.disabled}},h),{},{MenuProps:u(u({},(null==h?void 0:h.MenuProps)||{}),{},{classes:u(u({},(null==h||null===(o=h.MenuProps)||void 0===o?void 0:o.classes)||{}),{},{paper:s(O.paper,null==h||null===(a=h.MenuProps)||void 0===a||null===(c=a.classes)||void 0===c?void 0:c.paper)})}),children:f}))]})};d.propTypes={children:a.shape().isRequired,label:a.string.isRequired,height:a.number,MenuProps:a.shape()},d.defaultProps={height:56,MenuProps:{}};export default d;
@@ -1 +1 @@
1
- import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppHeaderNew_appHeaderContainer__1Jw7S{display:flex}.AppHeaderNew_titleBlock__2Hcti{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:8px}.AppHeaderNew_headerComponents__3IHT4{display:flex;justify-content:flex-end}.AppHeaderNew_padModeSelect__2TzNO{height:24px}.AppHeaderNew_padModeSelect__2TzNO>div:first-child{padding-top:0!important}.AppHeaderNew_smallPadModeSelect__3_IUP{height:24px;margin-top:8px}.AppHeaderNew_smallPadModeSelect__3_IUP>div:first-child{padding-left:0;padding-top:8px;padding-bottom:0}.AppHeaderNew_titleWrapper__1COp-{display:flex;align-items:center}.AppHeaderNew_title__3HPRS{margin:0 8px 0 1px;font-size:18px;font-weight:500;line-height:24px}.AppHeaderNew_subtitle__2SNhn,.AppHeaderNew_title__3HPRS{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.AppHeaderNew_subtitle__2SNhn{color:#888;margin:0 0 0 1px;font-size:12px;font-weight:400;line-height:16px}.AppHeaderNew_mediumSizeContent__1YMaM{margin-top:8px;justify-content:flex-start}.AppHeaderNew_mediumSizeContent__1YMaM .AppHeaderNew_headerChildren__1oNXF{padding:0}.AppHeaderNew_headerChildren__1oNXF{display:flex;padding:0 0 12px 16px}.AppHeaderNew_headerChildren__1oNXF,.AppHeaderNew_headerChildren__1oNXF>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}");export default{appHeaderContainer:"AppHeaderNew_appHeaderContainer__1Jw7S",titleBlock:"AppHeaderNew_titleBlock__2Hcti",headerComponents:"AppHeaderNew_headerComponents__3IHT4",padModeSelect:"AppHeaderNew_padModeSelect__2TzNO",smallPadModeSelect:"AppHeaderNew_smallPadModeSelect__3_IUP",titleWrapper:"AppHeaderNew_titleWrapper__1COp-",title:"AppHeaderNew_title__3HPRS",subtitle:"AppHeaderNew_subtitle__2SNhn",mediumSizeContent:"AppHeaderNew_mediumSizeContent__1YMaM",headerChildren:"AppHeaderNew_headerChildren__1oNXF"};
1
+ import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppHeaderNew_appHeaderContainer__1Jw7S{display:flex}.AppHeaderNew_titleBlock__2Hcti{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:8px}.AppHeaderNew_headerComponents__3IHT4{display:flex;justify-content:flex-end}.AppHeaderNew_padModeSelect__2TzNO{height:24px}.AppHeaderNew_padModeSelect__2TzNO>div:first-child{padding-top:0!important}.AppHeaderNew_smallPadModeSelect__3_IUP{height:24px;margin-top:8px}.AppHeaderNew_smallPadModeSelect__3_IUP>div:first-child{padding-left:0;padding-top:8px;padding-bottom:0}.AppHeaderNew_titleWrapper__1COp-{display:flex;align-items:center}.AppHeaderNew_title__3HPRS{margin:0 8px 0 1px;font-size:18px;font-weight:500;line-height:24px}.AppHeaderNew_subtitle__2SNhn,.AppHeaderNew_title__3HPRS{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.AppHeaderNew_subtitle__2SNhn{color:#888;margin:0 0 0 1px;font-size:12px;font-weight:400;line-height:16px}.AppHeaderNew_mediumSizeContent__1YMaM{margin-top:8px;justify-content:flex-start}.AppHeaderNew_mediumSizeContent__1YMaM .AppHeaderNew_headerChildren__1oNXF{padding:0}.AppHeaderNew_headerChildren__1oNXF{display:flex;padding:0 0 12px 16px}.AppHeaderNew_headerChildren__1oNXF,.AppHeaderNew_headerChildren__1oNXF>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AppHeaderNew_assetNameLabelContainer__gOqPe{position:absolute;right:15px;z-index:100;display:flex;justify-content:flex-end;margin-top:4px;top:10px;width:fit-content}.AppHeaderNew_appMaximized__3OxKZ{margin-right:28px}.AppHeaderNew_item__2o5s3{line-height:20px;padding:0 12px;border-radius:10px;background-color:#434343;font-size:.85rem;color:var(--palette-primary-text-1)}.dc-app-container__light-theme .AppHeaderNew_item__2o5s3{background-color:#bdbdbd}.AppHeaderNew_item__2o5s3.AppHeaderNew_secondaryAsset__tx0UG{background-color:#d860d8;margin-right:4px;min-width:60px;text-overflow:ellipsis;height:21px;overflow:hidden;white-space:nowrap}.AppHeaderNew_seccondaryAssetWrapper__3sySe{max-width:20%}.AppHeaderNew_seccondaryAssetLink__A-muP{width:100%;padding:0}");export default{appHeaderContainer:"AppHeaderNew_appHeaderContainer__1Jw7S",titleBlock:"AppHeaderNew_titleBlock__2Hcti",headerComponents:"AppHeaderNew_headerComponents__3IHT4",padModeSelect:"AppHeaderNew_padModeSelect__2TzNO",smallPadModeSelect:"AppHeaderNew_smallPadModeSelect__3_IUP",titleWrapper:"AppHeaderNew_titleWrapper__1COp-",title:"AppHeaderNew_title__3HPRS",subtitle:"AppHeaderNew_subtitle__2SNhn",mediumSizeContent:"AppHeaderNew_mediumSizeContent__1YMaM",headerChildren:"AppHeaderNew_headerChildren__1oNXF",assetNameLabelContainer:"AppHeaderNew_assetNameLabelContainer__gOqPe",appMaximized:"AppHeaderNew_appMaximized__3OxKZ",item:"AppHeaderNew_item__2o5s3",secondaryAsset:"AppHeaderNew_secondaryAsset__tx0UG",seccondaryAssetWrapper:"AppHeaderNew_seccondaryAssetWrapper__3sySe",seccondaryAssetLink:"AppHeaderNew_seccondaryAssetLink__A-muP"};
@@ -1 +1 @@
1
- import{get as e}from"lodash";import"../../../constants/completion.js";import"../../../constants/alerts.js";import n from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as t}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as a}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import{getAppName as i,getAppSegment as s}from"../../../utils/devcenter.js";import{jsxs as o,Fragment as r,jsx as l}from"react/jsx-runtime";import{useRef as d,useState as p,useEffect as c}from"react";import m from"prop-types";import u from"classnames";import"../../Annotations/AnnotationsContext.js";import"../../Annotations/components/AnnotationsList/index.js";import h from"../../Annotations/components/LastAnnotation/index.js";import f from"./VersionBadge.js";import A from"./PadMode.js";import v from"../../AssetNameLabel/index.js";import g from"./AppHeaderNew.css.js";import{getAppDimension as L}from"./utils.js";var b="EXTRA_LARGE",j="SMALL";function C(m){var C,N,w,_,S=m.app,x=m.appLastAnnotation,y=m.appSettings,M=m.badge,I=m.classes,R=m.coordinates,H=m.currentUser,D=m.fracFleet,W=m.isMaximized,z=m.onSettingChange,F=m.openAnnotationsList,P=m.rig,T=m.showLastAnnotation,q=m.updateCurrentDashboardAppLastAnnotation,O=m.well,k=m.wells,U=m.children,E=null==R?void 0:R.pixelWidth,B=L(E),G=i(S),V=null==S||null===(C=S.package)||void 0===C||null===(N=C.manifest)||void 0===N||null===(w=N.application)||void 0===w?void 0:w.subtitle,X=s(S),J=X===a.DRILLING,K=(null==S?void 0:S.settings)||{},Q=K.wellId,Y=K.rigId,Z=K.fracFleetId,$=K.padId,ee=$&&(null==D||null===(_=D.pad_frac_fleets.find((function(e){return e.pad.id===$})))||void 0===_?void 0:_.pad),ne=J?null==P?void 0:P.name:null==D?void 0:D.name,te=J?Q&&(null==O?void 0:O.name):$&&(null==ee?void 0:ee.name),ae=!!(Q||Y||Z),ie=null!=D&&D.current_pad_id?"assets/types/pad/".concat(null==D?void 0:D.current_pad_id):null,se=J?ne&&"assets/".concat(null==O?void 0:O.asset_id):ie,oe=$&&"assets/types/pad/".concat($),re=S&&S.id===t,le=d(null),de=p({width:0}),pe=n(de,2),ce=pe[0],me=pe[1],ue=p(0),he=n(ue,2),fe=he[0],Ae=he[1];return c((function(){Ae(null==ce?void 0:ce.width)}),[null==ce?void 0:ce.width,E]),o(r,{children:[o("div",{className:u(g.appHeaderContainer,I.appHeader),children:[o("div",{className:g.titleBlock,children:[o("div",{className:I.appHeaderTitleWrapper,ref:le,children:[o("div",{className:g.titleWrapper,children:[l("h6",{"data-testid":"".concat("DevCenter_AppHeader","_name"),className:g.title,children:G}),l(f,{app:S})]}),M]}),V&&l("h6",{"data-testid":"".concat("DevCenter_AppHeader","_subtitle"),className:g.subtitle,children:V})]}),o("div",{className:g.headerComponents,style:{marginRight:"".concat(fe,"px")},children:[B===b&&l("div",{className:g.headerChildren,children:U}),X===a.COMPLETION&&B!==j&&l("div",{className:g.padModeSelect,children:l(A,{fracFleet:D,wells:k,well:O,onSettingChange:z,appSettings:y})})]}),S&&R&&l(v,{isPrimaryNameVisible:ae,primaryAssetName:ne,secondaryAssetName:te,coordinatesPixelWidth:R.pixelWidth,primaryAssetLink:!re&&se,secondaryAssetLink:!re&&oe,isMaximized:W,onSize:function(e){return me(e)}}),T&&x&&l(h,{dashboardAppId:S.id,appId:e(S,["app","id"]),annotation:x,openAnnotationsList:F,updateCurrentDashboardAppLastAnnotation:q,currentUser:H})]}),B===j&&l("div",{className:u(g.padModeSelect,g.smallPadModeSelect),children:l(A,{fracFleet:D,wells:k,well:O,onSettingChange:z,appSettings:y})}),B!==b&&l("div",{className:u(g.mediumSizeContent,g.headerComponents),children:l("div",{className:g.headerChildren,children:U})})]})}C.propTypes={app:m.object.isRequired,badge:m.node,classes:m.shape({appHeader:m.string,appHeaderTitleWrapper:m.string}),showLastAnnotation:m.bool,currentUser:m.shape({}),appLastAnnotation:m.shape({}),updateCurrentDashboardAppLastAnnotation:m.func,openAnnotationsList:m.func,rig:m.shape({name:m.string,asset_id:m.number}),well:m.shape({name:m.string,asset_id:m.number}),fracFleet:m.shape({name:m.string,current_pad_id:m.number,pad_frac_fleets:m.arrayOf(m.shape({pad:m.shape({id:m.number.isRequired}).isRequired})).isRequired}),wells:m.arrayOf(m.shape({})),coordinates:m.shape({pixelWidth:m.number.isRequired}),isMaximized:m.bool,appSettings:m.shape({}),onSettingChange:m.func,children:m.arrayOf(m.node)},C.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,children:null};export default C;
1
+ import{get as e}from"lodash";import"../../../constants/completion.js";import"../../../constants/alerts.js";import t from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as n}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as a}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import{getAppName as i,getAppSegment as s}from"../../../utils/devcenter.js";import{jsxs as o,Fragment as r,jsx as l}from"react/jsx-runtime";import{useRef as d,useState as p,useEffect as c}from"react";import m from"prop-types";import u from"classnames";import"../../Annotations/AnnotationsContext.js";import"../../Annotations/components/AnnotationsList/index.js";import h from"../../Annotations/components/LastAnnotation/index.js";import f from"./VersionBadge.js";import A from"./PadMode.js";import{getAppDimension as v}from"./utils.js";import g from"../../AssetNameLabel/SecondaryAssetNameLabel.js";import L from"../../AssetNameLabel/PrimaryAssetNameLabel.js";import b from"./AppHeaderNew.css.js";var N="DevCenter_AppHeader",j="EXTRA_LARGE",w="SMALL";function C(m){var C,S,_,x,y=m.app,M=m.appLastAnnotation,I=m.appSettings,R=m.badge,W=m.classes,z=m.coordinates,H=m.currentUser,P=m.fracFleet,D=m.isMaximized,F=m.onSettingChange,T=m.openAnnotationsList,q=m.rig,O=m.showLastAnnotation,k=m.updateCurrentDashboardAppLastAnnotation,U=m.well,E=m.wells,B=m.children,G=null==z?void 0:z.pixelWidth,V=v(G),X=i(y),J=null==y||null===(C=y.package)||void 0===C||null===(S=C.manifest)||void 0===S||null===(_=S.application)||void 0===_?void 0:_.subtitle,K=s(y),Q=K===a.DRILLING,Y=(null==y?void 0:y.settings)||{},Z=Y.wellId,$=Y.rigId,ee=Y.fracFleetId,te=Y.padId,ne=te&&(null==P||null===(x=P.pad_frac_fleets.find((function(e){return e.pad.id===te})))||void 0===x?void 0:x.pad),ae=Q?null==q?void 0:q.name:null==P?void 0:P.name,ie=Q?Z&&(null==U?void 0:U.name):te&&(null==ne?void 0:ne.name),se=!!(Z||$||ee),oe=null!=P&&P.current_pad_id?"assets/types/pad/".concat(null==P?void 0:P.current_pad_id):null,re=Q?ae&&"assets/".concat(null==U?void 0:U.asset_id):oe,le=te&&"assets/types/pad/".concat(te),de=y&&y.id===n,pe=d(null),ce=p({width:0}),me=t(ce,2),ue=me[0],he=me[1],fe=p({width:0}),Ae=t(fe,2),ve=Ae[0],ge=Ae[1],Le=p(0),be=t(Le,2),Ne=be[0],je=be[1];return c((function(){je((null==ue?void 0:ue.width)+(null==ve?void 0:ve.width)+16)}),[null==ue?void 0:ue.width,null==ve?void 0:ve.width,G]),o(r,{children:[o("div",{className:u(b.appHeaderContainer,W.appHeader),children:[o("div",{className:b.titleBlock,children:[o("div",{className:W.appHeaderTitleWrapper,ref:pe,children:[o("div",{className:b.titleWrapper,children:[l("h6",{"data-testid":"".concat(N,"_name"),className:b.title,children:X}),l(f,{app:y})]}),R]}),J&&l("h6",{"data-testid":"".concat(N,"_subtitle"),className:b.subtitle,children:J})]}),o("div",{className:b.headerComponents,style:{marginRight:"".concat(Ne,"px")},children:[V===j&&l("div",{className:b.headerChildren,children:B}),K===a.COMPLETION&&V!==w&&l("div",{className:b.padModeSelect,children:l(A,{fracFleet:P,wells:E,well:U,onSettingChange:F,appSettings:I})})]}),y&&z&&o("div",{className:u(b.assetNameLabelContainer,D&&b.appMaximized),children:[ie&&l(g,{secondaryAssetName:ie,coordinatesPixelWidth:z.pixelWidth,secondaryAssetLink:!de&&le,pageName:N,onSize:function(e){return ge(e)}}),se&&l(L,{primaryAssetName:ae,pageName:N,coordinatesPixelWidth:z.pixelWidth,primaryAssetLink:re,onSize:function(e){return he(e)}})]}),O&&M&&l(h,{dashboardAppId:y.id,appId:e(y,["app","id"]),annotation:M,openAnnotationsList:T,updateCurrentDashboardAppLastAnnotation:k,currentUser:H})]}),V===w&&l("div",{className:u(b.padModeSelect,b.smallPadModeSelect),children:l(A,{fracFleet:P,wells:E,well:U,onSettingChange:F,appSettings:I})}),V!==j&&l("div",{className:u(b.mediumSizeContent,b.headerComponents),children:l("div",{className:b.headerChildren,children:B})})]})}C.propTypes={app:m.object.isRequired,badge:m.node,classes:m.shape({appHeader:m.string,appHeaderTitleWrapper:m.string}),showLastAnnotation:m.bool,currentUser:m.shape({}),appLastAnnotation:m.shape({}),updateCurrentDashboardAppLastAnnotation:m.func,openAnnotationsList:m.func,rig:m.shape({name:m.string,asset_id:m.number}),well:m.shape({name:m.string,asset_id:m.number}),fracFleet:m.shape({name:m.string,current_pad_id:m.number,pad_frac_fleets:m.arrayOf(m.shape({pad:m.shape({id:m.number.isRequired}).isRequired})).isRequired}),wells:m.arrayOf(m.shape({})),coordinates:m.shape({pixelWidth:m.number.isRequired}),isMaximized:m.bool,appSettings:m.shape({}),onSettingChange:m.func,children:m.arrayOf(m.node)},C.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,children:null};export default C;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import t 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{jsx as e,jsxs as i}from"react/jsx-runtime";import{makeStyles as o,Dialog as r}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import n from"prop-types";import"classnames";import{Close as p}from"@material-ui/icons";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import m from"../../../../IconButton/index.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeaderNew.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../AppActions/AppActions.css.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppView/components/ChooseAssetButton/index.js";import"./components/ArticleIcon.js";import{HelpContentList as a}from"./components/HelpContentList.js";import{ItemContent as l}from"./components/ItemContent.js";import{SearchInput as d}from"./components/SearchInput.js";import{useHelpContents as c}from"./effects/useHelpContents.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import j from"../../../../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"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.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"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.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 u=o((function(t){return{dialogPaper:{backgroundColor:t.palette.background.b9,maxWidth:"1361px !important",position:"relative"},dialogContentWrapper:{height:680,overflow:"auto",padding:"0 40px","&:after":{content:'""',width:"100%",height:16,position:"absolute",bottom:0,left:0,right:0,zIndex:1,background:"linear-gradient(to bottom, rgba(65, 65, 65, 0) 0%, #414141 100%)"}},content:{marginBottom:16,marginTop:74,paddingTop:16},dialogHeader:{height:92,padding:"40px 40px 16px 40px",position:"absolute",top:0,left:0,right:0,background:"linear-gradient(to bottom, #414141 0%, #414141 83%, rgba(65, 65, 65, 0) 100%)",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:1},mainViewTitle:{display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,paddingRight:32},singleItemTitle:{display:"flex",alignItems:"center",width:"calc(100% - 36px)"},title:{fontSize:20},searchField:{width:358,backgroundColor:t.palette.background.b7},appName:{fontSize:13,letterSpacing:"0.15px",marginRight:8,color:t.palette.primary.main,flexShrink:0,"&:hover":{cursor:"pointer"}}}}));function g(o){var n=o.onClose,g=o.appName,C=o.appId,A=s(null),x=t(A,2),b=x[0],h=x[1],f=u(),S=c({appId:C}),P=S.helpContents,I=S.isLoading,y=S.error,v=S.searchHelpContents,D=s(""),T=t(D,2),E=T[0],L=T[1];return e(r,{open:!0,onClose:n,classes:{paper:f.dialogPaper},children:i("div",{className:f.dialogContentWrapper,children:[i("div",{className:f.dialogHeader,children:[i("div",b?{className:f.singleItemTitle,children:[i("span",{className:f.appName,onClick:function(){return h(null)},children:[g," App Help /"]}),e(j,{children:e("span",{className:f.title,children:b.title})})]}:{className:f.mainViewTitle,children:[i("div",{className:f.title,children:[g,": App Help"]}),e(d,{className:f.searchField,initialValue:E,onChange:function(t){L(t),v(t)}})]}),e(m,{onClick:function(){b?h(null):n()},tooltipProps:{title:"Close"},children:e(p,{})})]}),e("div",{className:f.content,children:b?e(l,{helpContent:b}):e(a,{helpContents:P,isLoading:I,error:y,onItemClick:h})})]})})}g.propTypes={onClose:n.func.isRequired,appName:n.string.isRequired,appId:n.string.isRequired};export default g;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../constants/completion.js";import"../../../../../constants/alerts.js";import t 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{jsx as e,jsxs as i}from"react/jsx-runtime";import{makeStyles as o,Dialog as r}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import n from"prop-types";import"classnames";import{Close as p}from"@material-ui/icons";import"../../../../Modal/index.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../Avatar/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import m from"../../../../IconButton/index.js";import"../../../../ConfirmationDialog.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../AppHeader/AppHeaderNew.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppContext.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../AppActions/AppActions.css.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../Typography.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../SlateFormattedText/RenderElements.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppView/components/ChooseAssetButton/index.js";import"./components/ArticleIcon.js";import{HelpContentList as a}from"./components/HelpContentList.js";import{ItemContent as l}from"./components/ItemContent.js";import{SearchInput as d}from"./components/SearchInput.js";import{useHelpContents as c}from"./effects/useHelpContents.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import j from"../../../../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"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.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"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.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 u=o((function(t){return{dialogPaper:{backgroundColor:t.palette.background.b9,maxWidth:"1361px !important",position:"relative"},dialogContentWrapper:{height:680,overflow:"auto",padding:"0 40px","&:after":{content:'""',width:"100%",height:16,position:"absolute",bottom:0,left:0,right:0,zIndex:1,background:"linear-gradient(to bottom, rgba(65, 65, 65, 0) 0%, #414141 100%)"}},content:{marginBottom:16,marginTop:74,paddingTop:16},dialogHeader:{height:92,padding:"40px 40px 16px 40px",position:"absolute",top:0,left:0,right:0,background:"linear-gradient(to bottom, #414141 0%, #414141 83%, rgba(65, 65, 65, 0) 100%)",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:1},mainViewTitle:{display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,paddingRight:32},singleItemTitle:{display:"flex",alignItems:"center",width:"calc(100% - 36px)"},title:{fontSize:20},searchField:{width:358,backgroundColor:t.palette.background.b7},appName:{fontSize:13,letterSpacing:"0.15px",marginRight:8,color:t.palette.primary.main,flexShrink:0,"&:hover":{cursor:"pointer"}}}}));function g(o){var n=o.onClose,g=o.appName,C=o.appId,A=s(null),x=t(A,2),b=x[0],h=x[1],f=u(),S=c({appId:C}),P=S.helpContents,I=S.isLoading,y=S.error,v=S.searchHelpContents,D=s(""),T=t(D,2),E=T[0],L=T[1];return e(r,{open:!0,onClose:n,classes:{paper:f.dialogPaper},children:i("div",{className:f.dialogContentWrapper,children:[i("div",{className:f.dialogHeader,children:[i("div",b?{className:f.singleItemTitle,children:[i("span",{className:f.appName,onClick:function(){return h(null)},children:[g," App Help /"]}),e(j,{children:e("span",{className:f.title,children:b.title})})]}:{className:f.mainViewTitle,children:[i("div",{className:f.title,children:[g,": App Help"]}),e(d,{className:f.searchField,initialValue:E,onChange:function(t){L(t),v(t)}})]}),e(m,{onClick:function(){b?h(null):n()},tooltipProps:{title:"Close"},children:e(p,{})})]}),e("div",{className:f.content,children:b?e(l,{helpContent:b}):e(a,{helpContents:P,isLoading:I,error:y,onItemClick:h})})]},b?"singleItemView":"listView")})}g.propTypes={onClose:n.func.isRequired,appName:n.string.isRequired,appId:n.string.isRequired};export default g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.33.0-10",
3
+ "version": "0.33.0-13",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"