@arcgis/charts-components 5.2.1 → 5.2.3

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 (110) hide show
  1. package/dist/cdn/{R2KUXPHO.js → 2DHOWU74.js} +1 -1
  2. package/dist/cdn/{E23L4XK5.js → 2ITRCZ43.js} +1 -1
  3. package/dist/cdn/{DGIMOH47.js → 3PL6X4PU.js} +1 -1
  4. package/dist/cdn/{KVSF4VV2.js → 4DK44E5O.js} +1 -1
  5. package/dist/cdn/{MVOEDTNZ.js → 4QJLNQVP.js} +1 -1
  6. package/dist/cdn/{HZWUKCDX.js → 4RUGZX4B.js} +1 -1
  7. package/dist/cdn/{R5ZE6LNV.js → 4T63TCAU.js} +1 -1
  8. package/dist/cdn/{MKSX2OHA.js → 5DHIEIKM.js} +1 -1
  9. package/dist/cdn/{Q62Q3AOS.js → 5E24TRTV.js} +1 -1
  10. package/dist/cdn/{LWTZQ6ZK.js → 5J6IA3AT.js} +1 -1
  11. package/dist/cdn/{WSKCMADP.js → 5NXG23F4.js} +1 -1
  12. package/dist/cdn/{GXE2UASQ.js → 6HMFCTSE.js} +1 -1
  13. package/dist/cdn/{5XHNYAC6.js → 6KJ3ATLC.js} +1 -1
  14. package/dist/cdn/{4KNHB3QB.js → 6MCRBGLJ.js} +1 -1
  15. package/dist/cdn/{ZYO5HXYN.js → 6RGFJYNO.js} +1 -1
  16. package/dist/cdn/{6DU55O6U.js → 6RZYKXDA.js} +1 -1
  17. package/dist/cdn/{6M4CVZWC.js → 75HWWMEG.js} +1 -1
  18. package/dist/cdn/{NPUQMXEL.js → 76U7GN3L.js} +1 -1
  19. package/dist/cdn/{SKITJFGE.js → 76YX2DGE.js} +1 -1
  20. package/dist/cdn/{ZPRNS5RI.js → 7GB2Q6OS.js} +1 -1
  21. package/dist/cdn/{2BZ3R323.js → 7QKHK4XD.js} +1 -1
  22. package/dist/cdn/{GJN3J5S6.js → A34FRLBP.js} +1 -1
  23. package/dist/cdn/{SBEGXTPK.js → AWBGXQRZ.js} +1 -1
  24. package/dist/cdn/{V3AR6XAZ.js → AZP4RGFP.js} +1 -1
  25. package/dist/cdn/{C4PIFSYE.js → BCHANC26.js} +1 -1
  26. package/dist/cdn/{4G65VRW2.js → BIBN2SQU.js} +1 -1
  27. package/dist/cdn/{GWRFPEEX.js → BTNU6VLH.js} +1 -1
  28. package/dist/cdn/{KYYUQVT5.js → BTSCZNHG.js} +1 -1
  29. package/dist/cdn/{V6BCHIRS.js → CDRFXW4A.js} +1 -1
  30. package/dist/cdn/{H2LZVTYL.js → CR4MU3W6.js} +1 -1
  31. package/dist/cdn/{2MBO3UD6.js → EFVPTYFY.js} +1 -1
  32. package/dist/cdn/{YDX3PDEX.js → EQWLGHXR.js} +1 -1
  33. package/dist/cdn/{EPGCX7RW.js → F2WF5LOK.js} +1 -1
  34. package/dist/cdn/{Z2IUM7DK.js → F55Y2EPO.js} +1 -1
  35. package/dist/cdn/{72SVWOPY.js → F6JR4B5W.js} +1 -1
  36. package/dist/cdn/{ZITX4BFR.js → FF6SXLVE.js} +1 -1
  37. package/dist/cdn/{U5OSD2UX.js → FJDJEGBB.js} +1 -1
  38. package/dist/cdn/{NST6EEVZ.js → FTUDHR5D.js} +1 -1
  39. package/dist/cdn/{HY3TC2V7.js → FXHGYIYN.js} +1 -1
  40. package/dist/cdn/{WTXNKC2H.js → GXNMIY2V.js} +2 -2
  41. package/dist/cdn/{BLGYF7UQ.js → H6ZF2I7S.js} +1 -1
  42. package/dist/cdn/{E4OXLX4I.js → HUPBTTYO.js} +1 -1
  43. package/dist/cdn/I3AJHPG3.js +2 -0
  44. package/dist/cdn/{EQUXJPPN.js → I5JXNSMW.js} +1 -1
  45. package/dist/cdn/{OOWIBXPF.js → IVJNEGWU.js} +1 -1
  46. package/dist/cdn/{WLHHTU7Y.js → JUBE7XD2.js} +1 -1
  47. package/dist/cdn/{7OMANLDX.js → JV4NMPZ4.js} +1 -1
  48. package/dist/cdn/{XSV3OOUO.js → JYANGPFS.js} +1 -1
  49. package/dist/cdn/{3QZZP5B2.js → JZU4SOIS.js} +1 -1
  50. package/dist/cdn/{KUYJY3M3.js → KHIAPS7F.js} +1 -1
  51. package/dist/cdn/{ZO3OZ34B.js → KMSUWCI6.js} +1 -1
  52. package/dist/cdn/{CNG26GJ2.js → KOO5EZH6.js} +1 -1
  53. package/dist/cdn/{SUHY3KRM.js → KTFNKN5F.js} +1 -1
  54. package/dist/cdn/{3REZP6DD.js → LRSAWJXU.js} +1 -1
  55. package/dist/cdn/{IEGC5XQD.js → LU75T4XH.js} +1 -1
  56. package/dist/cdn/{TGSLVQ6J.js → NAS5U23Y.js} +1 -1
  57. package/dist/cdn/{6726O5CR.js → NIJPEYBN.js} +1 -1
  58. package/dist/cdn/{N4E2CELH.js → NKN7AFL4.js} +1 -1
  59. package/dist/cdn/{IPHIYEWD.js → NOMIOWXZ.js} +1 -1
  60. package/dist/cdn/{6FHVLQBP.js → NPYUDYKA.js} +1 -1
  61. package/dist/cdn/{YINDFEQ3.js → NWJR42GU.js} +1 -1
  62. package/dist/cdn/{LAETAAAC.js → OGAZTEWM.js} +1 -1
  63. package/dist/cdn/{AWPCC57E.js → OWLTOYDG.js} +1 -1
  64. package/dist/cdn/{NU42LY2P.js → P657CUK2.js} +1 -1
  65. package/dist/cdn/{44OIF7FS.js → PMXISOZT.js} +1 -1
  66. package/dist/cdn/{5KYJNOUA.js → QCKR4OTA.js} +1 -1
  67. package/dist/cdn/{PVLNBGYV.js → R55EYC4S.js} +17 -17
  68. package/dist/cdn/{O2AIMGBR.js → RKIFK4DG.js} +1 -1
  69. package/dist/cdn/{HQJCNLVD.js → RW3ON36X.js} +1 -1
  70. package/dist/cdn/{HJNZHZEY.js → RW7RIOD3.js} +1 -1
  71. package/dist/cdn/{LBKKWTFX.js → RZAKMRDK.js} +1 -1
  72. package/dist/cdn/{7DOW74JC.js → SHHHKG57.js} +1 -1
  73. package/dist/cdn/{G3DL43CH.js → SSYS6VT2.js} +1 -1
  74. package/dist/cdn/{PLFQBO3L.js → TCH4J3F6.js} +1 -1
  75. package/dist/cdn/{GMECUMD6.js → TDHOHWAC.js} +1 -1
  76. package/dist/cdn/{STL5NY64.js → TFIU4IUB.js} +1 -1
  77. package/dist/cdn/{7PZA76IS.js → TG7JNJCB.js} +1 -1
  78. package/dist/cdn/{D645IYGO.js → TQK5XUSK.js} +1 -1
  79. package/dist/cdn/{GY3R4BDA.js → TRFGSCB4.js} +1 -1
  80. package/dist/cdn/{GK2CDJ4H.js → TT5HDSP6.js} +1 -1
  81. package/dist/cdn/{PQ2EO3DG.js → UA55OQF3.js} +1 -1
  82. package/dist/cdn/{U2S4KXBF.js → UHJ7VTFD.js} +1 -1
  83. package/dist/cdn/{TUOW2D7C.js → ULANMCAP.js} +1 -1
  84. package/dist/cdn/{W67ERLKR.js → UY3IN55T.js} +1 -1
  85. package/dist/cdn/{3Z3HDTXQ.js → UYQTXFCW.js} +1 -1
  86. package/dist/cdn/{YOBZF6Z3.js → VKNN66QE.js} +1 -1
  87. package/dist/cdn/{AE6IPFRO.js → VLRPMYSL.js} +1 -1
  88. package/dist/cdn/{XPN52BTY.js → W3QA6ZI7.js} +1 -1
  89. package/dist/cdn/{GG6H4ESM.js → WA5VS7K6.js} +1 -1
  90. package/dist/cdn/{G4564DXR.js → WUP5BSUX.js} +1 -1
  91. package/dist/cdn/{BTI6KUR4.js → X47VAXVY.js} +1 -1
  92. package/dist/cdn/{WJFNHBHR.js → XK5OMNAS.js} +1 -1
  93. package/dist/cdn/{VKNFKI7T.js → YGO7XLM2.js} +1 -1
  94. package/dist/cdn/{FS5YJVDE.js → YMIPGKRK.js} +1 -1
  95. package/dist/cdn/{QPKFMEZG.js → YN5ITGQJ.js} +1 -1
  96. package/dist/cdn/{DGLCAG7B.js → YTW4BANB.js} +1 -1
  97. package/dist/cdn/{4GHSP5KY.js → ZGN6WYDJ.js} +1 -1
  98. package/dist/cdn/{4PJ37VNO.js → ZNE4F3GH.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/index.js +340 -340
  102. package/dist/chunks/runtime.js +1 -1
  103. package/dist/chunks/serial-chart-data.js +2 -2
  104. package/dist/components/arcgis-chart/customElement.js +1975 -1974
  105. package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -6
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/web-types.json +1 -1
  109. package/package.json +6 -6
  110. package/dist/cdn/4J32HZ7L.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./2BZ3R323.js";import f from"./3REZP6DD.js";import e from"./U2S4KXBF.js";import c from"./7PZA76IS.js";import a from"./WTXNKC2H.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Zb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:M,u:k,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)
