import{b as y}from"./chunk-BRK7JUCS.js";import{Lb as f,Ma as u,Mb as v,Ra as d,aa as c,db as m,fa as p,ob as l,sa as s}from"./chunk-IDYB4NXF.js";import{i as r,j as a}from"./chunk-AI7IVZV2.js";var h=["contentWrapper"],M=(()=>{let n=class n{customMarkupService=c(y);contentWrapper=u("contentWrapper");content=s(void 0);displayed=!1;ngOnChanges(){return a(this,null,function*(){yield this.rebuild()})}rebuild(){return a(this,null,function*(){let t=this.content();if(t instanceof HTMLDivElement)return this.loadElement(t);let{rootElement:e,componentsLoaded:i}=yield this.customMarkupService.buildElement(t);return yield i,this.loadElement(e)})}loadElement(t){this.contentWrapper().nativeElement.appendChild(t),this.displayed=!0}};r(n,"\u0275fac",function(e){return new(e||n)}),r(n,"\u0275cmp",d({type:n,selectors:[["my-custom-markup-container"]],viewQuery:function(e,i){e&1&&f(i.contentWrapper,h,5),e&2&&v()},inputs:{content:[1,"content"]},features:[p],decls:2,vars:1,consts:[["contentWrapper",""],[1,"custom-markup-container",3,"hidden"]],template:function(e,i){e&1&&l(0,"div",1,0),e&2&&m("hidden",!i.displayed)},encapsulation:2}));let o=n;return o})();export{M as a};
/**i18n:1cf7c077143c4c267fdafbe5508f191afcef21bad6aba22a3a8dc180e1003753*/
//# sourceMappingURL=chunk-YUHQA2U2.js.map
