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