import{G as t,C as e,c as o,M as s,V as n,L as a}from"./p-dcc98162.js";import{c,a as r}from"./p-c45f0189.js";function i(){return function(t,e){Object.defineProperty(t,e,{set:f(e),get:r(e)})}}function f(o){return function(){const s={};t.globalSlimmers.forEach((t=>{s[t.name]=new t({component:this})}));const n=Object.values(s);n.forEach((t=>{c(o).call(this,t)})),n.length>0&&this[e].set(o,s)}}var l=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 n{constructor(t){super(),this.usageDefinitions=t}sendUsagePayloadToTelemetry(){import("./p-5a25014f.js").then((t=>{try{t.default.emit("componentUsage",this.getComponentUsageMetricsPayload())}catch(t){a.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",l([o()],p.prototype,"host",void 0),l([s("componentDidRender")],p.prototype,"sendUsagePayloadToTelemetry",null);export{i as I,p as V}