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