"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/flatten"),t=require("lodash/partition"),s=require("./types.js"),r=require("../../../types/shared/Completions.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(e),a=o(t),n=function(e,t){return"".concat(e).concat("--").concat(t)};exports.getMenuItemKey=n,exports.getWellsMenuItems=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e.map((function(e){var s;return{key:n(r.PadMode.custom,e.id),label:"".concat(e.name),assetId:e.asset_id,wellId:e.id,status:e.status,isSubItem:t,customColor:null==e||null===(s=e.custom_properties)||void 0===s?void 0:s.color}}));return u.default(a.default(o,{status:s.AssetStatus.active}))},exports.parseMenuItemKey=function(e){var t=e.split("--");return{mode:t[0],assetId:t.length>1?t[1]:""}};
//# sourceMappingURL=menuItemsUtils.js.map
