@corva/ui 0.55.0-6 → 0.55.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/27337c7c90a52271ad290030959e6601.svg +11 -0
- package/assets/3db6b665f981a7aa81d8883122c9380c.svg +3 -0
- package/cjs-bundle/clients/jsonApi/index.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/Icons/SkullIcon.js +1 -0
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQStatusIcon.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQSuccessContent.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -0
- package/cjs-bundle/components/StatusBadge/constants.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/components/SwitchControl/index.js +1 -1
- package/cjs-bundle/utils/index.js +1 -1
- package/cjs-bundle/utils/resolveWellHubSlug.js +1 -0
- package/clients/jsonApi/index.d.ts +1 -0
- package/clients/jsonApi/index.d.ts.map +1 -1
- package/clients/jsonApi/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/index.d.ts +2 -2
- package/components/IconMenu/index.d.ts +3 -3
- package/components/Icons/SkullIcon.d.ts +2 -0
- package/components/Icons/SkullIcon.d.ts.map +1 -0
- package/components/Icons/SkullIcon.js +1 -0
- package/components/Select/index.d.ts +2 -45
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/Select/types.d.ts +15 -0
- package/components/Select/types.d.ts.map +1 -0
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts +9 -0
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -0
- package/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
- package/components/StatusBadge/components/DQStatusIcon.d.ts +10 -0
- package/components/StatusBadge/components/DQStatusIcon.d.ts.map +1 -0
- package/components/StatusBadge/components/DQStatusIcon.js +1 -0
- package/components/StatusBadge/components/DQSuccessContent.d.ts +5 -0
- package/components/StatusBadge/components/DQSuccessContent.d.ts.map +1 -0
- package/components/StatusBadge/components/DQSuccessContent.js +1 -0
- package/components/StatusBadge/components/DQUnvalidatedContent.d.ts.map +1 -0
- package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
- package/components/StatusBadge/components/ReportIssueModal.d.ts +8 -0
- package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -0
- package/components/StatusBadge/components/ReportIssueModal.js +1 -0
- package/components/StatusBadge/constants.d.ts +16 -13
- package/components/StatusBadge/constants.d.ts.map +1 -1
- package/components/StatusBadge/constants.js +1 -1
- package/components/StatusBadge/index.d.ts +1 -1
- package/components/StatusBadge/index.d.ts.map +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/components/SwitchControl/index.d.ts +32 -36
- package/components/SwitchControl/index.d.ts.map +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/SwitchControl/types.d.ts +17 -0
- package/components/SwitchControl/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/utils/index.d.ts +5 -4
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
- package/utils/resolveWellHubSlug.d.ts +3 -0
- package/utils/resolveWellHubSlug.d.ts.map +1 -0
- package/utils/resolveWellHubSlug.js +1 -0
- package/assets/1aa187dca9a802ede389885e43aff155.svg +0 -9
- package/assets/5124c957601b1a0ef1f0b93bce1ae0de.svg +0 -13
- package/assets/66745cf3868fdb983d0a2180a43b0720.svg +0 -11
- package/cjs-bundle/components/Icons/GppBadIcon.js +0 -1
- package/cjs-bundle/components/Icons/GppGoodIcon.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQChip.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQStatusIcon.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQUnvalidatedContent.js +0 -1
- package/components/Icons/GppBadIcon.d.ts +0 -2
- package/components/Icons/GppBadIcon.d.ts.map +0 -1
- package/components/Icons/GppBadIcon.js +0 -1
- package/components/Icons/GppGoodIcon.js +0 -1
- package/components/StatusBadge/DQChip.d.ts +0 -9
- package/components/StatusBadge/DQChip.d.ts.map +0 -1
- package/components/StatusBadge/DQChip.js +0 -1
- package/components/StatusBadge/DQStatusIcon.d.ts +0 -13
- package/components/StatusBadge/DQStatusIcon.d.ts.map +0 -1
- package/components/StatusBadge/DQStatusIcon.js +0 -1
- package/components/StatusBadge/DQUnvalidatedContent.d.ts.map +0 -1
- package/components/StatusBadge/DQUnvalidatedContent.js +0 -1
- /package/components/StatusBadge/{DQUnvalidatedContent.d.ts → components/DQUnvalidatedContent.d.ts} +0 -0
package/clients/jsonApi/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{range as e,flattenDepth as a}from"lodash";import*as c from"query-string";import{APIException as u,baseUrl as p,get as s,post as o,del as i,put as f,sendFormData as l,patch as h}from"../api/apiCore.js";import{CORVA_API_URLS as v}from"../constants.js";function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function m(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function y(){return w.apply(this,arguments)}function w(){return(w=n(r.mark((function t(){var n,e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(p,"/v1/users/current"),{credentials:"include"});case 2:return n=t.sent,t.next=5,n.json();case 5:if(e=t.sent,null!=n&&n.ok){t.next=8;break}throw new u(n,e);case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){return b.apply(this,arguments)}function b(){return b=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/integration/wellview/bha",n));case 2:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function g(t){return k.apply(this,arguments)}function k(){return(k=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return O.apply(this,arguments)}function O(){return O=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/wells/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function j(t){return P.apply(this,arguments)}function P(){return P=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/rigs/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),P.apply(this,arguments)}function $(){return A.apply(this,arguments)}function A(){return A=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/rigs",n));case 2:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function I(){return D.apply(this,arguments)}function D(){return D=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/programs",n));case 2:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}function T(t){return U.apply(this,arguments)}function U(){return U=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/assets/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function q(){return C.apply(this,arguments)}function C(){return C=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/assets",n));case 2:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function N(){return S.apply(this,arguments)}function S(){return S=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)}))),S.apply(this,arguments)}function E(){return J.apply(this,arguments)}function J(){return J=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/pads",n));case 2:case"end":return t.stop()}}),t)}))),J.apply(this,arguments)}function K(){return R.apply(this,arguments)}function R(){return R=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/frac_fleets",n));case 2:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function F(t){return G.apply(this,arguments)}function G(){return G=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/drillout_units/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),G.apply(this,arguments)}function M(){return z.apply(this,arguments)}function z(){return z=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)}))),z.apply(this,arguments)}function B(t,n,r){return H.apply(this,arguments)}function H(){return(H=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function L(t,n,r){return Q.apply(this,arguments)}function Q(){return(Q=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e,"/").concat(a)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function V(t,n,r){return W.apply(this,arguments)}function W(){return W=n(r.mark((function t(n,e,a){var c,u=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=u.length>3&&void 0!==u[3]?u[3]:{},t.abrupt("return",s("/v1/data/".concat(n,"/").concat(e),m(m({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)}))),W.apply(this,arguments)}function X(t,n){return Y.apply(this,arguments)}function Y(){return Y=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function Z(t,n){return tt.apply(this,arguments)}function tt(){return tt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/aggregate/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function nt(t,n,r,e){return rt.apply(this,arguments)}function rt(){return rt=n(r.mark((function t(n,e,a,c){var u,p=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=p.length>4&&void 0!==p[4]?p[4]:{},t.abrupt("return",f("/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)}))),rt.apply(this,arguments)}function et(t,n,r,e,a){return at.apply(this,arguments)}function at(){return(at=n(r.mark((function t(n,e,a,c,u){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f("/api/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(t,n,r){return ut.apply(this,arguments)}function ut(){return(ut=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(t,n,r){return st.apply(this,arguments)}function st(){return(st=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/api/v1/data/".concat(n,"/").concat(e),a,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t){return it.apply(this,arguments)}function it(){return(it=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/competitor_analysis",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return lt.apply(this,arguments)}function lt(){return(lt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(t){return vt.apply(this,arguments)}function vt(){return(vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/picklists/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return mt.apply(this,arguments)}function mt(){return(mt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yt(t){return wt.apply(this,arguments)}function wt(){return(wt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies/".concat(n,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var _t,bt,gt,kt,xt=(_t=n(r.mark((function t(n){var e,a,c,u;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:e},{$group:a},{$sort:c}])},t.prev=4,t.next=7,V("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return _t.apply(this,arguments)}),Ot=(bt=n(r.mark((function t(n,e){var a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(e,"'}"),t.prev=1,t.next=4,V("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return bt.apply(this,arguments)}),jt=(gt=n(r.mark((function t(n,e,a){var c,u,p,s,o,i;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+n,"metadata.file":e},u=1e4*a,p={"data.md":1},s={data:"$data"},o={aggregate:JSON.stringify([{$match:c},{$sort:p},{$skip:u},{$limit:1e4},{$project:s}])},t.prev=6,t.next=9,V("corva","formation-evaluation.data",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return gt.apply(this,arguments)}),Pt=(kt=n(r.mark((function t(n){var c,u,p,s,o;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=n.assetId,u=n.fileName,p=n.recordsCount,s=Math.ceil(p/1e4),o=e(s).map((function(t){return jt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return a(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return kt.apply(this,arguments)}),$t=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return s("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function At(t){switch(t){case"program":return I;case"rig":return $;case"well":return g;case"frac_fleet":return K;case"drillout_unit":return M;case"pad":return E;default:return q}}function It(t){switch(t){case"rig":return j;case"well":return x;default:return T}}var Dt=function(t,n){return s("/v2/apps/".concat(t,"/app_media"),n)},Tt=function(t,n){return i("/v2/apps/".concat(t,"/app_media/").concat(n),null)},Ut=function(t,n){var r=n.file,e=n.mediaType;return l("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},qt=function(t,n,r){return h("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},Ct=function(t,n){return s("/v2/apps/".concat(t,"/app_help_contents"),n)},Nt=function(t,n){return i("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},St=function(t,n){var r=n.title,e=n.description,a=n.url;return l("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},Et=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return h("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function Jt(t){return Kt.apply(this,arguments)}function Kt(){return Kt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",o("/v2/dashboard_app_annotations",m({app_annotation:n},e)));case 2:case"end":return t.stop()}}),t)}))),Kt.apply(this,arguments)}function Rt(t,n){return Ft.apply(this,arguments)}function Ft(){return(Ft=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n),{app_annotation:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gt(t){return Mt.apply(this,arguments)}function Mt(){return(Mt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zt(t,n){return Bt.apply(this,arguments)}function Bt(){return Bt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",m({app_id:n,asset_id:e},a)));case 2:case"end":return t.stop()}}),t)}))),Bt.apply(this,arguments)}function Ht(t,n,r){return Lt.apply(this,arguments)}function Lt(){return(Lt=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},e&&(c.asset_id=e),a&&(c.parent_asset_id=a),t.abrupt("return",s("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Qt(t){return Vt.apply(this,arguments)}function Vt(){return(Vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Wt(t,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t){return Zt.apply(this,arguments)}function Zt(){return Zt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 2:case"end":return t.stop()}}),t)}))),Zt.apply(this,arguments)}function tn(t){return"".concat(p,"/v1/file/download?file_name=").concat(t)}function nn(t,n,r){return rn.apply(this,arguments)}function rn(){return(rn=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n,"/comments/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function en(t,n){return an.apply(this,arguments)}function an(){return(an=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function cn(t,n){return un.apply(this,arguments)}function un(){return(un=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n,"/comments/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pn(t){return sn.apply(this,arguments)}function sn(){return(sn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function on(t,n){return fn.apply(this,arguments)}function fn(){return(fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ln(t){return hn.apply(this,arguments)}function hn(){return(hn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vn(t,n,r){return dn.apply(this,arguments)}function dn(){return(dn=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},e&&(c.search=e),a&&(c.company_id=a),t.abrupt("return",s("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mn(t,n){return yn.apply(this,arguments)}function yn(){return(yn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/file/sign?file_name=".concat(encodeURIComponent(n),"&contentType=").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wn(t){return _n.apply(this,arguments)}function _n(){return _n=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",s("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(e),{}));case 2:case"end":return t.stop()}}),t)}))),_n.apply(this,arguments)}var bn=function(t,n){return s("/v2/apps/".concat(t,"/packages"),n)};function gn(t){return kn.apply(this,arguments)}function kn(){return(kn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/sessions/schemas",{email:n,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xn(t){return On.apply(this,arguments)}function On(){return(On=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function jn(t,n){return Pn.apply(this,arguments)}function Pn(){return(Pn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/pads/".concat(n,"/app_wells"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function $n(t){return An.apply(this,arguments)}function An(){return(An=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function In(){return Dn.apply(this,arguments)}function Dn(){return Dn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)}))),Dn.apply(this,arguments)}var Tn=function(t){return s("/v2/apps/".concat(t,"/app_settings_templates"),{})},Un=function(t,n){return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},qn=function(t,n,r){var e=r.name,a=r.settings;return h("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},Cn=function(t,n){var r=n.name,e=n.settings;return o("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},Nn=function(t,n){return i("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Sn=function(t,n,r){var e=c.stringify({user_id:r},{arrayFormat:"bracket"});return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},En=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,p=t.companyId,o=t.ids;return s("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==p?p:void 0})};function Jn(t,n){return Kn.apply(this,arguments)}function Kn(){return(Kn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/users/".concat(n,"/settings"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rn(t,n){return Fn.apply(this,arguments)}function Fn(){return(Fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gn(){return Mn.apply(this,arguments)}function Mn(){return(Mn=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zn(){return Bn.apply(this,arguments)}function Bn(){return Bn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)}))),Bn.apply(this,arguments)}export{Qt as closeLastAnnotation,Gt as deleteAnnotation,Nt as deleteAppHelpContent,Tt as deleteAppMedia,Nn as deleteAppSettingsTemplate,L as deleteAppStorage,B as deleteAppStorageRecords,ln as deleteFeedItem,cn as deleteFeedItemComment,Pt as getAllLASFileData,Yt as getAnnotationComments,zt as getAnnotations,Ct as getAppHelpContent,Dt as getAppMedia,bn as getAppPackages,Un as getAppSettingsTemplate,Tn as getAppSettingsTemplates,V as getAppStorage,T as getAsset,q as getAssets,ft as getCompanies,yt as getCompanyGoals,ot as getCompetitorAnalysisData,y as getCurrentUser,Ht as getDashboardLastAnnotations,X as getDataAppStorage,Z as getDataAppStorageAggregate,F as getDrilloutUnit,M as getDrilloutUnits,dt as getFavorites,tn as getFileDownloadLink,xn as getFracFleetWells,K as getFracFleets,jt as getLASFileDataByPage,xt as getLASFileList,Ot as getLASMetadata,jn as getPadWells,E as getPads,zn as getPermissionCheck,ht as getPicklist,I as getPrograms,N as getResolvedAssets,j as getRig,$ as getRigs,wn as getS3DownloadLink,mn as getS3SignedUrl,$t as getStreams,$n as getTask,gn as getUserAuthSchemas,vn as getUserAutocomplete,Rn as getUserSetting,En as getUsers,x as getWell,_ as getWellViewBha,g as getWells,Gn as logout,It as mapAssetByIdGetRequest,At as mapAssetGetRequest,Rt as patchAnnotation,qn as patchAppSettingsTemplate,on as patchFeedItem,nn as patchFeedItemComment,Jt as postAnnotation,Wt as postAnnotationComment,Cn as postAppSettingsTemplate,ct as postAppStorage,pt as postDataAppStorage,en as postFeedItemComment,In as postTask,nt as putAppStorage,et as putDataAppStorage,Jn as setCurrentUserSettings,Sn as shareAppSettingsTemplate,pn as toggleFeedItemLike,Et as updateAppHelpContent,qt as updateAppMedia,St as uploadAppHelpContent,Ut as uploadAppMedia};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{range as e,flattenDepth as a}from"lodash";import*as c from"query-string";import{APIException as u,baseUrl as p,get as s,post as o,del as i,put as f,sendFormData as l,patch as h}from"../api/apiCore.js";import{CORVA_API_URLS as v}from"../constants.js";function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function m(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){t(n,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function y(){return w.apply(this,arguments)}function w(){return(w=n(r.mark((function t(){var n,e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(p,"/v1/users/current"),{credentials:"include"});case 2:return n=t.sent,t.next=5,n.json();case 5:if(e=t.sent,null!=n&&n.ok){t.next=8;break}throw new u(n,e);case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){return b.apply(this,arguments)}function b(){return b=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/integration/wellview/bha",n));case 2:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function g(t){return k.apply(this,arguments)}function k(){return(k=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return O.apply(this,arguments)}function O(){return O=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/wells/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),O.apply(this,arguments)}function j(t){return P.apply(this,arguments)}function P(){return P=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/rigs/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),P.apply(this,arguments)}function $(){return A.apply(this,arguments)}function A(){return A=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/rigs",n));case 2:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function I(){return D.apply(this,arguments)}function D(){return D=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/programs",n));case 2:case"end":return t.stop()}}),t)}))),D.apply(this,arguments)}function T(t){return U.apply(this,arguments)}function U(){return U=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/assets/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),U.apply(this,arguments)}function q(){return C.apply(this,arguments)}function C(){return C=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/assets",n));case 2:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function N(){return S.apply(this,arguments)}function S(){return S=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/assets/resolve",n));case 2:case"end":return t.stop()}}),t)}))),S.apply(this,arguments)}function E(){return J.apply(this,arguments)}function J(){return J=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/pads",n));case 2:case"end":return t.stop()}}),t)}))),J.apply(this,arguments)}function K(){return R.apply(this,arguments)}function R(){return R=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/frac_fleets",n));case 2:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function F(t){return G.apply(this,arguments)}function G(){return G=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/drillout_units/".concat(n),e));case 2:case"end":return t.stop()}}),t)}))),G.apply(this,arguments)}function M(){return z.apply(this,arguments)}function z(){return z=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/drillout_units",n));case 2:case"end":return t.stop()}}),t)}))),z.apply(this,arguments)}function B(t,n,r){return H.apply(this,arguments)}function H(){return(H=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function L(t,n,r){return Q.apply(this,arguments)}function Q(){return(Q=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/data/".concat(n,"/").concat(e,"/").concat(a)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function V(t,n,r){return W.apply(this,arguments)}function W(){return W=n(r.mark((function t(n,e,a){var c,u=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=u.length>3&&void 0!==u[3]?u[3]:{},t.abrupt("return",s("/v1/data/".concat(n,"/").concat(e),m(m({},c),{},{asset_id:a}),{appKey:c.appKey}));case 2:case"end":return t.stop()}}),t)}))),W.apply(this,arguments)}function X(t,n){return Y.apply(this,arguments)}function Y(){return Y=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),Y.apply(this,arguments)}function Z(t,n){return tt.apply(this,arguments)}function tt(){return tt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/api/v1/data/".concat(n,"/").concat(e,"/aggregate/"),a,{apiUrl:v.DATA_API}));case 2:case"end":return t.stop()}}),t)}))),tt.apply(this,arguments)}function nt(t,n,r,e){return rt.apply(this,arguments)}function rt(){return rt=n(r.mark((function t(n,e,a,c){var u,p=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=p.length>4&&void 0!==p[4]?p[4]:{},t.abrupt("return",f("/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u));case 2:case"end":return t.stop()}}),t)}))),rt.apply(this,arguments)}function et(t,n,r,e,a){return at.apply(this,arguments)}function at(){return(at=n(r.mark((function t(n,e,a,c,u){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f("/api/v1/data/".concat(n,"/").concat(e,"/").concat(a),c,u,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(t,n,r){return ut.apply(this,arguments)}function ut(){return(ut=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/data/".concat(n,"/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pt(t,n,r){return st.apply(this,arguments)}function st(){return(st=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/api/v1/data/".concat(n,"/").concat(e),a,{apiUrl:v.DATA_API}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t){return it.apply(this,arguments)}function it(){return(it=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/competitor_analysis",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ft(){return lt.apply(this,arguments)}function lt(){return(lt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ht(t){return vt.apply(this,arguments)}function vt(){return(vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/picklists/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(){return mt.apply(this,arguments)}function mt(){return(mt=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/favorites"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yt(t){return wt.apply(this,arguments)}function wt(){return(wt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/companies/".concat(n,"/settings/company_goals")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var _t,bt,gt,kt,xt=(_t=n(r.mark((function t(n){var e,a,c,u;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={asset_id:+n},a={_id:"$file",name:{$first:"$file"},timestamp:{$first:"$timestamp"}},c={timestamp:-1},u={aggregate:JSON.stringify([{$match:e},{$group:a},{$sort:c}])},t.prev=4,t.next=7,V("corva","formation-evaluation.metadata",n,u);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),console.error(t.t0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[4,10]])}))),function(t){return _t.apply(this,arguments)}),Ot=(bt=n(r.mark((function t(n,e){var a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="{asset_id#eq#".concat(n,"}AND{file#eq#'").concat(e,"'}"),t.prev=1,t.next=4,V("corva","formation-evaluation.metadata",n,{query:a});case 4:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t,n){return bt.apply(this,arguments)}),jt=(gt=n(r.mark((function t(n,e,a){var c,u,p,s,o,i;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={asset_id:+n,"metadata.file":e},u=1e4*a,p={"data.md":1},s={data:"$data"},o={aggregate:JSON.stringify([{$match:c},{$sort:p},{$skip:u},{$limit:1e4},{$project:s}])},t.prev=6,t.next=9,V("corva","formation-evaluation.data",n,o);case 9:return i=t.sent,t.abrupt("return",i);case 13:return t.prev=13,t.t0=t.catch(6),console.error(t.t0),t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[6,13]])}))),function(t,n,r){return gt.apply(this,arguments)}),Pt=(kt=n(r.mark((function t(n){var c,u,p,s,o;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=n.assetId,u=n.fileName,p=n.recordsCount,s=Math.ceil(p/1e4),o=e(s).map((function(t){return jt(c,u,t)})),t.abrupt("return",Promise.all(o).then((function(t){return a(t)})));case 4:case"end":return t.stop()}}),t)}))),function(t){return kt.apply(this,arguments)}),$t=function(t){var n=t.assetId,r=t.segment,e=void 0===r?"drilling":r;return s("/v1/app_streams?asset_id=".concat(n,"&segment=").concat(e))};function At(t){switch(t){case"program":return I;case"rig":return $;case"well":return g;case"frac_fleet":return K;case"drillout_unit":return M;case"pad":return E;default:return q}}function It(t){switch(t){case"rig":return j;case"well":return x;default:return T}}var Dt=function(t,n){return s("/v2/apps/".concat(t,"/app_media"),n)},Tt=function(t,n){return i("/v2/apps/".concat(t,"/app_media/").concat(n),null)},Ut=function(t,n){var r=n.file,e=n.mediaType;return l("/v2/apps/".concat(t,"/app_media"),{"app_media[media_type]":e,"app_media[file]":r})},qt=function(t,n,r){return h("/v2/apps/".concat(t,"/app_media/").concat(n),{app_media:r})},Ct=function(t,n){return s("/v2/apps/".concat(t,"/app_help_contents"),n)},Nt=function(t,n){return i("/v2/apps/".concat(t,"/app_help_contents/").concat(n),null)},St=function(t,n){var r=n.title,e=n.description,a=n.url;return l("/v2/apps/".concat(t,"/app_help_contents"),{"app_help_content[title]":r,"app_help_content[description]":e,"app_help_content[url]":a})},Et=function(t,n,r){var e=r.title,a=r.description,c=r.url,u=r.position;return h("/v2/apps/".concat(t,"/app_help_contents/").concat(n),{app_help_content:{title:e,description:a,url:c,position:u}})};function Jt(t){return Kt.apply(this,arguments)}function Kt(){return Kt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",o("/v2/dashboard_app_annotations",m({app_annotation:n},e)));case 2:case"end":return t.stop()}}),t)}))),Kt.apply(this,arguments)}function Rt(t,n){return Ft.apply(this,arguments)}function Ft(){return(Ft=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n),{app_annotation:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gt(t){return Mt.apply(this,arguments)}function Mt(){return(Mt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v2/dashboard_app_annotations/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zt(t,n){return Bt.apply(this,arguments)}function Bt(){return Bt=n(r.mark((function t(n,e){var a,c=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},t.abrupt("return",s("/v2/dashboard_app_annotations",m({app_id:n,asset_id:e},a)));case 2:case"end":return t.stop()}}),t)}))),Bt.apply(this,arguments)}function Ht(t,n,r){return Lt.apply(this,arguments)}function Lt(){return(Lt=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={dashboard_id:n},e&&(c.asset_id=e),a&&(c.parent_asset_id=a),t.abrupt("return",s("/v2/dashboard_app_annotations/last_annotations",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Qt(t){return Vt.apply(this,arguments)}function Vt(){return(Vt=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v2/dashboard_app_annotations/".concat(n,"/close")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Wt(t,n){return Xt.apply(this,arguments)}function Xt(){return(Xt=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yt(t){return Zt.apply(this,arguments)}function Zt(){return Zt=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",s("/v2/dashboard_app_annotations/".concat(n,"/comments/"),e));case 2:case"end":return t.stop()}}),t)}))),Zt.apply(this,arguments)}function tn(t){return"".concat(p,"/v1/file/download?file_name=").concat(t)}function nn(t,n,r){return rn.apply(this,arguments)}function rn(){return(rn=n(r.mark((function t(n,e,a){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n,"/comments/").concat(e),a));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function en(t,n){return an.apply(this,arguments)}function an(){return(an=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/comments"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function cn(t,n){return un.apply(this,arguments)}function un(){return(un=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n,"/comments/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pn(t){return sn.apply(this,arguments)}function sn(){return(sn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/activities/".concat(n,"/likes/toggle")));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function on(t,n){return fn.apply(this,arguments)}function fn(){return(fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",h("/v1/activities/".concat(n),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ln(t){return hn.apply(this,arguments)}function hn(){return(hn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i("/v1/activities/".concat(n)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vn(t,n,r){return dn.apply(this,arguments)}function dn(){return(dn=n(r.mark((function t(n,e,a){var c;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={type:n},e&&(c.search=e),a&&(c.company_id=a),t.abrupt("return",s("/v1/users/autocomplete",c));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mn(t,n){return yn.apply(this,arguments)}function yn(){return(yn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/file/sign?file_name=".concat(encodeURIComponent(n),"&contentType=").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wn(t){return _n.apply(this,arguments)}function _n(){return _n=n(r.mark((function t(n){var e,a=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:"attachment",t.abrupt("return",s("/v1/file/download_link?file_name=".concat(encodeURIComponent(n),"&response_content_disposition=").concat(e),{}));case 2:case"end":return t.stop()}}),t)}))),_n.apply(this,arguments)}var bn=function(t,n){return s("/v2/apps/".concat(t,"/packages"),n)};function gn(t){return kn.apply(this,arguments)}function kn(){return(kn=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/sessions/schemas",{email:n,with_provider:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xn(t){return On.apply(this,arguments)}function On(){return(On=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/frac_fleets/wells",n));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function jn(t,n){return Pn.apply(this,arguments)}function Pn(){return(Pn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/pads/".concat(n,"/app_wells"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function $n(t){return An.apply(this,arguments)}function An(){return(An=n(r.mark((function t(n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v2/tasks/".concat(n),{}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function In(){return Dn.apply(this,arguments)}function Dn(){return Dn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",o("/v2/tasks",n));case 2:case"end":return t.stop()}}),t)}))),Dn.apply(this,arguments)}var Tn=function(t){return s("/v2/apps/".concat(t,"/app_settings_templates"),{})},Un=function(t,n){return s("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},qn=function(t,n,r){var e=r.name,a=r.settings;return h("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{app_settings_template:{name:e,settings:a}},{})},Cn=function(t,n){var r=n.name,e=n.settings;return o("/v2/apps/".concat(t,"/app_settings_templates"),{app_settings_template:{name:r,settings:e}})},Nn=function(t,n){return i("/v2/apps/".concat(t,"/app_settings_templates/").concat(n),{})},Sn=function(t,n,r){var e=c.stringify({user_id:r},{arrayFormat:"bracket"});return o("/v2/apps/".concat(t,"/app_settings_templates/").concat(n,"/share?").concat(e),{})},En=function(t){var n=t.page,r=t.perPage,e=void 0===r?1e3:r,a=t.sort,c=t.order,u=t.search,p=t.companyId,o=t.ids;return s("/v1/users",{page:n,per_page:e,sort:a,order:c,ids:o,search:""!==u?u:void 0,company_id:null!==p?p:void 0})};function Jn(t,n){return Kn.apply(this,arguments)}function Kn(){return(Kn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/users/".concat(n,"/settings"),e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rn(t,n){return Fn.apply(this,arguments)}function Fn(){return(Fn=n(r.mark((function t(n,e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s("/v1/users/".concat(n,"/settings/").concat(e)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Gn(){return Mn.apply(this,arguments)}function Mn(){return(Mn=n(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o("/v1/logout"));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function zn(){return Bn.apply(this,arguments)}function Bn(){return Bn=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/ability_check/check_permission",n,{isImmutable:!1}));case 2:case"end":return t.stop()}}),t)}))),Bn.apply(this,arguments)}function Hn(){return Ln.apply(this,arguments)}function Ln(){return Ln=n(r.mark((function t(){var n,e=arguments;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.abrupt("return",s("/v2/dashboards",n));case 2:case"end":return t.stop()}}),t)}))),Ln.apply(this,arguments)}export{Qt as closeLastAnnotation,Gt as deleteAnnotation,Nt as deleteAppHelpContent,Tt as deleteAppMedia,Nn as deleteAppSettingsTemplate,L as deleteAppStorage,B as deleteAppStorageRecords,ln as deleteFeedItem,cn as deleteFeedItemComment,Pt as getAllLASFileData,Yt as getAnnotationComments,zt as getAnnotations,Ct as getAppHelpContent,Dt as getAppMedia,bn as getAppPackages,Un as getAppSettingsTemplate,Tn as getAppSettingsTemplates,V as getAppStorage,T as getAsset,q as getAssets,ft as getCompanies,yt as getCompanyGoals,ot as getCompetitorAnalysisData,y as getCurrentUser,Ht as getDashboardLastAnnotations,Hn as getDashboards,X as getDataAppStorage,Z as getDataAppStorageAggregate,F as getDrilloutUnit,M as getDrilloutUnits,dt as getFavorites,tn as getFileDownloadLink,xn as getFracFleetWells,K as getFracFleets,jt as getLASFileDataByPage,xt as getLASFileList,Ot as getLASMetadata,jn as getPadWells,E as getPads,zn as getPermissionCheck,ht as getPicklist,I as getPrograms,N as getResolvedAssets,j as getRig,$ as getRigs,wn as getS3DownloadLink,mn as getS3SignedUrl,$t as getStreams,$n as getTask,gn as getUserAuthSchemas,vn as getUserAutocomplete,Rn as getUserSetting,En as getUsers,x as getWell,_ as getWellViewBha,g as getWells,Gn as logout,It as mapAssetByIdGetRequest,At as mapAssetGetRequest,Rt as patchAnnotation,qn as patchAppSettingsTemplate,on as patchFeedItem,nn as patchFeedItemComment,Jt as postAnnotation,Wt as postAnnotationComment,Cn as postAppSettingsTemplate,ct as postAppStorage,pt as postDataAppStorage,en as postFeedItemComment,In as postTask,nt as putAppStorage,et as putDataAppStorage,Jn as setCurrentUserSettings,Sn as shareAppSettingsTemplate,pn as toggleFeedItemLike,Et as updateAppHelpContent,qt as updateAppMedia,St as uploadAppHelpContent,Ut as uploadAppMedia};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js"],"names":[],"mappings":";AAyCA;;;;;;;;;;;;;;gBAuJC"}
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as r}from"react";import{func as o,shape as i,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import f from"../../../../ErrorBoundary/ErrorBoundary.js";import b from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as h,jsx as P,Fragment as S}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../../DevCenterAppContainer.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as v}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import D from"../../../../AssetEditor/index.js";import x from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import T from"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/configuration/constants.js";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"classnames";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import y from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as I}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as E,SEGMENT_TO_ASSET_TYPE as B}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../../Toaster/Toaster.js";import k from"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import O from"./RemoveAppButton.js";import L from"./AppDetails.js";import F from"./AppSettingsDialog.module.css.js";function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function M(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?R(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var w="DC_appSettings",V=p({paper:{minWidth:"50rem",height:"40rem"}})(a),W=p({root:{marginBottom:10}})(m),H="SETTINGS",G="APP DETAILS";function N(o){var i=o.AppSettingsComponent,n=o.app,s=o.appData,p=o.appName,a=o.currentUser,m=o.isMultiRig,A=o.isSettingsDialogHidden,R=o.layoutEnvironment,N=o.onAppRemove,q=o.onCloneDashboard,U=o.onSettingsChange,_=o.segment,Z=o.toggleAppSettingsDialog,z=r(H),K=t(z,2),Y=K[0],J=K[1],Q=r((function(){var e;return M(M({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(e=n.package)||void 0===e?void 0:e.version)})})),X=t(Q,2),$=X[0],ee=X[1],te=r(!0),re=t(te,2),oe=re[0],ie=re[1],ne=v(),se=n.id===I,pe=function(t,r){return ee((function(o){return M(M({},o),{},e({},t,r))}))},ae=function(e){return ee((function(t){return M(M({},t),e)}))},me=R&&"asset"===R.type,le=!(m||me&&_===E.COMPLETION);return h(V,{open:!0,onBackdropClick:Z,children:[h(l,{children:[p," settings"]}),P(d,{}),h(c,{children:[h(W,{value:Y,onChange:function(e,t){return J(t)},indicatorColor:"primary",textColor:"primary",children:[P(j,{"data-testid":"".concat(w,"_settingsTab"),label:H,value:H}),P(j,{"data-testid":"".concat(w,"_appDetailsTab"),label:G,value:G}),P(T,{"data-testid":"".concat(w,"_viewAppPageTab"),className:F.viewAppButton,onClick:function(){var e,t;return ne.push((t=null==n||null===(e=n.app)||void 0===e?void 0:e.id,"/apps/".concat(t)))},children:"VIEW APP PAGE"})]}),h(f,{ErrorView:b,app:n,children:[P(k,{open:!oe&&!$.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ie(!0)}}),Y===H&&h(S,{children:[A&&P(y,{}),!A&&h(S,{children:[le&&P(D,{appKey:se?null:n.app.app_key,settings:$,onSettingsChange:ae,appType:B[_],isNullable:me,label:"Active Asset"}),i&&P(i,{app:n,appData:s,settings:$,onSettingChange:pe,onSettingsChange:ae,layoutEnvironment:R,currentUser:a}),P(x,{appId:n.app.id,value:$.package,onChange:function(e){return pe("package",e)}})]})]}),Y===G&&P(L,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),h(u,{children:[!A&&N&&P(O,{appName:p,onAppRemove:N}),P(T,{"data-testid":"".concat(w,"_cancel"),variation:"secondary",onClick:Z,children:"Cancel"}),A&&P(T,{variation:"primary",onClick:function(){return q()},children:"Copy Dashboard"}),!A&&P(T,{"data-testid":"".concat(w,"_save"),variation:"primary",onClick:function(){$.package||se?(U($),Z()):ie(!1)},children:"Save"})]})]})}N.propTypes={AppSettingsComponent:o,app:i({}).isRequired,appData:i({}).isRequired,appName:n.isRequired,currentUser:i({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:i({}).isRequired,onAppRemove:o,onCloneDashboard:o,onSettingsChange:o.isRequired,segment:n.isRequired,toggleAppSettingsDialog:o.isRequired},N.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{N as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as i}from"react";import{func as o,shape as r,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import b from"../../../../ErrorBoundary/ErrorBoundary.js";import f from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as h,jsx as P,Fragment as S}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../../DevCenterAppContainer.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import v from"../../../../AssetEditor/index.js";import D from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import x from"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/configuration/constants.js";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"classnames";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import T from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as y}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as I,SEGMENT_TO_ASSET_TYPE as E}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../../Toaster/Toaster.js";import B from"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import k from"./RemoveAppButton.js";import O from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function F(e){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?w(Object(o),!0).forEach((function(i){t(e,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var M="DC_appSettings",R=p({paper:{minWidth:"50rem",height:"40rem"}})(a),V=p({root:{marginBottom:10}})(m),W="SETTINGS",H="APP DETAILS";function G(o){var r=o.AppSettingsComponent,n=o.app,s=o.appData,p=o.appName,a=o.currentUser,m=o.isMultiRig,A=o.isSettingsDialogHidden,w=o.layoutEnvironment,G=o.onAppRemove,N=o.onCloneDashboard,q=o.onSettingsChange,U=o.segment,_=o.toggleAppSettingsDialog,Z=i(W),z=e(Z,2),K=z[0],Y=z[1],J=i((function(){var t;return F(F({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(t=n.package)||void 0===t?void 0:t.version)})})),Q=e(J,2),X=Q[0],$=Q[1],tt=i(!0),et=e(tt,2),it=et[0],ot=et[1],rt=n.id===y,nt=function(e,i){return $((function(o){return F(F({},o),{},t({},e,i))}))},st=function(t){return $((function(e){return F(F({},e),t)}))},pt=w&&"asset"===w.type,at=!(m||pt&&U===I.COMPLETION);return h(R,{open:!0,onBackdropClick:_,children:[h(l,{children:[p," settings"]}),P(d,{}),h(c,{children:[h(V,{value:K,onChange:function(t,e){return Y(e)},indicatorColor:"primary",textColor:"primary",children:[P(j,{"data-testid":"".concat(M,"_settingsTab"),label:W,value:W}),P(j,{"data-testid":"".concat(M,"_appDetailsTab"),label:H,value:H}),P(x,{"data-testid":"".concat(M,"_viewAppPageTab"),className:L.viewAppButton,onClick:function(){var t,e;return window.open((e=null==n||null===(t=n.app)||void 0===t?void 0:t.id,"/app-store/app/".concat(e)),"_blank")},children:"VIEW APP PAGE"})]}),h(b,{ErrorView:f,app:n,children:[P(B,{open:!it&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ot(!0)}}),K===W&&h(S,{children:[A&&P(T,{}),!A&&h(S,{children:[at&&P(v,{appKey:rt?null:n.app.app_key,settings:X,onSettingsChange:st,appType:E[U],isNullable:pt,label:"Active Asset"}),r&&P(r,{app:n,appData:s,settings:X,onSettingChange:nt,onSettingsChange:st,layoutEnvironment:w,currentUser:a}),P(D,{appId:n.app.id,value:X.package,onChange:function(t){return nt("package",t)}})]})]}),K===H&&P(O,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),h(u,{children:[!A&&G&&P(k,{appName:p,onAppRemove:G}),P(x,{"data-testid":"".concat(M,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),A&&P(x,{variation:"primary",onClick:function(){return N()},children:"Copy Dashboard"}),!A&&P(x,{"data-testid":"".concat(M,"_save"),variation:"primary",onClick:function(){X.package||rt?(q(X),_()):ot(!1)},children:"Save"})]})]})}G.propTypes={AppSettingsComponent:o,app:r({}).isRequired,appData:r({}).isRequired,appName:n.isRequired,currentUser:r({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:r({}).isRequired,onAppRemove:o,onCloneDashboard:o,onSettingsChange:o.isRequired,segment:n.isRequired,toggleAppSettingsDialog:o.isRequired},G.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{G as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { DcFullscreenElemsCoordinatorProvider, useDcFullscreenElemsCoordinator } from "./DcFullscreenElemsCoordinatorProvider";
|
|
2
|
+
export { IsInsideDcFullscreenElemProvider, useIsInsideDcFullscreenElem } from "./IsInsideDcFullscreenElemProvider";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -43,7 +43,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
43
43
|
menuProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
44
44
|
iconButtonProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
45
45
|
paperClassName: PropTypes.Requireable<string>;
|
|
46
|
-
}>, "children" | "className" | "data-testid" | "classes" | "color" | "disabled" | "transformOrigin" | "disableRipple" | "anchorOrigin" | "marginThreshold" | "
|
|
46
|
+
}>, "children" | "className" | "data-testid" | "classes" | "color" | "disabled" | "transformOrigin" | "disableRipple" | "anchorOrigin" | "marginThreshold" | "iconButtonStyle" | "IconElement" | "IconButtonComponent" | "iconButtonProps" | "menuProps" | "tooltipProps" | "paperClassName">, never> & {
|
|
47
47
|
children?: NonNullable<any[] | PropTypes.ReactNodeLike>;
|
|
48
48
|
className?: string;
|
|
49
49
|
'data-testid'?: string;
|
|
@@ -63,14 +63,14 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
63
63
|
vertical: PropTypes.Requireable<string>;
|
|
64
64
|
}>;
|
|
65
65
|
marginThreshold?: number;
|
|
66
|
-
tooltipProps?: PropTypes.InferProps<{}>;
|
|
67
66
|
iconButtonStyle?: PropTypes.InferProps<{}>;
|
|
68
67
|
IconElement?: PropTypes.ReactElementLike;
|
|
69
68
|
IconButtonComponent?: any;
|
|
70
69
|
iconButtonProps?: PropTypes.InferProps<{}>;
|
|
71
70
|
menuProps?: PropTypes.InferProps<{}>;
|
|
71
|
+
tooltipProps?: PropTypes.InferProps<{}>;
|
|
72
72
|
paperClassName?: string;
|
|
73
|
-
} & {}, "children" | "className" | "data-testid" | "color" | "disabled" | "transformOrigin" | "disableRipple" | "anchorOrigin" | "marginThreshold" | "
|
|
73
|
+
} & {}, "children" | "className" | "data-testid" | "color" | "disabled" | "transformOrigin" | "disableRipple" | "anchorOrigin" | "marginThreshold" | "iconButtonStyle" | "IconElement" | "IconButtonComponent" | "iconButtonProps" | "menuProps" | "tooltipProps" | "paperClassName"> & import("@material-ui/core").StyledComponentProps<"iconButton">>;
|
|
74
74
|
export default _default;
|
|
75
75
|
import PropTypes from "prop-types";
|
|
76
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkullIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/SkullIcon.js"],"names":[],"mappings":"AAAO,yCAIN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as C}from"react/jsx-runtime";var t=function(){return C("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M7.8778 1.33501C6.23648 1.36702 4.67318 2.04152 3.52375 3.2136C2.37432 4.38568 1.73045 5.96184 1.73047 7.60347C1.73047 7.60347 1.73047 10.4661 1.73047 11.4351C1.73114 11.5187 1.76293 11.599 1.81962 11.6604C1.87632 11.7218 1.95387 11.7599 2.03714 11.7673C2.70061 11.8384 3.31973 12.1346 3.79154 12.6064C4.26335 13.0783 4.5594 13.6975 4.63047 14.3609C4.6381 14.4443 4.67645 14.5218 4.73806 14.5784C4.79967 14.635 4.88014 14.6666 4.9638 14.6672H11.0371C11.1208 14.6666 11.2013 14.635 11.2629 14.5784C11.3245 14.5218 11.3628 14.4443 11.3705 14.3609C11.4415 13.6975 11.7376 13.0783 12.2094 12.6064C12.6812 12.1346 13.3003 11.8384 13.9638 11.7673C14.047 11.7599 14.1245 11.7217 14.1811 11.6603C14.2377 11.5989 14.2695 11.5186 14.2701 11.4351V7.72721C14.2733 6.88688 14.1101 6.05424 13.7899 5.27728C13.4698 4.50032 12.9991 3.79439 12.4049 3.20019C11.8106 2.606 11.1047 2.13527 10.3277 1.81515C9.55077 1.49504 8.71813 1.33185 7.8778 1.33501ZM8.98894 7.85321C9.04951 7.5016 9.20556 7.1734 9.44003 6.90446C9.6745 6.63553 9.97836 6.43621 10.3184 6.32827C10.6585 6.22034 11.0217 6.20794 11.3683 6.29243C11.715 6.37693 12.0317 6.55507 12.284 6.80739C12.5363 7.05971 12.7143 7.3765 12.7987 7.72316C12.8832 8.06982 12.8707 8.43302 12.7627 8.77307C12.6546 9.11311 12.4552 9.41694 12.1863 9.65134C11.9173 9.88574 11.589 10.0417 11.2374 10.1022C10.9303 10.1549 10.6151 10.1331 10.3182 10.0387C10.0212 9.94432 9.7513 9.78005 9.53102 9.55972C9.31074 9.33938 9.14654 9.0694 9.05221 8.77246C8.95788 8.47552 8.93618 8.16027 8.98894 7.85321V7.85321ZM7.01127 8.51381C6.9507 8.86543 6.79467 9.19364 6.5602 9.46258C6.32574 9.73153 6.02187 9.93086 5.68179 10.0388C5.34171 10.1468 4.97851 10.1592 4.63186 10.0747C4.28521 9.99017 3.96845 9.81203 3.71619 9.55971C3.46392 9.30738 3.28586 8.99058 3.20145 8.64391C3.11704 8.29724 3.12953 7.93404 3.23755 7.59399C3.34558 7.25394 3.54498 6.95011 3.81398 6.71571C4.08299 6.48131 4.41123 6.32535 4.76287 6.26487C5.06995 6.21219 5.38518 6.23396 5.6821 6.32836C5.97902 6.42275 6.24896 6.58702 6.46924 6.80736C6.68952 7.0277 6.85371 7.29768 6.94803 7.59462C7.04235 7.89157 7.06403 8.20681 7.01127 8.51387V8.51381ZM8.96154 11.0556V12.3756C8.96152 12.4555 8.92975 12.5322 8.87321 12.5887C8.81668 12.6453 8.74001 12.677 8.66007 12.677H7.34007C7.26013 12.677 7.18346 12.6453 7.12692 12.5887C7.07039 12.5322 7.03862 12.4555 7.0386 12.3756V11.0556C7.03862 10.9757 7.07039 10.899 7.12692 10.8425C7.18346 10.786 7.26013 10.7542 7.34007 10.7542H8.66007C8.74001 10.7542 8.81668 10.786 8.87321 10.8425C8.92975 10.899 8.96152 10.9757 8.96154 11.0556V11.0556Z",fill:"#F44336"})})};export{t as SkullIcon};
|
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SelectProps
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
interface SelectProps extends MuiFormControlProps, PropTypes.InferProps<typeof selectPropTypes> {
|
|
5
|
-
MenuProps?: Partial<MuiMenuProps> & {
|
|
6
|
-
list: string;
|
|
7
|
-
paper: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
2
|
+
import { SelectProps } from './types';
|
|
10
3
|
declare const Select: {
|
|
11
|
-
(props: SelectProps
|
|
12
|
-
propTypes: {
|
|
13
|
-
FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
-
root: PropTypes.Requireable<string>;
|
|
16
|
-
}>>;
|
|
17
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
18
|
-
variant: PropTypes.Requireable<string>;
|
|
19
|
-
}>>;
|
|
20
|
-
InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
|
-
root: PropTypes.Requireable<string>;
|
|
23
|
-
disabled: PropTypes.Requireable<string>;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>;
|
|
26
|
-
label: PropTypes.Requireable<string>;
|
|
27
|
-
formHelperText: PropTypes.Requireable<string>;
|
|
28
|
-
error: PropTypes.Requireable<boolean>;
|
|
29
|
-
};
|
|
4
|
+
<T extends unknown>(props: SelectProps<T>): JSX.Element;
|
|
30
5
|
defaultProps: {
|
|
31
6
|
FormControlProps: {};
|
|
32
7
|
InputLabelProps: {};
|
|
@@ -35,23 +10,5 @@ declare const Select: {
|
|
|
35
10
|
error: boolean;
|
|
36
11
|
};
|
|
37
12
|
};
|
|
38
|
-
declare const selectPropTypes: {
|
|
39
|
-
FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
root: PropTypes.Requireable<string>;
|
|
42
|
-
}>>;
|
|
43
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
-
variant: PropTypes.Requireable<string>;
|
|
45
|
-
}>>;
|
|
46
|
-
InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
47
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
|
-
root: PropTypes.Requireable<string>;
|
|
49
|
-
disabled: PropTypes.Requireable<string>;
|
|
50
|
-
}>>;
|
|
51
|
-
}>>;
|
|
52
|
-
label: PropTypes.Requireable<string>;
|
|
53
|
-
formHelperText: PropTypes.Requireable<string>;
|
|
54
|
-
error: PropTypes.Requireable<boolean>;
|
|
55
|
-
};
|
|
56
13
|
export default Select;
|
|
57
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA6ItC,QAAA,MAAM,MAAM;gDAA+C,WAAW;;;;;;;;CAyCrE,CAAC;AAUF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as
|
|
1
|
+
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as u,Select as n,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),m=function(i){var m,b,M,f,I,x,v,y=i.FormControlProps,F=i.InputLabelProps,g=i.label,L=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),C=l(p,[]),S=s();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(b=y.classes)||void 0===b?void 0:b.root,S.formControlRoot,(m={},m[S.error]=P.error,m))}),disabled:y.disabled||P.disabled},{children:[g&&t(u,o({id:C},F,{children:g})),t(n,o({},P,{labelId:C,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(M=null==P?void 0:P.MenuProps)||void 0===M?void 0:M.classes),{paper:null===(I=null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes)||void 0===I?void 0:I.paper,list:c(null===(v=null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.classes)||void 0===v?void 0:v.list,S.menuList)})})})),L&&t(d,{children:L})]}))};m.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{m as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FormControlProps, InputLabelProps, SelectProps as MuiSelectProps } from '@material-ui/core';
|
|
3
|
+
export declare type SelectProps<T> = {
|
|
4
|
+
FormControlProps?: FormControlProps;
|
|
5
|
+
InputLabelProps?: InputLabelProps;
|
|
6
|
+
label?: string | ReactNode;
|
|
7
|
+
formHelperText?: string | ReactNode;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
value?: T;
|
|
10
|
+
onChange?: (e: React.ChangeEvent<{
|
|
11
|
+
name?: string;
|
|
12
|
+
value: T;
|
|
13
|
+
}>, child: ReactNode) => void;
|
|
14
|
+
} & Omit<MuiSelectProps, 'value' | 'onChange'>;
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,IAAI,cAAc,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,oBAAY,WAAW,CAAC,CAAC,IAAI;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CAC1F,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { Alert } from '../constants';
|
|
3
|
+
declare type DQCountryCheckTooltipProps = {
|
|
4
|
+
alert: Alert;
|
|
5
|
+
children: ReactElement<any, any>;
|
|
6
|
+
};
|
|
7
|
+
export declare const DQAlertsTooltip: ({ alert, children }: DQCountryCheckTooltipProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=DQAlertsTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DQAlertsTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAlertsTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQrC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAgIrC,aAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,eAAe,wBAAyB,0BAA0B,KAAG,WA8CjF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as a,Fragment as r}from"react/jsx-runtime";import i from"moment";import{template as o}from"lodash";import{makeStyles as n}from"@material-ui/core";import{Tooltip as l}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";var s=n((function(e){return{errorIcon:{width:20,height:24,marginLeft:"-6px",backgroundPosition:"center",backgroundRepeat:"no-repeat"},title:{maxWidth:198,padding:"0 0 8px",fontSize:16,lineHeight:"22px",color:e.palette.primary.text1},alertTime:{fontSize:14,color:e.palette.primary.text6,"& span":{color:e.palette.primary.text1}},alertMessage:{width:"100%",height:40,margin:0,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",whiteSpace:"pre-wrap",fontSize:14,lineHeight:"20px",color:e.palette.primary.text1},alertMessageFull:{marginBottom:8,fontSize:14,lineHeight:"20px",color:e.palette.primary.text1,whiteSpace:"pre-wrap"},alertInfo:{display:"flex",alignItems:"center",flexWrap:"wrap",marginBottom:8,fontSize:14,textTransform:"capitalize","& span":{color:e.palette.primary.text6,marginRight:8},"& .error":{color:e.palette.error.main},"& .warning":{color:"#ffa500"}},resolvedInfo:{display:"flex",alignItems:"center",marginBottom:8,color:e.palette.primary.text6,fontSize:14},infoIcon:{color:e.palette.info.main,marginRight:8,fontSize:16},popover:{width:270,minHeight:122,padding:12,display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:e.palette.background.b9,border:"1px solid ".concat(e.palette.primary.text9),boxShadow:"0px 3px 10px rgba(0, 0, 0, 0.4)",borderRadius:4,"& .MuiTooltip-tooltip":{backgroundColor:e.palette.background.b9,margin:0,padding:0}},highlight:{fontWeight:500},message:{whiteSpace:"pre-wrap"},note:{marginBottom:4}}})),p=function(e){return i.unix(e).format("DD MMM HH:mm (Z)")},c=function(a){var r=a.children,i=s(),n=o(r)({timestampFormatter:p}).split("**").map((function(e,a){return a%2==1?t("b",{children:e}):e}));return t("span",e({className:i.message},{children:n}))},m=function(o){var n,p,m,d=o.alert,h=o.children,g=s(),f=Math.max(d.statusUpdatedAt,d.lastCheckedAt),u=(void 0===m&&(m="MM/DD/YYYY HH:mm a"),(p=f)?i.unix(p).format(m):null);return t(l,{interactive:!0,children:h,PopperProps:{className:g.popover},placement:"right",title:a(r,{children:[t("div",e({className:g.title},{children:d.name})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Category:"})," ",d.category]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Status:"})," ",d.status]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Error Type:"}),t("div",{className:g.errorIcon,style:{backgroundImage:'url("'.concat("issue"===d.state?"/static/media/27337c7c90a52271ad290030959e6601.svg":"/static/media/3db6b665f981a7aa81d8883122c9380c.svg",'")')}}),t("span",e({className:"issue"===d.state?"warning":"error"},{children:d.state}))]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Score Deduction:"}),t("span",e({className:"warning"},{children:"6%"}))]})),a("div",e({className:g.alertMessageFull},{children:[d.isThrottled&&t("b",{children:"[Throttled]: "}),t(c,{children:d.message})]})),a("span",e({className:g.alertInfo},{children:[t("span",e({className:g.note},{children:"Note:"}))," ",(null===(n=d.note)||void 0===n?void 0:n.length)?d.note:"—"]})),a("span",e({className:g.alertTime},{children:["Updated at: ",t("span",{children:u})]}))]})})};export{m as DQAlertsTooltip};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeIconStatus } from '../constants';
|
|
3
|
+
declare type iconProps = {
|
|
4
|
+
color: BadgeIconStatus;
|
|
5
|
+
className?: string;
|
|
6
|
+
iconType: BadgeIconStatus;
|
|
7
|
+
};
|
|
8
|
+
export declare const DQStatusIcon: ({ color, className, iconType }: iconProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=DQStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DQStatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQStatusIcon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,eAAe,EAAE,MAAM,cAAc,CAAC;AAS5D,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAAoC,SAAS,KAAG,WAOxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import e from"classnames";import{BADGE_ICONS as t}from"../constants.js";var a=o((function(r){return{small:{fontSize:"16px"},warning:{color:r.palette.warning.main},error:{color:r.palette.error.main},success:{color:r.palette.success.bright}}})),s=function(o){var s=o.color,n=o.className,c=o.iconType,m=t[c],i=a();return r(m,{className:e(i.small,i[s],n)})};export{s as DQStatusIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AAwBA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as i}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(i){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:i.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end"}}})),l=function(o){var l=o.onClick,s=a();return t("div",i({className:s.container},{children:[e(n,i({className:s.title},{children:"Data Quality is confirmed"})),e(n,i({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,i({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report issue"}))]}))};export{l as DQSuccessContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DQUnvalidatedContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQUnvalidatedContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAuD/D,aAAK,yBAAyB,GAAG;IAC/B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B,CAAA;AAED,eAAO,MAAM,oBAAoB,mBAAoB,yBAAyB,KAAG,WAqDhF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as i}from"react/jsx-runtime";import a from"classnames";import{makeStyles as s,Typography as t}from"@material-ui/core";import{DQAlertsTooltip as n}from"./DQAlertsTooltip.js";var o=s((function(e){return{assetWrapper:{display:"flex",whiteSpace:"nowrap",alignItems:"center",marginTop:8},assetName:{maxWidth:102,overflow:"hidden",flex:1,fontSize:"12px",fontWeight:500,lineHeight:"14px",letterSpacing:"0.4px",textOverflow:"ellipsis"},container:{padding:12},headerText:{lineHeight:"19px",fontSize:"16px",fontWeight:500},subheaderText:{lineHeight:"14px",fontSize:"12px",fontWeight:400,color:e.palette.primary.text7,marginTop:4},issue:{color:"#ffa500"},missing:{color:e.palette.error.main},errorContainerMargin:{marginLeft:16},errorContainer:{display:"flex",alignItems:"center"},errorText:{marginLeft:4,fontSize:"14px",lineHeight:"20px"},errorNum:{fontSize:"16px",lineHeight:"22px",marginLeft:4}}})),l=function(s){var l=s.assetsData,m=o();return r("div",e({className:m.container},{children:[r("div",{children:[i(t,e({className:m.headerText},{children:"Data Quality Issues"})),r(t,e({className:m.subheaderText},{children:["Here you can see different issue types.",i("br",{}),"Hover over an icon to get more info."]}))]}),i("div",{children:null==l?void 0:l.map((function(s){var t,o=s.id,l=s.name,c=s.issuesNum,d=s.missingNum,p=s.alert,h=c&&d;return r("div",e({className:m.assetWrapper},{children:[i("div",e({className:m.assetName},{children:l})),c&&i(n,e({alert:p},{children:r("div",e({className:m.errorContainer},{children:[i("img",{src:"/static/media/27337c7c90a52271ad290030959e6601.svg",alt:"issues"}),r("div",{children:[i("span",e({className:a(m.issue,m.errorText)},{children:"Issue: "})),i("span",e({className:m.errorNum},{children:c}))]})]}))})),d&&i(n,e({alert:e(e({},p),{state:"missing"})},{children:r("div",e({className:a(m.errorContainer,(t={},t[m.errorContainerMargin]=h,t))},{children:[i("img",{src:"/static/media/3db6b665f981a7aa81d8883122c9380c.svg",alt:"missing"}),r("div",{children:[i("span",e({className:a(m.missing,m.errorText)},{children:"Missing: "})),i("span",e({className:m.errorNum},{children:d}))]})]}))}))]}),o)}))})]}))};export{l as DQUnvalidatedContent};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type ReportIssueModalProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ReportIssueModal: ({ open, onClose }: ReportIssueModalProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ReportIssueModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAmBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,sBAAuB,qBAAqB,KAAG,WAiC3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{makeStyles as l,TextField as t}from"@material-ui/core";import n from"../../Modal/Modal.js";import a from"../../Button/index.js";var c=l((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),m=function(l){var m=l.open,s=l.onClose,p=c();return r(n,e({open:m,onClose:s,title:"Report Error",actions:o(i,{children:[r(a,e({color:"primary",className:p.clearAllButton,onClick:s},{children:"Cancel"})),r(a,e({variation:"primary"},{children:"Save"}))]})},{children:o("div",e({className:p.container},{children:[r("div",e({className:p.helpText},{children:"The reported error will be treated by Corva 24/7 Operations Team. The well score will be reduced by 15%."})),r(t,{multiline:!0,rows:1,rowsMax:4,label:"Error Description"})]}))}))};export{m as ReportIssueModal};
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const MAX_MOBILE_WIDTH = 959;
|
|
2
3
|
export declare type BadgeIconStatus = 'warning' | 'error' | 'success';
|
|
4
|
+
export declare type Alert = {
|
|
5
|
+
name: string;
|
|
6
|
+
category: string;
|
|
7
|
+
state: string;
|
|
8
|
+
status: string;
|
|
9
|
+
isThrottled: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
note: string;
|
|
12
|
+
statusUpdatedAt: number;
|
|
13
|
+
lastCheckedAt: number;
|
|
14
|
+
};
|
|
3
15
|
export declare type AssetData = {
|
|
4
|
-
status: BadgeIconStatus;
|
|
5
16
|
name: string;
|
|
6
|
-
datetime: number;
|
|
7
17
|
id: number;
|
|
18
|
+
issuesNum: number;
|
|
19
|
+
missingNum: number;
|
|
20
|
+
alert: Alert;
|
|
8
21
|
};
|
|
9
22
|
declare type BadgeIconStatuses = {
|
|
10
23
|
success: 'success';
|
|
@@ -15,18 +28,8 @@ export declare const BADGE_ICON_STATUSES: BadgeIconStatuses;
|
|
|
15
28
|
export declare const BADGE_ICONS: {
|
|
16
29
|
success: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
17
30
|
warning: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
18
|
-
|
|
19
|
-
error: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
31
|
+
error: () => JSX.Element;
|
|
20
32
|
};
|
|
21
33
|
export declare const WARNING = "Recommendations may be incorrect based on data quality errors";
|
|
22
|
-
export declare const TOOLTIPS: {
|
|
23
|
-
success: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
};
|
|
26
|
-
declare type IconSizeType = {
|
|
27
|
-
small: 'small';
|
|
28
|
-
large: 'large';
|
|
29
|
-
};
|
|
30
|
-
export declare const ICON_SIZE: IconSizeType;
|
|
31
34
|
export {};
|
|
32
35
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,oBAAY,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAIjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,kEAAkE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@material-ui/icons/Warning";import
|
|
1
|
+
import r from"@material-ui/icons/Warning";import o from"@material-ui/icons/Done";import{SkullIcon as n}from"../Icons/SkullIcon.js";var e,i=959,s={success:"success",warning:"warning",error:"error"},a=((e={})[s.success]=o,e[s.warning]=r,e[s.error]=n,e),c="Recommendations may be incorrect based on data quality errors";export{a as BADGE_ICONS,s as BADGE_ICON_STATUSES,i as MAX_MOBILE_WIDTH,c as WARNING};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAIL,eAAe,EACf,SAAS,EACV,MAAM,aAAa,CAAC;AA6ErB,aAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,kFAOrB,gBAAgB,KAAG,WAoDrB,CAAC"}
|