import{useMemo as e}from"react";import t from"lodash/some";import{getMenuItemKey as r,getWellsMenuItems as n}from"./menuItemsUtils.js";import{AssetStatus as o}from"./types.js";import{DEFAULT_SUPPORTED_PAD_MODES as a}from"../../../constants/completion.js";import{PadMode as i}from"../../../types/shared/Completions.js";function s(s){var c=s.assets,l=s.fracFleetLines,m=s.enableSimulFracInPadSelect,f=s.completionAppType;return e((function(){if(m&&l.length){var e=l.reduce((function(e,a){var s=[{key:r(i.padLine,a.id),label:a.name,isDisabled:!t(a.frac_fleet_line_wells,(function(e){return e.status===o.active})),isSubItem:!1}],c=n(a.frac_fleet_line_wells||[],!0);return c.length?e.concat(s.concat(c)):e}),[]);return a.concat(e)}var s=n(c||[]);return a.concat(s)}),[f,c,l,m])}export{s as useMenuItems};
//# sourceMappingURL=useMenuItems.js.map
