import{bm as t,bn as e,bo as o,bp as n,aD as s,aE as a,aF as c,L as r}from"./p-BTBbFFOR.js";function i(){return function(e,o){Object.defineProperty(e,o,{set:l(o),get:t(o)})}}function l(t){return function(){const s={};e.globalSlimmers.forEach((t=>{s[t.name]=new t({component:this})}));const a=Object.values(s);a.forEach((e=>{o(t).call(this,e)})),a.length>0&&this[n].set(t,s)}}var f=function(t,e,o,n){var s,a=arguments.length,c=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(c=(a<3?s(c):a>3?s(e,o,c):s(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-BTBbFFOR.js").then((function(t){return t.fF})).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:n}=e;t[o]=n(this.host)}return{componentName:this.host.tagName.toUpperCase(),data:t}}}p.baseUsageKey="COMPONENT_USED",f([s()],p.prototype,"host",void 0),f([a("componentDidRender")],p.prototype,"sendUsagePayloadToTelemetry",null);export{i as I,p as V}