/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as n}from"./QN4OORAR.js";import"./FUPYXGG6.js";import{A as l,F as r,g as o,h as a,m as t,z as i}from"./RPU6VCJ4.js";import"./OR4HXHSY.js";var c={colorStyleContainer:"color-style-container"},h=o`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}:host calcite-panel .color-style-container{display:flex;padding:0 1rem;margin-top:1rem}:host calcite-panel .color-style-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-styling-panel>.panel-body{padding:var(--arcgis-charts-panel-padding);margin-top:var(--arcgis-charts-inter-section-margin)}`,s=class extends i{constructor(){super(...arguments),this._messages=n(),this.enableClose=!1,this.arcgisChartsConfigColorStyleChange=t(),this.arcgisChartsConfigColorStyleClose=t()}static{this.properties={messageOverrides:0,header:1,selectedColor:0,open:5,enableClose:5}}static{this.styles=h}closePanel(e){e.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigColorStyleClose.emit())}colorChange(e){this.selectedColor=e.detail,this.arcgisChartsConfigColorStyleChange.emit(this.selectedColor)}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${this.open===!1} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}><div class=${l(c.colorStyleContainer)}><arcgis-charts-config-colors @arcgisColorSelect=${this.colorChange} .rgba=${this.selectedColor}></arcgis-charts-config-colors></div></calcite-panel>`}};r("arcgis-charts-config-color-style",s);export{s as ArcgisChartsConfigColorStyle};
