/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{b as g}from"./FEJD2JHY.js";import{a as h}from"./QN4OORAR.js";import b from"./AD6GOUND.js";import{B as r}from"./4B3QBH5T.js";import"./FUPYXGG6.js";import"./NKG4FLLR.js";import{A as c,F as m,g as a,h as t,m as o,x as l,y as p,z as n}from"./RPU6VCJ4.js";import"./OR4HXHSY.js";export default $arcgis.t(([])=>{var C={jsAppFlyout:"js-app-flyout"},f=a``,i=class extends n{constructor(){super(...arguments),this._messages=h(),this.popoverElement=l(),this.placement="leading",this.arcgisChartsConfigFormatPopoverColorChange=o(),this.arcgisChartsConfigFormatPopoverSymbolChange=o(),this.arcgisChartsConfigFormatPopoverTextChange=o(),this.arcgisChartsConfigPopoverClose=o()}static{this.properties={messageOverrides:0,selectedElement:0,referenceElement:0,placement:1,open:5}}static{this.styles=f}async reposition(){await this.popoverElement.value?.reposition()}updated(){g(this.popoverElement.value,this.open)}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateSymbolProperties(e){this.selectedElement=e.target.lineStyle,this.arcgisChartsConfigFormatPopoverSymbolChange.emit(e.detail)}updateTextProperties(e){this.selectedElement=e.target.fontStyle,this.arcgisChartsConfigFormatPopoverTextChange.emit(e.detail)}updateColorProperties(e){this.selectedElement=e.detail,this.arcgisChartsConfigFormatPopoverColorChange.emit(e.detail)}render(){let e=this.selectedElement,s=this.selectedElement;return t`<div class=${c(C.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${p(this.popoverElement)}>${Array.isArray(e)?t`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`:null}${s?.type===r.SLS?t`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${s} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`:null}${s?.type===r.TS?t`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${s} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>`:null}</calcite-popover></div>`}};m("arcgis-charts-config-format-popover",i);return i},"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)