1import{a as o}from"./chunk-IBRQURTA.js";import{a as d}from"./chunk-M7POYXPW.js";import{b as e}from"./chunk-6MH73TPM.js";import{H as i}from"./chunk-UZFDMTK3.js";import{Eb as h,fb as s,ga as m,ib as p,l as c,m as r}from"./chunk-I6Z2HZSS.js";import{h as a}from"./chunk-WWX6BADO.js";var v=class{constructor(t,n,C){this.dynamicComponentService=t,this.activatedRoute=n,this.logService=C,this.tentativa=0,this.componentMap={},this.ctx=m(d),console.log("Contexto injetado no DynamicComponent:",this.ctx)}loadComponent(){return a(this,null,function*(){this.tentativa=this.tentativa<3?this.tentativa+1:1;let t=this.activatedRoute.snapshot.queryParams.teste;this.logService.debug("DynamicComponent - loadComponent - Tentativa: "+this.tentativa+", Teste: "+t);let n="<h2>Ol\xE1, sou um componente din\xE2mico!"+t+" Tentativa:"+this.tentativa+"</h2>";this.dynamicComponentService.createComponent(this.container,n)})}static{this.ctorParameters=()=>[{type:o},{type:i},{type:e}]}static{this.propDecorators={container:[{type:p,args:["container",{read:s}]}]}}};v=c([h({selector:"bcb-dynamic-component",template:` 2 <button (click)="loadComponent(tentativa)">Carregar Componente Din\xE2mico</button> 3 <ng-container #container></ng-container> 4 `,providers:[o,e]}),r("design:paramtypes",[o,i,e])],v);export{v as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.