import{b as y}from"./chunk-NEVWXSI4.js";import{Na as u,Nb as f,Ob as v,Sa as d,aa as c,eb as m,ga as p,qb as l,ta as s}from"./chunk-GKQGDBUU.js";import{i as r,l as a}from"./chunk-QVFSZZWQ.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:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*/
//# sourceMappingURL=chunk-G7ZCVXAQ.js.map
