import t from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/slicedToArray";import{PadMode as e}from"../../../types/shared/Completions.js";import{AssetStatus as o}from"../types.js";import a from"lodash/flatten";import s from"lodash/partition";var n=function(t,r){return"".concat(t).concat("--").concat(r)},i=function(t){var e=t.split("--"),o=r(e,2);return{mode:o[0],assetId:o[1]}},m=function(r){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],m=r.reduce((function(r,o){return[].concat(t(r),[{key:n(e.custom,o.id),label:"".concat(o.name),assetId:o.asset_id,wellId:o.id,status:o.status,isSubItem:i}])}),[]);return a(s(m,{status:o.active}))};export{n as getMenuItemKey,m as getWellsMenuItems,i as parseMenuItemKey};
//# sourceMappingURL=selectMenuKey.js.map
