/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import u from"./T3ITHIXK.js";import t from"./YJXWQGXE.js";import s from"./4M24PBXE.js";import r from"./NZ74TAOS.js";import q from"./LBXY473V.js";import p from"./GY3RSMKZ.js";import o from"./R36L7W4M.js";import n from"./7A5EYKNV.js";import l from"./35D3IFUI.js";import k from"./4ATHCFYH.js";import j from"./35I3DXJA.js";import i from"./7PAMOVYK.js";import h from"./UA7RVRWG.js";import g from"./NCCSBCYU.js";import f 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 m}from"./NKG4FLLR.js";import"./RPU6VCJ4.js";import"./OR4HXHSY.js";export default $arcgis.t(([{Nc:o,P:c,ma:l,ya:d,z:S},{q:g},{c:y},,,,,,,,,,,,,,{ja:h},{b:k,c:F,d:L},{b:u,d:p,f:b,h:I,j:v,t:_},w])=>{var D=Object.defineProperty,M=Object.getOwnPropertyDescriptor,x=(n,e,s,t)=>{for(var i=M(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&D(e,s,i),i},a=class extends L{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(F(s,e,this._config),b(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&k(i??t,e,this._config)}u(this.defaultSeries?.lineSymbol?.style,e,this._config),p(this.defaultSeries?.lineSymbol?.width,e,this._config),I(this.defaultSeries?.markerSymbol?.style,e,this._config),v(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};x([y],a.prototype,"resetSeriesStyling");var j=[_,w];g(a,j);return a},a,b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,s,t,u)