/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import x from"./DPXJFQDJ.js";import w from"./YJXWQGXE.js";import v from"./4M24PBXE.js";import u from"./NZ74TAOS.js";import t from"./LBXY473V.js";import s from"./GY3RSMKZ.js";import r from"./R36L7W4M.js";import q from"./7A5EYKNV.js";import p from"./35D3IFUI.js";import o from"./4ATHCFYH.js";import n from"./35I3DXJA.js";import m from"./7PAMOVYK.js";import k from"./UA7RVRWG.js";import j from"./NCCSBCYU.js";import i from"./L4PX5RPL.js";import h from"./SH2BQWAG.js";import g from"./NG2WISQ2.js";import e from"./S6PFI7AC.js";import d from"./KFUE7LVT.js";import{i as l,k as f,m as b}from"./UG7LOBJE.js";import a from"./AD6GOUND.js";import"./4B3QBH5T.js";import"./FUPYXGG6.js";import"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as c}from"./NKG4FLLR.js";import"./RPU6VCJ4.js";import"./OR4HXHSY.js";export default $arcgis.t(([{Nc:S,ma:g,pa:h,wa:p},{q:_},{c:n},,,,,,,,,,,,,,,{c:W,d:T},{a:u,b:L,c:k,d:v,e:M,f:C,g:z,h:F,i:I,j:O,k:B,l:j,m:D,n:m,o:V,p:A,q:H,t:x},{a:w,b:P,c:q,d:N}])=>{var R=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(d,e,s,i)=>{for(var t=E(e,s),r=d.length-1,y;r>=0;r--)(y=d[r])&&(t=y(e,s,t)||t);return t&&R(e,s,t),t},o=class extends T{constructor(){super(...arguments),this._chartType=c.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),await this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})}setSeriesType(e,s){if(e<this._config.series.length&&e>=0){let i=this._config.series[e],t;if(s===c.BarSeries&&l(i)){let r={...i};delete r.lineSymbol,delete r.markerSymbol,delete r.lineSmoothed,delete r.markerVisible,delete r.areaColor,delete r.stackNegativeValuesToBaseline,t={...h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.BarSeries,y:[i.y].flat()[0]},t.fillSymbol&&(t.fillSymbol={...t.fillSymbol,color:i.lineSymbol?.color})}else if(s===c.LineSeries&&f(i)){let r={...i};delete r.fillSymbol,delete r.hideOversizedStackedLabels,delete r.hideOversizedSideBySideLabels,t={...g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.LineSeries},t.lineSymbol&&(t.lineSymbol={...t.lineSymbol,color:i.fillSymbol?.color})}t!==void 0&&(this._config.series[e]=t)}}getSeriesLineStyle(e){return u(e,this._config)}setSeriesLineStyle(e,s){let i=this._config.series?.[s];l(i)&&L(e,s,this._config)}getSeriesLineWidth(e){return k(e,this._config)}setSeriesLineWidth(e,s){let i=this._config.series?.[s];l(i)&&v(e,s,this._config)}getSeriesMarkerColor(e){return M(e,this._config)}setSeriesMarkerColor(e,s){let i=this._config.series?.[s];l(i)&&C(e,s,this._config)}getSeriesMarkerStyle(e){return z(e,this._config)}setSeriesMarkerStyle(e,s){let i=this._config.series?.[s];l(i)&&F(e,s,this._config)}getSeriesMarkerSize(e){return I(e,this._config)}setSeriesMarkerSize(e,s){let i=this._config.series?.[s];l(i)&&O(e,s,this._config)}isLineSmoothed(e){return B(e,this._config)}setLineSmoothed(e,s){let i=this._config.series?.[s];l(i)&&j({smoothed:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return D(e,this._config)}setAreaVisible(e,s){let i=this._config.series?.[s];l(i)&&m({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return V(e,this._config)}setMarkerVisible(e,s){let i=this._config.series?.[s];l(i)&&A({visible:e,seriesIndex:s,config:this._config})}getAreaColor(e){return H(e,this._config)}setAreaColor(e,s){let i=this._config.series?.[s];l(i)&&(m({visible:!0,seriesIndex:s,config:this._config}),W(e,s,this._config))}getSeriesHideOversizedSideBySideLabels(e){return w(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){let i=this._config.series?.[s];f(i)&&P(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){let i=this._config.series?.[s];f(i)&&N(e,s,this._config)}};a([n],o.prototype,"setSeriesType");a([n],o.prototype,"setSeriesLineStyle");a([n],o.prototype,"setSeriesLineWidth");a([n],o.prototype,"setSeriesMarkerColor");a([n],o.prototype,"setSeriesMarkerStyle");a([n],o.prototype,"setSeriesMarkerSize");a([n],o.prototype,"setLineSmoothed");a([n],o.prototype,"setAreaVisible");a([n],o.prototype,"setMarkerVisible");a([n],o.prototype,"setAreaColor");a([n],o.prototype,"setSeriesHideOversizedSideBySideLabels");a([n],o.prototype,"setSeriesHideOversizedStackedLabels");var G=[x];_(o,G);return o},a,d,e,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,x)