@corva/ui 0.71.0-1 → 0.71.0-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),a=require("react"),r=require("prop-types"),l=require("lodash"),n=require("classnames"),i=require("@material-ui/core"),u=require("./components/PrimaryAssetSelect.js"),d=require("./components/SecondaryAssetSelect.js");require("./components/SelectItem.js");var o=require("./components/MultipleAssetsToggle.js"),c=require("./components/PrimaryAssetSelectV2.js"),p=require("./constants.js");require("../../constants/goals.js");var f=require("../../constants/segment.js");require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js"),require("../../constants/appPackages.js"),require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js");var y=require("../../constants/assetTypes.js");require("../../utils/env.js"),require("../GradientManager/configuration/constants.js");var A=require("./utils/index.js"),g=require("react/jsx-runtime");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),S=m(t),v=m(s),T=m(r),j=m(n);function q(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?q(Object(s),!0).forEach((function(t){S.default(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):q(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var I=i.makeStyles({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),E=function(e){var t=e.appKey,s=e.appType,r=e.className,n=e.company,i=e.defaultValue,m=e.secondaryDefaultValue,T=e.disabled,q=e.isHiddenTitle,E=e.isNullable,P=e.label,_=e.onSettingsChange,O=e.primaryAssetFields,C=e.secondaryAssetFields,D=e.isExtendedSelect,F=e.isRequiredAssetId,V=e.settings,x=e.isVisibleMultipleAssetsToggle,R=e.assetsLimit,N=e.isDisabledSecondaryAssetSelect,G=e.isDrillingPlatformApp,w=e.secondaryAssetHelpText,L=e.onChange,H=l.get(s,["primaryAsset","assetType","type"]),Y=l.get(s,["primaryAsset","assetType","id"]),k=l.get(s,["primaryAsset","assetType","label"]),K=l.get(s,["primaryAsset","groups"]),M=l.get(s,["secondaryAsset","assetType","type"]),U=l.get(s,["secondaryAsset","assetType","id"]),W=l.get(s,["secondaryAsset","assetType","label"]),z=l.get(V,Y),B=z?Number(z):null,J=l.get(V,U)?Number(l.get(V,U)):m||null,Q=a.useState({id:B||i}),X=v.default(Q,2),Z=X[0],$=X[1],ee=a.useState(J),te=v.default(ee,2),se=te[0],ae=te[1],re=a.useState(!1),le=v.default(re,2),ne=le[0],ie=le[1],ue=a.useState(),de=v.default(ue,2),oe=de[0],ce=de[1],pe=a.useState(!1),fe=v.default(pe,2),ye=fe[0],Ae=fe[1],ge=I(),me=H===y.ASSET_TYPES.rig.type?c:u,be=G&&null!=Z&&Z.assetId?null==Z?void 0:Z.assetId:null==Z?void 0:Z.id,Se=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$(t),ae(null),ie(!1);var s=(e={},S.default(e,Y,null),S.default(e,U,null),S.default(e,"assets",null),e);_(s)},ve=ye?Boolean(Z.length)&&!ne:(null==Z?void 0:Z.id)&&!ne;return a.useEffect((function(){l.isEmpty(V)&&Se(ye&&[])}),[V]),g.jsxs("div",{className:j.default(ge.main,r),children:[!q&&g.jsx("div",{className:ge.title,children:"Asset"}),x&&g.jsx(o,{onChange:function(e){var t=e.target;Ae(t.checked),Se(t.checked&&[])}}),g.jsx(me,{appKey:t,assetType:H,company:n,currentOption:Z,currentValue:null==Z?void 0:Z.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:i,disableClearable:!E,disabled:T,isNullable:E,isRequiredAssetId:F,label:P,multiple:ye,onChange:function(e){if(L({primary:e}),ye)!function(e){var t,s;if(!(e.length>R)){var a=(null===(t=e[0])||void 0===t?void 0:t.group)===f.PAD_GROUP.name,r=(null===(s=e[0])||void 0===s?void 0:s.group)===f.FRAC_FLEET_GROUP.name,l=1===e.length&&a,n=1===e.length&&r;if(l?(ie(!0),ce(f.PAD_GROUP)):n&&ce(f.FRAC_FLEET_GROUP),a){$(e);var i=null==e?void 0:e.reduce((function(e,t){var s=t.parentFracFleetId,a=t.id,r={fracFleetId:s,padId:a};return D&&(r.assetId=s,r.replacedPadId=a),s?[].concat(b.default(e),[r]):e}),[]);_({assets:i})}else{$(e);var u=e.reduce((function(e,t){var s=S.default({},"".concat(t.type,"Id"),t.id);return F&&(s.assetId=t.assetId),D&&(s.assetId=t.assetId||t.id),[].concat(b.default(e),[s])}),[]);_({assets:u})}}}(e);else{var t=e.id,s=e.type,a=e.parentFracFleetId;if(t)if(s!==y.ASSET_TYPES.pad.type){$(e),ae(null);var r=S.default({},Y,t);F&&(r.assetId=e.assetId),U&&(r[U]=null),_(r),ie(!1)}else{var l;$(e),ie(!0),ae(t);var n=(l={},S.default(l,y.ASSET_TYPES.frac_fleet.id,Number(a)),S.default(l,y.ASSET_TYPES.pad.id,t),l);_(n)}}},setCurrentOption:$,selectedGroup:oe,onGroupChange:function(e){ce(e),Se(ye&&[])},onGroupReset:function(){ce(null),Se(ye&&[])},groups:K,onInputReset:Se,onActiveAssetIdChange:function(e){$((function(t){return h(h({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:A.getPrimaryAssetFields(H,O,G)}),ve&&g.jsxs(g.Fragment,{children:[w,g.jsx(d.default,{assetFields:M===y.ASSET_TYPES.pad.type?[].concat(b.default(C),["pad.active","pad.current"]):C,activeWellId:null==Z?void 0:Z.activeWellId,appKey:t,assetType:M,company:n,currentValue:se,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:ye?p.ACTIVE_ASSETS_ID:p.ACTIVE_ASSET_ID,disabled:ye||N||T,isDrillingPlatformApp:G,isNullable:E,isRequiredAssetId:F,onChange:function(e){var t=e.id,s=e.assetId,a=e.name;L({secondary:{name:a}}),ae(t);var r=t===p.ACTIVE_ASSET_ID?null:t,l=S.default({},U,r);F&&M===y.ASSET_TYPES.well.type?_(h(h({},l),{},{replacedAssetId:G?r:s})):_(l)},parentAssetId:be,parentAssetType:G?"parent_asset_id":H,primaryAssetLabel:k,secondaryAssetLabel:W})]})]})};E.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,secondaryDefaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[],secondaryAssetHelpText:null},E.propTypes={assetsLimit:T.default.number,settings:T.default.shape({}).isRequired,appType:T.default.shape({}).isRequired,defaultValue:T.default.any,secondaryDefaultValue:T.default.any,onSettingsChange:T.default.func.isRequired,label:T.default.string,isNullable:T.default.bool,isHiddenTitle:T.default.bool,appKey:T.default.string,isVisibleMultipleAssetsToggle:T.default.bool,isDisabledSecondaryAssetSelect:T.default.bool,primaryAssetFields:T.default.shape({}),secondaryAssetFields:T.default.shape({}),secondaryAssetHelpText:T.default.oneOfType([T.default.element,T.default.string])},module.exports=E;
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),a=require("react"),r=require("prop-types"),l=require("lodash"),n=require("classnames"),i=require("@material-ui/core"),u=require("./components/PrimaryAssetSelect.js"),d=require("./components/SecondaryAssetSelect.js");require("./components/SelectItem.js");var o=require("./components/MultipleAssetsToggle.js"),c=require("./components/PrimaryAssetSelectV2.js"),p=require("./constants.js");require("../../constants/goals.js");var f=require("../../constants/segment.js");require("../../constants/alerts.js"),require("../../constants/apps.js"),require("../../constants/drillstring.js"),require("../../constants/completion.js"),require("../../constants/appPackages.js"),require("../../constants/notifications.js"),require("../../constants/feed.js"),require("../../constants/bha.js");var y=require("../../constants/assetTypes.js");require("../../utils/env.js"),require("../GradientManager/configuration/constants.js");var A=require("./utils/index.js"),g=require("react/jsx-runtime");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),S=m(t),v=m(s),T=m(r),j=m(n);function q(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?q(Object(s),!0).forEach((function(t){S.default(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):q(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var I=i.makeStyles({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),E=function(e){var t=e.appKey,s=e.appType,r=e.className,n=e.company,i=e.defaultValue,m=e.secondaryDefaultValue,T=e.disabled,q=e.isHiddenTitle,E=e.isNullable,P=e.label,_=e.onSettingsChange,O=e.primaryAssetFields,C=e.secondaryAssetFields,D=e.isExtendedSelect,F=e.isRequiredAssetId,V=e.settings,x=e.isVisibleMultipleAssetsToggle,R=e.assetsLimit,N=e.isDisabledSecondaryAssetSelect,G=e.isDrillingPlatformApp,w=e.secondaryAssetHelpText,L=e.onChange,H=void 0===L?l.noop:L,Y=l.get(s,["primaryAsset","assetType","type"]),k=l.get(s,["primaryAsset","assetType","id"]),K=l.get(s,["primaryAsset","assetType","label"]),M=l.get(s,["primaryAsset","groups"]),U=l.get(s,["secondaryAsset","assetType","type"]),W=l.get(s,["secondaryAsset","assetType","id"]),z=l.get(s,["secondaryAsset","assetType","label"]),B=l.get(V,k),J=B?Number(B):null,Q=l.get(V,W)?Number(l.get(V,W)):m||null,X=a.useState({id:J||i}),Z=v.default(X,2),$=Z[0],ee=Z[1],te=a.useState(Q),se=v.default(te,2),ae=se[0],re=se[1],le=a.useState(!1),ne=v.default(le,2),ie=ne[0],ue=ne[1],de=a.useState(),oe=v.default(de,2),ce=oe[0],pe=oe[1],fe=a.useState(!1),ye=v.default(fe,2),Ae=ye[0],ge=ye[1],me=I(),be=Y===y.ASSET_TYPES.rig.type?c:u,Se=G&&null!=$&&$.assetId?null==$?void 0:$.assetId:null==$?void 0:$.id,ve=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ee(t),re(null),ue(!1);var s=(e={},S.default(e,k,null),S.default(e,W,null),S.default(e,"assets",null),e);_(s)},Te=Ae?Boolean($.length)&&!ie:(null==$?void 0:$.id)&&!ie;return a.useEffect((function(){l.isEmpty(V)&&ve(Ae&&[])}),[V]),g.jsxs("div",{className:j.default(me.main,r),children:[!q&&g.jsx("div",{className:me.title,children:"Asset"}),x&&g.jsx(o,{onChange:function(e){var t=e.target;ge(t.checked),ve(t.checked&&[])}}),g.jsx(be,{appKey:t,assetType:Y,company:n,currentOption:$,currentValue:null==$?void 0:$.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:i,disableClearable:!E,disabled:T,isNullable:E,isRequiredAssetId:F,label:P,multiple:Ae,onChange:function(e){if(H({primary:e}),Ae)!function(e){var t,s;if(!(e.length>R)){var a=(null===(t=e[0])||void 0===t?void 0:t.group)===f.PAD_GROUP.name,r=(null===(s=e[0])||void 0===s?void 0:s.group)===f.FRAC_FLEET_GROUP.name,l=1===e.length&&a,n=1===e.length&&r;if(l?(ue(!0),pe(f.PAD_GROUP)):n&&pe(f.FRAC_FLEET_GROUP),a){ee(e);var i=null==e?void 0:e.reduce((function(e,t){var s=t.parentFracFleetId,a=t.id,r={fracFleetId:s,padId:a};return D&&(r.assetId=s,r.replacedPadId=a),s?[].concat(b.default(e),[r]):e}),[]);_({assets:i})}else{ee(e);var u=e.reduce((function(e,t){var s=S.default({},"".concat(t.type,"Id"),t.id);return F&&(s.assetId=t.assetId),D&&(s.assetId=t.assetId||t.id),[].concat(b.default(e),[s])}),[]);_({assets:u})}}}(e);else{var t=e.id,s=e.type,a=e.parentFracFleetId;if(t)if(s!==y.ASSET_TYPES.pad.type){ee(e),re(null);var r=S.default({},k,t);F&&(r.assetId=e.assetId),W&&(r[W]=null),_(r),ue(!1)}else{var l;ee(e),ue(!0),re(t);var n=(l={},S.default(l,y.ASSET_TYPES.frac_fleet.id,Number(a)),S.default(l,y.ASSET_TYPES.pad.id,t),l);_(n)}}},setCurrentOption:ee,selectedGroup:ce,onGroupChange:function(e){pe(e),ve(Ae&&[])},onGroupReset:function(){pe(null),ve(Ae&&[])},groups:M,onInputReset:ve,onActiveAssetIdChange:function(e){ee((function(t){return h(h({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:A.getPrimaryAssetFields(Y,O,G)}),Te&&g.jsxs(g.Fragment,{children:[w,g.jsx(d.default,{assetFields:U===y.ASSET_TYPES.pad.type?[].concat(b.default(C),["pad.active","pad.current"]):C,activeWellId:null==$?void 0:$.activeWellId,appKey:t,assetType:U,company:n,currentValue:ae,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:Ae?p.ACTIVE_ASSETS_ID:p.ACTIVE_ASSET_ID,disabled:Ae||N||T,isDrillingPlatformApp:G,isNullable:E,isRequiredAssetId:F,onChange:function(e){var t=e.id,s=e.assetId,a=e.name;H({secondary:{name:a}}),re(t);var r=t===p.ACTIVE_ASSET_ID?null:t,l=S.default({},W,r);F&&U===y.ASSET_TYPES.well.type?_(h(h({},l),{},{replacedAssetId:G?r:s})):_(l)},parentAssetId:Se,parentAssetType:G?"parent_asset_id":Y,primaryAssetLabel:K,secondaryAssetLabel:z})]})]})};E.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,secondaryDefaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[],secondaryAssetHelpText:null},E.propTypes={assetsLimit:T.default.number,settings:T.default.shape({}).isRequired,appType:T.default.shape({}).isRequired,defaultValue:T.default.any,secondaryDefaultValue:T.default.any,onSettingsChange:T.default.func.isRequired,label:T.default.string,isNullable:T.default.bool,isHiddenTitle:T.default.bool,appKey:T.default.string,isVisibleMultipleAssetsToggle:T.default.bool,isDisabledSecondaryAssetSelect:T.default.bool,primaryAssetFields:T.default.shape({}),secondaryAssetFields:T.default.shape({}),secondaryAssetHelpText:T.default.oneOfType([T.default.element,T.default.string])},module.exports=E;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),r=require("react"),t=require("lodash"),a=require("classnames"),n=require("@material-ui/core"),i=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=o(e),l=o(a),s=n.makeStyles((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),u=function(e,r,t){e.setItem(r,JSON.stringify(t))};module.exports=function(e){var a=e.className,o=e.title,p=e.Icon,d=e.onInputChange,f=e.inputValue,m=e.isHidden,x=e.maxCount,h=e.dataStorageKey,g=e.dataStorage,v=e.clearable,y=function(e,r){return JSON.parse(e.getItem(r))||[]}(g,h),S=s();if(r.useEffect((function(){var e;null!=f&&f.trim()&&!y.includes(f)&&(e=f,u(g,h,t.take([e].concat(c.default(y)),x)))}),[f]),t.isEmpty(y)||m)return null;var b=null==y?void 0:y.map((function(e){return i.jsxs("div",{className:S.option,onClick:function(){!function(e){u(g,h,v?y:y.filter((function(r){return r!==e}))),d(e)}(e)},children:[p&&i.jsx(p,{className:S.recentSearchesIcon}),i.jsx("div",{className:S.label,children:e})]},e)}));return i.jsxs("div",{className:l.default(S.recentSearchesWrapper,a),children:[o&&i.jsx(n.Typography,{className:S.caption,children:o}),b]})};
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),r=require("react"),t=require("lodash"),a=require("classnames"),n=require("@material-ui/core"),i=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=c(e),l=c(a),s=n.makeStyles((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),u=function(e,r,t){e.setItem(r,JSON.stringify(t))};module.exports=function(e){var a=e.className,c=e.title,p=e.Icon,d=e.onInputChange,f=e.inputValue,m=e.isHidden,x=e.maxCount,h=e.dataStorageKey,g=e.dataStorage,v=e.clearable,S=function(e,r){return JSON.parse(e.getItem(r))||[]}(g,h),y=s();if(r.useEffect((function(){var e;null!=f&&f.trim()&&!S.includes(f)&&(e=f,u(g,h,t.take([e].concat(o.default(S)),x)))}),[f]),t.isEmpty(S)||m)return null;var b=null==S?void 0:S.map((function(e){return i.jsxs("div",{className:y.option,"data-testid":"".concat("RecentSearches","_").concat(e),onClick:function(){!function(e){u(g,h,v?S:S.filter((function(r){return r!==e}))),d(e)}(e)},children:[p&&i.jsx(p,{className:y.recentSearchesIcon}),i.jsx("div",{className:y.label,children:e})]},e)}));return i.jsxs("div",{className:l.default(y.recentSearchesWrapper,a),children:[c&&i.jsx(n.Typography,{className:y.caption,children:c}),b]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},s={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=r,exports.cost_per_lat_ft=s,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips_count={label:"Casing Stand Count",key:"slips_to_slips_count"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},s={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bha_count={label:"BHA Count",key:"bha_count"},exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=r,exports.cost_per_lat_ft=s,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips_count={label:"Casing Stand Count",key:"slips_to_slips_count"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"};
@@ -21,7 +21,7 @@ declare function AppSettingsAssetEditor({ appKey, appType, className, company, d
21
21
  isDisabledSecondaryAssetSelect: any;
22
22
  isDrillingPlatformApp: any;
23
23
  secondaryAssetHelpText: any;
24
- onChange: any;
24
+ onChange?: (...args: any[]) => void;
25
25
  }): JSX.Element;
26
26
  declare namespace AppSettingsAssetEditor {
27
27
  namespace defaultProps {
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as a}from"react";import n from"prop-types";import{get as i,isEmpty as l}from"lodash";import o from"classnames";import{makeStyles as p}from"@material-ui/core";import d from"./components/PrimaryAssetSelect.js";import c from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import u from"./components/MultipleAssetsToggle.js";import m from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as y,ACTIVE_ASSET_ID as f}from"./constants.js";import"../../constants/goals.js";import{PAD_GROUP as b,FRAC_FLEET_GROUP as g}from"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{ASSET_TYPES as A}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{getPrimaryAssetFields as v}from"./utils/index.js";import{jsxs as h,jsx as j,Fragment as I}from"react/jsx-runtime";function T(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function O(e){for(var s=1;s<arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?T(Object(r),!0).forEach((function(s){t(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=p({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),P=function(n){var p=n.appKey,T=n.appType,P=n.className,C=n.company,D=n.defaultValue,V=n.secondaryDefaultValue,F=n.disabled,N=n.isHiddenTitle,x=n.isNullable,R=n.label,w=n.onSettingsChange,_=n.primaryAssetFields,q=n.secondaryAssetFields,E=n.isExtendedSelect,H=n.isRequiredAssetId,K=n.settings,L=n.isVisibleMultipleAssetsToggle,M=n.assetsLimit,k=n.isDisabledSecondaryAssetSelect,G=n.isDrillingPlatformApp,W=n.secondaryAssetHelpText,z=n.onChange,B=i(T,["primaryAsset","assetType","type"]),J=i(T,["primaryAsset","assetType","id"]),Q=i(T,["primaryAsset","assetType","label"]),U=i(T,["primaryAsset","groups"]),X=i(T,["secondaryAsset","assetType","type"]),Y=i(T,["secondaryAsset","assetType","id"]),Z=i(T,["secondaryAsset","assetType","label"]),$=i(K,J),ee=$?Number($):null,te=i(K,Y)?Number(i(K,Y)):V||null,se=r({id:ee||D}),re=s(se,2),ae=re[0],ne=re[1],ie=r(te),le=s(ie,2),oe=le[0],pe=le[1],de=r(!1),ce=s(de,2),ue=ce[0],me=ce[1],ye=r(),fe=s(ye,2),be=fe[0],ge=fe[1],Ae=r(!1),ve=s(Ae,2),he=ve[0],je=ve[1],Ie=S(),Te=B===A.rig.type?m:d,Oe=G&&null!=ae&&ae.assetId?null==ae?void 0:ae.assetId:null==ae?void 0:ae.id,Se=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ne(s),pe(null),me(!1);var r=(t(e={},J,null),t(e,Y,null),t(e,"assets",null),e);w(r)},Pe=he?Boolean(ae.length)&&!ue:(null==ae?void 0:ae.id)&&!ue;return a((function(){l(K)&&Se(he&&[])}),[K]),h("div",{className:o(Ie.main,P),children:[!N&&j("div",{className:Ie.title,children:"Asset"}),L&&j(u,{onChange:function(e){var t=e.target;je(t.checked),Se(t.checked&&[])}}),j(Te,{appKey:p,assetType:B,company:C,currentOption:ae,currentValue:null==ae?void 0:ae.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:D,disableClearable:!x,disabled:F,isNullable:x,isRequiredAssetId:H,label:R,multiple:he,onChange:function(s){if(z({primary:s}),he)!function(s){var r,a;if(!(s.length>M)){var n=(null===(r=s[0])||void 0===r?void 0:r.group)===b.name,i=(null===(a=s[0])||void 0===a?void 0:a.group)===g.name,l=1===s.length&&n,o=1===s.length&&i;if(l?(me(!0),ge(b)):o&&ge(g),n){ne(s);var p=null==s?void 0:s.reduce((function(t,s){var r=s.parentFracFleetId,a=s.id,n={fracFleetId:r,padId:a};return E&&(n.assetId=r,n.replacedPadId=a),r?[].concat(e(t),[n]):t}),[]);w({assets:p})}else{ne(s);var d=s.reduce((function(s,r){var a=t({},"".concat(r.type,"Id"),r.id);return H&&(a.assetId=r.assetId),E&&(a.assetId=r.assetId||r.id),[].concat(e(s),[a])}),[]);w({assets:d})}}}(s);else{var r=s.id,a=s.type,n=s.parentFracFleetId;if(r)if(a!==A.pad.type){ne(s),pe(null);var i=t({},J,r);H&&(i.assetId=s.assetId),Y&&(i[Y]=null),w(i),me(!1)}else{var l;ne(s),me(!0),pe(r);var o=(t(l={},A.frac_fleet.id,Number(n)),t(l,A.pad.id,r),l);w(o)}}},setCurrentOption:ne,selectedGroup:be,onGroupChange:function(e){ge(e),Se(he&&[])},onGroupReset:function(){ge(null),Se(he&&[])},groups:U,onInputReset:Se,onActiveAssetIdChange:function(e){ne((function(t){return O(O({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:v(B,_,G)}),Pe&&h(I,{children:[W,j(c,{assetFields:X===A.pad.type?[].concat(e(q),["pad.active","pad.current"]):q,activeWellId:null==ae?void 0:ae.activeWellId,appKey:p,assetType:X,company:C,currentValue:oe,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:he?y:f,disabled:he||k||F,isDrillingPlatformApp:G,isNullable:x,isRequiredAssetId:H,onChange:function(e){var s=e.id,r=e.assetId,a=e.name;z({secondary:{name:a}}),pe(s);var n=s===f?null:s,i=t({},Y,n);H&&X===A.well.type?w(O(O({},i),{},{replacedAssetId:G?n:r})):w(i)},parentAssetId:Oe,parentAssetType:G?"parent_asset_id":B,primaryAssetLabel:Q,secondaryAssetLabel:Z})]})]})};P.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,secondaryDefaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[],secondaryAssetHelpText:null},P.propTypes={assetsLimit:n.number,settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,secondaryDefaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,isHiddenTitle:n.bool,appKey:n.string,isVisibleMultipleAssetsToggle:n.bool,isDisabledSecondaryAssetSelect:n.bool,primaryAssetFields:n.shape({}),secondaryAssetFields:n.shape({}),secondaryAssetHelpText:n.oneOfType([n.element,n.string])};export{P as default};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as a}from"react";import n from"prop-types";import{get as i,isEmpty as l,noop as o}from"lodash";import p from"classnames";import{makeStyles as d}from"@material-ui/core";import c from"./components/PrimaryAssetSelect.js";import u from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import m from"./components/MultipleAssetsToggle.js";import y from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as f,ACTIVE_ASSET_ID as b}from"./constants.js";import"../../constants/goals.js";import{PAD_GROUP as g,FRAC_FLEET_GROUP as A}from"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{ASSET_TYPES as v}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{getPrimaryAssetFields as h}from"./utils/index.js";import{jsxs as j,jsx as I,Fragment as T}from"react/jsx-runtime";function O(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function S(e){for(var s=1;s<arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?O(Object(r),!0).forEach((function(s){t(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=d({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),C=function(n){var d=n.appKey,O=n.appType,C=n.className,D=n.company,V=n.defaultValue,F=n.secondaryDefaultValue,N=n.disabled,x=n.isHiddenTitle,R=n.isNullable,w=n.label,_=n.onSettingsChange,q=n.primaryAssetFields,E=n.secondaryAssetFields,H=n.isExtendedSelect,K=n.isRequiredAssetId,L=n.settings,M=n.isVisibleMultipleAssetsToggle,k=n.assetsLimit,G=n.isDisabledSecondaryAssetSelect,W=n.isDrillingPlatformApp,z=n.secondaryAssetHelpText,B=n.onChange,J=void 0===B?o:B,Q=i(O,["primaryAsset","assetType","type"]),U=i(O,["primaryAsset","assetType","id"]),X=i(O,["primaryAsset","assetType","label"]),Y=i(O,["primaryAsset","groups"]),Z=i(O,["secondaryAsset","assetType","type"]),$=i(O,["secondaryAsset","assetType","id"]),ee=i(O,["secondaryAsset","assetType","label"]),te=i(L,U),se=te?Number(te):null,re=i(L,$)?Number(i(L,$)):F||null,ae=r({id:se||V}),ne=s(ae,2),ie=ne[0],le=ne[1],oe=r(re),pe=s(oe,2),de=pe[0],ce=pe[1],ue=r(!1),me=s(ue,2),ye=me[0],fe=me[1],be=r(),ge=s(be,2),Ae=ge[0],ve=ge[1],he=r(!1),je=s(he,2),Ie=je[0],Te=je[1],Oe=P(),Se=Q===v.rig.type?y:c,Pe=W&&null!=ie&&ie.assetId?null==ie?void 0:ie.assetId:null==ie?void 0:ie.id,Ce=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};le(s),ce(null),fe(!1);var r=(t(e={},U,null),t(e,$,null),t(e,"assets",null),e);_(r)},De=Ie?Boolean(ie.length)&&!ye:(null==ie?void 0:ie.id)&&!ye;return a((function(){l(L)&&Ce(Ie&&[])}),[L]),j("div",{className:p(Oe.main,C),children:[!x&&I("div",{className:Oe.title,children:"Asset"}),M&&I(m,{onChange:function(e){var t=e.target;Te(t.checked),Ce(t.checked&&[])}}),I(Se,{appKey:d,assetType:Q,company:D,currentOption:ie,currentValue:null==ie?void 0:ie.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:V,disableClearable:!R,disabled:N,isNullable:R,isRequiredAssetId:K,label:w,multiple:Ie,onChange:function(s){if(J({primary:s}),Ie)!function(s){var r,a;if(!(s.length>k)){var n=(null===(r=s[0])||void 0===r?void 0:r.group)===g.name,i=(null===(a=s[0])||void 0===a?void 0:a.group)===A.name,l=1===s.length&&n,o=1===s.length&&i;if(l?(fe(!0),ve(g)):o&&ve(A),n){le(s);var p=null==s?void 0:s.reduce((function(t,s){var r=s.parentFracFleetId,a=s.id,n={fracFleetId:r,padId:a};return H&&(n.assetId=r,n.replacedPadId=a),r?[].concat(e(t),[n]):t}),[]);_({assets:p})}else{le(s);var d=s.reduce((function(s,r){var a=t({},"".concat(r.type,"Id"),r.id);return K&&(a.assetId=r.assetId),H&&(a.assetId=r.assetId||r.id),[].concat(e(s),[a])}),[]);_({assets:d})}}}(s);else{var r=s.id,a=s.type,n=s.parentFracFleetId;if(r)if(a!==v.pad.type){le(s),ce(null);var i=t({},U,r);K&&(i.assetId=s.assetId),$&&(i[$]=null),_(i),fe(!1)}else{var l;le(s),fe(!0),ce(r);var o=(t(l={},v.frac_fleet.id,Number(n)),t(l,v.pad.id,r),l);_(o)}}},setCurrentOption:le,selectedGroup:Ae,onGroupChange:function(e){ve(e),Ce(Ie&&[])},onGroupReset:function(){ve(null),Ce(Ie&&[])},groups:Y,onInputReset:Ce,onActiveAssetIdChange:function(e){le((function(t){return S(S({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:W,assetFields:h(Q,q,W)}),De&&j(T,{children:[z,I(u,{assetFields:Z===v.pad.type?[].concat(e(E),["pad.active","pad.current"]):E,activeWellId:null==ie?void 0:ie.activeWellId,appKey:d,assetType:Z,company:D,currentValue:de,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:Ie?f:b,disabled:Ie||G||N,isDrillingPlatformApp:W,isNullable:R,isRequiredAssetId:K,onChange:function(e){var s=e.id,r=e.assetId,a=e.name;J({secondary:{name:a}}),ce(s);var n=s===b?null:s,i=t({},$,n);K&&Z===v.well.type?_(S(S({},i),{},{replacedAssetId:W?n:r})):_(i)},parentAssetId:Pe,parentAssetType:W?"parent_asset_id":Q,primaryAssetLabel:X,secondaryAssetLabel:ee})]})]})};C.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,secondaryDefaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[],secondaryAssetHelpText:null},C.propTypes={assetsLimit:n.number,settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,secondaryDefaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,isHiddenTitle:n.bool,appKey:n.string,isVisibleMultipleAssetsToggle:n.bool,isDisabledSecondaryAssetSelect:n.bool,primaryAssetFields:n.shape({}),secondaryAssetFields:n.shape({}),secondaryAssetHelpText:n.oneOfType([n.element,n.string])};export{C as default};
@@ -1 +1 @@
1
- {"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.js"],"names":[],"mappings":";AA6CA;;;;;;;;;;;gBA8DC"}
1
+ {"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.js"],"names":[],"mappings":";AA8CA;;;;;;;;;;;gBA+DC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{useEffect as r}from"react";import{isEmpty as t,take as n}from"lodash";import a from"classnames";import{makeStyles as i,Typography as o}from"@material-ui/core";import{jsxs as c,jsx as l}from"react/jsx-runtime";var p=i((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),s=function(e,r,t){e.setItem(r,JSON.stringify(t))},m=function(i){var m=i.className,u=i.title,d=i.Icon,f=i.onInputChange,h=i.inputValue,x=i.isHidden,g=i.maxCount,v=i.dataStorageKey,S=i.dataStorage,b=i.clearable,N=function(e,r){return JSON.parse(e.getItem(r))||[]}(S,v),I=p();if(r((function(){null!=h&&h.trim()&&!N.includes(h)&&s(S,v,n([h].concat(e(N)),g))}),[h]),t(N)||x)return null;var y=null==N?void 0:N.map((function(e){return c("div",{className:I.option,onClick:function(){!function(e){s(S,v,b?N:N.filter((function(r){return r!==e}))),f(e)}(e)},children:[d&&l(d,{className:I.recentSearchesIcon}),l("div",{className:I.label,children:e})]},e)}));return c("div",{className:a(I.recentSearchesWrapper,m),children:[u&&l(o,{className:I.caption,children:u}),y]})};export{m as default};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{useEffect as r}from"react";import{isEmpty as t,take as n}from"lodash";import a from"classnames";import{makeStyles as i,Typography as o}from"@material-ui/core";import{jsxs as c,jsx as l}from"react/jsx-runtime";var p=i((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),s=function(e,r,t){e.setItem(r,JSON.stringify(t))},m=function(i){var m=i.className,u=i.title,d=i.Icon,f=i.onInputChange,h=i.inputValue,x=i.isHidden,g=i.maxCount,v=i.dataStorageKey,S=i.dataStorage,b=i.clearable,N=function(e,r){return JSON.parse(e.getItem(r))||[]}(S,v),I=p();if(r((function(){null!=h&&h.trim()&&!N.includes(h)&&s(S,v,n([h].concat(e(N)),g))}),[h]),t(N)||x)return null;var y=null==N?void 0:N.map((function(e){return c("div",{className:I.option,"data-testid":"".concat("RecentSearches","_").concat(e),onClick:function(){!function(e){s(S,v,b?N:N.filter((function(r){return r!==e}))),f(e)}(e)},children:[d&&l(d,{className:I.recentSearchesIcon}),l("div",{className:I.label,children:e})]},e)}));return c("div",{className:a(I.recentSearchesWrapper,m),children:[u&&l(o,{className:I.caption,children:u}),y]})};export{m as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.71.0-1",
3
+ "version": "0.71.0-3",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -579,5 +579,11 @@ export namespace slips_to_slips_count {
579
579
  const key_53: string;
580
580
  export { key_53 as key };
581
581
  }
582
+ export namespace bha_count {
583
+ const label_54: string;
584
+ export { label_54 as label };
585
+ const key_54: string;
586
+ export { key_54 as key };
587
+ }
582
588
  import { convertPercentageMetrics } from "./utils";
583
589
  //# sourceMappingURL=metricsConfig.d.ts.map
@@ -1 +1 @@
1
- import{getUnitDescription as e,convertValue as t,getUnitPreference as i}from"../convert.js";import{convertPercentageMetrics as o}from"./utils.js";var n={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},s={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:o,isBiggestBest:!0},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:o},g={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:o,isBiggestBest:!0},_={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},d={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},f={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},c={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},T={label:"On Bottom Time",key:"on_bottom_time",to:"h"},b={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:o,isBiggestBest:!0},h={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},v={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},S={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},w={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},G={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},L={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},N={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},j={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},V={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},W={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},z={label:"Cost/".concat(e(i("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/t(1,"length","ft")}},A={label:"Lateral Cost/".concat(e(i("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/t(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},te={label:"Drilling Stand Count",key:"weight_to_weight_count"},ie={label:"Tripping Connection Count",key:"tripping_connection_count"},oe={label:"Casing Stand Count",key:"slips_to_slips_count"};export{B as bottom_to_slips_average,$ as build_rate,J as circulating_time,z as cost_per_ft,A as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,s as drilled_feet_rotary_percentage,r as drilled_feet_slide,a as drilled_feet_slide_percentage,h as drilling_connection_average,g as drilling_percentage,f as drilling_time_rotary,c as drilling_time_slide,d as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,V as gross_tripping_in_speed_cased,W as gross_tripping_in_speed_open,U as gross_tripping_in_speed_total,q as gross_tripping_out_speed_total,n as hole_depth,l as hole_depth_change,F as npt,b as on_bottom_percentage,T as on_bottom_time,C as pumps_on_to_bottom_average,_ as rop,u as rop_gross,y as rop_rotary,m as rop_slide,v as slips_to_bottom_average,j as slips_to_slips,oe as slips_to_slips_count,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,ie as tripping_connection_count,G as tripping_in_connection_time_cased,S as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,E as tripping_in_time,w as tripping_in_time_cased,P as tripping_in_time_open,N as tripping_in_time_with_connection,L as tripping_in_time_with_connection_open,H as tripping_out_speed,D as tripping_out_speed_cased,R as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average,te as weight_to_weight_count};
1
+ import{getUnitDescription as e,convertValue as t,getUnitPreference as i}from"../convert.js";import{convertPercentageMetrics as o}from"./utils.js";var n={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},s={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:o,isBiggestBest:!0},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:o},g={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:o,isBiggestBest:!0},_={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},d={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},f={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},c={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},T={label:"On Bottom Time",key:"on_bottom_time",to:"h"},b={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:o,isBiggestBest:!0},h={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},v={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},S={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},w={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},G={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},L={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},N={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},j={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},V={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},W={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},A={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Cost/".concat(e(i("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/t(1,"length","ft")}},z={label:"Lateral Cost/".concat(e(i("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/t(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},te={label:"Drilling Stand Count",key:"weight_to_weight_count"},ie={label:"Tripping Connection Count",key:"tripping_connection_count"},oe={label:"Casing Stand Count",key:"slips_to_slips_count"},ne={label:"BHA Count",key:"bha_count"};export{ne as bha_count,B as bottom_to_slips_average,$ as build_rate,J as circulating_time,q as cost_per_ft,z as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,s as drilled_feet_rotary_percentage,r as drilled_feet_slide,a as drilled_feet_slide_percentage,h as drilling_connection_average,g as drilling_percentage,f as drilling_time_rotary,c as drilling_time_slide,d as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,V as gross_tripping_in_speed_cased,W as gross_tripping_in_speed_open,A as gross_tripping_in_speed_total,U as gross_tripping_out_speed_total,n as hole_depth,l as hole_depth_change,F as npt,b as on_bottom_percentage,T as on_bottom_time,C as pumps_on_to_bottom_average,_ as rop,u as rop_gross,y as rop_rotary,m as rop_slide,v as slips_to_bottom_average,j as slips_to_slips,oe as slips_to_slips_count,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,ie as tripping_connection_count,G as tripping_in_connection_time_cased,S as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,E as tripping_in_time,w as tripping_in_time_cased,P as tripping_in_time_open,N as tripping_in_time_with_connection,L as tripping_in_time_with_connection_open,H as tripping_out_speed,D as tripping_out_speed_cased,R as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average,te as weight_to_weight_count};