import{b as y}from"./chunk-D4B7JTZP.js";import{Mb as f,Na as u,Nb as v,Sa as d,aa as c,eb as m,ga as p,pb as l,ta as s}from"./chunk-RAOXHQSQ.js";import{i as r,j as a}from"./chunk-SLIYHYWC.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:aa38438cfc6bb6877c9985433629bf5f310ba8cfd6183982ad2c0c8f601d3935*/
//# sourceMappingURL=chunk-DGCVKBT6.js.map
