import{b as y}from"./chunk-EBKOTJKY.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-7XZKA4JV.js";import{i as r,j as a}from"./chunk-ROL33JP2.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:37786acc6a78281d9fbe29f0e76f79a0df01fc58cd74a91d2d29106b1f1580b1*/
//# sourceMappingURL=chunk-SB7EDXZV.js.map
