"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("../../../types/shared/Completions.js"),s=require("../types.js"),a=require("lodash/flatten"),u=require("lodash/partition");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),i=n(t),l=n(a),d=n(u),c=function(e,t){return"".concat(e).concat("--").concat(t)};exports.getMenuItemKey=c,exports.getWellsMenuItems=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.reduce((function(e,s){return[].concat(o.default(e),[{key:c(r.PadMode.custom,s.id),label:"".concat(s.name),assetId:s.asset_id,wellId:s.id,status:s.status,isSubItem:t}])}),[]);return l.default(d.default(a,{status:s.AssetStatus.active}))},exports.parseMenuItemKey=function(e){var t=e.split("--"),r=i.default(t,2);return{mode:r[0],assetId:r[1]}};
//# sourceMappingURL=selectMenuKey.js.map
