@arcgis/charts-components 5.0.0-next.170 → 5.0.0-next.172

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 (101) hide show
  1. package/dist/cdn/{W7B7I37C.js → 26VWGV3G.js} +1 -1
  2. package/dist/cdn/{HKBYRUUJ.js → 2GM4TYF7.js} +1 -1
  3. package/dist/cdn/{FHYGSASV.js → 2TYUDKS4.js} +1 -1
  4. package/dist/cdn/{TXTT2BKE.js → 2YNKAWUT.js} +1 -1
  5. package/dist/cdn/{35HPOOD2.js → 3EG27WSB.js} +1 -1
  6. package/dist/cdn/{KFXPXC7Y.js → 3GCHJWM3.js} +1 -1
  7. package/dist/cdn/572MI4QO.js +2 -0
  8. package/dist/cdn/{2SZGWV4W.js → 5SSIDOMV.js} +1 -1
  9. package/dist/cdn/{UNXTOOKB.js → 5UQEFHHY.js} +1 -1
  10. package/dist/cdn/{KS7RCEKE.js → 6FNV6NKU.js} +1 -1
  11. package/dist/cdn/{EDGM5DH5.js → 6JEIATKR.js} +1 -1
  12. package/dist/cdn/{7IG4VPIN.js → 6NF4NZQJ.js} +1 -1
  13. package/dist/cdn/{CEGDOEUQ.js → 6PYIWZBK.js} +1 -1
  14. package/dist/cdn/{YVKRZ4BQ.js → 6ZV22THY.js} +1 -1
  15. package/dist/cdn/{BUXBV6E5.js → A6XKH6YW.js} +1 -1
  16. package/dist/cdn/{2S2BWYYW.js → C2JSI64A.js} +1 -1
  17. package/dist/cdn/{G6H77RGS.js → C3EO76BR.js} +1 -1
  18. package/dist/cdn/{GQA3ZESB.js → C6AYAL4Q.js} +1 -1
  19. package/dist/cdn/{XYEAS3OP.js → CCYMCAW5.js} +1 -1
  20. package/dist/cdn/{BZ75DLD5.js → CLYDACNT.js} +1 -1
  21. package/dist/cdn/{2T73COTN.js → CX6YXW2F.js} +1 -1
  22. package/dist/cdn/{RXVBUZAA.js → DFUOH6OY.js} +3 -3
  23. package/dist/cdn/{A3V3MLTK.js → DLPWNTXP.js} +1 -1
  24. package/dist/cdn/{QE5JHF7T.js → DNGIPURL.js} +1 -1
  25. package/dist/cdn/{3JTCWXJT.js → EGSERIS7.js} +1 -1
  26. package/dist/cdn/EIE3WYTB.js +2 -0
  27. package/dist/cdn/{UANNLY4I.js → F4ST6I7S.js} +1 -1
  28. package/dist/cdn/{GIQP26CX.js → FBG4K7OC.js} +1 -1
  29. package/dist/cdn/{HYWSDXDB.js → FBIUS4Y6.js} +1 -1
  30. package/dist/cdn/{UERE5NNO.js → FQXKWIJC.js} +1 -1
  31. package/dist/cdn/{5Z74HMAF.js → GBXY4IWD.js} +1 -1
  32. package/dist/cdn/{W4Y6CFDJ.js → GG3ELKSX.js} +1 -1
  33. package/dist/cdn/{4MCXZHGQ.js → GWHUVUMU.js} +19 -19
  34. package/dist/cdn/{IS4HRAIE.js → HCEBROGE.js} +1 -1
  35. package/dist/cdn/{TYW4XY3Z.js → HFIPZGBO.js} +1 -1
  36. package/dist/cdn/{VCMR2EBA.js → HNJ2YTEG.js} +1 -1
  37. package/dist/cdn/{OOSFQU2J.js → HNMOJGYK.js} +1 -1
  38. package/dist/cdn/{RWHJDEVH.js → I7NAAN2J.js} +1 -1
  39. package/dist/cdn/{4OOA3E73.js → J3FAEEA3.js} +1 -1
  40. package/dist/cdn/{NL3YVNXC.js → JWNZNOPW.js} +1 -1
  41. package/dist/cdn/{FO6XZMIZ.js → JZKVMXLF.js} +1 -1
  42. package/dist/cdn/{JQLPQYFG.js → KDLOJ65E.js} +1 -1
  43. package/dist/cdn/{OKYHNWJY.js → KEQALHHX.js} +1 -1
  44. package/dist/cdn/{DZDRTAKC.js → KOAC54EK.js} +1 -1
  45. package/dist/cdn/{CQXW4U4M.js → KSPZ4UTZ.js} +1 -1
  46. package/dist/cdn/{G2A6ALXE.js → LCGAIKJR.js} +1 -1
  47. package/dist/cdn/{T5LGAPQK.js → M363INV6.js} +1 -1
  48. package/dist/cdn/{M2MB5UZJ.js → M4AHPCLK.js} +1 -1
  49. package/dist/cdn/{GW34T5MU.js → MDRV4G7F.js} +1 -1
  50. package/dist/cdn/{XVV2IQJ3.js → MF5KRXT6.js} +1 -1
  51. package/dist/cdn/{XFWLHV5Z.js → MFOUGVWH.js} +1 -1
  52. package/dist/cdn/{ZEOKGV6H.js → MPH6KJDN.js} +1 -1
  53. package/dist/cdn/{NWQ4M23Z.js → N4A23GHO.js} +1 -1
  54. package/dist/cdn/{SPHMXEOJ.js → N75BHU64.js} +1 -1
  55. package/dist/cdn/{7VEB7AOI.js → NHSELMEN.js} +1 -1
  56. package/dist/cdn/{TMUYWWFE.js → NIVBY4H2.js} +1 -1
  57. package/dist/cdn/{LE25FKRQ.js → NTSCOWEJ.js} +1 -1
  58. package/dist/cdn/{ZDPSW2WE.js → NU4IBUFF.js} +1 -1
  59. package/dist/cdn/{ZBPBL6AN.js → O55FJWPJ.js} +1 -1
  60. package/dist/cdn/{B2LPT3YP.js → OCOPHKHC.js} +1 -1
  61. package/dist/cdn/{BYZ3IB4U.js → OCPMUGJK.js} +1 -1
  62. package/dist/cdn/{VAMAHMCL.js → OLW4Q3GI.js} +1 -1
  63. package/dist/cdn/{QTKC7WVX.js → PZ4SQM67.js} +1 -1
  64. package/dist/cdn/{KCRL6357.js → QHBU47GD.js} +1 -1
  65. package/dist/cdn/{CVZIKUBH.js → QIFILMN7.js} +1 -1
  66. package/dist/cdn/{J2UYNA2R.js → R46F57JH.js} +1 -1
  67. package/dist/cdn/{QHETC5I6.js → RYZHKP5J.js} +1 -1
  68. package/dist/cdn/{6AUVOYCR.js → SYEUGJM4.js} +1 -1
  69. package/dist/cdn/{RXW3ZC3O.js → SZQWPNXQ.js} +1 -1
  70. package/dist/cdn/{N6PBB2GC.js → TF2VUUKN.js} +1 -1
  71. package/dist/cdn/{L4AJC4W2.js → TPUKILZJ.js} +1 -1
  72. package/dist/cdn/{XRT7V2W4.js → TVGILYSZ.js} +1 -1
  73. package/dist/cdn/{PYRUKQME.js → UQ2YWG63.js} +1 -1
  74. package/dist/cdn/{7SGNYLOC.js → VABFEEFL.js} +1 -1
  75. package/dist/cdn/{ZKLRBQYG.js → VHQQT7V5.js} +1 -1
  76. package/dist/cdn/{B7VV7UGS.js → VPTM72EA.js} +1 -1
  77. package/dist/cdn/{7SKLAZGY.js → VR7VFJJI.js} +1 -1
  78. package/dist/cdn/{VEZD24OR.js → VRZJN7VT.js} +1 -1
  79. package/dist/cdn/{U3XU7EO5.js → VSBQIUFA.js} +1 -1
  80. package/dist/cdn/{YP4UUL47.js → VZZJAD6R.js} +1 -1
  81. package/dist/cdn/{OR7WKCMD.js → WUURST5Y.js} +1 -1
  82. package/dist/cdn/{NTK6UBEC.js → X24A6ZH5.js} +1 -1
  83. package/dist/cdn/{OVIYPEVK.js → XS7ZGAI4.js} +1 -1
  84. package/dist/cdn/{ESLUOO7N.js → XXY4TE72.js} +1 -1
  85. package/dist/cdn/{PVAOFYC2.js → YOSWPGPP.js} +1 -1
  86. package/dist/cdn/{BM23NXM2.js → ZEUXNEAI.js} +1 -1
  87. package/dist/cdn/{UZGKM43O.js → ZMNLKMRS.js} +1 -1
  88. package/dist/cdn/{NLRRRHRW.js → ZO46KCCI.js} +1 -1
  89. package/dist/cdn/index.js +1 -1
  90. package/dist/chunks/heat-chart-model.js +35 -20
  91. package/dist/chunks/index.js +153 -152
  92. package/dist/chunks/serial-chart-data.js +422 -428
  93. package/dist/components/arcgis-chart/customElement.d.ts +8 -5
  94. package/dist/components/arcgis-chart/customElement.js +575 -567
  95. package/dist/docs/api.json +1 -1
  96. package/dist/docs/docs.json +1 -1
  97. package/dist/docs/vscode.html-custom-data.json +1 -1
  98. package/dist/docs/web-types.json +1 -1
  99. package/package.json +3 -3
  100. package/dist/cdn/ADVZRDVX.js +0 -2
  101. package/dist/cdn/DMVIBAQ2.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import h from"./ZBPBL6AN.js";import"./DPJE33GY.js";import{a as C}from"./6KBLMTZM.js";import e from"./2T73COTN.js";import"./UG7LOBJE.js";import b from"./RXVBUZAA.js";import{B as v,C as l,D as s,E as c,r as n}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as i,F as g,g as y,h as a,m as f,x as S,y as d,z as u}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{U:b},,{f:$,g:x,h:m,i:h}])=>{var E={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},o={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},I=y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto}:host calcite-panel .font-style-container{display:flex;padding:0 1rem}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,p=class extends u{constructor(){super(...arguments),this._messages=C(),this.fontSizeInputElement=S(),this.fontStyle={type:v.TS},this.arcgisChartsConfigFontStyleChange=f(),this.arcgisChartsConfigFontStyleClose=f()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=I}closePanel(t){t.target.closed&&this.enableClose===!0&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let r={family:e};this.isNewFontProperty("family",r)&&(this.fontStyle=n(this.fontStyle,{font:r}),this.emitFontStyleEvent({font:r}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&$(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&m({inputElement:this.fontSizeInputElement.value,status:h.IDLE})}else this.fontSizeInputElement.value&&m({inputElement:this.fontSizeInputElement.value,status:h.INVALID})}boldSelect(){let t=s.Bold;this.fontStyle?.font?.weight===t&&(t=s.Normal);let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t=l.Italic;this.fontStyle?.font?.style===t&&(t=l.Normal);let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t=c.Underline;this.fontStyle?.font?.decoration===t&&(t=c.None);let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values(E).map(e=>a`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===b().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(a`<calcite-option value selected></calcite-option>`),t}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${this.open===!1} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.inputLabel)}>${this._messages.size}<calcite-input class=${i(o.numberInput)} type=number min=6 max=40 step=1 .value=${x(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${d(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight===s.Bold}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style===l.Italic}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration===c.Underline}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};g("arcgis-charts-config-font-style",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,e,h)
2
+ import h from"./O55FJWPJ.js";import"./DPJE33GY.js";import{a as C}from"./6KBLMTZM.js";import e from"./CX6YXW2F.js";import"./UG7LOBJE.js";import b from"./DFUOH6OY.js";import{B as v,C as l,D as s,E as c,r as n}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as i,F as g,g as y,h as a,m as f,x as S,y as d,z as u}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{U:b},,{f:$,g:x,h:m,i:h}])=>{var E={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},o={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},I=y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto}:host calcite-panel .font-style-container{display:flex;padding:0 1rem}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,p=class extends u{constructor(){super(...arguments),this._messages=C(),this.fontSizeInputElement=S(),this.fontStyle={type:v.TS},this.arcgisChartsConfigFontStyleChange=f(),this.arcgisChartsConfigFontStyleClose=f()}static{this.properties={messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=I}closePanel(t){t.target.closed&&this.enableClose===!0&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let r={family:e};this.isNewFontProperty("family",r)&&(this.fontStyle=n(this.fontStyle,{font:r}),this.emitFontStyleEvent({font:r}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&$(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&m({inputElement:this.fontSizeInputElement.value,status:h.IDLE})}else this.fontSizeInputElement.value&&m({inputElement:this.fontSizeInputElement.value,status:h.INVALID})}boldSelect(){let t=s.Bold;this.fontStyle?.font?.weight===t&&(t=s.Normal);let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t=l.Italic;this.fontStyle?.font?.style===t&&(t=l.Normal);let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t=c.Underline;this.fontStyle?.font?.decoration===t&&(t=c.None);let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values(E).map(e=>a`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===b().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(a`<calcite-option value selected></calcite-option>`),t}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${this.open===!1} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(o.fontStyleContainer)}><calcite-label class=${i(o.inputLabel)}>${this._messages.size}<calcite-input class=${i(o.numberInput)} type=number min=6 max=40 step=1 .value=${x(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${d(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight===s.Bold}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style===l.Italic}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration===c.Underline}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};g("arcgis-charts-config-font-style",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,e,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import k from"./RWHJDEVH.js";import{b as e,c as t,d as a}from"./J7TZPMJS.js";import j from"./ZBPBL6AN.js";import{a as T}from"./DPJE33GY.js";import{a as p}from"./6KBLMTZM.js";import i from"./YVKRZ4BQ.js";import f from"./UANNLY4I.js";import c from"./2T73COTN.js";import"./UG7LOBJE.js";import b from"./RXVBUZAA.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import{d as r,q as S}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as u}from"./NKG4FLLR.js";import{A as _,B as m,C as s,D as v,F as V,g as O,h as l,m as h,x as d,y as g,z}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([{u:A},,,{a:F},{r:n},{a:L}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},W=O`.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}`,x=class extends z{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=p(),this.commonStrings=p({name:"common",blocking:!0}),this.handleMouseOver=o=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=o.target;this.actionTooltip!==void 0&&(this.actionTooltip=n(this.actionTooltip));let i;c?.tagName==="CALCITE-ACTION"?i=c:(c?.tagName==="CALCITE-ACTION-MENU"||c?.tagName==="DIV")&&(i=c.firstChild),i!==void 0&&(this.actionTooltip=v(l`<calcite-tooltip style=${m({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=n(this.actionTooltip)},this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartState=a.Disabled,this.legendToggle=t.Inactive,this.legendState=a.Enabled,this.rotateChartToggle=t.Inactive,this.rotateChartState=a.Enabled,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionState=a.Enabled,this.filterByExtentToggle=t.Inactive,this.filterByExtentState=a.Enabled,this.actionBarSelectionMode=A.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionState=a.Enabled,this.zoomToggle=t.Inactive,this.zoomState=a.Enabled,this.fullExtentToggle=t.Inactive,this.fullExtentState=a.Enabled,this.clearSelectionToggle=t.Inactive,this.clearSelectionState=a.Enabled,this.switchSelectionToggle=t.Inactive,this.switchSelectionState=a.Enabled,this.exportAsImageState=a.Enabled,this.exportAsCSVState=a.Enabled,this.disableCSVExportForChartTypes=[u.ScatterSeries,u.BoxPlotSeries],this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=h(),this.arcgisDefaultActionSelect=h()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartState:1,editChartTitle:1,legendToggle:1,legendState:1,legendTitle:1,rotateChartToggle:1,rotateChartState:1,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionState:1,filterBySelectionTitle:1,filterByExtentToggle:1,filterByExtentState:1,filterByExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionState:1,selectionTitle:1,zoomToggle:1,zoomState:1,zoomTitle:1,fullExtentToggle:1,fullExtentState:1,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionState:1,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionState:1,switchSelectionTitle:1,exportAsImageState:1,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=W}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(o){let c=o.currentTarget,i={actionId:c.id,actionActive:!1};switch(c.id){case e.EditChart:this.editChartToggle=this.editChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.editChartToggle===t.Active;break;case e.Legend:this.legendToggle=this.legendToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.legendToggle===t.Active,r(this.chartElement?.model)&&S(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?S(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.RotateChart:this.rotateChartToggle=this.rotateChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.rotateChartToggle===t.Active,this.chartElement?.model&&(r(this.chartElement.model)?F(this.chartElement.model)&&(this.chartElement.model.rotatedState=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.FilterBySelection:this.filterBySelectionToggle=this.filterBySelectionToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterBySelectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break;case e.FilterByExtent:this.filterByExtentToggle=this.filterByExtentToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterByExtentToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterByExtent=i.actionActive);break;case e.Selection:this.selectionToggle=t.Active,this.zoomToggle=t.Inactive,i.actionActive=this.selectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break;case e.Zoom:this.zoomToggle=t.Active,this.selectionToggle=t.Inactive,i.actionActive=this.zoomToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=A.Zoom);break;case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active,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=n(this.actionTooltip))}handleSlotChange(o){let c=o.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(o=>{let c=o;c.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=v(l`<calcite-tooltip style=${m({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=n(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))})))}renderDefaultActions(){let o=L(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=o.includes(e.EditChart),E=o.includes(e.Legend),$=o.includes(e.RotateChart),b=o.includes(e.FilterBySelection),C=o.includes(e.FilterByExtent)&&!c,y=o.includes(e.Zoom),B=o.includes(e.Selection),D=o.includes(e.ClearSelection),k=o.includes(e.FullExtent),I=o.includes(e.SwitchSelection),M=o.includes(e.ExportAsImage),w=o.includes(e.ExportAsCSV);return[E||$?l`<calcite-action-group>${i?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${E?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .active=${this.legendToggle===t.Active} .disabled=${this.legendState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${$?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||C?l`<calcite-action-group>${b?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,B||y||k||D||I?l`<calcite-action-group>${y?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${I?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,M||w?l`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${M?l`<div><calcite-action id=${e.ExportAsImage??s} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${w?l`<div><calcite-action id=${e.ExportAsCSV??s} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===a.Disabled||this.forceDisableActions||this.chartType&&this.disableCSVExportForChartTypes.includes(this.chartType)} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return l`<calcite-action-bar class=${_(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${g(this.calciteActionBar)}><slot name=${T.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${T.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};V("arcgis-charts-action-bar",x);return x},b,c,f,i,j,k)
2
+ import k from"./I7NAAN2J.js";import{b as e,c as t,d as a}from"./J7TZPMJS.js";import j from"./O55FJWPJ.js";import{a as T}from"./DPJE33GY.js";import{a as p}from"./6KBLMTZM.js";import i from"./6ZV22THY.js";import f from"./F4ST6I7S.js";import c from"./CX6YXW2F.js";import"./UG7LOBJE.js";import b from"./DFUOH6OY.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import{d as r,q as S}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as u}from"./NKG4FLLR.js";import{A as _,B as m,C as s,D as v,F as V,g as O,h as l,m as h,x as d,y as g,z}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([{u:A},,,{a:F},{r:n},{a:L}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},W=O`.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}`,x=class extends z{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=p(),this.commonStrings=p({name:"common",blocking:!0}),this.handleMouseOver=o=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=o.target;this.actionTooltip!==void 0&&(this.actionTooltip=n(this.actionTooltip));let i;c?.tagName==="CALCITE-ACTION"?i=c:(c?.tagName==="CALCITE-ACTION-MENU"||c?.tagName==="DIV")&&(i=c.firstChild),i!==void 0&&(this.actionTooltip=v(l`<calcite-tooltip style=${m({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=n(this.actionTooltip)},this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartState=a.Disabled,this.legendToggle=t.Inactive,this.legendState=a.Enabled,this.rotateChartToggle=t.Inactive,this.rotateChartState=a.Enabled,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionState=a.Enabled,this.filterByExtentToggle=t.Inactive,this.filterByExtentState=a.Enabled,this.actionBarSelectionMode=A.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionState=a.Enabled,this.zoomToggle=t.Inactive,this.zoomState=a.Enabled,this.fullExtentToggle=t.Inactive,this.fullExtentState=a.Enabled,this.clearSelectionToggle=t.Inactive,this.clearSelectionState=a.Enabled,this.switchSelectionToggle=t.Inactive,this.switchSelectionState=a.Enabled,this.exportAsImageState=a.Enabled,this.exportAsCSVState=a.Enabled,this.disableCSVExportForChartTypes=[u.ScatterSeries,u.BoxPlotSeries],this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=h(),this.arcgisDefaultActionSelect=h()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartState:1,editChartTitle:1,legendToggle:1,legendState:1,legendTitle:1,rotateChartToggle:1,rotateChartState:1,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionState:1,filterBySelectionTitle:1,filterByExtentToggle:1,filterByExtentState:1,filterByExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionState:1,selectionTitle:1,zoomToggle:1,zoomState:1,zoomTitle:1,fullExtentToggle:1,fullExtentState:1,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionState:1,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionState:1,switchSelectionTitle:1,exportAsImageState:1,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=W}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(o){let c=o.currentTarget,i={actionId:c.id,actionActive:!1};switch(c.id){case e.EditChart:this.editChartToggle=this.editChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.editChartToggle===t.Active;break;case e.Legend:this.legendToggle=this.legendToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.legendToggle===t.Active,r(this.chartElement?.model)&&S(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?S(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.RotateChart:this.rotateChartToggle=this.rotateChartToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.rotateChartToggle===t.Active,this.chartElement?.model&&(r(this.chartElement.model)?F(this.chartElement.model)&&(this.chartElement.model.rotatedState=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break;case e.FilterBySelection:this.filterBySelectionToggle=this.filterBySelectionToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterBySelectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break;case e.FilterByExtent:this.filterByExtentToggle=this.filterByExtentToggle===t.Active?t.Inactive:t.Active,i.actionActive=this.filterByExtentToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.filterByExtent=i.actionActive);break;case e.Selection:this.selectionToggle=t.Active,this.zoomToggle=t.Inactive,i.actionActive=this.selectionToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break;case e.Zoom:this.zoomToggle=t.Active,this.selectionToggle=t.Inactive,i.actionActive=this.zoomToggle===t.Active,this.chartElement!==void 0&&(this.chartElement.actionMode=A.Zoom);break;case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active,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=n(this.actionTooltip))}handleSlotChange(o){let c=o.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(o=>{let c=o;c.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=v(l`<calcite-tooltip style=${m({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=n(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=n(this.actionTooltip))})))}renderDefaultActions(){let o=L(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=o.includes(e.EditChart),E=o.includes(e.Legend),$=o.includes(e.RotateChart),b=o.includes(e.FilterBySelection),C=o.includes(e.FilterByExtent)&&!c,y=o.includes(e.Zoom),B=o.includes(e.Selection),D=o.includes(e.ClearSelection),k=o.includes(e.FullExtent),I=o.includes(e.SwitchSelection),M=o.includes(e.ExportAsImage),w=o.includes(e.ExportAsCSV);return[E||$?l`<calcite-action-group>${i?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${E?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .active=${this.legendToggle===t.Active} .disabled=${this.legendState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${$?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||C?l`<calcite-action-group>${b?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,B||y||k||D||I?l`<calcite-action-group>${y?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${I?l`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,M||w?l`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${M?l`<div><calcite-action id=${e.ExportAsImage??s} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${w?l`<div><calcite-action id=${e.ExportAsCSV??s} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===a.Disabled||this.forceDisableActions||this.chartType&&this.disableCSVExportForChartTypes.includes(this.chartType)} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return l`<calcite-action-bar class=${_(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${g(this.calciteActionBar)}><slot name=${T.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${T.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};V("arcgis-charts-action-bar",x);return x},b,c,f,i,j,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import c from"./UANNLY4I.js";import a from"./RXVBUZAA.js";import{g as b}from"./4B3QBH5T.js";export default $arcgis.t(([{T:l,V:d,w:r},{b:f,c:c}])=>{var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,L=(a,t,e,g)=>{for(var o=p(t,e),s=a.length-1,n;s>=0;s--)(n=a[s])&&(o=n(t,e,o)||o);return o&&m(t,e,o),o};function S(a){return a!==void 0&&"dataLabelsSymbol"in a}var v=a=>{for(let t of a.series)if(t.dataLabels!==void 0)return t.dataLabels.content},y=(a,t)=>{for(let e of t.series)(e.dataLabels===void 0||a===void 0)&&(e.dataLabels=d({text:"",visible:!0,font:l(r.DataLabels),type:r.DataLabels})),a!==void 0&&(e.dataLabels.content=b(a))},i=class extends f{get dataLabelsSymbol(){return v(this._config)}set dataLabelsSymbol(t){y(t,this._config)}};L([c],i.prototype,"dataLabelsSymbol");return{a:S,b:i}},a,c)
2
+ import c from"./F4ST6I7S.js";import a from"./DFUOH6OY.js";import{g as b}from"./4B3QBH5T.js";export default $arcgis.t(([{T:l,V:d,w:r},{b:f,c:c}])=>{var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,L=(a,t,e,g)=>{for(var o=p(t,e),s=a.length-1,n;s>=0;s--)(n=a[s])&&(o=n(t,e,o)||o);return o&&m(t,e,o),o};function S(a){return a!==void 0&&"dataLabelsSymbol"in a}var v=a=>{for(let t of a.series)if(t.dataLabels!==void 0)return t.dataLabels.content},y=(a,t)=>{for(let e of t.series)(e.dataLabels===void 0||a===void 0)&&(e.dataLabels=d({text:"",visible:!0,font:l(r.DataLabels),type:r.DataLabels})),a!==void 0&&(e.dataLabels.content=b(a))},i=class extends f{get dataLabelsSymbol(){return v(this._config)}set dataLabelsSymbol(t){y(t,this._config)}};L([c],i.prototype,"dataLabelsSymbol");return{a:S,b:i}},a,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as i}from"./IUTE24ZY.js";import b from"./RXVBUZAA.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{A as r,B as o,F as m,g as l,h as a,z as d}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{K:p,L:c,M:h,N:g,O:f,Ob:b,Ub:u}])=>{var $=l`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.info-modal-container{box-sizing:border-box;width:100%;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:left}.info-modal-container h3.heading-true{margin-bottom:auto;background:#0000000d;height:30px;padding-left:.5rem;padding-top:.5rem;justify-self:stretch;text-align:left}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto}.info-modal-container p{justify-self:stretch;text-align:left}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,s=class extends d{constructor(){super(...arguments),this.message="",this.heading="",this.showErrorModalInfo=!1,this.showLoader=!1,this.enableAutoTheming=!1}static{this.properties={message:1,heading:1,showErrorModalInfo:5,showLoader:5,loaderColors:0,calciteThemeApplied:1,enableAutoTheming:5}}static{this.styles=$}render(){let e=null,y=this.calciteThemeApplied==="dark"&&this.enableAutoTheming,t=this.loaderColors?.curtainColor??(y?c:p),x=this.loaderColors?.spinnerColor??h,n=u({r:t[0],g:t[1],b:t[2],a:t[3]/255})?f:g;return this.showErrorModalInfo?e=a`<div class=${r(i.InfoModalContainer)} style=${o({background:`rgb(${t.toString()})`})}><h3 class=${r(this.heading!==""?"heading-true":"heading-false")} style=${o({color:`rgb(${n.toString()})`})}>${this.heading}</h3><p style=${o({color:`rgb(${n.toString()})`})} .innerHTML=${b(this.message)??""}></p></div>`:this.showLoader?e=a`<div class=${r(i.ChartLoaderOverlay)} style=${o({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${x.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:e=a`<div class=${`${i.InfoModalContainer} ${i.Hide}`}></div>`,e}};m("arcgis-charts-info-modal",s);return s},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)
2
+ import{a as i}from"./IUTE24ZY.js";import b from"./DFUOH6OY.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{A as r,B as o,F as m,g as l,h as a,z as d}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{K:p,L:c,M:h,N:g,O:f,Ob:b,Ub:u}])=>{var $=l`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.info-modal-container{box-sizing:border-box;width:100%;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:left}.info-modal-container h3.heading-true{margin-bottom:auto;background:#0000000d;height:30px;padding-left:.5rem;padding-top:.5rem;justify-self:stretch;text-align:left}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto}.info-modal-container p{justify-self:stretch;text-align:left}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,s=class extends d{constructor(){super(...arguments),this.message="",this.heading="",this.showErrorModalInfo=!1,this.showLoader=!1,this.enableAutoTheming=!1}static{this.properties={message:1,heading:1,showErrorModalInfo:5,showLoader:5,loaderColors:0,calciteThemeApplied:1,enableAutoTheming:5}}static{this.styles=$}render(){let e=null,y=this.calciteThemeApplied==="dark"&&this.enableAutoTheming,t=this.loaderColors?.curtainColor??(y?c:p),x=this.loaderColors?.spinnerColor??h,n=u({r:t[0],g:t[1],b:t[2],a:t[3]/255})?f:g;return this.showErrorModalInfo?e=a`<div class=${r(i.InfoModalContainer)} style=${o({background:`rgb(${t.toString()})`})}><h3 class=${r(this.heading!==""?"heading-true":"heading-false")} style=${o({color:`rgb(${n.toString()})`})}>${this.heading}</h3><p style=${o({color:`rgb(${n.toString()})`})} .innerHTML=${b(this.message)??""}></p></div>`:this.showLoader?e=a`<div class=${r(i.ChartLoaderOverlay)} style=${o({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${x.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:e=a`<div class=${`${i.InfoModalContainer} ${i.Hide}`}></div>`,e}};m("arcgis-charts-info-modal",s);return s},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import t from"./KS7RCEKE.js";import{a as W}from"./KJHME2ZX.js";import{a as $,b as Y,e as Q}from"./42KFTXRH.js";import{a as ee}from"./AUSXHSLY.js";import{a as D}from"./TKUAPKCR.js";import{a as J}from"./FEJD2JHY.js";import s from"./BM23NXM2.js";import{a as f}from"./J7TZPMJS.js";import r from"./ZBPBL6AN.js";import{d as l}from"./DPJE33GY.js";import{a as P}from"./6KBLMTZM.js";import q from"./XVV2IQJ3.js";import p from"./3JTCWXJT.js";import m from"./PVAOFYC2.js";import k from"./ADVZRDVX.js";import j from"./YVKRZ4BQ.js";import i from"./5Z74HMAF.js";import g from"./ESLUOO7N.js";import e from"./A3V3MLTK.js";import d from"./UANNLY4I.js";import c from"./2T73COTN.js";import"./UG7LOBJE.js";import a from"./RXVBUZAA.js";import{n as b}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import{a as K}from"./OOSFQU2J.js";import{e as I,f as B,j as X,m as L,q as w}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as o,k as z}from"./NKG4FLLR.js";import{A as h,B as _,D as S,F as U,g as F,h as n,m as C,x as N,y as A,z as V}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,{substitute:ie},,,,,,,{Jb:x,Ra:H,Rd:O,Sb:v,Wd:T,_b:R},,,,,,{a:G},,,,,{r:Z},{a:j,d:y,e:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function te(m,e){let a=new Set,t=e;return m?.forEach((i,s)=>{let r=i.chartId;(a.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=i.chartId)),a.add(r)}),t}function se(m,e,a){return m?.filter(t=>x(a,t.config)&&t.layer?.id===e)??[]}function re(m){let{modelList:e,layerList:a,activeLayerId:t,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let c=r.layer;c&&s.set(c.id,c)}),i||a.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function oe(m,e){m.forEach(a=>{e.forEach(t=>{a?.id===t.layer?.id&&ae(a,t)})})}function ae(m,e){let a=m;if(a){let t=[...a?.charts??[]],i=t?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!b(t[i],e.config),t[i]=e.config):a&&!T(e.config)&&(s=!0,t.push(e.config)),s&&(a.charts=t)}}function ce(m,e){let a=m;if(a){let t=[...a.charts??[]],i=t.findIndex(s=>s.id===e);i>-1&&(t.splice(i,1),a.charts=t)}}function le(m,e){let a=m;if(a){let t=[...a.charts??[]];t=v({arrayA:t,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),a.charts=t}}var ne=F`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,E=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let a=e,{chartData:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:this.chartData=t,i&&(i.dataStore.chartData=t);break;case o.PieSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:c,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,X(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(c),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:c}=t;if((B(s)||I(s)&&s.binTemporalData)&&(c?.size!==void 0&&s.temporalBinningSize!==c?.size&&(s.temporalBinningSize=c?.size),c?.unit!==void 0&&s.temporalBinningUnit!==c?.unit&&c?.unit!==z.Quarter&&(s.temporalBinningUnit=c?.unit),c?.size!==void 0&&c?.unit!==void 0&&Q($,{size:c.size,unit:c.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),I(s)){let u=s.xAxisField,g=r.some(M=>M[u]===null),p=s.nullCategory;g&&p===void 0&&(s.nullCategory=H.nullCategory)}break}case o.HeatSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}}},this.chartAxesMinMaxChange=e=>{let a=e,{bounds:t,model:i}=a.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),c=s?.chartType;if(r)switch(c){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,i&&(i.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let a=e,{data:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,i&&(i.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,i&&(i.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let a=e,{propName:t,value:i,model:s}=a.detail,r=this.modelList.find(c=>s?.isSameChartAs(c));if(r)switch(t){case"rotation":typeof i=="boolean"&&G(r)&&(r.rotatedState=i);break;case"legendPosition":typeof i=="string"&&w(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&w(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let a=e,{legendItemVisibility:t,model:i}=a.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(t),L(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),B(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:a,layerId:t}=e.target;a!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:a,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let a=e.target;ae(a?.layer,a)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.panelNumber=0,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,open:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,panelNumber:9,filterBySelection:5}}static{this.styles=ne}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:a}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:a,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=a.find(i=>i.layer?.id!==void 0)?.layer?.id;if(t){let i=this.layerList.find(s=>s.id.toString()===t);i&&le(i,a)}}}async layerListChange(){let e=[],a=this.layerList.map(i=>i.id.toString()),t=[...this.modelList.filter(i=>a.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let r=await i.createFeatureLayer();if(!r)continue;i=r}let s=i.charts;for(let r of s??[]){let c=await K({layer:i,config:r});c!==void 0&&e.push(c)}}te(e),e.forEach(i=>{t.find(s=>s.isSameChartAs(i))===void 0&&t.push(i)}),t=t.filter(i=>!R(i.config)),this.modelList=t}modelListChange(e,a){this.selectedChartId=te(e,this.selectedChartId),a?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&oe(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=l.Data;let a=this.getModel(e);this.setEventBasedPropsFromModelData(a),this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:a})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let a=this.getModel(this.selectedChartId)?.config,t=[];if(a!==void 0&&e!==void 0){let i=O({chartConfig:a,chartData:e}),{minY:s,maxY:r,minX:c,maxX:u}=i;t=[{isXAxis:!0,minimum:c,maximum:u},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(a=>{let{isXAxis:t,maximum:i,minimum:s}=a,r=this.getModel(this.selectedChartId);if(r!==void 0&&L(r)&&this.selectedChartId!==void 0){let c=new W(r,t),u=Y({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:c.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],M={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!b(p,M)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=M)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(a=>x(j,a.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}onAddChartClick(e){let{referenceElement:a,layerId:t}=e.detail;this.setupSelectChartTypePopover(a,t)}setupSelectChartTypePopover(e,a){let t=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(a=>a.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=J(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:a}=e.detail;if(a!==void 0){let t=this.modelList.find(s=>s.chartId===a),i=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==a)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&ce(i,a)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.open=!1,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let a=e.target,t="";switch(a.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){Z(this.tooltip)}renderViewCharts(){let e=re({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ee(e,a=>a.id,a=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${se(this.modelList,a.id.toString(),this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.open!==!1?n`<calcite-flow>${D("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`:null}renderTabs(){let e=this.getModel(this.selectedChartId);return D("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??l.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ie(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===l.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=l.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===l.Slices} @click=${()=>{this.selectedPanel=l.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===l.Axes} @click=${()=>{this.selectedPanel=l.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===l.Guides} @click=${()=>{this.selectedPanel=l.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===l.Format} @click=${()=>{this.selectedPanel=l.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===l.General} @click=${()=>{this.selectedPanel=l.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),a=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${a} .page=${this.selectedPanel??l.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",E);return E},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","core/promiseUtils",a,c,d,e,g,i,j,k,m,p,q,r,s,t)
2
+ import t from"./6FNV6NKU.js";import{a as W}from"./KJHME2ZX.js";import{a as $,b as Y,e as Q}from"./42KFTXRH.js";import{a as ee}from"./AUSXHSLY.js";import{a as D}from"./TKUAPKCR.js";import{a as J}from"./FEJD2JHY.js";import s from"./ZEUXNEAI.js";import{a as f}from"./J7TZPMJS.js";import r from"./O55FJWPJ.js";import{d as l}from"./DPJE33GY.js";import{a as P}from"./6KBLMTZM.js";import q from"./MF5KRXT6.js";import p from"./EGSERIS7.js";import m from"./YOSWPGPP.js";import k from"./572MI4QO.js";import j from"./6ZV22THY.js";import i from"./GBXY4IWD.js";import g from"./XXY4TE72.js";import e from"./DLPWNTXP.js";import d from"./F4ST6I7S.js";import c from"./CX6YXW2F.js";import"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import{n as b}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import{a as K}from"./HNMOJGYK.js";import{e as I,f as B,j as X,m as L,q as w}from"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as o,k as z}from"./NKG4FLLR.js";import{A as h,B as _,D as S,F as U,g as F,h as n,m as C,x as N,y as A,z as V}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,{substitute:ie},,,,,,,{Jb:x,Ra:H,Rd:O,Sb:v,Wd:T,_b:R},,,,,,{a:G},,,,,{r:Z},{a:j,d:y,e:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function te(m,e){let a=new Set,t=e;return m?.forEach((i,s)=>{let r=i.chartId;(a.has(r)||r===void 0||r==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=i.chartId)),a.add(r)}),t}function se(m,e,a){return m?.filter(t=>x(a,t.config)&&t.layer?.id===e)??[]}function re(m){let{modelList:e,layerList:a,activeLayerId:t,disableEditing:i}=m,s=new Map;return e?.forEach(r=>{let c=r.layer;c&&s.set(c.id,c)}),i||a.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function oe(m,e){m.forEach(a=>{e.forEach(t=>{a?.id===t.layer?.id&&ae(a,t)})})}function ae(m,e){let a=m;if(a){let t=[...a?.charts??[]],i=t?.findIndex(r=>r.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!b(t[i],e.config),t[i]=e.config):a&&!T(e.config)&&(s=!0,t.push(e.config)),s&&(a.charts=t)}}function ce(m,e){let a=m;if(a){let t=[...a.charts??[]],i=t.findIndex(s=>s.id===e);i>-1&&(t.splice(i,1),a.charts=t)}}function le(m,e){let a=m;if(a){let t=[...a.charts??[]];t=v({arrayA:t,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),a.charts=t}}var ne=F`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,E=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let a=e,{chartData:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:this.chartData=t,i&&(i.dataStore.chartData=t);break;case o.PieSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:c,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,X(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=g,g&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(c),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:c}=t;if((B(s)||I(s)&&s.binTemporalData)&&(c?.size!==void 0&&s.temporalBinningSize!==c?.size&&(s.temporalBinningSize=c?.size),c?.unit!==void 0&&s.temporalBinningUnit!==c?.unit&&c?.unit!==z.Quarter&&(s.temporalBinningUnit=c?.unit),c?.size!==void 0&&c?.unit!==void 0&&Q($,{size:c.size,unit:c.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),I(s)){let u=s.xAxisField,g=r.some(M=>M[u]===null),p=s.nullCategory;g&&p===void 0&&(s.nullCategory=H.nullCategory)}break}case o.HeatSeries:{this.chartData=t,i&&(i.dataStore.chartData=t);break}}},this.chartAxesMinMaxChange=e=>{let a=e,{bounds:t,model:i}=a.detail,s=this.getModel(this.selectedChartId),r=i?.isSameChartAs(s),c=s?.chartType;if(r)switch(c){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,i&&(i.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let a=e,{data:t,model:i}=a.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,i&&(i.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,i&&(i.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let a=e,{propName:t,value:i,model:s}=a.detail,r=this.modelList.find(c=>s?.isSameChartAs(c));if(r)switch(t){case"rotation":typeof i=="boolean"&&G(r)&&(r.rotatedState=i);break;case"legendPosition":typeof i=="string"&&w(r)&&(r.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&w(r)&&(r.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let a=e,{legendItemVisibility:t,model:i}=a.detail,s=this.modelList.find(r=>i?.isSameChartAs(r));s?.setSeriesVisibility(t),L(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),B(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:a,layerId:t}=e.target;a!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:a,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let a=e.target;ae(a?.layer,a)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.panelNumber=0,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,open:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,panelNumber:9,filterBySelection:5}}static{this.styles=ne}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:a}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:a,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=a.find(i=>i.layer?.id!==void 0)?.layer?.id;if(t){let i=this.layerList.find(s=>s.id.toString()===t);i&&le(i,a)}}}async layerListChange(){let e=[],a=this.layerList.map(i=>i.id.toString()),t=[...this.modelList.filter(i=>a.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let r=await i.createFeatureLayer();if(!r)continue;i=r}let s=i.charts;for(let r of s??[]){let c=await K({layer:i,config:r});c!==void 0&&e.push(c)}}te(e),e.forEach(i=>{t.find(s=>s.isSameChartAs(i))===void 0&&t.push(i)}),t=t.filter(i=>!R(i.config)),this.modelList=t}modelListChange(e,a){this.selectedChartId=te(e,this.selectedChartId),a?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&oe(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=l.Data;let a=this.getModel(e);this.setEventBasedPropsFromModelData(a),this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:a})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let a=this.getModel(this.selectedChartId)?.config,t=[];if(a!==void 0&&e!==void 0){let i=O({chartConfig:a,chartData:e}),{minY:s,maxY:r,minX:c,maxX:u}=i;t=[{isXAxis:!0,minimum:c,maximum:u},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(a=>{let{isXAxis:t,maximum:i,minimum:s}=a,r=this.getModel(this.selectedChartId);if(r!==void 0&&L(r)&&this.selectedChartId!==void 0){let c=new W(r,t),u=Y({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:c.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],M={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!b(p,M)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=M)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(a=>x(j,a.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}onAddChartClick(e){let{referenceElement:a,layerId:t}=e.detail;this.setupSelectChartTypePopover(a,t)}setupSelectChartTypePopover(e,a){let t=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(a=>a.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=J(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!T(e.config))}onViewChartDelete(e){let{chartId:a}=e.detail;if(a!==void 0){let t=this.modelList.find(s=>s.chartId===a),i=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==a)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&ce(i,a)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.open=!1,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let a=e.target,t="";switch(a.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){Z(this.tooltip)}renderViewCharts(){let e=re({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ee(e,a=>a.id,a=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${se(this.modelList,a.id.toString(),this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.open!==!1?n`<calcite-flow>${D("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`:null}renderTabs(){let e=this.getModel(this.selectedChartId);return D("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??l.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ie(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===l.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=l.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===l.Series} @click=${()=>{this.selectedPanel=l.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===l.Slices} @click=${()=>{this.selectedPanel=l.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===l.Axes} @click=${()=>{this.selectedPanel=l.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===l.Guides} @click=${()=>{this.selectedPanel=l.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===l.Format} @click=${()=>{this.selectedPanel=l.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===l.General} @click=${()=>{this.selectedPanel=l.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),a=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel??l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${a} .page=${this.selectedPanel??l.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",E);return E},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","core/promiseUtils",a,c,d,e,g,i,j,k,m,p,q,r,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import q from"./ADVZRDVX.js";import o from"./YVKRZ4BQ.js";import n from"./5Z74HMAF.js";import m from"./ZEOKGV6H.js";import l from"./IS4HRAIE.js";import k from"./FHYGSASV.js";import j from"./EDGM5DH5.js";import i from"./TMUYWWFE.js";import g from"./NLRRRHRW.js";import f from"./GQA3ZESB.js";import e from"./7SKLAZGY.js";import c from"./UANNLY4I.js";import b from"./2T73COTN.js";import{i as p,j as d,k as h}from"./UG7LOBJE.js";import a from"./RXVBUZAA.js";import{n as O}from"./4B3QBH5T.js";import{a as E}from"./KUVOINJC.js";import{a as P,b as y,f as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,{$:V,Nc:R,Wd:k,Z:w,f:_,fa:D,ka:U,oa:L},{a:W,b:x,d:F,o:N,p:j,q:z},{c:o},B,{b:fe,d:ue,f:Se},{b:pe,d:he,f:me},{a:ye,b:de},Fe,{b:ce},{a:ne,b:ae,c:le,d:ge},{a:_e,b:xe},{d:T,e:A,f:q},{b:M},{da:te,ea:f,fa:se,g:X,ga:u,h:Y,ha:I,i:Z,ia:C,j:$,k:G,ka:b,l:H,la:v,m:J,ma:re,n:K,na:oe,o:Q,p:ee,q:ie}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=U(r,P.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ie=(s,e)=>e.series?.[s]?.name,Ce=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},be=(s,e)=>{let i=e.series?.[s],t;return h(i)?t=i.fillSymbol?.color:p(i)&&(t=i.lineSymbol?.color),t},ve=(s,e,i)=>{let t=i.series?.[e];t&&(h(t)?t.fillSymbol={...L(e),...t.fillSymbol,color:s}:p(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},Be=s=>s.series.map(e=>e.id),Oe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},Pe=s=>s.stackedType??S.Side,we=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=x({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:f(i)});W(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=w()),F({config:i,value:null,axisIndex:1,isMax:!1}),F({config:i,value:null,axisIndex:1,isMax:!0})},Ve=s=>{let e,i=s.series.find(t=>(h(t)||p(t)||d(t))&&t.nullCategory!==void 0);return(h(i)||p(i)||d(i))&&(e=i?.nullCategory),e},De=(s,e)=>{s.series.forEach(i=>{(h(i)||p(i)||d(i))&&(i.nullCategory=e)})},Ue=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,m=(s,e,i,t)=>{for(var r=Le(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},g=class extends B{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){H(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){K(e,this._config)}get timeAggregationType(){return Z(this._config)}set timeAggregationType(e){Q(e,this._config)}get trimIncompleteTimeInterval(){return $(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(e){J(e,this._config)}resetTimeInterval(){ie(this._config)}};m([o],g.prototype,"temporalBinningSize");m([o],g.prototype,"temporalBinningUnit");m([o],g.prototype,"timeAggregationType");m([o],g.prototype,"trimIncompleteTimeInterval");m([o],g.prototype,"nullPolicy");m([o],g.prototype,"resetTimeInterval");var Re=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=ke(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Re(e,i,r),r},n=class extends B{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=y.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,this.dirtyAsyncSetters.push("xAxisField"),e.trim()===""||e===_){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild()}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,this.dirtyAsyncSetters.push("aggregationType"),this.processSeriesRebuild()}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&N(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild())}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===_)&&e.length===0;if(i&&!t){let r=R(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=y.Count):this._aggregationType===y.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=y.Sum),this._numericFields=e,this.dirtyAsyncSetters.push("numericFields"),this.numericFields.length>1&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return I(this._config)[0]}setSortOrder(e,i){A(e,this._config,i)}async getCustomSortValues(){return await v(this._config,this.layerInfo)}async setDataFilters(e){super.setDataFilters(e);let i=I(this._config)[0];if(i===E.customSort){this.startAsyncUpdate();let t=await v(this._config,this.layerInfo);A(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!k(this._config)&&b(e,this._config)}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild())}get binTemporalData(){return re(this._config)}set binTemporalData(e){oe(e,this._config)}getSeriesName(e){return Ie(e,this._config)}setSeriesName(e,i){Ce(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){ve(e,i,this._config)}getOrderOfSeries(){return Be(this._config)}setOrderOfSeries(e){Oe(e,this._config)}get stackedType(){return Pe(this._config)}set stackedType(e){we({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=T(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Ve(this._config)}set nullCategory(e){let i=this.nullCategory;O(i,e)||De(this._config,e)}setupLocalProps(){this._xAxisField=q(this._config),this._aggregationType=f(this._config),this._splitByField=se(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"))}canUseSynchronousSeriesRebuild(){return this.splitByField===""||this.numericFields.length>1}async processSeriesRebuild(){if(this.layerInfo!==void 0){let e=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],C(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await C(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}}getBuildNewSeriesProps(){return{xAxisField:this.xAxisField,splitByField:this.splitByField,numericFields:this.numericFields,aggregationType:this.aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}generateChartTitle(){return this.layerInfo!==void 0?te(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:f(this._config)}):""}};l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var Ee=[_e,le,ge,ne,M,ae,ce,Fe,xe,g,fe,de,ue,ye,pe,he,me,Se];z(n,Ee);return{a:Ie,b:Ce,c:ve,d:n}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,e,f,g,i,j,k,l,m,n,o,q)
2
+ import q from"./572MI4QO.js";import o from"./6ZV22THY.js";import n from"./GBXY4IWD.js";import m from"./MPH6KJDN.js";import l from"./HCEBROGE.js";import k from"./2TYUDKS4.js";import j from"./6JEIATKR.js";import i from"./NIVBY4H2.js";import g from"./ZO46KCCI.js";import f from"./C6AYAL4Q.js";import e from"./VR7VFJJI.js";import c from"./F4ST6I7S.js";import b from"./CX6YXW2F.js";import{i as p,j as d,k as h}from"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import{n as O}from"./4B3QBH5T.js";import{a as E}from"./KUVOINJC.js";import{a as P,b as y,f as S}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,{$:V,Nc:R,Wd:k,Z:w,f:_,fa:D,ka:U,oa:L},{a:W,b:x,d:F,o:N,p:j,q:z},{c:o},B,{b:fe,d:ue,f:Se},{b:pe,d:he,f:me},{a:ye,b:de},Fe,{b:ce},{a:ne,b:ae,c:le,d:ge},{a:_e,b:xe},{d:T,e:A,f:q},{b:M},{da:te,ea:f,fa:se,g:X,ga:u,h:Y,ha:I,i:Z,ia:C,j:$,k:G,ka:b,l:H,la:v,m:J,ma:re,n:K,na:oe,o:Q,p:ee,q:ie}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=U(r,P.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ie=(s,e)=>e.series?.[s]?.name,Ce=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},be=(s,e)=>{let i=e.series?.[s],t;return h(i)?t=i.fillSymbol?.color:p(i)&&(t=i.lineSymbol?.color),t},ve=(s,e,i)=>{let t=i.series?.[e];t&&(h(t)?t.fillSymbol={...L(e),...t.fillSymbol,color:s}:p(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},Be=s=>s.series.map(e=>e.id),Oe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},Pe=s=>s.stackedType??S.Side,we=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=x({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:f(i)});W(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=V():i.axes[1].valueFormat=w()),F({config:i,value:null,axisIndex:1,isMax:!1}),F({config:i,value:null,axisIndex:1,isMax:!0})},Ve=s=>{let e,i=s.series.find(t=>(h(t)||p(t)||d(t))&&t.nullCategory!==void 0);return(h(i)||p(i)||d(i))&&(e=i?.nullCategory),e},De=(s,e)=>{s.series.forEach(i=>{(h(i)||p(i)||d(i))&&(i.nullCategory=e)})},Ue=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,m=(s,e,i,t)=>{for(var r=Le(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},g=class extends B{get temporalBinningSize(){return X(this._config)}set temporalBinningSize(e){H(e,this._config)}get temporalBinningUnit(){return Y(this._config)}set temporalBinningUnit(e){K(e,this._config)}get timeAggregationType(){return Z(this._config)}set timeAggregationType(e){Q(e,this._config)}get trimIncompleteTimeInterval(){return $(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return G(this._config)}set nullPolicy(e){J(e,this._config)}resetTimeInterval(){ie(this._config)}};m([o],g.prototype,"temporalBinningSize");m([o],g.prototype,"temporalBinningUnit");m([o],g.prototype,"timeAggregationType");m([o],g.prototype,"trimIncompleteTimeInterval");m([o],g.prototype,"nullPolicy");m([o],g.prototype,"resetTimeInterval");var Re=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=ke(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Re(e,i,r),r},n=class extends B{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=y.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,this.dirtyAsyncSetters.push("xAxisField"),e.trim()===""||e===_){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild()}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,this.dirtyAsyncSetters.push("aggregationType"),this.processSeriesRebuild()}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&N(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild())}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===_)&&e.length===0;if(i&&!t){let r=R(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e.push(r),this._aggregationType=y.Count):this._aggregationType===y.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=y.Sum),this._numericFields=e,this.dirtyAsyncSetters.push("numericFields"),this.numericFields.length>1&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return I(this._config)[0]}setSortOrder(e,i){A(e,this._config,i)}async getCustomSortValues(){return await v(this._config,this.layerInfo)}async setDataFilters(e){super.setDataFilters(e);let i=I(this._config)[0];if(i===E.customSort){this.startAsyncUpdate();let t=await v(this._config,this.layerInfo);A(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return T(this._config)}set orderByList(e){!k(this._config)&&b(e,this._config)}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild())}get binTemporalData(){return re(this._config)}set binTemporalData(e){oe(e,this._config)}getSeriesName(e){return Ie(e,this._config)}setSeriesName(e,i){Ce(e,i,this._config)}getSeriesColor(e){return be(e,this._config)}setSeriesColor(e,i){ve(e,i,this._config)}getOrderOfSeries(){return Be(this._config)}setOrderOfSeries(e){Oe(e,this._config)}get stackedType(){return Pe(this._config)}set stackedType(e){we({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=T(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Ve(this._config)}set nullCategory(e){let i=this.nullCategory;O(i,e)||De(this._config,e)}setupLocalProps(){this._xAxisField=q(this._config),this._aggregationType=f(this._config),this._splitByField=se(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"))}canUseSynchronousSeriesRebuild(){return this.splitByField===""||this.numericFields.length>1}async processSeriesRebuild(){if(this.layerInfo!==void 0){let e=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],C(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await C(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}}getBuildNewSeriesProps(){return{xAxisField:this.xAxisField,splitByField:this.splitByField,numericFields:this.numericFields,aggregationType:this.aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}generateChartTitle(){return this.layerInfo!==void 0?te(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?x({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:f(this._config)}):""}};l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var Ee=[_e,le,ge,ne,M,ae,ce,Fe,xe,g,fe,de,ue,ye,pe,he,me,Se];z(n,Ee);return{a:Ie,b:Ce,c:ve,d:n}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,e,f,g,i,j,k,l,m,n,o,q)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import g from"./GBXY4IWD.js";import f from"./XXY4TE72.js";import e from"./DLPWNTXP.js";import d from"./F4ST6I7S.js";import c from"./CX6YXW2F.js";import{g as ce,i as b,j as B,k,l as ye,m as Je,n as He}from"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import{B as ve,d as xe,g as ie,m as be,v as se}from"./4B3QBH5T.js";import{a as z}from"./KUVOINJC.js";import{a as N,b as C,e as Be,h as he,k as Y,n as j,o as Te,v,y as Ce}from"./NKG4FLLR.js";export default $arcgis.t(([{substitute:R},,,,,,,,,,,,,,{Bc:$e,Dc:je,Ec:De,Gb:O,Gc:Pe,Hd:ze,Ia:Ne,Ic:Ee,Nc:E,Oc:Ue,Qc:re,Ra:P,Rc:Xe,Tc:ne,Uc:oe,Wd:X,X:te,Y:qe,Ya:Q,Yc:_e,Z:ke,_b:Re,ac:ae,dd:We,ed:le,f:D,fd:Ye,gd:U,hd:Qe,ic:Ve,id:I,ja:we,k:Ie,ma:Me,na:Le,pa:Oe,x:Ae,yb:L},{a:V,b:ge,d:A,e:ue,f:Ge,g:de,n:Ke,r:ei},{a:Ze},{c:H},{a:si,e:ti},{a:ii,b:me,f:$,g:J,i:pe}])=>{function Ki(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function es(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function is(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function oi(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function ss(i,e){return e!=null||ce(i)}async function li(i){let{queryObject:e,chartConfig:s,options:r,splitByField:a}=i,t=[],n,l=ie(s),o=l.series[0],u=_e({queryObject:e,chartConfig:l,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent});if(u.outStatistics?.[0]?.outStatisticFieldName&&(u.outStatistics[0].outStatisticFieldName=Ae.outStatistics.outStatisticFieldName),I(o)&&Qe({xAxisValueFormatType:Ie(l),setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,seriesConfig:o})&&$e(e)){let{temporalBinning:F,x:y}=o,{uniqueQuery:p}=await ae({chartConfig:l,queryConfig:u,queryObject:e,options:r});n=await Ee({queryObject:e,dateField:y,splitByField:a,queryConfig:p,temporalBinning:F}),t=Array.from(new Set(n.flatMap(f=>{let{stackedAttributes:d}=f,g=[];return d&&(g=d.map(S=>S[a]).filter(S=>S!==void 0)),g})).values())}else{let{uniqueQuery:F}=await ae({chartConfig:l,queryObject:e,queryConfig:u,options:r}),{elementCount:y}=await Ve({chartConfig:l,queryObject:e,queryConfig:u,behaviorAfterLimit:r?.chartLimits?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:F.num});n=await Pe({queryObject:e,queryConfig:F,featureCount:y}),t=Array.from(new Set(n.map(p=>p.attributes[a]).filter(p=>p!==void 0)).values())}return{allValues:t,preFetchedQueryResponse:n}}function ci(i,e){let s=new Map;return i.series.forEach(r=>{let a=le({where:r.query?.where,normalize:!0,escape:!1});e&&a!==null&&(a=Number(a));let t=Ce([r]);t!==void 0&&s.set(t,[...s.get(t)??[],a])}),s}function yi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:r}=i,a=new Map;return Array.from(s.keys()).forEach(t=>{let n=s.get(t)??[],l=[];r?l=e:e.forEach(o=>{n.includes(o)||l.push(o)}),a.set(t,l)}),a}function gi(i){let{chartConfig:e,missingValue:s,splitByField:r,seriesTemplate:a}=i,t=JSON.parse(JSON.stringify({...e.series[0],...a}));if(t.query){if(t.id=`${s}-${e.series.length}-${Date.now()}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let l=t.id;t.query.outStatistics[0].outStatisticFieldName=l,"y"in t&&(t.y=l)}let n=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${r}=${n}`}return t}async function ui(i){let{updateSplitBySeries:e,config:s,options:r,queryObject:a}=i,{seriesTemplate:t}=e??{},n;if(e!==void 0&&s!==void 0&&(s.series.length>0||t!==void 0)&&e.addMissingSeries){let l=s.series.length===0;s.series.length===0&&t!==void 0&&s.series.push(t);let o=U(s.series);if((o===L.BoxPlotMonoFieldAndSplitBy||o===L.BoxPlotMultiFieldsAndSplitBy||o===L.BoxPlotMonoFieldAndCategoryAndSplitBy||o===L.BarAndLineSplitBy||o===L.BarAndLineSplitByNoAggregation)&&a!==void 0){let u=We(s.series[0]?.query?.where),F=je(a);await F.load();let y=F.getField(u)?.toJSON(),p=Ue(y),f=await li({queryObject:a,chartConfig:s,splitByField:u,options:r}),{allValues:d}=f;if({preFetchedQueryResponse:n}=f,d.length>0){let g=ci(s,p),S=yi({allValues:d,configUniqueValuesPerSeriesType:g,initialConfigWasEmpty:l});Array.from(S.keys()).forEach(h=>{(S.get(h)??[]).forEach(x=>{s.series.push(gi({chartConfig:s,seriesTemplate:t,missingValue:x,splitByField:u}))}),l&&s.series.shift()})}}}return n}function di(i,e){e&&!ce(e)&&(e=De({chartConfig:e,queryObject:i}))}async function ts(i){let{configToAlter:e,layer:s,addMissingSeries:r,updateSplitBySeries:a,chartContainer:t,queryObject:n,options:l}=i,o=e,u;return o&&(di(s,o),o=await Ze(o,s),r&&(u=await ui({updateSplitBySeries:a,config:o,options:l,queryObject:n})),o=ze(o,t)),{alteredConfig:o,preFetchedQueryResponse:u}}var as=i=>{let e,s=i.series[0];return I(s)&&(e=s.temporalBinning?.size),e},mi=i=>{let e,s=i.series[0];return I(s)&&(e=s.temporalBinning?.unit),e},rs=i=>{let e,s=i.series[0];return I(s)&&(e=s.temporalBinning?.timeAggregationType),e},ns=i=>{let e,s=i.series[0];return I(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},os=i=>{let e,s=i.series[0];return I(s)&&(e=s.temporalBinning?.nullPolicy),e},pi=(i,e)=>{e?.series?.forEach(s=>{I(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},fi=(i,e)=>{e?.series?.forEach(s=>{I(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},ls=(i,e)=>{e.series?.forEach(s=>{I(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},cs=(i,e)=>{e.series?.forEach(s=>{I(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},ys=(i,e)=>{e.series?.forEach(s=>{I(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),A({config:e,value:null,axisIndex:1,isMax:!1}),A({config:e,value:null,axisIndex:1,isMax:!0})},gs=i=>{pi(0,i)},us=i=>i.hideEmptyRowsAndColumns,ds=(i,e)=>{i.hideEmptyRowsAndColumns=e},ms=(i,e)=>{let s=i.series[0];s.heatRulesType=e},ps=i=>i.series[0].heatRulesType,fs=(i,e)=>{let s=i.series[0];s.gradientRules=e},Ss=i=>i.series[0].gradientRules,Fs=i=>{let{yField:e,config:s,layerInfo:r}=i,{layerFieldsInfo:a}=r,t=H(1,s),n=Si(s),l=X(s),o=s.series[0];if(typeof e=="string"&&n!==e&&o&&(o.y=e,oi(s),n===t||l)){let u=O(a,e);V(s,1,u)}},Si=i=>i.series[0].y??"",xs=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.xTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];V(s,0,t)}},bs=i=>i.series[0].xTemporalBinning,Bs=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.yTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];V(s,1,t)}},hs=i=>i.series[0].yTemporalBinning,Fi=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?v.Category:v.YValue,r=fe(e)[0],a=e.axes?.[1]?.valueFormat?.type==="category"?v.Category:v.YValue,t=fe(e)[1],n={...e.orderOptions.data??{},orderType:v.MultiAxes};r===z.customSort&&s===v.Category&&(n.orderByX=[...i]),t===z.customSort&&a===v.Category&&(n.orderByY=[...i]),Object.keys(n).length>1&&(e.orderOptions.data=n)},Ts=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},Cs=i=>i.series[0].gridLine?.width,vs=(i,e)=>{let s=e.series[0],r=i?.length===4&&i.every(a=>typeof a=="number");s.gridLine&&r&&(s.gridLine.color=i)},Is=i=>i.series[0].gridLine?.color,As=(i,e)=>{let s=e.legend;s&&(s.position=i)},qs=i=>i.legend?.position??Be.Bottom,ks=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,ws=i=>{let{field:e,config:s,layerInfo:r,commonStrings:a}=i,t=s.series[0].query?.outStatistics?.[0],n=Fe(s,r,a);t?(t.onStatisticField=e,t.outStatisticFieldName=`${t.statisticType}_${e}`):s.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${C.Count}_${e}`,statisticType:C.Count}]},s.title&&n&&(s.title.content.text=G(s,r,a))},Ms=i=>i.series[0].query?.outStatistics?.[0].statisticType??C.Count,Ls=i=>{let{aggregationType:e,config:s,layerInfo:r,commonStrings:a}=i,t=s.series[0]?.query?.outStatistics?.[0],n=Fe(s,r,a);t&&e!==C.NoAggregation&&(t.statisticType=e,t.outStatisticFieldName=`${e}_${t.onStatisticField}`),(e===C.Count||e===C.Sum)&&xi(j.Zero,s),s.title&&n&&(s.title.content.text=G(s,r,a))},Os=i=>i.nullPolicy,xi=(i,e)=>{e.nullPolicy=i},Ns=i=>i.series[0].emptyCells,Rs=(i,e)=>{e.series[0].emptyCells=i},Vs=i=>i.series[0].emptyCells?.text,$s=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},js=i=>i.includeLeapDay,Ds=(i,e)=>{e.includeLeapDay=i},Ps=i=>i.series[0].emptyCells?.symbol,Es=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function Us(i){return i.viewType}function Xs(i,e){Re(e)||(e.viewType=i)}function _s(i){return i.series[0].classBreaksRules?.breaksCount??P.classBreaks.breaksCount}function Ws(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??P.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??P.classBreaks.breaksCount}}function Ys(i){return i.series[0].classBreaksRules?.classificationMethod}function Qs(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??P.classBreaks.breaksCount}function zs(i,e){e.firstDayOfWeek=i}function Js(i){return i.firstDayOfWeek}function _(i){let{seriesIndex:e,xAxisField:s,aggregationType:r,config:a,layerInfo:t,commonStrings:n}=i,l=E(t?.layer).idField,o,u=a.series[e??0],F=!1,y=!1,p=!1;if(u===void 0){let g=a.series;F=g.slice(0,e).every(S=>b(S)),y=g.slice(0,e).every(S=>B(S)),p=g.slice(0,e).every(S=>ye(S))}else F=b(u),y=B(u),p=ye(u);F?o=Me({commonStrings:n,seriesIndex:e,objectIDField:l}):y?o=Le({commonStrings:n,seriesIndex:e,objectIDField:l}):p?o=we(n,l):o=Oe({seriesIndex:e,objectIDField:l,commonStrings:n});let f=a.series[0]?.dataLabels,d={...o,x:s,y:"",dataLabels:{...o.dataLabels,type:o.dataLabels?.type??N.Text,content:{...o.dataLabels?.content,...f?.content,type:ve.TS},visible:f?.visible??!1}};if(d.query={groupByFieldsForStatistics:[s]},r!==C.NoAggregation&&l!==void 0){let g=`${r}_${l}_0`.toUpperCase();d.y=g,d.query.outStatistics=[{statisticType:r,onStatisticField:l,outStatisticFieldName:g}]}if(I(a.series[0])&&I(d)){let g;if(a?.series?.[0]!==void 0&&(g=U(a.series)),g!==L.BarAndLineNoAggregation&&g!==L.BarAndLineSplitByNoAggregation){let S=mi(a);S===Y.Quarter&&(S=Y.Month),d.temporalBinning={...a.series[0]?.temporalBinning,unit:S}}}return ie(d)}function G(i,e,s){let{layerFieldsInfo:r}=e,{idField:a,isTraditionalTypeOID:t}=E(e.layer),n=$(i),l=Se(i),o=ri(i),u=Z(i),F=t&&(l.length===0||l.includes(a)),y=Ne(o,s),p=F?"":l.map(c=>O(r??[],c)).join(", "),f=O(r??[],n),d=O(r??[],u),g=i.series.some(c=>k(c)),S=g?"category":"xAxisField",h=f,x="";if(pe({fieldName:n,numericFields:l,fieldList:r}))x=R(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:y,aggregationFields:p});else if(o===C.NoAggregation){let c=F?a:p;if(u===""){let q=g?"aggrTypeCategory":"aggrTypeXAxisField";x=R(s.titleLabels[q],{aggregationType:c,[S]:h})}else{let q=g?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=R(s.titleLabels[q],{aggregationType:c,[S]:h,splitByField:d})}}else if(o===C.Count)if(u===""){let c=g?"aggrTypeCategory":"aggrTypeXAxisField";x=R(s.titleLabels[c],{aggregationType:y,[S]:h})}else{let c=g?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=R(s.titleLabels[c],{aggregationType:y,[S]:h,splitByField:d})}else if(u!==""){let c=g?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";x=R(s.titleLabels[c],{aggregationType:y,aggregationField:p,[S]:h,splitByField:d})}else if(l.length>0){let c=g?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";x=R(s.titleLabels[c],{aggregationType:y,aggregationFields:p,[S]:h})}return x}var ai=i=>le({where:i.query?.where,normalize:!1,escape:!1})??"",ri=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??C.NoAggregation,Z=xe(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return Ye(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),Se=i=>{let e=[];if(Z(i)==="")e=i?.series.map(s=>{let r=s.query?.outStatistics?.map(a=>a.onStatisticField)??[];return r?.length>0?r:s.y}).flat()??[];else{let s=i?.series?.[0],r=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=r!==void 0?[r]:[]}return[...new Set(e.filter(s=>s!==""))]};function bi(i){let{numericFields:e,aggregationType:s,config:r,layerInfo:a}=i,t=!1;s===C.Count?t=!0:s===C.NoAggregation&&(t=e.every(o=>{let u=a.layerFieldsInfo.find(F=>F.name===o);return u!==void 0?re(u):!1})),de(r,1,t);let n=r.series.some(o=>b(o)),l=r.series.some(o=>B(o));if(n||l){let o=$(r),u=a.layerFieldsInfo.find(y=>y.name===o),F=u!==void 0&&re(u);de(r,0,F)}}var fe=i=>{let e;if(Q(i)){let s=i.orderOptions?.data?.orderByX??[""],r=i.orderOptions?.data?.orderByY??[""],a=i.axes?.[0]?.valueFormat?.type==="category"?v.Category:v.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?v.Category:v.YValue;e=[me(s,a),me(r,t)]}else{let s=i.orderOptions?.data?.orderType??v.Category,r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:he.Ascending;e=[ii(r,s)]}return e};function Bi(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,o=!1,u=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:0,commonStrings:n}),F=J({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,fieldList:l}).name,y={...u,id:`series_${Date.now()}`,name:n.axisLabels.values,x:D,y:F},p=[];for(let d of s)p.push({onStatisticField:d,outStatisticFieldName:`${d}_0`.toUpperCase(),statisticType:r});y.query={outStatistics:p};let f=a.series[0];return f!==void 0&&(y.id=f.id,(b(y)&&b(f)||B(y)&&B(f))&&W(y,f),a.colorMatch||(k(f)&&k(y)?y.fillSymbol=f.fillSymbol:(b(y)&&b(f)||B(y)&&B(f))&&(y.lineSymbol=f.lineSymbol,y.markerSymbol=f.markerSymbol),o=!0),y.id=f.id,f.name!==u.name&&(y.name=f.name)),a.series.length===1&&((b(y)||B(y))&&W(y,a.series[0]),a.colorMatch||(k(y)?y.fillSymbol=a.series[0].fillSymbol:(b(y)||B(y))&&(y.lineSymbol=a.series[0].lineSymbol,y.markerSymbol=a.series[0].markerSymbol),o=!0)),a.colorMatch=!o,[y]}function ni(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:n}=i,{layerFieldsInfo:l}=t,o=E(t.layer).idField,u=[],F=!1;for(let g=0;g<s.length;g+=1){let S=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:g,commonStrings:n}),h=J({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,numericFieldIndex:g,fieldList:l}).name,x=s[g],c={...S,query:{...S.query}};s&&x!==o&&(c={...c,id:x,name:O(l,x)});let q=x;c.query!==void 0&&(r!==C.NoAggregation?(q=h,c.query.outStatistics=[{...S.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:h,statisticType:r}]):delete c.query.outStatistics),c.y=q;let m=a.series.find(w=>w.query?.outStatistics?.[0]?.onStatisticField===x&&w.query.where===void 0||w.query?.outStatistics===void 0&&(w.y===x||w.x===x));if(m!==void 0&&typeof m.y=="string"&&m.y.trim()!==""){(b(c)&&b(m)||B(c)&&B(m))&&W(c,m),a.colorMatch||(k(c)&&k(m)?c.fillSymbol=m.fillSymbol:(b(c)&&b(m)||B(c)&&B(m))&&(c.lineSymbol=m.lineSymbol,c.markerSymbol=m.markerSymbol),F=!0);let w=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:g,commonStrings:n});c.id=m.id,m.id!==w.id&&m.name!==w.name&&(c.id=m.id,c.name=m.name),c.type===N.HeatSeries&&m.type===N.HeatSeries&&(c.y=m.y,c.heatRulesType=m.heatRulesType)}u.push(c)}let y=u.filter(g=>k(g)),p=u.filter(g=>b(g)||B(g)),f=a.series.filter(g=>k(g)),d=a.series.filter(g=>b(g)||B(g));return f.length===1&&y.length===1&&!a.colorMatch&&(k(f[0])&&k(y[0])&&(y[0].fillSymbol=f[0].fillSymbol),F=!0),d.length===1&&p.length===1&&((b(d[0])&&b(p[0])||B(d[0])&&B(p[0]))&&W(p[0],d[0]),a.colorMatch||((b(d[0])&&b(p[0])||B(d[0])&&B(p[0]))&&(p[0].lineSymbol=d[0].lineSymbol,p[0].markerSymbol=d[0].markerSymbol),F=!0)),a.colorMatch=!F,u}async function hi(i){let{splitByField:e,xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:n,commonStrings:l}=i,{layer:o,layerFieldsInfo:u}=n,{fetchNullValues:F}=t?.series?.[0]?.query??{},y=s!==D?s:void 0,{categoriesArray:p,splitByFieldType:f,numericalField:d}=await Ke({config:t,layer:o,layerFieldsInfo:u,xAxisField:y,aggregationFields:r,splitByField:e,fetchNullValues:F}),g=[],S=!1;if(p.length===0){g=ni({xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:n,commonStrings:l});for(let h of g)h.query&&(h.query.where=`${e}=''`)}else for(let h=0;h<p.length;h+=1){let x=p[h],c=J({config:t,xAxisField:s,numericFields:r,aggregationType:a,layer:n.layer,seriesIndex:h,splitByField:e,fieldList:u}).name,q=_({config:t,xAxisField:s,aggregationType:a,layerInfo:n,seriesIndex:h,commonStrings:l}),m={fieldName:e,fieldValueToMatch:x??"",subtypeInfo:ne(n.layer),fieldList:n.layerFieldsInfo},w=oe(m),K=`${x}`,T={...q,id:K,name:w??K,y:c,query:{...q.query,where:`${e}=${f===se.String&&x!==null?`'${x}'`:x}`,outStatistics:a!==C.NoAggregation?[{...q.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:c,statisticType:a}]:void 0}};a===C.NoAggregation&&(T.query!==void 0&&(delete T.query.outStatistics,delete T.query.groupByFieldsForStatistics),T.y=d);let M=t.series.find(ee=>String(ai(ee)).trim().replace(/'/gu,"")===K);M!==void 0&&((b(T)&&b(M)||B(T)&&B(M))&&W(T,M),t.colorMatch||(k(T)&&k(M)?T.fillSymbol=M.fillSymbol:(b(T)&&b(M)||B(T)&&B(M))&&(T.lineSymbol=M.lineSymbol,T.markerSymbol=M.markerSymbol),S=!0),T.id=M.id,T.name=M.name),T.query&&(T.query.fetchNullValues=t.series.some(ee=>ee.query?.fetchNullValues)),g.push(T)}return t.colorMatch=!S,g}var Hs=async i=>{let{xAxisField:e,splitByField:s,numericFields:r,aggregationType:a,config:t,layerInfo:n,commonStrings:l}=i,{layerFieldsInfo:o}=n??{},u=ti(t),F=$(t),y=Fe(t,n,l),p=Ti(t,n,l),f=Ci(t,n),d=ue(t),g=t.series.some(m=>k(m)),S=Je(t.series),h=He(t.series),x=Q(t),c={};x&&(c.classBreaksRules=t.series[0]?.classBreaksRules,c.xTemporalBinning=t.series[0]?.xTemporalBinning,c.yTemporalBinning=t.series[0]?.yTemporalBinning,c.emptyCells=t.series[0]?.emptyCells,c.nullPolicy=t.nullPolicy);let q=!1;if(o!==void 0){let m=Xe(o);!m.includes(F)&&m.includes(e)?(d=qe(),q=!0):m.includes(F)&&!m.includes(e)&&(g?d=te():d=ke(),q=!0),o.find(w=>w.name===e)?.type===se.String&&(d=te()),d!==void 0&&Ge(t,l,d)}if(u===0&&(t.series=[_({config:t,xAxisField:e,aggregationType:a,layerInfo:n,commonStrings:l})]),t.series.forEach(m=>{m.x=e,m.query!==void 0&&(m.query.groupByFieldsForStatistics=[e])}),s===""||r.length>1?pe({fieldName:e,numericFields:r,fieldList:o})?t.series=Bi({config:t,layerInfo:n,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):t.series=ni({config:t,layerInfo:n,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):(await Promise.resolve(),t.series=await hi({config:t,layerInfo:n,splitByField:s,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l})),f){let m=O(o,e);V(t,0,m)}if(p){let m=ge({config:t,layerInfo:n,commonStrings:l,numericFields:r,aggregationType:a});V(t,1,m)}if(t.title&&y&&(t.title.content.text=G(t,n,l)),A({config:t,value:null,axisIndex:1,isMax:!1}),A({config:t,value:null,axisIndex:1,isMax:!0}),bi({numericFields:r,aggregationType:a,config:t,layerInfo:n}),(S||h)&&(A({config:t,value:null,axisIndex:0,isMax:!1}),A({config:t,value:null,axisIndex:0,isMax:!0}),q)){let m=d?.type===N.DateAxisFormat?j.Null:j.Interpolate;fi(m,t)}x&&(t.series[0].classBreaksRules=c.classBreaksRules,t.series[0].xTemporalBinning=c.xTemporalBinning,t.series[0].yTemporalBinning=c.yTemporalBinning,t.series[0].emptyCells=c.emptyCells,t.nullPolicy=c.nullPolicy)},W=(i,e)=>{i.markerVisible=e.markerVisible,i.lineSmoothed=e.lineSmoothed,i.showArea=e.showArea,i.areaColor=e.areaColor,i.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(i.lineSymbol={...e.lineSymbol,color:i.lineSymbol?.color}),e.markerSymbol&&(i.markerSymbol={...e.markerSymbol,color:i.markerSymbol?.color})},Zs=i=>{let{config:e,seriesIndex:s,layerInfo:r,commonStrings:a}=i,t=e.series?.[s],n=Z(e),l;if(U(e.series)===L.BarAndLineFromFields)l=a.axisLabels.values;else if(be(n)){let o=t.query?.outStatistics?.[0]?.onStatisticField;o!==void 0&&o!==E(r.layer).idField&&(l=O(r.layerFieldsInfo,o))}else{let o=String(ai(t)).trim().replace(/'/gu,""),u={fieldName:Z(e),fieldValueToMatch:o??"",subtypeInfo:ne(r.layer),fieldList:r.layerFieldsInfo};l=oe(u)??o}return l??t.id},Gs=(i,e)=>{if(Q(e))Fi(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;fe(e)[0]===z.customSort&&s===v.Category&&(e.orderOptions.data={orderType:v.Category,orderBy:[...i]})}},Ks=async(i,e)=>{let s=$(i),r=ue(i)?.type,a=Se(i),t=U(i.series),n=[];return r===N.CategoryAxisFormat&&(t===L.BarAndLineFromFields||s===D?n=a.map(l=>O(e?.layerFieldsInfo,l)):s.trim()!==""&&s!==D&&e!==void 0&&(n=await ei({layerInfo:e,config:i,category:s}))),n};function Fe(i,e,s){let r=G(i,e,s),a=si(i),t=X(i);return r===a||t}function Ti(i,e,s){let r=ge({config:i,layerInfo:e,commonStrings:s,numericFields:Se(i),aggregationType:ri(i)}),a=H(1,i),t=X(i);return r===a||t}function Ci(i,e){let s=O(e.layerFieldsInfo,$(i)),r=H(0,i),a=X(i);return s===r||a}function et(i){return I(i.series[0])?i.series[0].binTemporalData??!0:!1}function it(i,e){e?.series.forEach(s=>{(s?.type===N.BarSeries||s?.type===N.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:Y.Day,size:0,timeAggregationType:Te.Start,trimIncompleteTimeInterval:!0,nullPolicy:j.Null}:delete s.temporalBinning)})}return{a:Ki,b:es,c:is,d:oi,e:ss,f:ts,g:as,h:mi,i:rs,j:ns,k:os,l:pi,m:fi,n:ls,o:cs,p:ys,q:gs,r:us,s:ds,t:ms,u:ps,v:fs,w:Ss,x:Fs,y:Si,z:xs,A:bs,B:Bs,C:hs,D:Ts,E:Cs,F:vs,G:Is,H:As,I:qs,J:ks,K:ws,L:Ms,M:Ls,N:Os,O:xi,P:Ns,Q:Rs,R:Vs,S:$s,T:js,U:Ds,V:Ps,W:Es,X:Us,Y:Xs,Z:_s,_:Ws,$:Ys,aa:Qs,ba:zs,ca:Js,da:G,ea:ri,fa:Z,ga:Se,ha:fe,ia:Hs,ja:Zs,ka:Gs,la:Ks,ma:et,na:it}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as b}from"./TKUAPKCR.js";import{a as P}from"./FEJD2JHY.js";import e from"./ZBPBL6AN.js";import"./DPJE33GY.js";import{a as M}from"./6KBLMTZM.js";import c from"./2T73COTN.js";import"./UG7LOBJE.js";import a from"./RXVBUZAA.js";import{B as G,c as x,i as f,m as _}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import{f as h}from"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as s,B as g,D as C,F as N,g as E,h as d,x as m,y as p,z as T}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{D:S,Ma:I},,{a:y,g:u,r:z}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},k=E`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container{display:flex}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.slice-list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends T{constructor(){super(...arguments),this._messages=M(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=f(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadiusSize=this.donutSizeSliderElement.value.value??I)},y.SliderTimer),this.onGroupingThresholdSliderChange=f(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},y.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let l=e.detail?.name,i=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;i!=null&&i>=0?this.model.setSliceName(l,i):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:l})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:l}=e.detail,i=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;i!=null&&i>=0?(this.model.colorMatch=!1,this.model.setSliceColor(l,i)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:G.SFS,color:l}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:l}=e.detail;l===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=k}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,l){l?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!_(this.selectedSliceId)){let e=this.model.slices,l=this.model.sliceGrouping,i,t;if(this.selectedSliceId===l?.sliceId)i=l?.label,t=l?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);i=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=C(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${i} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",l="minus-square",i=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){l="square-f";let[c,v,$,w]=[...o.fillSymbol.color];e=`rgba(${c},${v},${$},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===S.emptySliceId?c=this._messages.emptySlice??"":c===S.nullSliceId&&(c=this._messages.nullSlice??""),i?.push(b(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){l="square-f";let[o,c,v,$]=[...n.fillSymbol.color];e=`rgba(${o},${c},${v},${$/255})`}return this.model.groupedSliceIds.length>0&&i?.push(b(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`)),i}buildGroupedSlicesListItem(){let e="#CCCCCC",l="minus-square",i=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){l="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&i?.push(b(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`))}),i}buildSliceList(){return d`<calcite-list label class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list label class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onGroupingThresholdChange(e){let l=e.target.value,i=Number.parseInt(l);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))}onLabelCharacterLimitChange(e){let l=e.target.value,i=Number.parseInt(l);i<1&&(i=1),Number.isNaN(i)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=i.toString()),this.model.labelCharacterLimit=i)}onDecimalPlacesChange(e){let l=e.target.value,i=Number.parseInt(l);i<0?i=0:i>20&&(i=20),Number.isNaN(i)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=i.toString()),this.model.decimalPlaces=i)}onDisplayTypeChange(e){let l=e.target.selectedItem;this.model.displayType=l.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:l,oldIndex:i}=e.detail;this.model.moveSeries(i,l)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let l=e.target,i=l.localName==="calcite-list-item"?l:l.parentNode;i.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=i.value,this.open=!0}createTooltip(e){let l=e.target;this.tooltip=C(d`<calcite-tooltip style=${g({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${l} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){z(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadiusSize??I} @calciteSliderChange=${this.onDonutSizeSliderChange} ${p(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=50 step=1 snap .value=${x(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${p(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${p(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${p(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${p(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,c,e)
2
+ import{a as b}from"./TKUAPKCR.js";import{a as P}from"./FEJD2JHY.js";import e from"./O55FJWPJ.js";import"./DPJE33GY.js";import{a as M}from"./6KBLMTZM.js";import c from"./CX6YXW2F.js";import"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import{B as G,c as x,i as f,m as _}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import{f as h}from"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as s,B as g,D as C,F as N,g as E,h as d,x as m,y as p,z as T}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{D:S,Ma:I},,{a:y,g:u,r:z}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},k=E`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container{display:flex}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.slice-list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends T{constructor(){super(...arguments),this._messages=M(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=f(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadiusSize=this.donutSizeSliderElement.value.value??I)},y.SliderTimer),this.onGroupingThresholdSliderChange=f(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},y.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let l=e.detail?.name,i=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;i!=null&&i>=0?this.model.setSliceName(l,i):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:l})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:l}=e.detail,i=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;i!=null&&i>=0?(this.model.colorMatch=!1,this.model.setSliceColor(l,i)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:G.SFS,color:l}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:l}=e.detail;l===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=k}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,l){l?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!_(this.selectedSliceId)){let e=this.model.slices,l=this.model.sliceGrouping,i,t;if(this.selectedSliceId===l?.sliceId)i=l?.label,t=l?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);i=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=C(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${i} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",l="minus-square",i=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){l="square-f";let[c,v,$,w]=[...o.fillSymbol.color];e=`rgba(${c},${v},${$},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===S.emptySliceId?c=this._messages.emptySlice??"":c===S.nullSliceId&&(c=this._messages.nullSlice??""),i?.push(b(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){l="square-f";let[o,c,v,$]=[...n.fillSymbol.color];e=`rgba(${o},${c},${v},${$/255})`}return this.model.groupedSliceIds.length>0&&i?.push(b(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`)),i}buildGroupedSlicesListItem(){let e="#CCCCCC",l="minus-square",i=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){l="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&i?.push(b(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${g({color:e})}></calcite-icon></calcite-list-item>`))}),i}buildSliceList(){return d`<calcite-list label class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list label class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onGroupingThresholdChange(e){let l=e.target.value,i=Number.parseInt(l);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))}onLabelCharacterLimitChange(e){let l=e.target.value,i=Number.parseInt(l);i<1&&(i=1),Number.isNaN(i)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=i.toString()),this.model.labelCharacterLimit=i)}onDecimalPlacesChange(e){let l=e.target.value,i=Number.parseInt(l);i<0?i=0:i>20&&(i=20),Number.isNaN(i)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=i.toString()),this.model.decimalPlaces=i)}onDisplayTypeChange(e){let l=e.target.selectedItem;this.model.displayType=l.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:l,oldIndex:i}=e.detail;this.model.moveSeries(i,l)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let l=e.target,i=l.localName==="calcite-list-item"?l:l.parentNode;i.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=i.value,this.open=!0}createTooltip(e){let l=e.target;this.tooltip=C(d`<calcite-tooltip style=${g({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${l} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){z(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadiusSize??I} @calciteSliderChange=${this.onDonutSizeSliderChange} ${p(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=50 step=1 snap .value=${x(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${p(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${p(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${p(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${p(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import c from"./CVZIKUBH.js";import b from"./UANNLY4I.js";import{i as o,j as t}from"./UG7LOBJE.js";import a from"./RXVBUZAA.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ea:m},{b:p,c:k},{a:b,b:d,c:f,d:g}])=>{var H=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return b(e.series[s])},J=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&d(s,i.series[e])},K=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return f(e.series[s])},M=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&g(s,i.series[e])},Q=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerSymbol?.color:void 0,R=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.color=s}},U=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,X=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.style=s}},Y=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,Z=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.size=s}},ee=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,se=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].lineSmoothed=e)},ie=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].showArea??!1:!1,re=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].showArea=e)},oe=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerVisible??!0:!1,te=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].markerVisible=e)},ae=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].areaColor:void 0,me=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.connectLines:void 0,ne=s=>{let{connect:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].connectLines=e)},v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,S=(s,e,i,r)=>{for(var a=y(e,i),n=s.length-1,l;n>=0;n--)(l=s[n])&&(a=l(e,i,a)||a);return a&&v(e,i,a),a},u=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends p{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};S([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:H,b:J,c:K,d:M,e:Q,f:R,g:U,h:X,i:Y,j:Z,k:ee,l:se,m:ie,n:re,o:oe,p:te,q:ae,r:me,s:ne,t:c}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c)
2
+ import c from"./QIFILMN7.js";import b from"./F4ST6I7S.js";import{i as o,j as t}from"./UG7LOBJE.js";import a from"./DFUOH6OY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ea:m},{b:p,c:k},{a:b,b:d,c:f,d:g}])=>{var H=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return b(e.series[s])},J=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&d(s,i.series[e])},K=(s,e)=>{if(o(e.series[s])||t(e.series[s]))return f(e.series[s])},M=(s,e,i)=>{(o(i.series[e])||t(i.series[e]))&&g(s,i.series[e])},Q=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerSymbol?.color:void 0,R=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.color=s}},U=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,X=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.style=s}},Y=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,Z=(s,e,i)=>{if(o(i.series[e])||t(i.series[e])){let r=i.series[e];r.markerSymbol===void 0&&(r.markerSymbol=m()),r.markerSymbol.size=s}},ee=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,se=s=>{let{smoothed:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].lineSmoothed=e)},ie=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].showArea??!1:!1,re=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].showArea=e)},oe=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].markerVisible??!0:!1,te=s=>{let{visible:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].markerVisible=e)},ae=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].areaColor:void 0,me=(s,e)=>o(e.series[s])||t(e.series[s])?e.series?.[s]?.connectLines:void 0,ne=s=>{let{connect:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].connectLines=e)},v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,S=(s,e,i,r)=>{for(var a=y(e,i),n=s.length-1,l;n>=0;n--)(l=s[n])&&(a=l(e,i,a)||a);return a&&v(e,i,a),a},u=(s,e)=>o(e.series[s])||t(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,h=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:r}=s;(o(r.series[i])||t(r.series[i]))&&(r.series[i].stackNegativeValuesToBaseline=e)},c=class extends p{isNegativeValuesStackedToBaseline(e){return u(e,this._config)}setNegativeValuesStackedToBaseline(e,i){h({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};S([k],c.prototype,"setNegativeValuesStackedToBaseline");return{a:H,b:J,c:K,d:M,e:Q,f:R,g:U,h:X,i:Y,j:Z,k:ee,l:se,m:ie,n:re,o:oe,p:te,q:ae,r:me,s:ne,t:c}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import a from"./2T73COTN.js";import{a as e,y as o}from"./NKG4FLLR.js";export default $arcgis.t(([{s:n}])=>{function g(s){let c=o(s.series),a="graph-bar";switch(c){case e.LineSeries:{a="graph-time-series";break}case e.PieSeries:{a="pie-chart";break}case e.HistogramSeries:{a="graph-histogram";break}case e.ScatterSeries:{a="graph-scatter-plot";break}case e.BoxPlotSeries:{a="box-chart";break}case e.HeatSeries:{a="calendar-heat-chart";break}case e.BarSeries:}return a}function b(s){let{chartType:c,commonStrings:a,config:i}=s,r=a.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=r.chartType.histogram;break}case e.ScatterSeries:{t=r.chartType.scatterplot;break}case e.BarSeries:{t=r.chartType.barChart;break}case e.LineSeries:{t=r.chartType.lineChart;break}case e.PieSeries:{t=r.chartType.pieChart;break}case e.BoxPlotSeries:{t=r.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?r.chartType.matrixHeatChart:r.chartType.calendarHeatChart:t=r.chartType.heatChart;break}}return t}return{a:g,b:b}},a)
2
+ import a from"./CX6YXW2F.js";import{a as e,y as o}from"./NKG4FLLR.js";export default $arcgis.t(([{s:n}])=>{function g(s){let c=o(s.series),a="graph-bar";switch(c){case e.LineSeries:{a="graph-time-series";break}case e.PieSeries:{a="pie-chart";break}case e.HistogramSeries:{a="graph-histogram";break}case e.ScatterSeries:{a="graph-scatter-plot";break}case e.BoxPlotSeries:{a="box-chart";break}case e.HeatSeries:{a="calendar-heat-chart";break}case e.BarSeries:}return a}function b(s){let{chartType:c,commonStrings:a,config:i}=s,r=a.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=r.chartType.histogram;break}case e.ScatterSeries:{t=r.chartType.scatterplot;break}case e.BarSeries:{t=r.chartType.barChart;break}case e.LineSeries:{t=r.chartType.lineChart;break}case e.PieSeries:{t=r.chartType.pieChart;break}case e.BoxPlotSeries:{t=r.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?r.chartType.matrixHeatChart:r.chartType.calendarHeatChart:t=r.chartType.heatChart;break}}return t}return{a:g,b:b}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import c from"./TMUYWWFE.js";import b from"./UANNLY4I.js";import a from"./2T73COTN.js";import{j as s}from"./KUVOINJC.js";export default $arcgis.t(([{q:f},{c:a},{c:g,d:c,e:d}])=>{var u=Object.defineProperty,x=Object.getOwnPropertyDescriptor,m=(r,e,o,G)=>{for(var t=x(e,o),n=r.length-1,p;n>=0;n--)(p=r[n])&&(t=p(e,o,t)||t);return t&&u(e,o,t),t},i=class extends d{getXGuidesLength(){return this._config.axes?.[0]?.guides?.length}addXAxisGuide(e,o){g({config:this._config,name:e,index:o,orientation:s.X})}deleteXAxisGuide(e){c({config:this._config,index:e,orientation:s.X})}};m([a],i.prototype,"addXAxisGuide");m([a],i.prototype,"deleteXAxisGuide");var h=[d];f(i,h);return i},a,b,c)
2
+ import c from"./NIVBY4H2.js";import b from"./F4ST6I7S.js";import a from"./CX6YXW2F.js";import{j as s}from"./KUVOINJC.js";export default $arcgis.t(([{q:f},{c:a},{c:g,d:c,e:d}])=>{var u=Object.defineProperty,x=Object.getOwnPropertyDescriptor,m=(r,e,o,G)=>{for(var t=x(e,o),n=r.length-1,p;n>=0;n--)(p=r[n])&&(t=p(e,o,t)||t);return t&&u(e,o,t),t},i=class extends d{getXGuidesLength(){return this._config.axes?.[0]?.guides?.length}addXAxisGuide(e,o){g({config:this._config,name:e,index:o,orientation:s.X})}deleteXAxisGuide(e){c({config:this._config,index:e,orientation:s.X})}};m([a],i.prototype,"addXAxisGuide");m([a],i.prototype,"deleteXAxisGuide");var h=[d];f(i,h);return i},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import u from"./N6PBB2GC.js";import t from"./UNXTOOKB.js";import s from"./KFXPXC7Y.js";import r from"./ADVZRDVX.js";import q from"./CVZIKUBH.js";import p from"./YVKRZ4BQ.js";import o from"./5Z74HMAF.js";import n from"./ZEOKGV6H.js";import m from"./IS4HRAIE.js";import l from"./FHYGSASV.js";import k from"./EDGM5DH5.js";import j from"./TMUYWWFE.js";import i from"./NLRRRHRW.js";import h from"./GQA3ZESB.js";import g from"./7SKLAZGY.js";import e from"./ESLUOO7N.js";import d from"./A3V3MLTK.js";import c from"./UANNLY4I.js";import b from"./2T73COTN.js";import"./UG7LOBJE.js";import a from"./RXVBUZAA.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as f}from"./NKG4FLLR.js";import"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Nc:o,P:c,na:n,z:S,za:d},{q:y},{c:p},,,,,,,,,,,,,,{ja:l},{b:k,c:F,d:L},{b:g,d:u,f:b,h:I,j:v,t:_},w])=>{var D=Object.defineProperty,M=Object.getOwnPropertyDescriptor,x=(m,i,r,t)=>{for(var e=M(i,r),s=m.length-1,h;s>=0;s--)(h=m[s])&&(e=h(i,r,e)||e);return e&&D(i,r,e),e},a=class extends L{constructor(){super(...arguments),this._chartType=f.RadarSeries}async setup(i){await this.loadConfigFromLayer(i),this.setupLocalProps(),i.config!==void 0&&await this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let i=d(this.commonStrings);return i.series=[n({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],i}initDefaultSeries(){this.defaultSeries=n({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let i=0;i<this.seriesLength;i+=1){let r=c({colorIndex:i,opacity:S});if(F(r,i,this._config),b(r,i,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(i),e=l({config:this._config,seriesIndex:i,layerInfo:this.layerInfo,commonStrings:this.commonStrings});e!==o(this.layerInfo.layer).idField&&k(e??t,i,this._config)}g(this.defaultSeries?.lineSymbol?.style,i,this._config),u(this.defaultSeries?.lineSymbol?.width,i,this._config),I(this.defaultSeries?.markerSymbol?.style,i,this._config),v(this.defaultSeries?.markerSymbol?.size,i,this._config)}this._config.colorMatch=!0}resetAvailable(){let i=!this.colorMatch,r=!1;if(!i)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let e=l({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),s=this.getSeriesName(t);e!==void 0&&e!==o(this.layerInfo.layer).idField&&e!==s&&(r=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){r=!0;break}}return i||r}};x([p],a.prototype,"resetSeriesStyling");var j=[_,w];y(a,j);return a},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)
2
+ import u from"./TF2VUUKN.js";import t from"./5UQEFHHY.js";import s from"./3GCHJWM3.js";import r from"./572MI4QO.js";import q from"./QIFILMN7.js";import p from"./6ZV22THY.js";import o from"./GBXY4IWD.js";import n from"./MPH6KJDN.js";import m from"./HCEBROGE.js";import l from"./2TYUDKS4.js";import k from"./6JEIATKR.js";import j from"./NIVBY4H2.js";import i from"./ZO46KCCI.js";import h from"./C6AYAL4Q.js";import g from"./VR7VFJJI.js";import e from"./XXY4TE72.js";import d from"./DLPWNTXP.js";import c from"./F4ST6I7S.js";import b from"./CX6YXW2F.js";import"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./IHRGRUHQ.js";import"./KUVOINJC.js";import{a as f}from"./NKG4FLLR.js";import"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Nc:o,P:c,na:n,z:S,za:d},{q:y},{c:p},,,,,,,,,,,,,,{ja:l},{b:k,c:F,d:L},{b:g,d:u,f:b,h:I,j:v,t:_},w])=>{var D=Object.defineProperty,M=Object.getOwnPropertyDescriptor,x=(m,i,r,t)=>{for(var e=M(i,r),s=m.length-1,h;s>=0;s--)(h=m[s])&&(e=h(i,r,e)||e);return e&&D(i,r,e),e},a=class extends L{constructor(){super(...arguments),this._chartType=f.RadarSeries}async setup(i){await this.loadConfigFromLayer(i),this.setupLocalProps(),i.config!==void 0&&await this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let i=d(this.commonStrings);return i.series=[n({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],i}initDefaultSeries(){this.defaultSeries=n({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let i=0;i<this.seriesLength;i+=1){let r=c({colorIndex:i,opacity:S});if(F(r,i,this._config),b(r,i,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(i),e=l({config:this._config,seriesIndex:i,layerInfo:this.layerInfo,commonStrings:this.commonStrings});e!==o(this.layerInfo.layer).idField&&k(e??t,i,this._config)}g(this.defaultSeries?.lineSymbol?.style,i,this._config),u(this.defaultSeries?.lineSymbol?.width,i,this._config),I(this.defaultSeries?.markerSymbol?.style,i,this._config),v(this.defaultSeries?.markerSymbol?.size,i,this._config)}this._config.colorMatch=!0}resetAvailable(){let i=!this.colorMatch,r=!1;if(!i)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let e=l({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),s=this.getSeriesName(t);e!==void 0&&e!==o(this.layerInfo.layer).idField&&e!==s&&(r=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){r=!0;break}}return i||r}};x([p],a.prototype,"resetSeriesStyling");var j=[_,w];y(a,j);return a},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{d as i}from"./DPJE33GY.js";import{c as g,g as p}from"./UG7LOBJE.js";import a from"./RXVBUZAA.js";import{n as o}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{F as c,g as n,h as t,z as h}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Kc:m,Mc:d}])=>{var f=n`: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%}`,r=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async a=>{let e=a?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)}}static{this.properties={layerFieldsInfo:16,model:0,chartData:0,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=f}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(a){let e=!1;a.has("model")&&this.modelChange(this.model,a.get("model")),a.has("layer")&&this.layer!==void 0&&!o(a.get("layer"),this.layer)&&(e=!0),a.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==a.get("usePopupTemplateFieldsInfo")&&(e=!0),a.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(a,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),a?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(a){this.model.colorMatch&&a?.forEach(e=>{g(e)&&a?.get(0)!==void 0&&!o(this.model.binSymbol,e)&&(this.model.binSymbol=e)})}async updateFetchLayerFieldsInfo(a){let e=a??this.model.config,s=this.layer;if(!s){let l=p(e)?e.iLayer:void 0;l&&(s=await m(l))}s&&(this.layerFieldsInfo=await d(s,this.usePopupTemplateFieldsInfo))}render(){let a;switch(this.page){case i.Data:a=t`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;break;case i.Axes:a=t`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:a=t`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:a=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:a=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:a="";break}return a}};c("arcgis-charts-config-histogram",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a)
2
+ import{d as i}from"./DPJE33GY.js";import{c as g,g as p}from"./UG7LOBJE.js";import a from"./DFUOH6OY.js";import{n as o}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{F as c,g as n,h as t,z as h}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Kc:m,Mc:d}])=>{var f=n`: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%}`,r=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async a=>{let e=a?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)}}static{this.properties={layerFieldsInfo:16,model:0,chartData:0,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=f}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(a){let e=!1;a.has("model")&&this.modelChange(this.model,a.get("model")),a.has("layer")&&this.layer!==void 0&&!o(a.get("layer"),this.layer)&&(e=!0),a.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==a.get("usePopupTemplateFieldsInfo")&&(e=!0),a.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(a,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),a?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(a){this.model.colorMatch&&a?.forEach(e=>{g(e)&&a?.get(0)!==void 0&&!o(this.model.binSymbol,e)&&(this.model.binSymbol=e)})}async updateFetchLayerFieldsInfo(a){let e=a??this.model.config,s=this.layer;if(!s){let l=p(e)?e.iLayer:void 0;l&&(s=await m(l))}s&&(this.layerFieldsInfo=await d(s,this.usePopupTemplateFieldsInfo))}render(){let a;switch(this.page){case i.Data:a=t`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;break;case i.Axes:a=t`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:a=t`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:a=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:a=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:a="";break}return a}};c("arcgis-charts-config-histogram",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import b from"./UANNLY4I.js";import a from"./RXVBUZAA.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Bb:a},{b:n,c:s}])=>{var c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(t,r,i,h)=>{for(var o=d(r,i),p=t.length-1,e;p>=0;p--)(e=t[p])&&(o=e(r,i,o)||o);return o&&c(r,i,o),o};function A(t){return t!==void 0&&"rotatedState"in t}var g=t=>a(t),S=(t,r)=>{r.rotated=t},m=class extends n{get rotatedState(){return g(this._config)}set rotatedState(r){S(r,this._config)}};f([s],m.prototype,"rotatedState");return{a:A,b:m}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b)
2
+ import b from"./F4ST6I7S.js";import a from"./DFUOH6OY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Bb:a},{b:n,c:s}])=>{var c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(t,r,i,h)=>{for(var o=d(r,i),p=t.length-1,e;p>=0;p--)(e=t[p])&&(o=e(r,i,o)||o);return o&&c(r,i,o),o};function A(t){return t!==void 0&&"rotatedState"in t}var g=t=>a(t),S=(t,r)=>{r.rotated=t},m=class extends n{get rotatedState(){return g(this._config)}set rotatedState(r){S(r,this._config)}};f([s],m.prototype,"rotatedState");return{a:A,b:m}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as d}from"./FEJD2JHY.js";import{a as p}from"./6KBLMTZM.js";import b from"./RXVBUZAA.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{F as a,h as e,m as i,x as s,y as o,z as r}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([])=>{var t=class extends r{constructor(){super(...arguments),this._messages=p(),this.popoverElement=s(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){d(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};a("arcgis-charts-config-guides-type-popover",t);return t},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)
2
+ import{b as d}from"./FEJD2JHY.js";import{a as p}from"./6KBLMTZM.js";import b from"./DFUOH6OY.js";import"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./NKG4FLLR.js";import{F as a,h as e,m as i,x as s,y as o,z as r}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([])=>{var t=class extends r{constructor(){super(...arguments),this._messages=p(),this.popoverElement=s(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){d(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};a("arcgis-charts-config-guides-type-popover",t);return t},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b)