2
+ import g from"./7QKHK4XD.js";import f from"./LRSAWJXU.js";import e from"./UHJ7VTFD.js";import c from"./TG7JNJCB.js";import a from"./GXNMIY2V.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Zb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:M,u:k,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./BTI6KUR4.js";import q from"./WJFNHBHR.js";import o from"./NU42LY2P.js";import n from"./IPHIYEWD.js";import l from"./KVSF4VV2.js";import j from"./V3AR6XAZ.js";import i from"./BLGYF7UQ.js";import h from"./Z2IUM7DK.js";import g from"./2BZ3R323.js";import f from"./HQJCNLVD.js";import e from"./LBKKWTFX.js";import d from"./3REZP6DD.js";import c from"./U2S4KXBF.js";import b from"./7PZA76IS.js";import a from"./WTXNKC2H.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./43DLRSYB.js";import{b as x}from"./NGXRBJKL.js";import{a as W}from"./QP5UAIC6.js";import{c as B}from"./Z5QPCSUQ.js";import{a as p,b as m,f as F}from"./QVG3TOL4.js";export default $arcgis.t(([{Cc:U,Ja:I,La:C,Q:y,Wb:V,Xb:E,Yb:N,Zb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:G,c:H,d:J,e:K,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return G(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return H(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return J(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return K(this._config)}set nullPolicy(e){X(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 Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){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&&E(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=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(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 Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({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=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(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(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,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?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
2
+ import r from"./X47VAXVY.js";import q from"./XK5OMNAS.js";import o from"./P657CUK2.js";import n from"./NOMIOWXZ.js";import l from"./4DK44E5O.js";import j from"./AZP4RGFP.js";import i from"./H6ZF2I7S.js";import h from"./F55Y2EPO.js";import g from"./7QKHK4XD.js";import f from"./RW3ON36X.js";import e from"./RZAKMRDK.js";import d from"./LRSAWJXU.js";import c from"./UHJ7VTFD.js";import b from"./TG7JNJCB.js";import a from"./GXNMIY2V.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./43DLRSYB.js";import{b as x}from"./NGXRBJKL.js";import{a as W}from"./QP5UAIC6.js";import{c as B}from"./Z5QPCSUQ.js";import{a as p,b as m,f as F}from"./QVG3TOL4.js";export default $arcgis.t(([{Cc:U,Ja:I,La:C,Q:y,Wb:V,Xb:E,Yb:N,Zb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:G,c:H,d:J,e:K,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return G(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return H(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return J(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return K(this._config)}set nullPolicy(e){X(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 Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){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&&E(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=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(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 Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({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=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(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(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,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?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as i}from"./POA2XTTK.js";import a from"./WTXNKC2H.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as h}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{B as c,H as d,g as l,i as t,n as r}from"./MVOEDTNZ.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{A:g,Ac:y,Ha:f,Pc:F,t:p,xa:m,yc:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,view:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=f(a)?a.iLayer:void 0;o&&(s=await u(o))}if(s){await F(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):y(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .view=${this.view} .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};d("arcgis-charts-config-scatter-plot",n);return n},a)
2
+ import{d as i}from"./POA2XTTK.js";import a from"./GXNMIY2V.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as h}from"./NGXRBJKL.js";import"./OWLTOYDG.js";import{B as c,H as d,g as l,i as t,n as r}from"./4QJLNQVP.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{A:g,Ac:y,Ha:f,Pc:F,t:p,xa:m,yc:u}])=>{var b=l`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,n=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,view:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=f(a)?a.iLayer:void 0;o&&(s=await u(o))}if(s){await F(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):y(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .view=${this.view} .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};d("arcgis-charts-config-scatter-plot",n);return n},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import p from"./XPN52BTY.js";import o from"./IPHIYEWD.js";import n from"./KVSF4VV2.js";import m from"./V3AR6XAZ.js";import l from"./BLGYF7UQ.js";import k from"./2BZ3R323.js";import j from"./HQJCNLVD.js";import i from"./LBKKWTFX.js";import"./O4TPXFX4.js";import f from"./3REZP6DD.js";import e from"./ZO3OZ34B.js";import d from"./U2S4KXBF.js";import c from"./7PZA76IS.js";import b from"./ZYO5HXYN.js";import a from"./WTXNKC2H.js";import{xa as g}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./AWPCC57E.js";import"./MVOEDTNZ.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Zb:y},,{e:e},,,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:p,c:f,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:w,l:O,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return p(this._config)}set numericField(t){f({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return O(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){w(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
2
+ import p from"./W3QA6ZI7.js";import o from"./NOMIOWXZ.js";import n from"./4DK44E5O.js";import m from"./AZP4RGFP.js";import l from"./H6ZF2I7S.js";import k from"./7QKHK4XD.js";import j from"./RW3ON36X.js";import i from"./RZAKMRDK.js";import"./O4TPXFX4.js";import f from"./LRSAWJXU.js";import e from"./KMSUWCI6.js";import d from"./UHJ7VTFD.js";import c from"./TG7JNJCB.js";import b from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import{xa as g}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./OWLTOYDG.js";import"./4QJLNQVP.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Zb:y},,{e:e},,,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:p,c:f,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:w,l:O,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return p(this._config)}set numericField(t){f({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return O(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){w(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{l}from"./MVOEDTNZ.js";var C=["arcgis-map","arcgis-scene","arcgis-link-chart"];function x(t,s){let e=s??t.referenceElement;if(typeof e!="string")return e??void 0;let n=e.includes("#")||e.includes(".")||e.includes("["),o=t.el.getRootNode(),r=(n?void 0:o.querySelector(`#${e}`))??o.querySelector(e)??(n?void 0:i(t.el,`#${e}`))??i(t.el,e);if(r==null){l("error",t,`Expected property \`referenceElement\` to resolve to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but no element matched \`${e}\`.`);return}return C.includes(r.localName)||l("error",t,`Expected property \`referenceElement\` to point to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but instead found <${r?.localName}>.`,{detail:{referenceElement:e,resolved:r}}),r??void 0}var E=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},h=(t,s,e)=>{let n=b(s).subscribe;return n(o=>{o.some(a=>E(t,a.target))&&e()})},g={},b=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(u=>u(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},i=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function v(t){let s=i(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var A=t=>c(t,"dir","ltr"),c=(t,s,e)=>i(t,`[${s}]`)?.getAttribute(s)??e;function $(t){return t.ownerDocument.defaultView||window}var N=t=>{let s=c(t,"lang",globalThis.navigator?.language||d);return{lang:s,t9nLocale:p(s)}},K=(t,s,e,n)=>{let o,r=()=>w(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{l("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),h(t,["lang"],r)},w=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=N(t),r=`${s}/${e}/t9n`,u=e===null?{}:await T(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:u}};var y="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),L=new Set(y),d="en",S={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},T=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return l("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===d?{}:await m(d,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=S[o]??o,L.has(o)?o:e?p(n):d};export{x as a,h as b,i as c,v as d,A as e,$ as f,N as g,K as h,L as i,d as j,T as k,p as l};
2
+ import{l}from"./4QJLNQVP.js";var C=["arcgis-map","arcgis-scene","arcgis-link-chart"];function x(t,s){let e=s??t.referenceElement;if(typeof e!="string")return e??void 0;let n=e.includes("#")||e.includes(".")||e.includes("["),o=t.el.getRootNode(),r=(n?void 0:o.querySelector(`#${e}`))??o.querySelector(e)??(n?void 0:i(t.el,`#${e}`))??i(t.el,e);if(r==null){l("error",t,`Expected property \`referenceElement\` to resolve to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but no element matched \`${e}\`.`);return}return C.includes(r.localName)||l("error",t,`Expected property \`referenceElement\` to point to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but instead found <${r?.localName}>.`,{detail:{referenceElement:e,resolved:r}}),r??void 0}var E=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},h=(t,s,e)=>{let n=b(s).subscribe;return n(o=>{o.some(a=>E(t,a.target))&&e()})},g={},b=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(u=>u(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},i=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function v(t){let s=i(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var A=t=>c(t,"dir","ltr"),c=(t,s,e)=>i(t,`[${s}]`)?.getAttribute(s)??e;function $(t){return t.ownerDocument.defaultView||window}var N=t=>{let s=c(t,"lang",globalThis.navigator?.language||d);return{lang:s,t9nLocale:p(s)}},K=(t,s,e,n)=>{let o,r=()=>w(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{l("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),h(t,["lang"],r)},w=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=N(t),r=`${s}/${e}/t9n`,u=e===null?{}:await T(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:u}};var y="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),L=new Set(y),d="en",S={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},T=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return l("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===d?{}:await m(d,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=S[o]??o,L.has(o)?o:e?p(n):d};export{x as a,h as b,i as c,v as d,A as e,$ as f,N as g,K as h,L as i,d as j,T as k,p as l};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./WTXNKC2H.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)
2
+ import b from"./GXNMIY2V.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./SUHY3KRM.js";import n from"./NU42LY2P.js";import m from"./KVSF4VV2.js";import k from"./V3AR6XAZ.js";import j from"./BLGYF7UQ.js";import i from"./3REZP6DD.js";import g from"./ZO3OZ34B.js";import f from"./U2S4KXBF.js";import e from"./7PZA76IS.js";import d from"./ZYO5HXYN.js";import a from"./WTXNKC2H.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{l as C}from"./MVOEDTNZ.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=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,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=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,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=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)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(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:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(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,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=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,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(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,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({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 G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({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){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(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=F(this.commonStrings);return e.series=[V(this.commonStrings,k(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&&se(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),se(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),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(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 Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(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){Ae(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 Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({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,"setDataSortOrder");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,"innerRadius");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=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
2
+ import o from"./KTFNKN5F.js";import n from"./P657CUK2.js";import m from"./4DK44E5O.js";import k from"./AZP4RGFP.js";import j from"./H6ZF2I7S.js";import i from"./LRSAWJXU.js";import g from"./KMSUWCI6.js";import f from"./UHJ7VTFD.js";import e from"./TG7JNJCB.js";import d from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./OWLTOYDG.js";import{l as C}from"./4QJLNQVP.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=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,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=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,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=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)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(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:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(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,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=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,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(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,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({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 G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({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){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(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=F(this.commonStrings);return e.series=[V(this.commonStrings,k(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&&se(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),se(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),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(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 Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(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){Ae(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 Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({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,"setDataSortOrder");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,"innerRadius");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=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./7OMANLDX.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./PQ2EO3DG.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./WLHHTU7Y.js";import i from"./WJFNHBHR.js";import h from"./BLGYF7UQ.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./7PZA76IS.js";import c from"./ZYO5HXYN.js";import a from"./WTXNKC2H.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./AWPCC57E.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./MVOEDTNZ.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)
2
+ import k from"./JV4NMPZ4.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./UA55OQF3.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./JUBE7XD2.js";import i from"./XK5OMNAS.js";import h from"./H6ZF2I7S.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./TG7JNJCB.js";import c from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./OWLTOYDG.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./4QJLNQVP.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)