import{G as e,d as t,C as o,e as s,c as n,M as a,V as c,L as r}from"./p-6e1ab235.js";function i(){return function(e,t){Object.defineProperty(e,t,{set:l(t),get:s(t)})}}function l(s){return function(){const n={};e.globalSlimmers.forEach((e=>{n[e.name]=new e({component:this})}));const a=Object.values(n);a.forEach((e=>{t(s).call(this,e)})),a.length>0&&this[o].set(s,n)}}var f=function(e,t,o,s){var n,a=arguments.length,c=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(c=(a<3?n(c):a>3?n(t,o,c):n(t,o))||c);return a>3&&c&&Object.defineProperty(t,o,c),c};class p extends c{constructor(e){super(),this.usageDefinitions=e}sendUsagePayloadToTelemetry(){import("./p-982747ef.js").then((e=>{try{e.default.emit("componentUsage",this.getComponentUsageMetricsPayload())}catch(e){r.log("Component usage payload failed to emit telemetry:",e)}}))}getComponentUsageMetricsPayload(){const e={};if(e[p.baseUsageKey]=!0,this.usageDefinitions)for(const t of this.usageDefinitions){const{payloadKey:o,payloadValue:s}=t;e[o]=s(this.host)}return{componentName:this.host.tagName.toUpperCase(),data:e}}}p.baseUsageKey="COMPONENT_USED",f([n()],p.prototype,"host",void 0),f([a("componentDidRender")],p.prototype,"sendUsagePayloadToTelemetry",null);export{i as I,p as V}