@corva/ui 0.52.0-5 → 0.52.0-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  export default OffsetWellMap;
2
- declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, }: {
2
+ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, isClickable, }: {
3
3
  isViewOnly: any;
4
4
  subjectWell: any;
5
5
  wells: any;
@@ -7,6 +7,7 @@ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds,
7
7
  radius: any;
8
8
  handleChanageOffsetWell: any;
9
9
  activeWellId: any;
10
+ isClickable: any;
10
11
  }): JSX.Element;
11
12
  declare namespace OffsetWellMap {
12
13
  namespace propTypes {
@@ -20,10 +21,13 @@ declare namespace OffsetWellMap {
20
21
  const radius: PropTypes.Validator<number>;
21
22
  const handleChanageOffsetWell: PropTypes.Validator<(...args: any[]) => any>;
22
23
  const activeWellId: PropTypes.Validator<number>;
24
+ const isClickable: PropTypes.Requireable<boolean>;
23
25
  }
24
26
  namespace defaultProps {
25
27
  const subjectWell_1: any;
26
28
  export { subjectWell_1 as subjectWell };
29
+ const isClickable_1: boolean;
30
+ export { isClickable_1 as isClickable };
27
31
  }
28
32
  }
29
33
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA;;;;;;;;gBAkXC"}
1
+ {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA;;;;;;;;;gBAoXC"}
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as B,jsxs as g,Fragment as k}from"react/jsx-runtime";var O=v.isValidCoordinates,W=[29.749907,-95.358421],T=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,z=a.activeWellId,E=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),L=t((function(){return C(x)}),[x]),w=n(),I=n(),Z=n(),_=n(),q=n(null),M=o(!1),P=e(M,2),R=P[0],V=P[1],G=n(),S=n(),A=(null==D?void 0:D.id)===z,H=h(x),U=o(null),J=e(U,2),K=J[0],Q=J[1],X=o(3),Y=e(X,2),$=Y[0],rr=Y[1];c((function(){w.current=p.mapbox.map(w.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(W,3).on("zoomend",(function(){return rr(w.current.getZoom())})),w.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(w.current)}),[]),c((function(){if(w.current){if(I.current&&(w.current.removeLayer(I.current),I.current=null),Z.current&&w.current.removeLayer(Z.current),!E)return I.current=null,void(Z.current=null);j&&(I.current=p.circle(E,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),I.current.addTo(w.current))}}),[j,E]);var er=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),V(!0)),q.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),q.current.addEventListener("mouseout",(function(){_.current.removeFrom(w.current),_.current=p.featureGroup(G.current),_.current.addTo(w.current),w.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),V(!1))})),q.current.addEventListener("click",(function(){v||F(n,!o)}));var i=G.current.concat(q.current);_.current.removeFrom(w.current),_.current=p.featureGroup(i),_.current.addTo(w.current)},tr=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(L,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o});u.render(B(k,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(w.current)};c((function(){if(w.current&&x&&N){w.current.closePopup(),_.current&&_.current.removeFrom(w.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(L,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];K&&l(r.target,T)&&(t=[l(r.target,T).x-K.x,l(r.target,T).y-K.y]),tr(e,c,o,n,t),er(s,n,i,e,c,o)})),o&&(S.current=s),r.push(s),e.id===z&&!A){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(_.current=p.featureGroup(r),_.current.addTo(w.current)),G.current=r,setTimeout((function(){I.current&&I.current.bringToBack(),w.current&&I.current&&x!==H&&w.current.fitBounds(I.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,K]),c((function(){if(R&&l(w.current,T)){var r=[l(w.current,T).x-K.x,l(w.current,T).y-K.y];tr(D,!1,!0,E,r)}}),[R,K,D,E]),c((function(){if(w.current&&E){Z.current&&Z.current.removeFrom(w.current);var r=p.icon({iconUrl:R||A?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:R||A?[70,20]:[62,12],iconAnchor:R||A?[35,29]:[31,25],className:"dot"});Z.current=p.marker(E,{icon:r}),Z.current.addTo(w.current),S.current&&(Z.current.addEventListener("mouseover",(function(){V(!0),er(S.current,E,"#03BCD4",D,!0,!0)})),Z.current.addEventListener("mouseout",(function(){_.current.removeFrom(w.current),_.current=p.featureGroup(G.current),_.current.addTo(w.current),w.current.closePopup(),S.current.setStyle({fillColor:"#03BCD4"}),V(!1)})))}}),[R,E,j,D,A,K]),c((function(){setTimeout((function(){I.current&&I.current.bringToBack(),D?w.current&&I.current&&j&&w.current.fitBounds(I.current.getBounds(),{padding:[5,5]}):w.current&&_.current&&w.current.fitBounds(_.current.getBounds()),l(w.current,T)&&Q(l(w.current,T))}),500)}),[j,D]);return B("div",{className:b.mapView,children:B("div",{className:b.mapMain,ref:w,children:g("div",{className:b.zoomGroup,children:[B(d,{title:$<18?"Zoom in":"",placement:"left",children:B("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===$)),onClick:function(){w.current.setZoom($+1)},children:B(m,{className:b.zoomInOutIcon})})}),B(d,{title:$>1?"Zoom out":"",placement:"left",children:B("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===$)),onClick:function(){$>1&&w.current.setZoom($-1)},children:B(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired},D.defaultProps={subjectWell:null};export{D as default};
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var O=v.isValidCoordinates,W=[29.749907,-95.358421],T=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,z=a.activeWellId,E=a.isClickable,L=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),w=t((function(){return C(x)}),[x]),I=n(),Z=n(),_=n(),q=n(),M=n(null),P=o(!1),R=e(P,2),V=R[0],G=R[1],S=n(),A=n(),H=(null==D?void 0:D.id)===z,U=h(x),J=o(null),K=e(J,2),Q=K[0],X=K[1],Y=o(3),$=e(Y,2),rr=$[0],er=$[1];c((function(){I.current=p.mapbox.map(I.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(W,3).on("zoomend",(function(){return er(I.current.getZoom())})),I.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(I.current)}),[]),c((function(){if(I.current){if(Z.current&&(I.current.removeLayer(Z.current),Z.current=null),_.current&&I.current.removeLayer(_.current),!L)return Z.current=null,void(_.current=null);j&&(Z.current=p.circle(L,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),Z.current.addTo(I.current))}}),[j,L]);var tr=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),G(!0)),M.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),G(!1))})),M.current.addEventListener("click",(function(){v||F(n,!o)}));var i=S.current.concat(M.current);q.current.removeFrom(I.current),q.current=p.featureGroup(i),q.current.addTo(I.current)},nr=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:E});u.render(k(g,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(I.current)};c((function(){if(I.current&&x&&N){I.current.closePopup(),q.current&&q.current.removeFrom(I.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(w,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Q&&l(r.target,T)&&(t=[l(r.target,T).x-Q.x,l(r.target,T).y-Q.y]),nr(e,c,o,n,t),tr(s,n,i,e,c,o)})),o&&(A.current=s),r.push(s),e.id===z&&!H){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(q.current=p.featureGroup(r),q.current.addTo(I.current)),S.current=r,setTimeout((function(){Z.current&&Z.current.bringToBack(),I.current&&Z.current&&x!==U&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,Q]),c((function(){if(V&&l(I.current,T)){var r=[l(I.current,T).x-Q.x,l(I.current,T).y-Q.y];nr(D,!1,!0,L,r)}}),[V,Q,D,L]),c((function(){if(I.current&&L){_.current&&_.current.removeFrom(I.current);var r=p.icon({iconUrl:V||H?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:V||H?[70,20]:[62,12],iconAnchor:V||H?[35,29]:[31,25],className:"dot"});_.current=p.marker(L,{icon:r}),_.current.addTo(I.current),A.current&&(_.current.addEventListener("mouseover",(function(){G(!0),tr(A.current,L,"#03BCD4",D,!0,!0)})),_.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),A.current.setStyle({fillColor:"#03BCD4"}),G(!1)})))}}),[V,L,j,D,H,Q]),c((function(){setTimeout((function(){Z.current&&Z.current.bringToBack(),D?I.current&&Z.current&&j&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]}):I.current&&q.current&&I.current.fitBounds(q.current.getBounds()),l(I.current,T)&&X(l(I.current,T))}),500)}),[j,D]);return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:I,children:B("div",{className:b.zoomGroup,children:[k(d,{title:rr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===rr)),onClick:function(){I.current.setZoom(rr+1)},children:k(m,{className:b.zoomInOutIcon})})}),k(d,{title:rr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===rr)),onClick:function(){rr>1&&I.current.setZoom(rr-1)},children:k(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool},D.defaultProps={subjectWell:null,isClickable:!0};export{D as default};
@@ -1,9 +1,10 @@
1
- export function WellTooltip(): ({ isViewOnly, well, color, isOffsetWell, isSubjectWell, offset }: {
1
+ export function WellTooltip(): ({ isViewOnly, well, color, isOffsetWell, isSubjectWell, offset, isClickable }: {
2
2
  isViewOnly: any;
3
3
  well: any;
4
4
  color: any;
5
5
  isOffsetWell: any;
6
6
  isSubjectWell: any;
7
7
  offset: any;
8
+ isClickable: any;
8
9
  }) => JSX.Element;
9
10
  //# sourceMappingURL=WellTooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WellTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/WellTooltip.js"],"names":[],"mappings":"AAMO;;;;;;;kBA6CJ"}
1
+ {"version":3,"file":"WellTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/WellTooltip.js"],"names":[],"mappings":"AAMO;;;;;;;;kBA6CJ"}
@@ -1 +1 @@
1
- import e from"classnames";import o from"moment";import l from"@material-ui/icons/Info";import t from"@material-ui/icons/Block";import i from"./WellTooltip.module.css.js";import{jsxs as a,jsx as m}from"react/jsx-runtime";var s=function(){return function(s){var n=s.isViewOnly,r=s.well,c=s.color,f=s.isOffsetWell,d=s.isSubjectWell,p=s.offset;return a("div",{className:i.wellTooltip,style:{marginLeft:null==p?void 0:p[0],marginTop:null==p?void 0:p[1]},children:[m("span",{className:e(i.commonItem,i.wellName),children:r.name}),a("div",{className:i.tooltipItem,children:["Depth: ",Number.isFinite(r.totalDepth)?Math.floor(r.totalDepth).toFixed(2):"N/A",Number.isFinite(r.totalDepth)&&m("span",{className:i.unit,children:" ft"})]}),a("div",{className:e(i.commonItem,i.tooltipItem),children:["Release Date: ",Number.isFinite(r.rigReleaseDate)?o.unix(r.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),a("div",{className:e(i.commonItem,i.formationItem),children:["Target Formation:",m("div",{className:i.formation,style:{backgroundColor:c}}),r.formation]}),!n&&!d&&a("div",{className:e(i.commonItem,i.info),children:[f?m(t,{className:i.blockIcon}):m(l,{className:i.infoIcon}),m("span",f?{className:i.infoLabel,children:"Click to deselect Offset Well"}:{className:i.infoLabel,children:"Click to select Offset Well"})]})]})}};export{s as WellTooltip};
1
+ import e from"classnames";import l from"moment";import o from"@material-ui/icons/Info";import i from"@material-ui/icons/Block";import t from"./WellTooltip.module.css.js";import{jsxs as a,jsx as m}from"react/jsx-runtime";var s=function(){return function(s){var n=s.isViewOnly,r=s.well,c=s.color,f=s.isOffsetWell,d=s.isSubjectWell,p=s.offset,N=s.isClickable;return a("div",{className:t.wellTooltip,style:{marginLeft:null==p?void 0:p[0],marginTop:null==p?void 0:p[1]},children:[m("span",{className:e(t.commonItem,t.wellName),children:r.name}),a("div",{className:t.tooltipItem,children:["Depth: ",Number.isFinite(r.totalDepth)?Math.floor(r.totalDepth).toFixed(2):"N/A",Number.isFinite(r.totalDepth)&&m("span",{className:t.unit,children:" ft"})]}),a("div",{className:e(t.commonItem,t.tooltipItem),children:["Release Date: ",Number.isFinite(r.rigReleaseDate)?l.unix(r.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),a("div",{className:e(t.commonItem,t.formationItem),children:["Target Formation:",m("div",{className:t.formation,style:{backgroundColor:c}}),r.formation]}),!n&&!d&&N&&a("div",{className:e(t.commonItem,t.info),children:[f?m(i,{className:t.blockIcon}):m(o,{className:t.infoIcon}),m("span",f?{className:t.infoLabel,children:"Click to deselect Offset Well"}:{className:t.infoLabel,children:"Click to select Offset Well"})]})]})}};export{s as WellTooltip};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.52.0-5",
3
+ "version": "0.52.0-7",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -86,7 +86,7 @@
86
86
  "@babel/plugin-transform-runtime": "^7.12.10",
87
87
  "@babel/preset-env": "^7.12.11",
88
88
  "@babel/preset-react": "^7.12.10",
89
- "@corva/dc-platform-shared": "0.1.7-4",
89
+ "@corva/dc-platform-shared": "^0.1.7-5",
90
90
  "@corva/eslint-config-browser": "^0.0.4",
91
91
  "@date-io/moment": "1.3.13",
92
92
  "@material-ui/core": "4.11.2",
package/utils/index.d.ts CHANGED
@@ -58,7 +58,6 @@ import * as mobileDetect from "./mobileDetect";
58
58
  import * as nativeMessages from "./nativeMessages";
59
59
  import * as notifications from "./notifications";
60
60
  import * as permissions from "./permissions";
61
- import * as recaptcha from "./recaptcha";
62
61
  import { removeNotification } from "./notificationToasts";
63
62
  import * as reports from "./reports";
64
63
  import * as rollbar from "./rollbar";
@@ -75,5 +74,5 @@ import * as torqueAndHookloadUtils from "./torqueAndHookloadUtils";
75
74
  import { updateLocalStorageItem } from "./localStorage";
76
75
  export const updateUserUnits: ({ userUnits, companyUnits }: any) => void;
77
76
  import { sharedDCStore } from "./sharedDCStore";
78
- export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, recaptcha, removeNotification, reports, rollbar, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showWarningNotification, showToast, sqlParser, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, sharedDCStore };
77
+ export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, rollbar, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showWarningNotification, showToast, sqlParser, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, sharedDCStore };
79
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;AA8FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;AA6FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
package/utils/index.js CHANGED
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";import*as sr from"./recaptcha.js";export{sr as recaptcha};function ar(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var ir={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function pr(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?ar(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ar(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),ir)}var mr=m,nr=n,fr=f,cr=c,lr=l,jr=j,xr=x,gr=g,ur=u,yr=y,br=b,Ur=U,dr=d,vr=v,hr=h,Or=O,Dr=D,Sr=S,wr=pr(V),Pr=pr(p);export{Pr as components,mr as convertArray,Or as convertImmutables,Dr as convertImmutablesByBatch,nr as convertValue,fr as getAllUnitTypes,cr as getDefaultImperialUnit,lr as getDefaultUnits,Sr as getUniqueUnitsByType,jr as getUnitDescription,xr as getUnitDisplay,gr as getUnitPlural,ur as getUnitPreference,br as getUnitSingular,Ur as getUnitSystem,yr as getUnitsByType,vr as getUserUnits,wr as mapbox,hr as subscribeForUserUnitsUpdates,dr as updateUserUnits};
1
+ import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";function sr(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var ar={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function ir(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?sr(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),ar)}var pr=m,mr=n,nr=f,fr=c,cr=l,lr=j,jr=x,xr=g,gr=u,ur=y,yr=b,br=U,Ur=d,dr=v,vr=h,hr=O,Or=D,Dr=S,Sr=ir(V),wr=ir(p);export{wr as components,pr as convertArray,hr as convertImmutables,Or as convertImmutablesByBatch,mr as convertValue,nr as getAllUnitTypes,fr as getDefaultImperialUnit,cr as getDefaultUnits,Dr as getUniqueUnitsByType,lr as getUnitDescription,jr as getUnitDisplay,xr as getUnitPlural,gr as getUnitPreference,yr as getUnitSingular,br as getUnitSystem,ur as getUnitsByType,dr as getUserUnits,Sr as mapbox,vr as subscribeForUserUnitsUpdates,Ur as updateUserUnits};
@@ -1,3 +0,0 @@
1
- export function initializeRecaptcha(): void;
2
- export const GOOGLE_RECAPTCHA_KEY: "6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4" | "6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";
3
- //# sourceMappingURL=recaptcha.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recaptcha.d.ts","sourceRoot":"","sources":["../../src/utils/recaptcha.js"],"names":[],"mappings":"AAQA,4CAKC;AATD,2HAE0B"}
@@ -1 +0,0 @@
1
- var c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){var e=document.createElement("script");e.async=!0,e.src="https://www.google.com/recaptcha/enterprise.js?render=".concat(c),document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};