import{b as y}from"./chunk-YG2ZJ72N.js";import{Ab as u,Ec as f,Fc as v,Na as s,Rb as m,Sb as l,ba as c,ra as p,sb as d}from"./chunk-RKSLYOIW.js";import{i as a,j as r}from"./chunk-QQ7SJNXU.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-2KGYH7E5.js.map
