/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{b as d}from"./FEJD2JHY.js";import{a as p}from"./QN4OORAR.js";import b from"./AD6GOUND.js";import"./4B3QBH5T.js";import"./FUPYXGG6.js";import"./NKG4FLLR.js";import{F as a,h as e,m as i,x as s,y as o,z as r}from"./RPU6VCJ4.js";import"./OR4HXHSY.js";export default $arcgis.t(([])=>{var t=class extends r{constructor(){super(...arguments),this._messages=p(),this.popoverElement=s(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){d(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};a("arcgis-charts-config-guides-type-popover",t);return t},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)