import{b as y}from"./chunk-5WGYZHQ7.js";import{$a as d,Db as l,Eb as f,Fb as h,Ga as p,La as u,ha as c,kb as m}from"./chunk-4JM6MIZ5.js";import{i as r,j as a}from"./chunk-QJQRWPYR.js";var v=["contentWrapper"],k=(()=>{let n=class n{customMarkupService;contentWrapper;content;displayed=!1;constructor(t){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}};r(n,"\u0275fac",function(e){return new(e||n)(p(y))}),r(n,"\u0275cmp",u({type:n,selectors:[["my-custom-markup-container"]],viewQuery:function(e,o){if(e&1&&l(v,7),e&2){let s;f(s=h())&&(o.contentWrapper=s.first)}},inputs:{content:"content"},features:[c],decls:2,vars:1,consts:[["contentWrapper",""],[1,"custom-markup-container",3,"hidden"]],template:function(e,o){e&1&&m(0,"div",1,0),e&2&&d("hidden",!o.displayed)},encapsulation:2}));let i=n;return i})();export{k as a};
/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-56O66O34.js.map
