import t from"lodash/flatten";import o from"lodash/partition";import{AssetStatus as r}from"./types.js";import{PadMode as s}from"../../../types/shared/Completions.js";var e=function(t,o){return"".concat(t).concat("--").concat(o)},n=function(t){var o=t.split("--");return{mode:o[0],assetId:o.length>1?o[1]:""}},a=function(n){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.map((function(t){var o;return{key:e(s.custom,t.id),label:"".concat(t.name),assetId:t.asset_id,wellId:t.id,status:t.status,isSubItem:a,customColor:null==t||null===(o=t.custom_properties)||void 0===o?void 0:o.color}}));return t(o(i,{status:r.active}))};export{e as getMenuItemKey,a as getWellsMenuItems,n as parseMenuItemKey};
//# sourceMappingURL=menuItemsUtils.js.map
