import{Ad as x,Bb as O,Cb as I,Ea as g,Ga as p,Ha as n,Na as m,ac as y,da as l,i as u,ia as r,ra as d,sc as S,tb as A,tc as Z,ub as f}from"./chunk-BMP7OUUE.js";import{h as c}from"./chunk-WWX6BADO.js";var v=["chart"],U=(()=>{class i{constructor(){this.chart=n(),this.annotations=n(),this.colors=n(),this.dataLabels=n(),this.series=n(),this.stroke=n(),this.labels=n(),this.legend=n(),this.markers=n(),this.noData=n(),this.fill=n(),this.tooltip=n(),this.plotOptions=n(),this.responsive=n(),this.xaxis=n(),this.yaxis=n(),this.forecastDataPoints=n(),this.grid=n(),this.states=n(),this.title=n(),this.subtitle=n(),this.theme=n(),this.autoUpdateSeries=n(!0),this.chartReady=p(),this.chartInstance=A(null),this.chartElement=f.required("chart"),this.ngZone=r(g),this.isBrowser=x(r(m))}ngOnChanges(t){this.isBrowser&&this.ngZone.runOutsideAngular(()=>{u.schedule(()=>this.hydrate(t))})}ngOnDestroy(){this.destroy()}hydrate(t){if(this.autoUpdateSeries()&&Object.keys(t).filter(s=>s!=="series").length===0){this.updateSeries(this.series(),!0);return}this.createElement()}createElement(){return c(this,null,function*(){let{default:t}=yield import("./chunk-RAOEMV57.js");window.ApexCharts||=t;let e={};["annotations","chart","colors","dataLabels","series","stroke","labels","legend","fill","tooltip","plotOptions","responsive","markers","noData","xaxis","yaxis","forecastDataPoints","grid","states","title","subtitle","theme"].forEach(o=>{let h=this[o]();h&&(e[o]=h)}),this.destroy();let a=this.ngZone.runOutsideAngular(()=>new t(this.chartElement().nativeElement,e));this.chartInstance.set(a),this.render(),this.chartReady.emit({chartObj:a})})}render(){return this.ngZone.runOutsideAngular(()=>this.chartInstance()?.render())}updateOptions(t,e,s,a){return this.ngZone.runOutsideAngular(()=>this.chartInstance()?.updateOptions(t,e,s,a))}updateSeries(t,e){return this.ngZone.runOutsideAngular(()=>this.chartInstance()?.updateSeries(t,e))}appendSeries(t,e){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.appendSeries(t,e))}appendData(t){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.appendData(t))}highlightSeries(t){return this.ngZone.runOutsideAngular(()=>this.chartInstance()?.highlightSeries(t))}toggleSeries(t){return this.ngZone.runOutsideAngular(()=>this.chartInstance()?.toggleSeries(t))}showSeries(t){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.showSeries(t))}hideSeries(t){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.hideSeries(t))}resetSeries(){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.resetSeries())}zoomX(t,e){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.zoomX(t,e))}toggleDataPointSelection(t,e){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.toggleDataPointSelection(t,e))}destroy(){this.chartInstance()?.destroy(),this.chartInstance.set(null)}setLocale(t){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.setLocale(t))}paper(){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.paper())}addXaxisAnnotation(t,e,s){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.addXaxisAnnotation(t,e,s))}addYaxisAnnotation(t,e,s){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.addYaxisAnnotation(t,e,s))}addPointAnnotation(t,e,s){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.addPointAnnotation(t,e,s))}removeAnnotation(t,e){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.removeAnnotation(t,e))}clearAnnotations(t){this.ngZone.runOutsideAngular(()=>this.chartInstance()?.clearAnnotations(t))}dataURI(t){return this.chartInstance()?.dataURI(t)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=O({type:i,selectors:[["apx-chart"]],viewQuery:function(e,s){e&1&&S(s.chartElement,v,5),e&2&&Z()},inputs:{chart:[1,"chart"],annotations:[1,"annotations"],colors:[1,"colors"],dataLabels:[1,"dataLabels"],series:[1,"series"],stroke:[1,"stroke"],labels:[1,"labels"],legend:[1,"legend"],markers:[1,"markers"],noData:[1,"noData"],fill:[1,"fill"],tooltip:[1,"tooltip"],plotOptions:[1,"plotOptions"],responsive:[1,"responsive"],xaxis:[1,"xaxis"],yaxis:[1,"yaxis"],forecastDataPoints:[1,"forecastDataPoints"],grid:[1,"grid"],states:[1,"states"],title:[1,"title"],subtitle:[1,"subtitle"],theme:[1,"theme"],autoUpdateSeries:[1,"autoUpdateSeries"]},outputs:{chartReady:"chartReady"},features:[d],decls:2,vars:0,consts:[["chart",""]],template:function(e,s){e&1&&y(0,"div",null,0)},encapsulation:2,changeDetection:0})}}return i})();var E=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=I({type:i})}static{this.\u0275inj=l({})}}return i})();export{U as a,E as b};
