import{b as y}from"./chunk-OK62ZBKN.js";import{La as s,Lb as m,Mb as l,aa as c,mb as d,ra as p,ub as u,xc as f,yc as v}from"./chunk-4SQIIPGX.js";import{i as a,l as r}from"./chunk-PVXKA76F.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:c36872b108225e22fdb1f8f6f623d1b8958602fe2a49f49507ac6a06e578d8cc*/
//# sourceMappingURL=chunk-6I6PVLJN.js.map
