import{b as y}from"./chunk-IYLNJFAS.js";import{Jb as m,Ka as s,Kb as l,aa as c,kb as d,oa as p,sb as u,yc as f,zc as v}from"./chunk-R4Z6ZI3L.js";import{i as a,l as r}from"./chunk-P6NJDXIL.js";var h=["contentWrapper"],w=(()=>{let n=class n{customMarkupService=c(y);contentWrapper=v("contentWrapper");content=f(void 0);displayed=!1;ngOnChanges(){return r(this,null,function*(){yield this.rebuild()})}rebuild(){return r(this,null,function*(){let t=this.content();if(t instanceof HTMLDivElement)return this.loadElement(t);let{rootElement:e,componentsLoaded:o}=yield this.customMarkupService.buildElement(t);return yield o,this.loadElement(e)})}loadElement(t){this.contentWrapper().nativeElement.appendChild(t),this.displayed=!0}};a(n,"\u0275fac",function(e){return new(e||n)}),a(n,"\u0275cmp",s({type:n,selectors:[["my-custom-markup-container"]],viewQuery:function(e,o){e&1&&m(o.contentWrapper,h,5),e&2&&l()},inputs:{content:[1,"content"]},features:[p],decls:2,vars:1,consts:[["contentWrapper",""],[1,"custom-markup-container",3,"hidden"]],template:function(e,o){e&1&&d(0,"div",1,0),e&2&&u("hidden",!o.displayed)},encapsulation:2}));let i=n;return i})();export{w as a};
/**i18n:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*/
//# sourceMappingURL=chunk-AQCAEBPU.js.map
