@corva/ui 0.71.0-0 → 0.71.0-2

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"),i=require("classnames"),n=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(i);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 I(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 h=n.makeStyles({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),E=function(e){var t=e.appKey,s=e.appType,r=e.className,i=e.company,n=e.defaultValue,m=e.secondaryDefaultValue,T=e.disabled,q=e.isHiddenTitle,E=e.isNullable,P=e.label,_=e.onSettingsChange,O=e.primaryAssetFields,D=e.secondaryAssetFields,C=e.isExtendedSelect,F=e.isRequiredAssetId,V=e.settings,x=e.isVisibleMultipleAssetsToggle,R=e.assetsLimit,N=e.isDisabledSecondaryAssetSelect,G=e.isDrillingPlatformApp,w=e.secondaryAssetHelpText,L=l.get(s,["primaryAsset","assetType","type"]),H=l.get(s,["primaryAsset","assetType","id"]),Y=l.get(s,["primaryAsset","assetType","label"]),k=l.get(s,["primaryAsset","groups"]),K=l.get(s,["secondaryAsset","assetType","type"]),M=l.get(s,["secondaryAsset","assetType","id"]),U=l.get(s,["secondaryAsset","assetType","label"]),W=l.get(V,H),z=W?Number(W):null,B=l.get(V,M)?Number(l.get(V,M)):m||null,J=a.useState({id:z||n}),Q=v.default(J,2),X=Q[0],Z=Q[1],$=a.useState(B),ee=v.default($,2),te=ee[0],se=ee[1],ae=a.useState(!1),re=v.default(ae,2),le=re[0],ie=re[1],ne=a.useState(),ue=v.default(ne,2),de=ue[0],oe=ue[1],ce=a.useState(!1),pe=v.default(ce,2),fe=pe[0],ye=pe[1],Ae=h(),ge=L===y.ASSET_TYPES.rig.type?c:u,me=G&&null!=X&&X.assetId?null==X?void 0:X.assetId:null==X?void 0:X.id,be=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(t),se(null),ie(!1);var s=(e={},S.default(e,H,null),S.default(e,M,null),S.default(e,"assets",null),e);_(s)},Se=fe?Boolean(X.length)&&!le:(null==X?void 0:X.id)&&!le;return a.useEffect((function(){l.isEmpty(V)&&be(fe&&[])}),[V]),g.jsxs("div",{className:j.default(Ae.main,r),children:[!q&&g.jsx("div",{className:Ae.title,children:"Asset"}),x&&g.jsx(o,{onChange:function(e){var t=e.target;ye(t.checked),be(t.checked&&[])}}),g.jsx(ge,{appKey:t,assetType:L,company:i,currentOption:X,currentValue:null==X?void 0:X.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:n,disableClearable:!E,disabled:T,isNullable:E,isRequiredAssetId:F,label:P,multiple:fe,onChange:function(e){var t;if(fe)!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,i=1===e.length&&r;if(l?(ie(!0),oe(f.PAD_GROUP)):i&&oe(f.FRAC_FLEET_GROUP),a){Z(e);var n=null==e?void 0:e.reduce((function(e,t){var s=t.parentFracFleetId,a=t.id,r={fracFleetId:s,padId:a};return C&&(r.assetId=s,r.replacedPadId=a),s?[].concat(b.default(e),[r]):e}),[]);_({assets:n})}else{Z(e);var u=e.reduce((function(e,t){var s=S.default({},"".concat(t.type,"Id"),t.id);return F&&(s.assetId=t.assetId),C&&(s.assetId=t.assetId||t.id),[].concat(b.default(e),[s])}),[]);_({assets:u})}}}(e);else{var s=e.id,a=e.type,r=e.parentFracFleetId;if(s)if(a!==y.ASSET_TYPES.pad.type){Z(e),se(null);var l=(t={},S.default(t,H,s),S.default(t,"primaryAssetName",e.name),t);F&&(l.assetId=e.assetId),M&&(l[M]=null),_(l),ie(!1)}else{var i;Z(e),ie(!0),se(s);var n=(i={},S.default(i,y.ASSET_TYPES.frac_fleet.id,Number(r)),S.default(i,y.ASSET_TYPES.pad.id,s),i);_(n)}}},setCurrentOption:Z,selectedGroup:de,onGroupChange:function(e){oe(e),be(fe&&[])},onGroupReset:function(){oe(null),be(fe&&[])},groups:k,onInputReset:be,onActiveAssetIdChange:function(e){Z((function(t){return I(I({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:A.getPrimaryAssetFields(L,O,G)}),Se&&g.jsxs(g.Fragment,{children:[w,g.jsx(d.default,{assetFields:K===y.ASSET_TYPES.pad.type?[].concat(b.default(D),["pad.active","pad.current"]):D,activeWellId:null==X?void 0:X.activeWellId,appKey:t,assetType:K,company:i,currentValue:te,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:fe?p.ACTIVE_ASSETS_ID:p.ACTIVE_ASSET_ID,disabled:fe||N||T,isDrillingPlatformApp:G,isNullable:E,isRequiredAssetId:F,onChange:function(e){var t=e.id,s=e.assetId;se(t);var a=t===p.ACTIVE_ASSET_ID?null:t,r=S.default({},M,a);F&&K===y.ASSET_TYPES.well.type?_(I(I({},r),{},{replacedAssetId:G?a:s})):_(r)},parentAssetId:me,parentAssetType:G?"parent_asset_id":L,primaryAssetLabel:Y,secondaryAssetLabel:U})]})]})};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=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 +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"};
@@ -1,5 +1,5 @@
1
1
  export default AppSettingsAssetEditor;
