import{b as v}from"./chunk-TVNEF5DE.js";import{Da as u,Kb as y,Va as d,ba as c,eb as l,ka as p,xb as m,yb as f,zb as h}from"./chunk-X3RCWQ3R.js";import{i as n,j as a}from"./chunk-SR6RTMQI.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:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-AYRBFPKG.js.map
