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