@arcgis/charts-components 5.2.0-next.91 → 5.2.0-next.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/cdn/{BZIGQJAH.js → 3DFJNY6A.js} +1 -1
  2. package/dist/cdn/{ULF3LG3W.js → 3PDCMLV2.js} +1 -1
  3. package/dist/cdn/{73DFT5MR.js → 4CXLM72I.js} +1 -1
  4. package/dist/cdn/4GHPGD5V.js +3 -0
  5. package/dist/cdn/{OQQIDPDH.js → 4JEK27XV.js} +1 -1
  6. package/dist/cdn/{EFXNPF4V.js → 4KFOFEIN.js} +1 -1
  7. package/dist/cdn/{YX7WAUQZ.js → 4MP4Q5I4.js} +1 -1
  8. package/dist/cdn/{SQHEWY2J.js → 4SM6EV6P.js} +1 -1
  9. package/dist/cdn/{COSE26XR.js → 52GO2JZC.js} +1 -1
  10. package/dist/cdn/{2B4DKL3R.js → 5DCUB4FX.js} +1 -1
  11. package/dist/cdn/{ELNZ7PTF.js → 5IQPL6AC.js} +1 -1
  12. package/dist/cdn/{GUMN6KPP.js → 5LBF4SSV.js} +1 -1
  13. package/dist/cdn/{QVLDIB2N.js → 6AFE4M3T.js} +1 -1
  14. package/dist/cdn/{F66W272X.js → 6SUEHUL6.js} +1 -1
  15. package/dist/cdn/{YQL5A2WS.js → 7HWZXF5A.js} +1 -1
  16. package/dist/cdn/{CKRZTUGB.js → AELTVK5N.js} +1 -1
  17. package/dist/cdn/{BZEYWH2F.js → AHAIJDB2.js} +1 -1
  18. package/dist/cdn/{KAUOH4F3.js → AXWUOABD.js} +1 -1
  19. package/dist/cdn/{GK6IJBRW.js → BCNKEOFL.js} +1 -1
  20. package/dist/cdn/{QIBUTVUN.js → BGXZ42ED.js} +1 -1
  21. package/dist/cdn/{4JMHK7HK.js → BYT7C7VI.js} +1 -1
  22. package/dist/cdn/{SBZKGQBV.js → CXZ7MZPY.js} +1 -1
  23. package/dist/cdn/{XYJJ2PIL.js → CZ62W7UB.js} +1 -1
  24. package/dist/cdn/{4O4L6CM3.js → DQ6LRD4W.js} +1 -1
  25. package/dist/cdn/{KYCNUCTQ.js → EL5EBXW6.js} +1 -1
  26. package/dist/cdn/{DLCJMSYG.js → EU2EVPUK.js} +1 -1
  27. package/dist/cdn/{KZ4SCRQT.js → F65D4RJJ.js} +1 -1
  28. package/dist/cdn/{VCBFPEET.js → FBRQK463.js} +1 -1
  29. package/dist/cdn/{LZ3ZRY2F.js → FLR2AT35.js} +1 -1
  30. package/dist/cdn/{MTFWTSTG.js → FSRPLIND.js} +1 -1
  31. package/dist/cdn/{LU7UO6PR.js → FZOFULPS.js} +1 -1
  32. package/dist/cdn/{65HVRSR6.js → GVQLHXCG.js} +1 -1
  33. package/dist/cdn/{D7LBGWWL.js → HAY6LZTC.js} +1 -1
  34. package/dist/cdn/{LJJPOUVA.js → HS3QXLZC.js} +1 -1
  35. package/dist/cdn/{KHWZ54IX.js → IC6GECR5.js} +1 -1
  36. package/dist/cdn/{3HG6OEAW.js → IGITXVJI.js} +1 -1
  37. package/dist/cdn/{MF2ZBHWI.js → IL2RER5V.js} +1 -1
  38. package/dist/cdn/{KVWM73YN.js → IPKMUURX.js} +1 -1
  39. package/dist/cdn/{VBDLVCPP.js → JMQEKJA5.js} +1 -1
  40. package/dist/cdn/{6K6Z6CQE.js → K3LGNMJB.js} +1 -1
  41. package/dist/cdn/{N4XXKTCN.js → KCCLZZS7.js} +1 -1
  42. package/dist/cdn/{ZFHU5I2O.js → KDGXJ3LJ.js} +1 -1
  43. package/dist/cdn/{NGGJIQHT.js → KE3BTQXC.js} +1 -1
  44. package/dist/cdn/{3K7H52Y5.js → KIQONRCW.js} +1 -1
  45. package/dist/cdn/{HZEGDF6W.js → KMP2NYK6.js} +1 -1
  46. package/dist/cdn/{HIVJRWLF.js → LEZM24PU.js} +1 -1
  47. package/dist/cdn/{62EUOXR7.js → LZNXWS4O.js} +19 -19
  48. package/dist/cdn/{YOUTTWJN.js → M46SIJYN.js} +1 -1
  49. package/dist/cdn/{XW5I2M45.js → MTQFQWYG.js} +1 -1
  50. package/dist/cdn/{IIV6X3KV.js → MXGHQBEG.js} +1 -1
  51. package/dist/cdn/{SMTDJE55.js → NPI4IPBC.js} +1 -1
  52. package/dist/cdn/{SJBJ2N5C.js → NYVOHYRH.js} +2 -2
  53. package/dist/cdn/{GVJF3VFV.js → ODYN5EMU.js} +1 -1
  54. package/dist/cdn/{GUWBPR2H.js → ONQJB7XI.js} +1 -1
  55. package/dist/cdn/{RAJO727X.js → P6LFMAZJ.js} +1 -1
  56. package/dist/cdn/{QBBUOEKF.js → PEOJOFFP.js} +1 -1
  57. package/dist/cdn/QDYO64C6.js +2 -0
  58. package/dist/cdn/{LKC6J4IQ.js → QFNDC2XR.js} +1 -1
  59. package/dist/cdn/{NYR4K242.js → QODVHTRA.js} +1 -1
  60. package/dist/cdn/{L6IM34J7.js → QUYRCQOV.js} +1 -1
  61. package/dist/cdn/{KPEBWOLJ.js → R3RLEISD.js} +1 -1
  62. package/dist/cdn/{5YBMIR4F.js → R7UWW3TZ.js} +1 -1
  63. package/dist/cdn/{44ICH2UX.js → RAZ5P564.js} +1 -1
  64. package/dist/cdn/{7HANUCEA.js → RFLBJ5F6.js} +1 -1
  65. package/dist/cdn/{54LUEUIT.js → RNSUQVAD.js} +1 -1
  66. package/dist/cdn/{ZO4GRLG6.js → SHTMAA3U.js} +1 -1
  67. package/dist/cdn/{JSPNXGH3.js → SJXTS4TF.js} +1 -1
  68. package/dist/cdn/{WTABMFFY.js → SYWTGNM2.js} +1 -1
  69. package/dist/cdn/{OPMACXLA.js → TF6SC2R3.js} +1 -1
  70. package/dist/cdn/{JXAPOWHG.js → TK44WD5Z.js} +1 -1
  71. package/dist/cdn/{RCAJJ24P.js → TVQFQTJN.js} +1 -1
  72. package/dist/cdn/{DOE5S7EP.js → UBTJOXKH.js} +1 -1
  73. package/dist/cdn/{4QQRIMTI.js → VGZCEHUH.js} +1 -1
  74. package/dist/cdn/{WPLJ5BXE.js → WGON3TB6.js} +1 -1
  75. package/dist/cdn/{KHC2DMSU.js → WXPIZP63.js} +1 -1
  76. package/dist/cdn/{LCJVASMQ.js → XSDCK3IH.js} +1 -1
  77. package/dist/cdn/{D5O2M65G.js → XYFPPUVQ.js} +1 -1
  78. package/dist/cdn/{H4R2P2BO.js → YBVVLNAT.js} +1 -1
  79. package/dist/cdn/{4A42J7HF.js → YWLBGSMG.js} +1 -1
  80. package/dist/cdn/{CPDE3ZSY.js → ZNR5734Q.js} +1 -1
  81. package/dist/cdn/{OCT2KA4Q.js → ZZNMJQYT.js} +1 -1
  82. package/dist/cdn/index.js +1 -1
  83. package/dist/cdn/model/shared/setup-utils.js +1 -1
  84. package/dist/chunks/index.js +819 -871
  85. package/dist/chunks/index4.js +3 -3
  86. package/dist/chunks/pie-chart-data.js +1 -1
  87. package/dist/components/arcgis-chart/customElement.js +1792 -1803
  88. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +23 -23
  89. package/dist/docs/api.json +1 -1
  90. package/dist/docs/docs.json +1 -1
  91. package/dist/docs/web-types.json +1 -1
  92. package/dist/spec/chart-object-literals.d.ts +3 -3
  93. package/package.json +4 -4
  94. package/dist/cdn/CDWFPVYG.js +0 -2
  95. package/dist/cdn/IHDWXIBS.js +0 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./KPEBWOLJ.js";import q from"./KHWZ54IX.js";import p from"./KZ4SCRQT.js";import o from"./ZFHU5I2O.js";import n from"./CKRZTUGB.js";import l from"./44ICH2UX.js";import j from"./SJBJ2N5C.js";import i from"./GUWBPR2H.js";import h from"./65HVRSR6.js";import g from"./CPDE3ZSY.js";import e from"./GUMN6KPP.js";import d from"./COSE26XR.js";import c from"./LU7UO6PR.js";import b from"./NGGJIQHT.js";import a from"./IHDWXIBS.js";import{L as w,N as P,U as D,Z as V,da as E}from"./62GSQDTE.js";import{l as k}from"./SP2IPHWF.js";import{a as L}from"./QP5UAIC6.js";import{c as _}from"./QYRHZJH3.js";import{a as f,b as m,f as S}from"./PWJBGZPW.js";export default $arcgis.t(([{I:p,Mb:N,oa:x,qa:F},{a:M,b:I,d:T,n:U,o:j,p:W,q:R},{e:o},O,{b:xe,d:Fe,f:Ie},{b:ue,d:Se,f:_e},{d:me,e:fe},de,{d:Y},{b:Te},{a:le,b:ge,c:ce,d:he},{a:pe,b:ye},{d:B,e:C,f:z},{b:Be},{a:q,b:X,c:G,d:H,e:J,f:K,g:Q,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:y,oa:re,pa:d,qa:A,ra:oe,sa:u,ua:v,va:b,wa:ne,xa:ae}])=>{var Ce=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=V(r,f.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},ve=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Oe=(s,e)=>{let i=e.series?.[s],t;return F(i)?t=i.fillSymbol?.color:x(i)&&(t=i.lineSymbol?.color),t},ke=(s,e,i)=>{let t=i.series?.[e];t&&(F(t)?t.fillSymbol={...E(e),...t.fillSymbol,color:s}:x(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},we=s=>s.series.map(e=>e.id),Pe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},De=s=>s.stackedType??S.Side,Ve=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=I({config:i,layerInfo:t,commonStrings:r,numericFields:d(i),aggregationType:y(i)});M(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=P():i.axes[1].valueFormat=w()),T({config:i,value:null,axisIndex:1,isMax:!1}),T({config:i,value:null,axisIndex:1,isMax:!0})},Ee=s=>{let e={};return s.series.forEach(i=>{_(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===f.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ne=(s,e)=>{s.series.forEach(i=>{_(i)&&(e?i.type===f.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Me(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Le(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){K(e,this._config)}get temporalBinningUnit(){return X(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return G(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return H(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return J(this._config)}set nullPolicy(e){Q(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,je=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=je(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===p){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&j(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=W(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===p)&&e.length===0;if(i&&!t){let r=N(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ce(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Ce(e,this._config)}setSeriesToSecondaryYAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){C(e,this._config,i)}async getCustomSortValues(){return await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let t=await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});C(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return B(this._config)}set orderByList(e){!Y(this._config)&&v(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&u(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Oe(e,this._config)}setSeriesColor(e,i){ke(e,i,this._config)}getOrderOfSeries(){return we(this._config)}setOrderOfSeries(e){Pe(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){Ve({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=B(this._config),[r]=t.splice(e,1);t.splice(i,0,r),v(t,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;k(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=y(this._config),this._splitByField=re(this._config),this._numericFields=d(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),u(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):u(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==p?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?I({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:d(this._config),aggregationType:y(this._config)}):""}};l([o],n.prototype,"aggregationType");l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSeriesToSecondaryYAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var We=[pe,le,ge,ce,Be,he,Te,de,ye,g,xe,me,Fe,fe,ue,Se,_e,Ie,te];R(n,We);return{a:ve,b:be,c:ke,d:Ne,e:n}},a,b,c,d,e,g,h,i,j,l,n,o,p,q,r)
