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