import t from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useEffect as i}from"react";import{fetchCompanyGoals as e}from"../utils/apiCalls.js";import{DEFAULT_METRICS_KEY as a}from"../constants.js";import"../../../utils/index.js";import{BENCHMARK_METRIC_GOAL as m}from"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../utils/env.js";import"lodash";import"../../GradientManager/configuration/constants.js";import{getCompanyGoalSetting as p}from"../../../utils/goals.js";function c(c,l){var u=o([]),f=s(u,2),j=f[0],b=f[1];return i((function(){function t(){return(t=r(n.mark((function t(){var r,s;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(c);case 2:r=t.sent,s=p(r,m),b(s?[s]:[]);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}l?b(l):c&&function(){t.apply(this,arguments)}()}),[c,l]),j.includes(a)||b((function(r){return[a].concat(t(r)).slice(0,3)})),[j,b]}export{c as useCompanyMetricKey};
