import{b as v}from"./chunk-7F3ISV6D.js";import{Ab as h,Ea as u,Lb as y,Wa as d,ba as c,fb as l,ka as p,yb as m,zb as f}from"./chunk-QXV2GR6R.js";import{i as n,j as a}from"./chunk-JJ4RDTEF.js";var C=["contentWrapper"],w=(()=>{let i=class i{constructor(t){n(this,"customMarkupService");n(this,"contentWrapper");n(this,"content");n(this,"displayed",!1);this.customMarkupService=t}ngOnChanges(){return a(this,null,function*(){yield this.rebuild()})}rebuild(){return a(this,null,function*(){if(this.content instanceof HTMLDivElement)return this.loadElement(this.content);let{rootElement:t,componentsLoaded:e}=yield this.customMarkupService.buildElement(this.content);return yield e,this.loadElement(t)})}loadElement(t){this.contentWrapper.nativeElement.appendChild(t),this.displayed=!0}};n(i,"\u0275fac",function(e){return new(e||i)(u(v))}),n(i,"\u0275cmp",c({type:i,selectors:[["my-custom-markup-container"]],viewQuery:function(e,r){if(e&1&&m(C,7),e&2){let s;f(s=h())&&(r.contentWrapper=s.first)}},inputs:{content:"content"},standalone:!0,features:[p,y],decls:2,vars:1,consts:[["contentWrapper",""],[1,"custom-markup-container",3,"hidden"]],template:function(e,r){e&1&&l(0,"div",1,0),e&2&&d("hidden",!r.displayed)},encapsulation:2}));let o=i;return o})();export{w as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-YSZHFMWV.js.map
