import{b as y}from"./chunk-GK2VFQKS.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-DWEAL4OJ.js";import{i as a,l as r}from"./chunk-YM6OINSR.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:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*/
//# sourceMappingURL=chunk-J3BW2BOJ.js.map
