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