import{b as r}from"./chunk-AVOTGRPZ.js";import{a as h}from"./chunk-3DEA4WWC.js";import{Ja as a,Ob as c,Vb as d,Yc as o,ib as s}from"./chunk-GJDGQISV.js";var l=(()=>{class e{constructor(){this.config=o(),this.containerId=o(""),this.htmlIsRendered=!1}ngAfterViewInit(){h.IsNotEmpty(this.containerId())&&(this.initChart(),this.htmlIsRendered=!0)}ngOnChanges(t){t.config&&t.config.currentValue&&this.htmlIsRendered&&this.initChart()}initChart(){let t=this.containerId(),n=this.config();if(t&&n){r.default.chart(t,n);let i={lang:{thousandsSep:","}};r.default.setOptions(i)}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["app-chart-container"]],inputs:{config:[1,"config"],containerId:[1,"containerId"]},features:[a],decls:1,vars:1,consts:[[3,"id"]],template:function(n,i){n&1&&c(0,"div",0),n&2&&d("id",i.containerId())},encapsulation:2})}}return e})();export{l as a};
