/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import s from"./DPXJFQDJ.js";import r from"./4M24PBXE.js";import q from"./NZ74TAOS.js";import p from"./GY3RSMKZ.js";import o from"./R36L7W4M.js";import n from"./7A5EYKNV.js";import m from"./35D3IFUI.js";import l from"./4ATHCFYH.js";import k from"./35I3DXJA.js";import j from"./7PAMOVYK.js";import i from"./UA7RVRWG.js";import h from"./NCCSBCYU.js";import g from"./L4PX5RPL.js";import e from"./SH2BQWAG.js";import d from"./NG2WISQ2.js";import c from"./S6PFI7AC.js";import b from"./KFUE7LVT.js";import"./UG7LOBJE.js";import a from"./AD6GOUND.js";import"./4B3QBH5T.js";import"./FUPYXGG6.js";import"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as f}from"./NKG4FLLR.js";import"./RPU6VCJ4.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Nc:a,P:l,pa:g,wa:S,z:h},,{c:n},,,,,,,,,,,{c:y},,{ja:p},{b:u,c:b,d:v},{a:I,b:L,c:_,d:O}])=>{var z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,c=(m,e,t,r)=>{for(var i=F(e,t),o=m.length-1,d;o>=0;o--)(d=m[o])&&(i=d(e,t,i)||i);return i&&z(e,t,i),i},s=class extends v{constructor(){super(...arguments),this._chartType=f.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=S(this.commonStrings);return e.series=[g({objectIDField:a(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return I(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,t){L(e,t,this._config)}getSeriesHideOversizedStackedLabels(e){return _(e,this._config)}setSeriesHideOversizedStackedLabels(e,t){O(e,t,this._config)}getSortOrder(){return y(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let t=this.getSeriesId(e),r=l({colorIndex:e,opacity:h});if(b(r,e,this._config),this.layerInfo!==void 0){let i=p({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==a(this.layerInfo.layer).idField&&u(i??t,e,this._config)}}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,t=!1;if(!e&&this.layerInfo!==void 0)for(let r=0;r<this.seriesLength;r+=1){let i=p({config:this._config,seriesIndex:r,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(r);if(i!==void 0&&i!==a(this.layerInfo.layer).idField&&i!==o){t=!0;break}}return e||t}};c([n],s.prototype,"setSeriesHideOversizedSideBySideLabels");c([n],s.prototype,"setSeriesHideOversizedStackedLabels");c([n],s.prototype,"resetSeriesStyling");return s},"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",a,b,c,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s)