2
+ import r from"./R3RLEISD.js";import q from"./IC6GECR5.js";import p from"./F65D4RJJ.js";import o from"./KDGXJ3LJ.js";import n from"./AELTVK5N.js";import l from"./RAZ5P564.js";import j from"./NYVOHYRH.js";import i from"./ONQJB7XI.js";import h from"./GVQLHXCG.js";import g from"./ZNR5734Q.js";import e from"./5LBF4SSV.js";import d from"./52GO2JZC.js";import c from"./FZOFULPS.js";import b from"./KE3BTQXC.js";import a from"./4GHPGD5V.js";import{L as w,N as P,U as D,Z as V,da as E}from"./62GSQDTE.js";import{l as k}from"./SP2IPHWF.js";import{a as L}from"./QP5UAIC6.js";import{c as _}from"./QYRHZJH3.js";import{a as f,b as m,f as S}from"./PWJBGZPW.js";export default $arcgis.t(([{I:p,Mb:N,oa:x,qa:F},{a:M,b:I,d:T,n:U,o:j,p:W,q:R},{e:o},O,{b:xe,d:Fe,f:Ie},{b:ue,d:Se,f:_e},{d:me,e:fe},de,{d:Y},{b:Te},{a:le,b:ge,c:ce,d:he},{a:pe,b:ye},{d:B,e:C,f:z},{b:Be},{a:q,b:X,c:G,d:H,e:J,f:K,g:Q,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:y,oa:re,pa:d,qa:A,ra:oe,sa:u,ua:v,va:b,wa:ne,xa:ae}])=>{var Ce=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=V(r,f.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},ve=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Oe=(s,e)=>{let i=e.series?.[s],t;return F(i)?t=i.fillSymbol?.color:x(i)&&(t=i.lineSymbol?.color),t},ke=(s,e,i)=>{let t=i.series?.[e];t&&(F(t)?t.fillSymbol={...E(e),...t.fillSymbol,color:s}:x(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},we=s=>s.series.map(e=>e.id),Pe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},De=s=>s.stackedType??S.Side,Ve=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=I({config:i,layerInfo:t,commonStrings:r,numericFields:d(i),aggregationType:y(i)});M(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=P():i.axes[1].valueFormat=w()),T({config:i,value:null,axisIndex:1,isMax:!1}),T({config:i,value:null,axisIndex:1,isMax:!0})},Ee=s=>{let e={};return s.series.forEach(i=>{_(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===f.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ne=(s,e)=>{s.series.forEach(i=>{_(i)&&(e?i.type===f.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Me(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Le(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){K(e,this._config)}get temporalBinningUnit(){return X(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return G(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return H(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return J(this._config)}set nullPolicy(e){Q(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,je=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=je(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===p){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&j(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=W(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===p)&&e.length===0;if(i&&!t){let r=N(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ce(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Ce(e,this._config)}setSeriesToSecondaryYAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){C(e,this._config,i)}async getCustomSortValues(){return await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let t=await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});C(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return B(this._config)}set orderByList(e){!Y(this._config)&&v(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&u(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Oe(e,this._config)}setSeriesColor(e,i){ke(e,i,this._config)}getOrderOfSeries(){return we(this._config)}setOrderOfSeries(e){Pe(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){Ve({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=B(this._config),[r]=t.splice(e,1);t.splice(i,0,r),v(t,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;k(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=y(this._config),this._splitByField=re(this._config),this._numericFields=d(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),u(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):u(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==p?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?I({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:d(this._config),aggregationType:y(this._config)}):""}};l([o],n.prototype,"aggregationType");l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSeriesToSecondaryYAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var We=[pe,le,ge,ce,Be,he,Te,de,ye,g,xe,me,Fe,fe,ue,Se,_e,Ie,te];R(n,We);return{a:ve,b:be,c:ke,d:Ne,e:n}},a,b,c,d,e,g,h,i,j,l,n,o,p,q,r)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import q from"./4O4L6CM3.js";import o from"./KZ4SCRQT.js";import n from"./CKRZTUGB.js";import k from"./44ICH2UX.js";import j from"./SJBJ2N5C.js";import i from"./COSE26XR.js";import h from"./JXAPOWHG.js";import"./3ZKNY2GI.js";import g from"./LU7UO6PR.js";import f from"./N4XXKTCN.js";import e from"./NGGJIQHT.js";import a from"./IHDWXIBS.js";import{d as m,n as F}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{L as b,O as p,ga as L,ia as x,o as S,pa as V}from"./62GSQDTE.js";import{f as u}from"./KX7KGXKQ.js";import{g as D}from"./SP2IPHWF.js";import"./UZHQF5CV.js";import{l as C}from"./H2NVXIPH.js";import{e as d,f as l}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as c}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Mb:T,oc:O},{p:N,q:M,r:k},,{e:t},,R,{d:W},{b:Q},{a:K,b:q,c:H,d:J},,{a:h,b:G,c:y,d:z,e:w,f:A,g:B,h:E,i:j,j:I,k:v,l:_}])=>{var U=i=>i.legend?.displayNumericValue??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},Y=i=>i.legend?.displayCategory??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},$=i=>i.legend?.displayPercentage??!1,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},ie=i=>i.legend?.labelMaxWidth??200,se=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ce=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,he=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},te=i=>i.series[0]?.startAngle,fe=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ue=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},me=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,ye=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Le=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Oe=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},Ie=i=>i.series?.[0]?.valuePrefix,ve=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Pe=i=>i.series?.[0]?.valueSuffix,Ce=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},De=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,we=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ae=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Ee=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,je=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Re=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.lineSymbol=D(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:u.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:u.SFS,color:i,outline:{type:u.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),re=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,oe=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},ae=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,ne=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{ne(void 0,i),oe({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:ae(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,f;g>=0;g--)(f=i[g])&&(n=f(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=d.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=O(o.series)!==m.PieFromFields?d.Category:d.Fields;this._mode=_({category:h(this._config),numericFields:y(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:y(this._config),fallbackMode:this._mode}),B({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return y(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:h(this._config),numericFields:e,fallbackMode:this._mode}),j({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return z(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return G(this._config,this._mode)}setSortOrder(e,o){A({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return I(this._config,this._mode)}set orderByList(e){v({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=h(this._config),o=O(this._config.series),a=[];return o===m.PieFromFields?a=this.numericFields:e.trim()!==""&&o===m.PieFromCategory&&(a=await k({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,o){let a=I(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),v({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){ne(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){oe(e,this._config)}get innerRadiusSize(){return ge(this._config)??0}set innerRadiusSize(e){pe(e,this._config)}get groupingThreshold(){return ae(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){he(e,this._config)}get decimalPlaces(){return Ae(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=V(this.commonStrings);return e.series=[x(this.commonStrings,T(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&re(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),re(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),f=this.getSliceName(n),P=this._mode===d.Fields?F(this.layerInfo?.layerFieldsInfo,g?.toString()):g;if(P!==void 0&&P?.toString()!==f?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return Re(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return te(this._config)}set startAngle(e){fe(e,this._config)}get endAngle(){return te(this._config)}set endAngle(e){ue(e,this._config)}get displayCategoryOnDataLabel(){return ye(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return me(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Le(this._config)}set displayPercentageOnTooltip(e){Oe(e,this._config)}get valuePrefix(){return Ie(this._config)}set valuePrefix(e){ve(e,this._config)}get valueSuffix(){return Pe(this._config)}set valueSuffix(e){Ce(e,this._config)}get percentagePrefix(){return De(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){we(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Ee(this._config)}set optimizeDataLabelsOverlapping(e){je(e,this._config)}get displayNumericValueOnLegendItems(){return U(this._config)}set displayNumericValueOnLegendItems(e){X(e,this._config)}get displayPercentageOnLegendItems(){return $(this._config)}set displayPercentageOnLegendItems(e){ee(e,this._config)}get displayCategoryOnLegendItems(){return Y(this._config)}set displayCategoryOnLegendItems(e){Z(e,this._config)}get labelMaxWidth(){return ie(this._config)}set labelMaxWidth(e){se(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ce(e,this._config)}getDisplayNumericValue(){return U(this._config)}setDisplayNumericValue(e){X(e,this._config)}getDisplayPercentage(){return $(this._config)}setDisplayPercentage(e){ee(e,this._config)}getLabelMaxWidth(){return ie(this._config)}setLabelMaxWidth(e){se(e,this._config)}get displayCategory(){return Y(this._config)}set displayCategory(e){Z(e,this._config)}generateChartTitle(){return w({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[K,q,H,J,Q];M(s,li);return s},a,e,f,g,h,i,j,k,n,o,q)
2
+ import q from"./DQ6LRD4W.js";import o from"./F65D4RJJ.js";import n from"./AELTVK5N.js";import k from"./RAZ5P564.js";import j from"./NYVOHYRH.js";import i from"./52GO2JZC.js";import h from"./TK44WD5Z.js";import"./3ZKNY2GI.js";import g from"./FZOFULPS.js";import f from"./KCCLZZS7.js";import e from"./KE3BTQXC.js";import a from"./4GHPGD5V.js";import{d as m,n as F}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{L as b,O as p,ga as L,ia as x,o as S,pa as V}from"./62GSQDTE.js";import{f as u}from"./KX7KGXKQ.js";import{g as D}from"./SP2IPHWF.js";import"./UZHQF5CV.js";import{l as C}from"./H2NVXIPH.js";import{e as d,f as l}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as c}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Mb:T,oc:O},{p:N,q:M,r:k},,{e:t},,R,{d:W},{b:Q},{a:K,b:q,c:H,d:J},,{a:h,b:G,c:y,d:z,e:w,f:A,g:B,h:E,i:j,j:I,k:v,l:_}])=>{var U=i=>i.legend?.displayNumericValue??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},Y=i=>i.legend?.displayCategory??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},$=i=>i.legend?.displayPercentage??!1,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},ie=i=>i.legend?.labelMaxWidth??200,se=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ce=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,he=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},te=i=>i.series[0]?.startAngle,fe=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},ue=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},me=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,ye=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Le=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Oe=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},Ie=i=>i.series?.[0]?.valuePrefix,ve=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Pe=i=>i.series?.[0]?.valueSuffix,Ce=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},De=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,we=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ae=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Ee=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,je=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Re=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.lineSymbol=D(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:u.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:u.SFS,color:i,outline:{type:u.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),re=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,oe=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},ae=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,ne=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{ne(void 0,i),oe({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:ae(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,f;g>=0;g--)(f=i[g])&&(n=f(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=d.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=O(o.series)!==m.PieFromFields?d.Category:d.Fields;this._mode=_({category:h(this._config),numericFields:y(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:y(this._config),fallbackMode:this._mode}),B({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return y(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:h(this._config),numericFields:e,fallbackMode:this._mode}),j({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return z(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return G(this._config,this._mode)}setSortOrder(e,o){A({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return I(this._config,this._mode)}set orderByList(e){v({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=h(this._config),o=O(this._config.series),a=[];return o===m.PieFromFields?a=this.numericFields:e.trim()!==""&&o===m.PieFromCategory&&(a=await k({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,o){let a=I(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),v({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){ne(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){oe(e,this._config)}get innerRadiusSize(){return ge(this._config)??0}set innerRadiusSize(e){pe(e,this._config)}get groupingThreshold(){return ae(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){he(e,this._config)}get decimalPlaces(){return Ae(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=V(this.commonStrings);return e.series=[x(this.commonStrings,T(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&re(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),re(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),f=this.getSliceName(n),P=this._mode===d.Fields?F(this.layerInfo?.layerFieldsInfo,g?.toString()):g;if(P!==void 0&&P?.toString()!==f?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return Re(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return te(this._config)}set startAngle(e){fe(e,this._config)}get endAngle(){return te(this._config)}set endAngle(e){ue(e,this._config)}get displayCategoryOnDataLabel(){return ye(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return me(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Le(this._config)}set displayPercentageOnTooltip(e){Oe(e,this._config)}get valuePrefix(){return Ie(this._config)}set valuePrefix(e){ve(e,this._config)}get valueSuffix(){return Pe(this._config)}set valueSuffix(e){Ce(e,this._config)}get percentagePrefix(){return De(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){we(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Ee(this._config)}set optimizeDataLabelsOverlapping(e){je(e,this._config)}get displayNumericValueOnLegendItems(){return U(this._config)}set displayNumericValueOnLegendItems(e){X(e,this._config)}get displayPercentageOnLegendItems(){return $(this._config)}set displayPercentageOnLegendItems(e){ee(e,this._config)}get displayCategoryOnLegendItems(){return Y(this._config)}set displayCategoryOnLegendItems(e){Z(e,this._config)}get labelMaxWidth(){return ie(this._config)}set labelMaxWidth(e){se(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ce(e,this._config)}getDisplayNumericValue(){return U(this._config)}setDisplayNumericValue(e){X(e,this._config)}getDisplayPercentage(){return $(this._config)}setDisplayPercentage(e){ee(e,this._config)}getLabelMaxWidth(){return ie(this._config)}setLabelMaxWidth(e){se(e,this._config)}get displayCategory(){return Y(this._config)}set displayCategory(e){Z(e,this._config)}generateChartTitle(){return w({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[K,q,H,J,Q];M(s,li);return s},a,e,f,g,h,i,j,k,n,o,q)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./HZEGDF6W.js";import v from"./BZIGQJAH.js";import u from"./KPEBWOLJ.js";import t from"./KHWZ54IX.js";import s from"./KZ4SCRQT.js";import r from"./ZFHU5I2O.js";import q from"./CKRZTUGB.js";import o from"./44ICH2UX.js";import n from"./SJBJ2N5C.js";import l from"./GUWBPR2H.js";import k from"./65HVRSR6.js";import j from"./CPDE3ZSY.js";import i from"./GUMN6KPP.js";import"./RPUEIRTH.js";import f from"./COSE26XR.js";import e from"./JXAPOWHG.js";import"./3ZKNY2GI.js";import d from"./LU7UO6PR.js";import c from"./N4XXKTCN.js";import b from"./NGGJIQHT.js";import a from"./IHDWXIBS.js";import{c as y}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{B as m,ea as S,i as g,la as p}from"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./UZHQF5CV.js";import"./H2NVXIPH.js";import"./P3AYFJRV.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as h}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Mb:n},{q:u},,{e:a},,,,,,,,,,,{c:v},,{ta:d},{b:I,c:b,d:_,e:L},{a:O,b:x,c:z,d:H,e:B}])=>{var C=Object.defineProperty,F=Object.getOwnPropertyDescriptor,f=(c,e,s,r)=>{for(var i=F(e,s),o=c.length-1,l;o>=0;o--)(l=c[o])&&(i=l(e,s,i)||i);return i&&C(e,s,i),i},t=class extends L{constructor(){super(...arguments),this._chartType=h.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[S({objectIDField:n(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return O(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){x({hide:e,seriesIndex:s,config:this._config})}getSeriesHideOversizedStackedLabels(e){return z(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){H({hide:e,seriesIndex:s,config:this._config})}getSortOrder(){return v(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),r=m({colorIndex:e,opacity:g});if(b(r,e,this._config),this.layerInfo!==void 0){let i=d({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==n(this.layerInfo.layer).idField&&I(i??s,e,this._config)}}this.nullCategory!==void 0&&_(this._config,y.nullCategory),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e&&this.layerInfo!==void 0)for(let r=0;r<this.seriesLength;r+=1){let i=d({config:this._config,seriesIndex:r,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(r);if(i!==void 0&&i!==n(this.layerInfo.layer).idField&&i!==o){s=!0;break}}return e||s}};f([a],t.prototype,"setSeriesHideOversizedSideBySideLabels");f([a],t.prototype,"setSeriesHideOversizedStackedLabels");f([a],t.prototype,"resetSeriesStyling");var k=[B];u(t,k);return t},a,b,c,d,e,f,i,j,k,l,n,o,q,r,s,t,u,v,w)
2
+ import w from"./KMP2NYK6.js";import v from"./3DFJNY6A.js";import u from"./R3RLEISD.js";import t from"./IC6GECR5.js";import s from"./F65D4RJJ.js";import r from"./KDGXJ3LJ.js";import q from"./AELTVK5N.js";import o from"./RAZ5P564.js";import n from"./NYVOHYRH.js";import l from"./ONQJB7XI.js";import k from"./GVQLHXCG.js";import j from"./ZNR5734Q.js";import i from"./5LBF4SSV.js";import"./RPUEIRTH.js";import f from"./52GO2JZC.js";import e from"./TK44WD5Z.js";import"./3ZKNY2GI.js";import d from"./FZOFULPS.js";import c from"./KCCLZZS7.js";import b from"./KE3BTQXC.js";import a from"./4GHPGD5V.js";import{c as y}from"./VQU2TVX7.js";import"./WOGALV3T.js";import{B as m,ea as S,i as g,la as p}from"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./UZHQF5CV.js";import"./H2NVXIPH.js";import"./P3AYFJRV.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as h}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Mb:n},{q:u},,{e:a},,,,,,,,,,,{c:v},,{ta:d},{b:I,c:b,d:_,e:L},{a:O,b:x,c:z,d:H,e:B}])=>{var C=Object.defineProperty,F=Object.getOwnPropertyDescriptor,f=(c,e,s,r)=>{for(var i=F(e,s),o=c.length-1,l;o>=0;o--)(l=c[o])&&(i=l(e,s,i)||i);return i&&C(e,s,i),i},t=class extends L{constructor(){super(...arguments),this._chartType=h.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[S({objectIDField:n(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return O(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){x({hide:e,seriesIndex:s,config:this._config})}getSeriesHideOversizedStackedLabels(e){return z(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){H({hide:e,seriesIndex:s,config:this._config})}getSortOrder(){return v(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),r=m({colorIndex:e,opacity:g});if(b(r,e,this._config),this.layerInfo!==void 0){let i=d({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==n(this.layerInfo.layer).idField&&I(i??s,e,this._config)}}this.nullCategory!==void 0&&_(this._config,y.nullCategory),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e&&this.layerInfo!==void 0)for(let r=0;r<this.seriesLength;r+=1){let i=d({config:this._config,seriesIndex:r,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(r);if(i!==void 0&&i!==n(this.layerInfo.layer).idField&&i!==o){s=!0;break}}return e||s}};f([a],t.prototype,"setSeriesHideOversizedSideBySideLabels");f([a],t.prototype,"setSeriesHideOversizedStackedLabels");f([a],t.prototype,"resetSeriesStyling");var k=[B];u(t,k);return t},a,b,c,d,e,f,i,j,k,l,n,o,q,r,s,t,u,v,w)