import{b as y}from"./chunk-IXP3ADYH.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-2GYONVCW.js";import{i as r,j as a}from"./chunk-6PUAHDUH.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:7c691147a9ded88b46d9cd2285c6afa220006ce26eb0d02eb4522192723b6cd8*/
//# sourceMappingURL=chunk-G3IFOCSN.js.map
