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