import{first as e}from"lodash";import{PadMode as o}from"../../../types/shared/Completions.js";import{resolveActiveWirelineAsset as i,resolveActiveFracAsset as t}from"../../../utils/completion.js";import{COMPLETION_APP_TYPES as n}from"../../../constants/completion.js";import{getMenuItemKey as l}from"./selectMenuKey.js";var d=function(i){var t,n=i.fracFleetLines,d=i.padModeSetting,r=i.enableSimulFracInPadSelect,s=d.mode;if(d.mode===o.custom)s=l(o.custom,null!==(t=e(d.selectedAssets))&&void 0!==t?t:"");else if(r){var p,m,a=(null===(p=n.find((function(e){return e.id===d.selectedLine})))||void 0===p?void 0:p.id)||(null===(m=n[0])||void 0===m?void 0:m.id);s=n.length?l(o.padLine,a):o.pad}return s},r=function(l){var d=l.assets,r=l.padModeSetting,s=l.completionAppType;return(null==r?void 0:r.mode)===o.padLine?null:(s===n.wirelineMultiWellApp?i:t)(d)||e(d)};export{r as getActiveAsset,d as getSelectValue};
//# sourceMappingURL=resolveCurrentConfig.js.map
