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