2
- declare function AppSettingsAssetEditor({ appKey, appType, className, company, defaultValue, secondaryDefaultValue, disabled, isHiddenTitle, isNullable, label, onSettingsChange, primaryAssetFields, secondaryAssetFields, isExtendedSelect, isRequiredAssetId, settings, isVisibleMultipleAssetsToggle, assetsLimit, isDisabledSecondaryAssetSelect, isDrillingPlatformApp, secondaryAssetHelpText, }: {
2
+ declare function AppSettingsAssetEditor({ appKey, appType, className, company, defaultValue, secondaryDefaultValue, disabled, isHiddenTitle, isNullable, label, onSettingsChange, primaryAssetFields, secondaryAssetFields, isExtendedSelect, isRequiredAssetId, settings, isVisibleMultipleAssetsToggle, assetsLimit, isDisabledSecondaryAssetSelect, isDrillingPlatformApp, secondaryAssetHelpText, onChange, }: {
3
3
  appKey: any;
4
4
  appType: any;
5
5
  className: any;
@@ -21,6 +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
25
  }): JSX.Element;
25
26
  declare namespace AppSettingsAssetEditor {
26
27
  namespace defaultProps {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;gBA6PC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;gBAgQC"}
@@ -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 i from"prop-types";import{get as n,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(i){var p=i.appKey,T=i.appType,P=i.className,D=i.company,C=i.defaultValue,V=i.secondaryDefaultValue,F=i.disabled,N=i.isHiddenTitle,x=i.isNullable,R=i.label,w=i.onSettingsChange,_=i.primaryAssetFields,q=i.secondaryAssetFields,E=i.isExtendedSelect,H=i.isRequiredAssetId,K=i.settings,L=i.isVisibleMultipleAssetsToggle,M=i.assetsLimit,k=i.isDisabledSecondaryAssetSelect,G=i.isDrillingPlatformApp,W=i.secondaryAssetHelpText,z=n(T,["primaryAsset","assetType","type"]),B=n(T,["primaryAsset","assetType","id"]),J=n(T,["primaryAsset","assetType","label"]),Q=n(T,["primaryAsset","groups"]),U=n(T,["secondaryAsset","assetType","type"]),X=n(T,["secondaryAsset","assetType","id"]),Y=n(T,["secondaryAsset","assetType","label"]),Z=n(K,B),$=Z?Number(Z):null,ee=n(K,X)?Number(n(K,X)):V||null,te=r({id:$||C}),se=s(te,2),re=se[0],ae=se[1],ie=r(ee),ne=s(ie,2),le=ne[0],oe=ne[1],pe=r(!1),de=s(pe,2),ce=de[0],ue=de[1],me=r(),ye=s(me,2),fe=ye[0],be=ye[1],ge=r(!1),Ae=s(ge,2),ve=Ae[0],he=Ae[1],je=S(),Ie=z===A.rig.type?m:d,Te=G&&null!=re&&re.assetId?null==re?void 0:re.assetId:null==re?void 0:re.id,Oe=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ae(s),oe(null),ue(!1);var r=(t(e={},B,null),t(e,X,null),t(e,"assets",null),e);w(r)},Se=ve?Boolean(re.length)&&!ce:(null==re?void 0:re.id)&&!ce;return a((function(){l(K)&&Oe(ve&&[])}),[K]),h("div",{className:o(je.main,P),children:[!N&&j("div",{className:je.title,children:"Asset"}),L&&j(u,{onChange:function(e){var t=e.target;he(t.checked),Oe(t.checked&&[])}}),j(Ie,{appKey:p,assetType:z,company:D,currentOption:re,currentValue:null==re?void 0:re.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:C,disableClearable:!x,disabled:F,isNullable:x,isRequiredAssetId:H,label:R,multiple:ve,onChange:function(s){var r;if(ve)!function(s){var r,a;if(!(s.length>M)){var i=(null===(r=s[0])||void 0===r?void 0:r.group)===b.name,n=(null===(a=s[0])||void 0===a?void 0:a.group)===g.name,l=1===s.length&&i,o=1===s.length&&n;if(l?(ue(!0),be(b)):o&&be(g),i){ae(s);var p=null==s?void 0:s.reduce((function(t,s){var r=s.parentFracFleetId,a=s.id,i={fracFleetId:r,padId:a};return E&&(i.assetId=r,i.replacedPadId=a),r?[].concat(e(t),[i]):t}),[]);w({assets:p})}else{ae(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 a=s.id,i=s.type,n=s.parentFracFleetId;if(a)if(i!==A.pad.type){ae(s),oe(null);var l=(t(r={},B,a),t(r,"primaryAssetName",s.name),r);H&&(l.assetId=s.assetId),X&&(l[X]=null),w(l),ue(!1)}else{var o;ae(s),ue(!0),oe(a);var p=(t(o={},A.frac_fleet.id,Number(n)),t(o,A.pad.id,a),o);w(p)}}},setCurrentOption:ae,selectedGroup:fe,onGroupChange:function(e){be(e),Oe(ve&&[])},onGroupReset:function(){be(null),Oe(ve&&[])},groups:Q,onInputReset:Oe,onActiveAssetIdChange:function(e){ae((function(t){return O(O({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:v(z,_,G)}),Se&&h(I,{children:[W,j(c,{assetFields:U===A.pad.type?[].concat(e(q),["pad.active","pad.current"]):q,activeWellId:null==re?void 0:re.activeWellId,appKey:p,assetType:U,company:D,currentValue:le,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:ve?y:f,disabled:ve||k||F,isDrillingPlatformApp:G,isNullable:x,isRequiredAssetId:H,onChange:function(e){var s=e.id,r=e.assetId;oe(s);var a=s===f?null:s,i=t({},X,a);H&&U===A.well.type?w(O(O({},i),{},{replacedAssetId:G?a:r})):w(i)},parentAssetId:Te,parentAssetType:G?"parent_asset_id":z,primaryAssetLabel:J,secondaryAssetLabel:Y})]})]})};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:i.number,settings:i.shape({}).isRequired,appType:i.shape({}).isRequired,defaultValue:i.any,secondaryDefaultValue:i.any,onSettingsChange:i.func.isRequired,label:i.string,isNullable:i.bool,isHiddenTitle:i.bool,appKey:i.string,isVisibleMultipleAssetsToggle:i.bool,isDisabledSecondaryAssetSelect:i.bool,primaryAssetFields:i.shape({}),secondaryAssetFields:i.shape({}),secondaryAssetHelpText:i.oneOfType([i.element,i.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}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 +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-0",
3
+ "version": "0.71.0-2",
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};