/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as u}from"./QN4OORAR.js";import"./FUPYXGG6.js";import{F as d,g as o,h as n,z as e}from"./RPU6VCJ4.js";import"./OR4HXHSY.js";var l=o`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,t=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=l}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(a=>a.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(a=>a.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(s=>s.isXAxis),a=this.calculatedMinMaxBounds?.find(s=>!s.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${a?.maximum} .initialMinBound=${a?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",t);export{t as ArcgisChartsConfigAxes};
