import{G as f}from"./GraphinaApexChartBase.js";class p extends f{constructor(){super(),this.observer={}}setUpChartsHandler(){this.chartHandlers={mixed:r=>this.observeChartElement(r,"mixed")}}applyYAxisFormatter(r,e,o=!1,_="mixed"){const m=(i,l,s,t)=>typeof t=="number"&&t>0?l+new Intl.NumberFormat(window.gcfe_public_localize.locale_with_hyphen,{minimumFractionDigits:t,maximumFractionDigits:t}).format(i)+s:l+i+s,n=(i,l,s,t)=>{i.labels||(i.labels={}),i.labels.formatter=c=>m(c,l,s,t)};if(o===!1){const i=e.yaxis_label_prefix||"",l=e.yaxis_label_postfix||"",s=typeof e.decimal_in_float=="number"?e.decimal_in_float:0;n(r.yaxis,i,l,s)}else if(o===0||o===1){const i=r.yaxis[o],l=o===0?e.yaxis_label_prefix||"":e.chart_opposite_yaxis_label_prefix||"",s=o===0?e.yaxis_label_postfix||"":e.chart_opposite_yaxis_label_postfix||"";let t=0;(o===0||o===1&&e.chart_opposite_yaxis_format_number===!0)&&(t=typeof e.decimal_in_float=="number"?e.decimal_in_float:0),n(i,l,s,t)}}getChartOptions(r,e,o,_){return e==="mixed"&&(r.chart.events={mounted:(m,n)=>{const i=document.querySelector(`.graphina-elementor-chart[data-element_id="${_}"]`);i&&(i.style.height="")}}),r}}window.graphinaMixedChart=new p;
//# sourceMappingURL=mixed.js.map
