@arcgis/charts-components 5.2.0-next.25 → 5.2.0-next.26

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 (87) hide show
  1. package/dist/cdn/{KCJKQ44K.js → 2A24ACPF.js} +1 -1
  2. package/dist/cdn/{5M57QONK.js → 2ASYBTGM.js} +1 -1
  3. package/dist/cdn/{L6NNUSXU.js → 2B3QBXNI.js} +1 -1
  4. package/dist/cdn/{RBAE74TA.js → 2KCA3K57.js} +1 -1
  5. package/dist/cdn/{5VQQA6MA.js → 3BS7VF2U.js} +1 -1
  6. package/dist/cdn/{MSN54T3T.js → 4AF64XYR.js} +1 -1
  7. package/dist/cdn/{FRSKVY2N.js → 4N3NVAA2.js} +1 -1
  8. package/dist/cdn/{YNHUPD3J.js → 4RJT43K4.js} +1 -1
  9. package/dist/cdn/{J72BLOD2.js → 4XIBUPM6.js} +1 -1
  10. package/dist/cdn/{DNSJAZKI.js → 4YRCWE6Z.js} +1 -1
  11. package/dist/cdn/{QUR7IUKK.js → 5JREGZML.js} +1 -1
  12. package/dist/cdn/{JGSF55NE.js → 5NVUOG5B.js} +1 -1
  13. package/dist/cdn/{U6MMH2LR.js → 5UX2FYTM.js} +1 -1
  14. package/dist/cdn/{6VDLIICW.js → 5W76WCRM.js} +1 -1
  15. package/dist/cdn/{MDMUNG7R.js → 662GFATG.js} +1 -1
  16. package/dist/cdn/{OQWDZSTM.js → 6ODWWOUP.js} +1 -1
  17. package/dist/cdn/{NUIBH3VT.js → 6Y6EK76O.js} +1 -1
  18. package/dist/cdn/{F2N6CMAL.js → 75XWLYW5.js} +1 -1
  19. package/dist/cdn/{GZU5HJCQ.js → 7LI5APDL.js} +1 -1
  20. package/dist/cdn/{EUGGSDEV.js → ADJHTT4M.js} +1 -1
  21. package/dist/cdn/{TLP2PMYA.js → ASEWMED3.js} +1 -1
  22. package/dist/cdn/{KXKOTDCQ.js → AYNWMLFD.js} +1 -1
  23. package/dist/cdn/{FP72YYAO.js → AZZIMLGE.js} +1 -1
  24. package/dist/cdn/{KOKJLIPK.js → BMC75GCV.js} +1 -1
  25. package/dist/cdn/{YMFG2IVU.js → BUUTWPEP.js} +1 -1
  26. package/dist/cdn/{LZMLIBIH.js → D46R6YHX.js} +1 -1
  27. package/dist/cdn/{QQSX47ZE.js → D6GG2ADV.js} +1 -1
  28. package/dist/cdn/{S6SBVFMN.js → DE2LP6LN.js} +1 -1
  29. package/dist/cdn/{XNJIGVQJ.js → DKMTGCWH.js} +1 -1
  30. package/dist/cdn/{NNP5LCX5.js → ECG7HC37.js} +1 -1
  31. package/dist/cdn/{CTXTTI3G.js → FFE3EGXQ.js} +1 -1
  32. package/dist/cdn/{NDBH7YLO.js → GSYV5MTU.js} +1 -1
  33. package/dist/cdn/{NUK4NPOT.js → GW6GNNLA.js} +1 -1
  34. package/dist/cdn/{IOAD36KI.js → GZLTMREM.js} +1 -1
  35. package/dist/cdn/{3RA3JNKB.js → HFSVUO2D.js} +2 -2
  36. package/dist/cdn/{O6CSF6KG.js → HK3P3FUS.js} +1 -1
  37. package/dist/cdn/{G7SXRDMI.js → HPEG72LB.js} +1 -1
  38. package/dist/cdn/{ZERRCOSM.js → ICJALFR4.js} +1 -1
  39. package/dist/cdn/{A3TAYUWE.js → IHJWEEOX.js} +1 -1
  40. package/dist/cdn/{7WMOXCPU.js → IK5VZ54O.js} +1 -1
  41. package/dist/cdn/{JF7YQCM6.js → IP3FZZNM.js} +1 -1
  42. package/dist/cdn/{G5TRNV2I.js → IPECBZP3.js} +1 -1
  43. package/dist/cdn/{RAUYMTSM.js → IUMYBJDG.js} +1 -1
  44. package/dist/cdn/{6UVZ3NXS.js → K7VEKFCK.js} +1 -1
  45. package/dist/cdn/{UYKZWTFH.js → KBUBJ24X.js} +1 -1
  46. package/dist/cdn/{W6CKM3J3.js → L6SM2ORZ.js} +1 -1
  47. package/dist/cdn/{APNALJWN.js → LSF6ITTC.js} +1 -1
  48. package/dist/cdn/{U7ZGT3IG.js → LSKFMUX4.js} +1 -1
  49. package/dist/cdn/{AQIUPTKW.js → MLD566HE.js} +4 -4
  50. package/dist/cdn/{KXGVMPQJ.js → MUG3AZLX.js} +1 -1
  51. package/dist/cdn/{WHBJYAT4.js → N3FUI2RC.js} +1 -1
  52. package/dist/cdn/{6RD22S75.js → N4EH5HUB.js} +1 -1
  53. package/dist/cdn/{WHLDUYAG.js → N4IFMTPA.js} +1 -1
  54. package/dist/cdn/{2V4LOGZL.js → N5AW3HBF.js} +1 -1
  55. package/dist/cdn/{T5NY73Y2.js → N6IOWWIK.js} +1 -1
  56. package/dist/cdn/{XST7FY7F.js → NJAGOS7G.js} +1 -1
  57. package/dist/cdn/{GOZIQ6A2.js → OO5SFCWJ.js} +1 -1
  58. package/dist/cdn/{3XMGXTZB.js → RSYMKZMX.js} +1 -1
  59. package/dist/cdn/{LHGLUPW5.js → SUTVT5OC.js} +1 -1
  60. package/dist/cdn/{NNP7U57T.js → TG4EXCPF.js} +1 -1
  61. package/dist/cdn/{OFP7FIPS.js → TNKGWBUO.js} +1 -1
  62. package/dist/cdn/{QSH4RLKM.js → TS6MWMCQ.js} +1 -1
  63. package/dist/cdn/{NOAJPX72.js → TSQOEJB4.js} +1 -1
  64. package/dist/cdn/{BFIXNPQC.js → UB4O3XGF.js} +1 -1
  65. package/dist/cdn/{XX6OXKZK.js → UFI4PRSB.js} +1 -1
  66. package/dist/cdn/{ZX4AZXEF.js → VD3DRJBH.js} +1 -1
  67. package/dist/cdn/{7LGIXLPP.js → VHY7DPE3.js} +1 -1
  68. package/dist/cdn/{MVNNQWQB.js → VWW6TY7N.js} +1 -1
  69. package/dist/cdn/{OLPU6MNA.js → WJLUWK7Z.js} +1 -1
  70. package/dist/cdn/{GQK23IL4.js → WXWLMWG5.js} +1 -1
  71. package/dist/cdn/{S4SG2V5X.js → WY3UGKLF.js} +1 -1
  72. package/dist/cdn/{UV5LIHCE.js → X4LAYI76.js} +1 -1
  73. package/dist/cdn/{GP5MHPDX.js → XKHA7K4P.js} +1 -1
  74. package/dist/cdn/{YPRIULPN.js → XKJN3WVL.js} +1 -1
  75. package/dist/cdn/{LVSNOD77.js → XWDLT2E4.js} +1 -1
  76. package/dist/cdn/{CU56A45C.js → Y5GMGU4M.js} +1 -1
  77. package/dist/cdn/{YPFJW7NS.js → Y7HYSSRW.js} +1 -1
  78. package/dist/cdn/{YL45GUSC.js → ZB5KGMQ6.js} +1 -1
  79. package/dist/cdn/{C3MXUPEW.js → ZPFHE4XY.js} +1 -1
  80. package/dist/cdn/index.js +1 -1
  81. package/dist/cdn/model/shared/setup-utils.js +1 -1
  82. package/dist/chunks/index2.js +373 -372
  83. package/dist/components/arcgis-chart/customElement.js +89 -89
  84. package/dist/docs/api.json +1 -1
  85. package/dist/docs/docs.json +1 -1
  86. package/dist/docs/web-types.json +1 -1
  87. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as b}from"./S7Z4HRW7.js";import{a as P}from"./IHO3OLL3.js";import e from"./U7ZGT3IG.js";import{a as z}from"./JHANH4UG.js";import"./AK7X7SGI.js";import c from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{Aa as I,o as S}from"./PAIRUVLU.js";import{f as G}from"./KX7KGXKQ.js";import{c as N,h as f,k as _}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as g,B as T,C as s,D as p,F as C,H as x,g as E,i as d,z as m}from"./RIM4HLHN.js";import{f as h}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{a:y,g:u,r:w}])=>{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`.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: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=z(),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(c=>r?.findIndex(o=>o.arcgis_charts_slice_id===c.sliceId)!==-1)),t?.forEach(c=>{if(c.fillSymbol?.color!==void 0){l="square-f";let[o,v,$,M]=[...c.fillSymbol.color];e=`rgba(${o},${v},${$},${M/255})`}if(c!==void 0&&!this.model.groupedSliceIds.includes(c.sliceId)){let o=c.sliceId;o===S.emptySliceId?o=this._messages.emptySlice??"":o===S.nullSliceId&&(o=this._messages.nullSlice??""),i?.push(b(c.sliceId,d`<calcite-list-item .label=${c.label??c.sliceId} .description=${o} .value=${c.sliceId} .selected=${this.selectedSliceId===c.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){l="square-f";let[c,o,v,$]=[...n.fillSymbol.color];e=`rgba(${c},${o},${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=${p({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,c,o]=[...t.fillSymbol.color];e=`rgba(${r},${n},${c},${o/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=${p({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??0,l??i??0)}}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=${p({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(){w(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} ${g(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=${N(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(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()}} ${g(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} ${g(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} ${g(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()}`}};x("arcgis-charts-config-pie-chart-slices",L);return L},a,c,e)
2
+ import{a as b}from"./S7Z4HRW7.js";import{a as P}from"./IHO3OLL3.js";import e from"./LSKFMUX4.js";import{a as z}from"./JHANH4UG.js";import"./AK7X7SGI.js";import c from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{Aa as I,o as S}from"./PAIRUVLU.js";import{f as G}from"./KX7KGXKQ.js";import{c as N,h as f,k as _}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as g,B as T,C as s,D as p,F as C,H as x,g as E,i as d,z as m}from"./RIM4HLHN.js";import{f as h}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{a:y,g:u,r:w}])=>{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`.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: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=z(),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(c=>r?.findIndex(o=>o.arcgis_charts_slice_id===c.sliceId)!==-1)),t?.forEach(c=>{if(c.fillSymbol?.color!==void 0){l="square-f";let[o,v,$,M]=[...c.fillSymbol.color];e=`rgba(${o},${v},${$},${M/255})`}if(c!==void 0&&!this.model.groupedSliceIds.includes(c.sliceId)){let o=c.sliceId;o===S.emptySliceId?o=this._messages.emptySlice??"":o===S.nullSliceId&&(o=this._messages.nullSlice??""),i?.push(b(c.sliceId,d`<calcite-list-item .label=${c.label??c.sliceId} .description=${o} .value=${c.sliceId} .selected=${this.selectedSliceId===c.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${l} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){l="square-f";let[c,o,v,$]=[...n.fillSymbol.color];e=`rgba(${c},${o},${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=${p({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,c,o]=[...t.fillSymbol.color];e=`rgba(${r},${n},${c},${o/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=${p({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??0,l??i??0)}}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=${p({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(){w(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} ${g(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=${N(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(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()}} ${g(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} ${g(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} ${g(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()}`}};x("arcgis-charts-config-pie-chart-slices",L);return L},a,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as w,b as P,c as q,d as N}from"./WPPMMVD5.js";import B from"./KCJKQ44K.js";import A from"./7WMOXCPU.js";import z from"./QUR7IUKK.js";import y from"./RAUYMTSM.js";import"./VY3KBD6N.js";import x from"./F2N6CMAL.js";import v from"./GP5MHPDX.js";import u from"./XST7FY7F.js";import t from"./JF7YQCM6.js";import s from"./EUGGSDEV.js";import r from"./LVSNOD77.js";import"./THTYR6IL.js";import o from"./CU56A45C.js";import n from"./KXKOTDCQ.js";import m from"./WHBJYAT4.js";import k from"./YPFJW7NS.js";import j from"./OQWDZSTM.js";import"./Y7HBWU3M.js";import i from"./GZU5HJCQ.js";import e from"./W6CKM3J3.js";import d from"./LZMLIBIH.js";import{i as l,k as f,m as b}from"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{_ as g,ba as h,ia as p}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as c}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{rb:S},{q:_},,{c:n},,,,,,,,,,,,,,{c:u,d:L},{a:k,b:v,c:M,d:C,e:z,f:F,g:I,h:O,i:B,j:j,k:D,l:V,m:A,n:m,o:x,p:H,q:T,t:W}])=>{var Y=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(d,e,s,i)=>{for(var t=E(e,s),r=d.length-1,y;r>=0;r--)(y=d[r])&&(t=y(e,s,t)||t);return t&&Y(e,s,t),t},o=class extends L{constructor(){super(...arguments),this._chartType=c.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})}setSeriesType(e,s){if(e<this._config.series.length&&e>=0){let i=this._config.series[e],t;if(s===c.BarSeries&&l(i)){let r={...i};delete r.lineSymbol,delete r.markerSymbol,delete r.lineSmoothed,delete r.markerVisible,delete r.areaColor,delete r.stackNegativeValuesToBaseline,t={...h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.BarSeries,y:[i.y].flat()[0]},t.fillSymbol&&(t.fillSymbol={...t.fillSymbol,color:i.lineSymbol?.color})}else if(s===c.LineSeries&&f(i)){let r={...i};delete r.fillSymbol,delete r.hideOversizedStackedLabels,delete r.hideOversizedSideBySideLabels,t={...g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.LineSeries},t.lineSymbol&&(t.lineSymbol={...t.lineSymbol,color:i.fillSymbol?.color})}t!==void 0&&(this._config.series[e]=t)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,s){let i=this._config.series?.[s];l(i)&&v(e,s,this._config)}getSeriesLineWidth(e){return M(e,this._config)}setSeriesLineWidth(e,s){let i=this._config.series?.[s];l(i)&&C(e,s,this._config)}getSeriesMarkerColor(e){return z(e,this._config)}setSeriesMarkerColor(e,s){let i=this._config.series?.[s];l(i)&&F(e,s,this._config)}getSeriesMarkerStyle(e){return I(e,this._config)}setSeriesMarkerStyle(e,s){let i=this._config.series?.[s];l(i)&&O(e,s,this._config)}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,s){let i=this._config.series?.[s];l(i)&&j(e,s,this._config)}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,s){let i=this._config.series?.[s];l(i)&&V({smoothed:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return A(e,this._config)}setAreaVisible(e,s){let i=this._config.series?.[s];l(i)&&m({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,s){let i=this._config.series?.[s];l(i)&&H({visible:e,seriesIndex:s,config:this._config})}getAreaColor(e){return T(e,this._config)}setAreaColor(e,s){let i=this._config.series?.[s];l(i)&&(m({visible:!0,seriesIndex:s,config:this._config}),u(e,s,this._config))}getSeriesHideOversizedSideBySideLabels(e){return w(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){let i=this._config.series?.[s];f(i)&&P(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){let i=this._config.series?.[s];f(i)&&N(e,s,this._config)}};a([n],o.prototype,"setSeriesType");a([n],o.prototype,"setSeriesLineStyle");a([n],o.prototype,"setSeriesLineWidth");a([n],o.prototype,"setSeriesMarkerColor");a([n],o.prototype,"setSeriesMarkerStyle");a([n],o.prototype,"setSeriesMarkerSize");a([n],o.prototype,"setLineSmoothed");a([n],o.prototype,"setAreaVisible");a([n],o.prototype,"setMarkerVisible");a([n],o.prototype,"setAreaColor");a([n],o.prototype,"setSeriesHideOversizedSideBySideLabels");a([n],o.prototype,"setSeriesHideOversizedStackedLabels");var G=[W];_(o,G);return o},a,d,e,i,j,k,m,n,o,r,s,t,u,v,x,y,z,A,B)
2
+ import{a as w,b as P,c as q,d as N}from"./WPPMMVD5.js";import B from"./2A24ACPF.js";import A from"./IK5VZ54O.js";import z from"./5JREGZML.js";import y from"./IUMYBJDG.js";import"./VY3KBD6N.js";import x from"./75XWLYW5.js";import v from"./XKHA7K4P.js";import u from"./NJAGOS7G.js";import t from"./IP3FZZNM.js";import s from"./ADJHTT4M.js";import r from"./XWDLT2E4.js";import"./THTYR6IL.js";import o from"./Y5GMGU4M.js";import n from"./AYNWMLFD.js";import m from"./N3FUI2RC.js";import k from"./Y7HYSSRW.js";import j from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import i from"./7LI5APDL.js";import e from"./L6SM2ORZ.js";import d from"./D46R6YHX.js";import{i as l,k as f,m as b}from"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{_ as g,ba as h,ia as p}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as c}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{rb:S},{q:_},,{c:n},,,,,,,,,,,,,,{c:u,d:L},{a:k,b:v,c:M,d:C,e:z,f:F,g:I,h:O,i:B,j:j,k:D,l:V,m:A,n:m,o:x,p:H,q:T,t:W}])=>{var Y=Object.defineProperty,E=Object.getOwnPropertyDescriptor,a=(d,e,s,i)=>{for(var t=E(e,s),r=d.length-1,y;r>=0;r--)(y=d[r])&&(t=y(e,s,t)||t);return t&&Y(e,s,t),t},o=class extends L{constructor(){super(...arguments),this._chartType=c.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})}setSeriesType(e,s){if(e<this._config.series.length&&e>=0){let i=this._config.series[e],t;if(s===c.BarSeries&&l(i)){let r={...i};delete r.lineSymbol,delete r.markerSymbol,delete r.lineSmoothed,delete r.markerVisible,delete r.areaColor,delete r.stackNegativeValuesToBaseline,t={...h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.BarSeries,y:[i.y].flat()[0]},t.fillSymbol&&(t.fillSymbol={...t.fillSymbol,color:i.lineSymbol?.color})}else if(s===c.LineSeries&&f(i)){let r={...i};delete r.fillSymbol,delete r.hideOversizedStackedLabels,delete r.hideOversizedSideBySideLabels,t={...g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.LineSeries},t.lineSymbol&&(t.lineSymbol={...t.lineSymbol,color:i.fillSymbol?.color})}t!==void 0&&(this._config.series[e]=t)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,s){let i=this._config.series?.[s];l(i)&&v(e,s,this._config)}getSeriesLineWidth(e){return M(e,this._config)}setSeriesLineWidth(e,s){let i=this._config.series?.[s];l(i)&&C(e,s,this._config)}getSeriesMarkerColor(e){return z(e,this._config)}setSeriesMarkerColor(e,s){let i=this._config.series?.[s];l(i)&&F(e,s,this._config)}getSeriesMarkerStyle(e){return I(e,this._config)}setSeriesMarkerStyle(e,s){let i=this._config.series?.[s];l(i)&&O(e,s,this._config)}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,s){let i=this._config.series?.[s];l(i)&&j(e,s,this._config)}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,s){let i=this._config.series?.[s];l(i)&&V({smoothed:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return A(e,this._config)}setAreaVisible(e,s){let i=this._config.series?.[s];l(i)&&m({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,s){let i=this._config.series?.[s];l(i)&&H({visible:e,seriesIndex:s,config:this._config})}getAreaColor(e){return T(e,this._config)}setAreaColor(e,s){let i=this._config.series?.[s];l(i)&&(m({visible:!0,seriesIndex:s,config:this._config}),u(e,s,this._config))}getSeriesHideOversizedSideBySideLabels(e){return w(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){let i=this._config.series?.[s];f(i)&&P(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){let i=this._config.series?.[s];f(i)&&N(e,s,this._config)}};a([n],o.prototype,"setSeriesType");a([n],o.prototype,"setSeriesLineStyle");a([n],o.prototype,"setSeriesLineWidth");a([n],o.prototype,"setSeriesMarkerColor");a([n],o.prototype,"setSeriesMarkerStyle");a([n],o.prototype,"setSeriesMarkerSize");a([n],o.prototype,"setLineSmoothed");a([n],o.prototype,"setAreaVisible");a([n],o.prototype,"setMarkerVisible");a([n],o.prototype,"setAreaColor");a([n],o.prototype,"setSeriesHideOversizedSideBySideLabels");a([n],o.prototype,"setSeriesHideOversizedStackedLabels");var G=[W];_(o,G);return o},a,d,e,i,j,k,m,n,o,r,s,t,u,v,x,y,z,A,B)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as t}from"./AK7X7SGI.js";import{c as u,g as C}from"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as r}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as c,H as d,g as n,i,n as h}from"./RIM4HLHN.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{Gb:f,nb:g,pb:m,tb:p}])=>{var F=n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,l=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigNoSeriesUpdate=h()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled: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),this.updateDataFilters()}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!r(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==void 0&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==void 0&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),e.has("seriesColor")&&this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.activeColorMatch=e?.get(0)===void 0,this.model.colorMatch&&e?.forEach((a,s)=>{u(a)&&e?.get(0)!==void 0&&a?.color!==void 0&&!r(this.model.getSeriesColor(s),a?.color)&&this.model.setSeriesColor(a?.color,s)})}async updateDataFilters(){let e=this.model.getDataFilters(),a=e?.where,s=this.layer?.definitionExpression??void 0;r(a,s)||await this.model.setDataFilters({...e,where:s})}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=C(a)?a.iLayer:void 0;o&&(s=await g(o))}s&&(await f(s),this.layerFieldsInfo=m(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e=this.layerFieldsInfo?.find(o=>o.name===this.model.xAxisField),a=e!==void 0&&p(e),s;switch(this.page){case t.Data:s=i`<arcgis-charts-config-bar-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-bar-chart-data>`;break;case t.Series:s=i`<arcgis-charts-config-bar-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-bar-chart-series>`;break;case t.Axes:s=i`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:s=i`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .enableXAxisGuide=${a} enable-y-axis-guide .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-guides>`;break;case t.Format:s=i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:s=i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:s="";break}return s}};d("arcgis-charts-config-bar-chart",l);return l},a)
2
+ import{d as t}from"./AK7X7SGI.js";import{c as u,g as C}from"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as r}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as c,H as d,g as n,i,n as h}from"./RIM4HLHN.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{Gb:f,nb:g,pb:m,tb:p}])=>{var F=n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,l=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigNoSeriesUpdate=h()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled: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),this.updateDataFilters()}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!r(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==void 0&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==void 0&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),e.has("seriesColor")&&this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.activeColorMatch=e?.get(0)===void 0,this.model.colorMatch&&e?.forEach((a,s)=>{u(a)&&e?.get(0)!==void 0&&a?.color!==void 0&&!r(this.model.getSeriesColor(s),a?.color)&&this.model.setSeriesColor(a?.color,s)})}async updateDataFilters(){let e=this.model.getDataFilters(),a=e?.where,s=this.layer?.definitionExpression??void 0;r(a,s)||await this.model.setDataFilters({...e,where:s})}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=C(a)?a.iLayer:void 0;o&&(s=await g(o))}s&&(await f(s),this.layerFieldsInfo=m(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let e=this.layerFieldsInfo?.find(o=>o.name===this.model.xAxisField),a=e!==void 0&&p(e),s;switch(this.page){case t.Data:s=i`<arcgis-charts-config-bar-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-bar-chart-data>`;break;case t.Series:s=i`<arcgis-charts-config-bar-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-bar-chart-series>`;break;case t.Axes:s=i`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:s=i`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .enableXAxisGuide=${a} enable-y-axis-guide .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-guides>`;break;case t.Format:s=i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:s=i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:s="";break}return s}};d("arcgis-charts-config-bar-chart",l);return l},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import n from"./YMFG2IVU.js";import{b as e,c as t,d as a}from"./IVLVCLDE.js";import l from"./U7ZGT3IG.js";import{a as A}from"./JHANH4UG.js";import{a as u}from"./AK7X7SGI.js";import k from"./F2N6CMAL.js";import{a as h,p as E}from"./THTYR6IL.js";import j from"./WHBJYAT4.js";import i from"./GZU5HJCQ.js";import f from"./W6CKM3J3.js";import c from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import b from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import{a as x}from"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as g,B as O,C as _,D as m,E as s,F as p,H as z,g as M,i as o,n as r,z as d}from"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as v}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,,,,{a:V},{r:n},{a:F,d:L}])=>{var R={actionBar:"action-bar"},Z=M`.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}`,T=class extends O{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=A(),this.commonStrings=A({name:"common",blocking:!0}),this.handleMouseOver=l=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=l.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=p(o`<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._csvExportExclusionList=[v.ScatterSeries,v.BoxPlotSeries],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=x.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=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=r(),this.arcgisDefaultActionSelect=r()}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,csvExportExclusionList:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=Z}load(){this.chartElement=L(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(l){let c=l.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,h(this.chartElement?.model)&&E(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(h(this.chartElement.model)?E(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&&(h(this.chartElement.model)?V(this.chartElement.model)&&(this.chartElement.model.rotated=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.filterByViewExtent=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=x.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(l){let c=l.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(l=>{let c=l;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=p(o`<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 l=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=l.includes(e.EditChart),S=l.includes(e.Legend),$=l.includes(e.RotateChart),b=l.includes(e.FilterBySelection),f=l.includes(e.FilterByExtent)&&!c,C=l.includes(e.Zoom),y=l.includes(e.Selection),B=l.includes(e.ClearSelection),D=l.includes(e.FullExtent),k=l.includes(e.SwitchSelection),I=l.includes(e.ExportAsImage),w=l.includes(e.ExportAsCSV);return[S||$?o`<calcite-action-group>${i?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${S?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .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}${$?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||f?o`<calcite-action-group>${b?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${f?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||C||D||B||k?o`<calcite-action-group>${C?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||w?o`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?o`<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?o`<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)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return o`<calcite-action-bar class=${_(R.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=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};z("arcgis-charts-action-bar",T);return T},b,c,f,i,j,k,l,n)
2
+ import n from"./BUUTWPEP.js";import{b as e,c as t,d as a}from"./IVLVCLDE.js";import l from"./LSKFMUX4.js";import{a as A}from"./JHANH4UG.js";import{a as u}from"./AK7X7SGI.js";import k from"./75XWLYW5.js";import{a as h,p as E}from"./THTYR6IL.js";import j from"./N3FUI2RC.js";import i from"./7LI5APDL.js";import f from"./L6SM2ORZ.js";import c from"./D46R6YHX.js";import"./WNKDEOFZ.js";import b from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import{a as x}from"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as g,B as O,C as _,D as m,E as s,F as p,H as z,g as M,i as o,n as r,z as d}from"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as v}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,,,,{a:V},{r:n},{a:F,d:L}])=>{var R={actionBar:"action-bar"},Z=M`.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}`,T=class extends O{constructor(){super(...arguments),this.calciteActionBar=d(),this.exportCalciteActionBar=d(),this.expandAction=null,this._messages=A(),this.commonStrings=A({name:"common",blocking:!0}),this.handleMouseOver=l=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let c=l.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=p(o`<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._csvExportExclusionList=[v.ScatterSeries,v.BoxPlotSeries],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=x.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=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=a.Enabled,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=r(),this.arcgisDefaultActionSelect=r()}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,csvExportExclusionList:0,exportActionState:1,expanded:5,hiddenActions:0}}static{this.styles=Z}load(){this.chartElement=L(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(l){let c=l.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,h(this.chartElement?.model)&&E(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(h(this.chartElement.model)?E(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&&(h(this.chartElement.model)?V(this.chartElement.model)&&(this.chartElement.model.rotated=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.filterByViewExtent=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=x.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(l){let c=l.currentTarget.assignedElements();for(let i of c)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(l=>{let c=l;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=p(o`<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 l=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),c=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=l.includes(e.EditChart),S=l.includes(e.Legend),$=l.includes(e.RotateChart),b=l.includes(e.FilterBySelection),f=l.includes(e.FilterByExtent)&&!c,C=l.includes(e.Zoom),y=l.includes(e.Selection),B=l.includes(e.ClearSelection),D=l.includes(e.FullExtent),k=l.includes(e.SwitchSelection),I=l.includes(e.ExportAsImage),w=l.includes(e.ExportAsCSV);return[S||$?o`<calcite-action-group>${i?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??s} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active} .disabled=${this.editChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${S?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??s} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .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}${$?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??s} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active} .disabled=${this.rotateChartState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,b||f?o`<calcite-action-group>${b?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??s} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active} .disabled=${this.filterBySelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${f?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByExtent??s} icon=extent-filter .text=${this.filterByExtentTitle??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active} .disabled=${this.filterByExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||C||D||B||k?o`<calcite-action-group>${C?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??s} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active} .disabled=${this.zoomState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??s} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active} .disabled=${this.selectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??s} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active} .disabled=${this.clearSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${D?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??s} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active} .disabled=${this.fullExtentState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?o`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??s} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active} .disabled=${this.switchSelectionState===a.Disabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||w?o`<calcite-action-menu .label=${this._messages?.export??""} ${g(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===a.Disabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?o`<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?o`<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)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return o`<calcite-action-bar class=${_(R.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=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};z("arcgis-charts-action-bar",T);return T},b,c,f,i,j,k,l,n)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./JF7YQCM6.js";import c from"./YPFJW7NS.js";import{a as L,b as V,c as S,d as T,e as B,f as O,g as M,h as z}from"./Y7HBWU3M.js";import b from"./GZU5HJCQ.js";import a from"./LZMLIBIH.js";import{A as l}from"./PAIRUVLU.js";import{g as _}from"./SP2IPHWF.js";import{j as u}from"./QP5UAIC6.js";import{p as h}from"./547RDEMV.js";export default $arcgis.t(([{c:d,d:p,h:t,i:b,j:m,k:I,l:A,m:v,q:C},{c:r},D,{a:G,b:k,c:y}])=>{var F=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},H=(o,i,s)=>{let e=i.axes;s.forEach(c=>{e?.[c]!==void 0&&(e[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let e=s.axes?.[i];e!==void 0&&(e.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].displayCursorTooltip=s)},E=(o,i)=>o.axes?.[i]?.buffer??!1,R=o=>{let{config:i,buffer:s,axisIndex:e}=o,c=i.axes?.[e];c!==void 0&&(c.buffer=s)},W=(o,i)=>o.axes?.[i]?.tickSpacing,X=o=>{let{config:i,tickSpacing:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].tickSpacing=s)},q=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ei=o=>o.cursorCrosshair?.verticalLineVisible??!1,ti=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,e)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return t({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){t({config:this._config,axisIndex:s,func:e=>{T(i,e,this._config)}})}getAxisVisibility(i){return t({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{j(i,e,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return t({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{V(i,e,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return t({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){t({config:this._config,axisIndex:s,func:e=>{O(i,e,this._config)}})}getMaxBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!0})}})}getMinBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!1})}})}getAxisValueFormat(i){return t({config:this._config,axisIndex:i,func:s=>b(s,this._config)})}setAxisValueFormat(i,s){t({config:this._config,axisIndex:i,func:e=>{m({config:this._config,valueFormat:s,axisIndex:e,commonStrings:this.commonStrings})}})}getLogarithmic(i){return t({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){t({config:this._config,axisIndex:s,func:e=>{A({config:this._config,isLogarithmic:i,axisIndex:e})}})}getAxisScrollbar(i){return t({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){t({config:this._config,axisIndex:s,func:e=>{v({config:this._config,scrollbar:i,axisIndex:e})}})}getAxisTitleSymbol(i){return t({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){t({config:this._config,axisIndex:s,func:e=>{z({symbol:i,config:this._config,axisIndex:e})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return F(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&H(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return t({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){t({config:this._config,axisIndex:s,func:e=>{w(this._config,i,e)}})}getDisplayCursorTooltip(i){return t({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){t({config:this._config,axisIndex:s,func:e=>{U({config:this._config,displayCursorTooltip:i,axisIndex:e})}})}getBuffer(i){return t({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){t({config:this._config,axisIndex:s,func:e=>{R({config:this._config,buffer:i,axisIndex:e})}})}getTickSpacing(i){return W(this._config,i)}setTickSpacing(i,s){t({config:this._config,axisIndex:s,func:e=>{X({config:this._config,tickSpacing:i,axisIndex:e})}})}getIntegerOnlyValues(i){return t({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setIntegerOnlyValues(i,s){t({config:this._config,axisIndex:s,func:e=>{J({config:this._config,integerOnlyValues:i,axisIndex:e})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ei(this._config)}set cursorCrosshairVerticalLineVisibility(i){ti(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Y=(o,i,s,e)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:u.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:u.Y})}};Y([r],x.prototype,"addYAxisGuide");Y([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},a,b,c,d)
2
+ import d from"./IP3FZZNM.js";import c from"./Y7HYSSRW.js";import{a as L,b as V,c as S,d as T,e as B,f as O,g as M,h as z}from"./Y7HBWU3M.js";import b from"./7LI5APDL.js";import a from"./D46R6YHX.js";import{A as l}from"./PAIRUVLU.js";import{g as _}from"./SP2IPHWF.js";import{j as u}from"./QP5UAIC6.js";import{p as h}from"./547RDEMV.js";export default $arcgis.t(([{c:d,d:p,h:t,i:b,j:m,k:I,l:A,m:v,q:C},{c:r},D,{a:G,b:k,c:y}])=>{var F=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},H=(o,i,s)=>{let e=i.axes;s.forEach(c=>{e?.[c]!==void 0&&(e[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let e=s.axes?.[i];e!==void 0&&(e.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].displayCursorTooltip=s)},E=(o,i)=>o.axes?.[i]?.buffer??!1,R=o=>{let{config:i,buffer:s,axisIndex:e}=o,c=i.axes?.[e];c!==void 0&&(c.buffer=s)},W=(o,i)=>o.axes?.[i]?.tickSpacing,X=o=>{let{config:i,tickSpacing:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].tickSpacing=s)},q=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:e}=o;i.axes?.[e]!==void 0&&(i.axes[e].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ei=o=>o.cursorCrosshair?.verticalLineVisible??!1,ti=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,e)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return t({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){t({config:this._config,axisIndex:s,func:e=>{T(i,e,this._config)}})}getAxisVisibility(i){return t({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{j(i,e,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return t({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{t({config:this._config,axisIndex:s,func:e=>{V(i,e,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return t({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){t({config:this._config,axisIndex:s,func:e=>{O(i,e,this._config)}})}getMaxBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!0})}})}getMinBound(i){return t({config:this._config,axisIndex:i,func:s=>d({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){t({config:this._config,axisIndex:s,func:e=>{p({config:this._config,value:i,axisIndex:e,isMax:!1})}})}getAxisValueFormat(i){return t({config:this._config,axisIndex:i,func:s=>b(s,this._config)})}setAxisValueFormat(i,s){t({config:this._config,axisIndex:i,func:e=>{m({config:this._config,valueFormat:s,axisIndex:e,commonStrings:this.commonStrings})}})}getLogarithmic(i){return t({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){t({config:this._config,axisIndex:s,func:e=>{A({config:this._config,isLogarithmic:i,axisIndex:e})}})}getAxisScrollbar(i){return t({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){t({config:this._config,axisIndex:s,func:e=>{v({config:this._config,scrollbar:i,axisIndex:e})}})}getAxisTitleSymbol(i){return t({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){t({config:this._config,axisIndex:s,func:e=>{z({symbol:i,config:this._config,axisIndex:e})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return F(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&H(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return t({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){t({config:this._config,axisIndex:s,func:e=>{w(this._config,i,e)}})}getDisplayCursorTooltip(i){return t({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){t({config:this._config,axisIndex:s,func:e=>{U({config:this._config,displayCursorTooltip:i,axisIndex:e})}})}getBuffer(i){return t({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){t({config:this._config,axisIndex:s,func:e=>{R({config:this._config,buffer:i,axisIndex:e})}})}getTickSpacing(i){return W(this._config,i)}setTickSpacing(i,s){t({config:this._config,axisIndex:s,func:e=>{X({config:this._config,tickSpacing:i,axisIndex:e})}})}getIntegerOnlyValues(i){return t({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setIntegerOnlyValues(i,s){t({config:this._config,axisIndex:s,func:e=>{J({config:this._config,integerOnlyValues:i,axisIndex:e})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ei(this._config)}set cursorCrosshairVerticalLineVisibility(i){ti(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Y=(o,i,s,e)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:u.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:u.Y})}};Y([r],x.prototype,"addYAxisGuide");Y([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./LZMLIBIH.js";import{a as o}from"./XJFVSX2E.js";import{a as e}from"./547RDEMV.js";export default $arcgis.t(([{s:n}])=>{function b(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 l(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:b,b:l}},a)
2
+ import a from"./D46R6YHX.js";import{a as o}from"./XJFVSX2E.js";import{a as e}from"./547RDEMV.js";export default $arcgis.t(([{s:n}])=>{function b(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 l(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:b,b:l}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u}from"./AQIB3VEP.js";import{a as f}from"./S7Z4HRW7.js";import{a as o}from"./IHO3OLL3.js";import d from"./U7ZGT3IG.js";import{a as S}from"./JHANH4UG.js";import"./AK7X7SGI.js";import b from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import{d as p}from"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as c,D as m,F as g,H as C,g as h,i as r}from"./RIM4HLHN.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let s=e.detail?.name;this.model.setSeriesName(s,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:s}=e.detail;this.model.colorMatch=!1,s!==void 0&&(this.model.setSeriesColor(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerColor(s,this.selectedSeriesIndex??-1))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:s}=e.detail;s!==void 0&&this.model.setSeriesLineStyle(s,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:s}=e.detail;s!==void 0&&(this.model.setSeriesLineWidth(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerSize(s*2,this.selectedSeriesIndex??-1))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:s}=e.detail;this.selectedSeriesIndex===s&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,s=Array.from({length:e},(i,t)=>t);return u(s,i=>this.model.getSeriesId(i),i=>{let t=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),I=this.model.getSeriesName(i),x=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,$=this.model.getSeriesLineStyle(i),P=v($),a="#CCCCCC",d="minus-circle";if((e>1||!this.activeColorMatch)&&n!==void 0){d=`line-${P}`;let[L,b,y,M]=[...n];a=`rgba(${L},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${x} .value=${t} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${m({color:a})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:i}=e.detail;this.model.moveSeries(i??0,s??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let s=e.target,i=s.localName==="calcite-list-item"?s:s.parentNode,t=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==t,this.selectedSeriesIndex=this.selectedSeriesIndex!==t?t:void 0}render(){return r`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b,d)
2
+ import{a as u}from"./AQIB3VEP.js";import{a as f}from"./S7Z4HRW7.js";import{a as o}from"./IHO3OLL3.js";import d from"./LSKFMUX4.js";import{a as S}from"./JHANH4UG.js";import"./AK7X7SGI.js";import b from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import{d as p}from"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as c,D as m,F as g,H as C,g as h,i as r}from"./RIM4HLHN.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let s=e.detail?.name;this.model.setSeriesName(s,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:s}=e.detail;this.model.colorMatch=!1,s!==void 0&&(this.model.setSeriesColor(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerColor(s,this.selectedSeriesIndex??-1))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:s}=e.detail;s!==void 0&&this.model.setSeriesLineStyle(s,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:s}=e.detail;s!==void 0&&(this.model.setSeriesLineWidth(s,this.selectedSeriesIndex??-1),this.model.setSeriesMarkerSize(s*2,this.selectedSeriesIndex??-1))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:s}=e.detail;this.selectedSeriesIndex===s&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesIndex=void 0)},this.onModelConfigChange=()=>{this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,s){s?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,s=Array.from({length:e},(i,t)=>t);return u(s,i=>this.model.getSeriesId(i),i=>{let t=this.model.getSeriesId(i),n=this.model.getSeriesColor(i),I=this.model.getSeriesName(i),x=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,$=this.model.getSeriesLineStyle(i),P=v($),a="#CCCCCC",d="minus-circle";if((e>1||!this.activeColorMatch)&&n!==void 0){d=`line-${P}`;let[L,b,y,M]=[...n];a=`rgba(${L},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${x} .value=${t} .selected=${this.selectedSeriesIndex===i} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${d} style=${m({color:a})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:i}=e.detail;this.model.moveSeries(i??0,s??i??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let s=e.target,i=s.localName==="calcite-list-item"?s:s.parentNode,t=this.model.getSeriesIndex(i.value);this.open=this.selectedSeriesIndex!==t,this.selectedSeriesIndex=this.selectedSeriesIndex!==t?t:void 0}render(){return r`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as w,c as L}from"./OBPAQN4H.js";import{a as E}from"./AQIB3VEP.js";import{a as C}from"./S7Z4HRW7.js";import{a as p}from"./IHO3OLL3.js";import j from"./U7ZGT3IG.js";import{a as P}from"./JHANH4UG.js";import{k as l,o as g}from"./AK7X7SGI.js";import i from"./GP5MHPDX.js";import f from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import e from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import{n as u,o as O}from"./3TBK72EK.js";import{p as h}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as b}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as m,B as $,C as o,F,H as x,g as y,i as a,k as S,n as v,z as d}from"./RIM4HLHN.js";import{b as c}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as I}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{h:B},{a:k}])=>{var r={label:"label",fieldList:"field-list",fab:"fab",dimText:"dim-text",list:"list",customSortButtons:"custom-sort-buttons"},_=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{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-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}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.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)}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`,f=class extends ${constructor(){super(...arguments),this._messages=P(),this.boxPlotPopover=null,this.categoryElement=d(),this.numericFieldsElement=d(),this.splitByFieldElement=d(),this.sortOrderElement=d(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.boxPlotPopover===e?.target&&(this.boxPlotPopover=p(this.boxPlotPopover))},this.onBoxPlotDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,s=[...e.detail.value];switch(L(w),t){case l.category:{let i=s[0]?.trim()||h;if(this.model.category=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.numericFields:{this.model.numericFields=s;let i=s.length>1;if(this.model.standardizeValues=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.splitByField:{let i=s[0]?.trim()||"";this.model.splitByField=i;break}case l.sortOrder:{let i=s[0];if(i===c.customSort){let n=await this.updateCustomSortProps();this.model.setSortOrder(i,n)}else this.model.setSortOrder(i);this.sortOrderResetCounter+=1}break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=v()}static{this.properties={selectedCustomSortItemId:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=_}load(){this.modelChange(this.model),this.onModelConfigChange(),this.currentDataFilter=this.model.getDataFilters(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),b(this.model.getDataFilters(),this.currentDataFilter)||(this.updateCustomSortProps(),this.currentDataFilter=this.model.getDataFilters()),this.disableSplitBy=this.model.numericFields.length===0||this.model.numericFields.length>1&&this.model.category!==h}disconnectedCallback(){super.disconnectedCallback(),this.boxPlotPopover=p(this.boxPlotPopover),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail;this.model.moveCustomSortValuesInOrderByList(s??0,t??s??0)}}onCustomSortItemSelected(e){let{id:t}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===t?"":t}onCustomSortItemMoved(e){let{id:t}=e.target,s=this.model.orderByList.length,i=this.model.orderByList.indexOf(this.selectedCustomSortItemId);t===g.Up?s=i-1:t===g.Down&&(s=i+1),i>=0&&s>=0&&s<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(i,s),this.sortOrderResetCounter+=1)}buildCustomSortListItems(){return E(this.model.orderByList,e=>e,e=>{let t=O(this.layerFieldsInfo,e);return a`<calcite-list-item id=${e??S} .label=${e??""} .description=${t} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return C(this.sortOrderResetCounter,a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}buildNumericFieldItem(e){return C(e,a`<calcite-list-item .label=${u(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onCategorySelect(e){this.categoryElement.value&&!this.categoryElement.value.disabled&&(this.contentKind=l.category,this.setupPopover(e))}async onRemoveNumericField(e){let t=e.target.value;if(this.model.numericFields=this.model.numericFields.filter(s=>s!==t),this.model.numericFields.length===0&&this.model.resetConfig(),this.model.getSortOrder()===c.customSort){let s=await this.updateCustomSortProps();this.model.orderByList=s,this.sortOrderResetCounter+=1}}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let t=e.length>k.customSortLimit;return t&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setSortOrder(c.xAxisAsc)),this.isCustomSortDisabled=t,e}onStandardizeValuesChange(e){this.model.standardizeValues=e.target.checked}onShowOutliersChange(e){this.model.showOutliers=e.target.checked}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onSortOrderSelect(e){this.contentKind=l.sortOrder,this.setupPopover(e)}setupPopover(e){e.stopImmediatePropagation(),this.boxPlotPopover=p(this.boxPlotPopover);let t,s,i,n=!1;switch(this.contentKind){case l.category:t=this.categoryElement.value,s=this._messages.categoryHeader,i=this.model.category===h?"":this.model.category;break;case l.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,i=this.model.numericFields;break;case l.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,i=this.model.splitByField;break;case l.sortOrder:t=this.sortOrderElement.value,s=this._messages.selectSortOrder,i=this.model.getSortOrder(),n=this.isCustomSortDisabled;break}this.boxPlotPopover=F(a`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`),!document.body.contains(this.boxPlotPopover)&&this.boxPlotPopover!==null&&document.body.appendChild(this.boxPlotPopover)}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}getCorrectedSplitByValue(){return this.model.splitByField?.trim()===""?"":u(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return B({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":u(this.layerFieldsInfo,this.model.category)}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}renderCustomSortUI(){let e=this.model.getSortOrder(),t=this.model.getAxisValueFormat(0)?.type,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return t===I.CategoryAxisFormat&&e===c.customSort&&!this.isCustomSortDisabled?a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s===0||s===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${g.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s===-1||s===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${g.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${b(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category===h?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderNumericFields(e){let t=[];for(let s of e)t.push(this.buildNumericFieldItem(s));return a`<calcite-list label class=${o(r.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`}renderCategory(){let e=this.getCorrectedCategoryValue(),t=this.model.numericFields.length===0||(this.model.numericFields??[]).length>1&&this.model.splitByField!=="";return a`<arcgis-charts-config-field-select .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-select>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return a`<arcgis-charts-config-field-select .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-select>`}renderSorting(){return a`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-select>`}render(){let e=this.renderCategory(),t=this.renderNumericFields([...this.model.numericFields??[]]),s=this.renderSplitBy(),i=this.renderSorting(),n=this.renderCustomSortUI();return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy?r.dimText:"")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields??[]).length>1?a`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>`:null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`}};x("arcgis-charts-config-box-plot-data",f);return f},e,f,i,j)
2
+ import{a as w,c as L}from"./OBPAQN4H.js";import{a as E}from"./AQIB3VEP.js";import{a as C}from"./S7Z4HRW7.js";import{a as p}from"./IHO3OLL3.js";import j from"./LSKFMUX4.js";import{a as P}from"./JHANH4UG.js";import{k as l,o as g}from"./AK7X7SGI.js";import i from"./XKHA7K4P.js";import f from"./D46R6YHX.js";import"./WNKDEOFZ.js";import e from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import{n as u,o as O}from"./3TBK72EK.js";import{p as h}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as b}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{A as m,B as $,C as o,F,H as x,g as y,i as a,k as S,n as v,z as d}from"./RIM4HLHN.js";import{b as c}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as I}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{h:B},{a:k}])=>{var r={label:"label",fieldList:"field-list",fab:"fab",dimText:"dim-text",list:"list",customSortButtons:"custom-sort-buttons"},_=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{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-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}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.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)}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`,f=class extends ${constructor(){super(...arguments),this._messages=P(),this.boxPlotPopover=null,this.categoryElement=d(),this.numericFieldsElement=d(),this.splitByFieldElement=d(),this.sortOrderElement=d(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.boxPlotPopover===e?.target&&(this.boxPlotPopover=p(this.boxPlotPopover))},this.onBoxPlotDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,s=[...e.detail.value];switch(L(w),t){case l.category:{let i=s[0]?.trim()||h;if(this.model.category=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.numericFields:{this.model.numericFields=s;let i=s.length>1;if(this.model.standardizeValues=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.splitByField:{let i=s[0]?.trim()||"";this.model.splitByField=i;break}case l.sortOrder:{let i=s[0];if(i===c.customSort){let n=await this.updateCustomSortProps();this.model.setSortOrder(i,n)}else this.model.setSortOrder(i);this.sortOrderResetCounter+=1}break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=v()}static{this.properties={selectedCustomSortItemId:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=_}load(){this.modelChange(this.model),this.onModelConfigChange(),this.currentDataFilter=this.model.getDataFilters(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),b(this.model.getDataFilters(),this.currentDataFilter)||(this.updateCustomSortProps(),this.currentDataFilter=this.model.getDataFilters()),this.disableSplitBy=this.model.numericFields.length===0||this.model.numericFields.length>1&&this.model.category!==h}disconnectedCallback(){super.disconnectedCallback(),this.boxPlotPopover=p(this.boxPlotPopover),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail;this.model.moveCustomSortValuesInOrderByList(s??0,t??s??0)}}onCustomSortItemSelected(e){let{id:t}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===t?"":t}onCustomSortItemMoved(e){let{id:t}=e.target,s=this.model.orderByList.length,i=this.model.orderByList.indexOf(this.selectedCustomSortItemId);t===g.Up?s=i-1:t===g.Down&&(s=i+1),i>=0&&s>=0&&s<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(i,s),this.sortOrderResetCounter+=1)}buildCustomSortListItems(){return E(this.model.orderByList,e=>e,e=>{let t=O(this.layerFieldsInfo,e);return a`<calcite-list-item id=${e??S} .label=${e??""} .description=${t} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return C(this.sortOrderResetCounter,a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}buildNumericFieldItem(e){return C(e,a`<calcite-list-item .label=${u(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onCategorySelect(e){this.categoryElement.value&&!this.categoryElement.value.disabled&&(this.contentKind=l.category,this.setupPopover(e))}async onRemoveNumericField(e){let t=e.target.value;if(this.model.numericFields=this.model.numericFields.filter(s=>s!==t),this.model.numericFields.length===0&&this.model.resetConfig(),this.model.getSortOrder()===c.customSort){let s=await this.updateCustomSortProps();this.model.orderByList=s,this.sortOrderResetCounter+=1}}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let t=e.length>k.customSortLimit;return t&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setSortOrder(c.xAxisAsc)),this.isCustomSortDisabled=t,e}onStandardizeValuesChange(e){this.model.standardizeValues=e.target.checked}onShowOutliersChange(e){this.model.showOutliers=e.target.checked}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onSortOrderSelect(e){this.contentKind=l.sortOrder,this.setupPopover(e)}setupPopover(e){e.stopImmediatePropagation(),this.boxPlotPopover=p(this.boxPlotPopover);let t,s,i,n=!1;switch(this.contentKind){case l.category:t=this.categoryElement.value,s=this._messages.categoryHeader,i=this.model.category===h?"":this.model.category;break;case l.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,i=this.model.numericFields;break;case l.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,i=this.model.splitByField;break;case l.sortOrder:t=this.sortOrderElement.value,s=this._messages.selectSortOrder,i=this.model.getSortOrder(),n=this.isCustomSortDisabled;break}this.boxPlotPopover=F(a`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`),!document.body.contains(this.boxPlotPopover)&&this.boxPlotPopover!==null&&document.body.appendChild(this.boxPlotPopover)}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}getCorrectedSplitByValue(){return this.model.splitByField?.trim()===""?"":u(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return B({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":u(this.layerFieldsInfo,this.model.category)}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}renderCustomSortUI(){let e=this.model.getSortOrder(),t=this.model.getAxisValueFormat(0)?.type,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return t===I.CategoryAxisFormat&&e===c.customSort&&!this.isCustomSortDisabled?a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s===0||s===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${g.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s===-1||s===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${g.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${b(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category===h?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderNumericFields(e){let t=[];for(let s of e)t.push(this.buildNumericFieldItem(s));return a`<calcite-list label class=${o(r.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`}renderCategory(){let e=this.getCorrectedCategoryValue(),t=this.model.numericFields.length===0||(this.model.numericFields??[]).length>1&&this.model.splitByField!=="";return a`<arcgis-charts-config-field-select .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-select>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return a`<arcgis-charts-config-field-select .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-select>`}renderSorting(){return a`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-select>`}render(){let e=this.renderCategory(),t=this.renderNumericFields([...this.model.numericFields??[]]),s=this.renderSplitBy(),i=this.renderSorting(),n=this.renderCustomSortUI();return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy?r.dimText:"")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields??[]).length>1?a`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>`:null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`}};x("arcgis-charts-config-box-plot-data",f);return f},e,f,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./U7ZGT3IG.js";import{a as m}from"./JHANH4UG.js";import"./AK7X7SGI.js";import b from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as h,H as l,g as o,i as g,n as c}from"./RIM4HLHN.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{m:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
2
+ import d from"./LSKFMUX4.js";import{a as m}from"./JHANH4UG.js";import"./AK7X7SGI.js";import b from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{B as h,H as l,g as o,i as g,n as c}from"./RIM4HLHN.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,,{m:n}])=>{var u="arcgis-charts-config-storage-colors",_=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=_}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerInput=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${u} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import x from"./GQK23IL4.js";import w from"./KCJKQ44K.js";import v from"./7WMOXCPU.js";import u from"./QUR7IUKK.js";import t from"./RAUYMTSM.js";import"./VY3KBD6N.js";import s from"./F2N6CMAL.js";import r from"./GP5MHPDX.js";import q from"./XST7FY7F.js";import p from"./JF7YQCM6.js";import o from"./EUGGSDEV.js";import n from"./LVSNOD77.js";import"./THTYR6IL.js";import k from"./CU56A45C.js";import j from"./KXKOTDCQ.js";import i from"./WHBJYAT4.js";import h from"./YPFJW7NS.js";import g from"./OQWDZSTM.js";import"./Y7HBWU3M.js";import f from"./GZU5HJCQ.js";import e from"./W6CKM3J3.js";import b from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{$ as l,i as S,la as d,y as c}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as m}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{rb:o},{q:y},,{c:g},,,,,,,,,,,,,{ra:h},{b:u,c:p,d:b},{b:I,d:v,f:_,h:k,j:F,t:L},D])=>{var M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,w=(n,e,s,t)=>{for(var i=x(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&M(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.RadarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),k(this.defaultSeries?.markerSymbol?.style,e,this._config),F(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==o(this.layerInfo.layer).idField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};w([g],a.prototype,"resetSeriesStyling");var j=[L,D];y(a,j);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x)
2
+ import x from"./WXWLMWG5.js";import w from"./2A24ACPF.js";import v from"./IK5VZ54O.js";import u from"./5JREGZML.js";import t from"./IUMYBJDG.js";import"./VY3KBD6N.js";import s from"./75XWLYW5.js";import r from"./XKHA7K4P.js";import q from"./NJAGOS7G.js";import p from"./IP3FZZNM.js";import o from"./ADJHTT4M.js";import n from"./XWDLT2E4.js";import"./THTYR6IL.js";import k from"./Y5GMGU4M.js";import j from"./AYNWMLFD.js";import i from"./N3FUI2RC.js";import h from"./Y7HYSSRW.js";import g from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import f from"./7LI5APDL.js";import e from"./L6SM2ORZ.js";import b from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{$ as l,i as S,la as d,y as c}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import"./RIM4HLHN.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as m}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{rb:o},{q:y},,{c:g},,,,,,,,,,,,,{ra:h},{b:u,c:p,d:b},{b:I,d:v,f:_,h:k,j:F,t:L},D])=>{var M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,w=(n,e,s,t)=>{for(var i=x(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&M(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.RadarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),k(this.defaultSeries?.markerSymbol?.style,e,this._config),F(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==o(this.layerInfo.layer).idField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};w([g],a.prototype,"resetSeriesStyling");var j=[L,D];y(a,j);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./G5TRNV2I.js";import n from"./GP5MHPDX.js";import l from"./CU56A45C.js";import k from"./KXKOTDCQ.js";import j from"./WHBJYAT4.js";import i from"./YPFJW7NS.js";import h from"./OQWDZSTM.js";import"./Y7HBWU3M.js";import e from"./GZU5HJCQ.js";import d from"./W6CKM3J3.js";import c from"./LZMLIBIH.js";import"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import{d as m}from"./3TBK72EK.js";import{I as O,L as f,da as L,fa as T,ma as N,o as b}from"./PAIRUVLU.js";import{f as u}from"./KX7KGXKQ.js";import{g as F}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{l as V}from"./RIM4HLHN.js";import{e as y,f as g}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as p}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{T:v,rb:M},{p:k,q:C,r:w},,{c:t},,U,{b:A},{b:q},{a:I,b:K,c:Y,d:$},,{a:h,b:G,c:_,d:W,e:B,f:z,g:j,h:E,i:R,j:D,k:P,l:S}])=>{var ee=i=>i.legend?.displayNumericValue??!1,ie=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},se=i=>i.legend?.displayCategory??!1,te=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},re=i=>i.legend?.displayPercentage??!1,oe=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},ae=i=>i.legend?.labelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ge=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ce=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,x=(i,e,s,a)=>{for(var n=pe(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&ce(e,s,n),n},d=class extends I{getDisplayNumericValue(){return ee(this._config)}setDisplayNumericValue(e){ie(e,this._config)}getDisplayPercentage(){return re(this._config)}setDisplayPercentage(e){oe(e,this._config)}getLabelMaxWidth(){return ae(this._config)}setLabelMaxWidth(e){ne(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ge(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return se(this._config)}set displayCategory(e){te(e,this._config),this.emitConfigUpdate("displayCategory")}};x([t],d.prototype,"setDisplayNumericValue");x([t],d.prototype,"setDisplayPercentage");x([t],d.prototype,"setLabelMaxWidth");var de=[I];C(d,de);var fe=i=>i.series?.[0]?.innerRadius,he=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ue=i=>i.series?.[0]?.dataLabelsCharacterLimit,me=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},H=i=>i.series[0]?.startAngle,ye=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},_e=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},Se=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,be=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Le=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,ve=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Ce=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,De=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},Pe=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},xe=i=>i.series?.[0]?.valueSuffix,Ve=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Fe=i=>i.series?.[0]?.percentagePrefix,Te=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ne=i=>i.series?.[0]?.percentageSuffix,Me=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},ke=i=>{let e,s=i.series?.[0];return s?.displayNumericValueOnDataLabel===!0&&s?.displayPercentageOnDataLabel===!0?e=g.Both:s?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let s=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=s,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:s,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Be=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,je=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ee=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Re=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=O(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=O(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Ue=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ke=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ye=i=>i.series[0]?.ticks?.visible??!1,$e=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.lineSymbol=F(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Xe=(i,e,s)=>{s.series?.[0]?.slices?.[e]&&(s.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,ei=(i,e,s)=>{let a=s.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:u.SLS,color:i}):s.series?.[0]?.slices?.[e]!==void 0&&(s.series[0].slices[e].fillSymbol={type:u.SFS,color:i,outline:{type:u.SLS,color:i}})},ii=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),J=(i,e)=>{e.series?.[0]?.slices?.sort((s,a)=>i.findIndex(n=>s.sliceId===n)-i.findIndex(n=>a.sliceId===n))},si=i=>i.series?.[0]?.sliceGrouping,Q=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},X=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ti=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:b.defaultGroupOfSlicesId,percentageThreshold:i}},ri=i=>i.series?.[0]?.slices,Z=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},oi=i=>{Z(void 0,i),Q({sliceId:b.defaultGroupOfSlicesId,percentageThreshold:X(i)??0},i)},ai=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ni=(i,e)=>e.series[0]?.slices?.findIndex(s=>s.sliceId===i),li=i=>i.series[0]?.slices?.length??0,gi=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,o=(i,e,s,a)=>{for(var n=ci(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&gi(e,s,n),n},r=class extends U{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=y.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:s}=e;if(s!==void 0){let a=v(s.series)!==m.PieFromFields?y.Category:y.Fields;this._mode=S({category:h(this._config),numericFields:_(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!A(this._config)||e.trim()!=="")&&(this._mode=S({category:e,numericFields:_(this._config),fallbackMode:this._mode}),j({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return _(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||k(this.layerInfo.layerFieldsInfo,e)?(this._mode=S({category:h(this._config),numericFields:e,fallbackMode:this._mode}),R({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):V("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return W(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return G(this._config,this._mode)}setSortOrder(e,s){z({newSortOrderKind:e,config:this._config,orderByList:s})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=h(this._config),s=v(this._config.series),a=[];return s===m.PieFromFields?a=this.numericFields:e.trim()!==""&&s===m.PieFromCategory&&(a=await w({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,s){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(s,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ri(this._config)}set slices(e){Z(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return si(this._config)}set sliceGrouping(e){Q(e,this._config)}get innerRadiusSize(){return fe(this._config)??0}set innerRadiusSize(e){he(e,this._config)}get groupingThreshold(){return X(this._config)??0}set groupingThreshold(e){ti(e,this._config)}get labelCharacterLimit(){return ue(this._config)??null}set labelCharacterLimit(e){me(e,this._config)}get decimalPlaces(){return Ee(this._config)??1}set decimalPlaces(e){Re(e,this._config)}get displayType(){return ke(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=N(this.commonStrings);return e.series=[T(this.commonStrings,M(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,s){Xe(e,s,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,s){ei(e,s,this._config)}get orderOfSlices(){return ii(this._config)}set orderOfSlices(e){e!==void 0&&J(e,this._config)}moveSeries(e,s){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(s,0,n),J(a,this._config)}}getSliceId(e){return ai(e,this._config)}getSliceIndex(e){return ni(e,this._config)}getSlicesLength(){return li(this._config)}resetSlices(){oi(this._config)}resetAvailable(){let e=!this.colorMatch,s=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){s=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(s=!0),e||s}get ticksVisibility(){return Ye(this._config)}set ticksVisibility(e){$e(e,this._config)}get startAngle(){return H(this._config)}set startAngle(e){ye(e,this._config)}get endAngle(){return H(this._config)}set endAngle(e){_e(e,this._config)}get displayCategoryOnDataLabel(){return be(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return Se(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return Oe(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Le(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return ve(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Ce(this._config)}set displayPercentageOnTooltip(e){De(e,this._config)}get valuePrefix(){return Pe(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return xe(this._config)}set valueSuffix(e){Ve(e,this._config)}get percentagePrefix(){return Fe(this._config)}set percentagePrefix(e){Te(e,this._config)}get percentageSuffix(){return Ne(this._config)}set percentageSuffix(e){Me(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){je(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Be(e,this._config)}get optimizeDataLabelsOverlapping(){return Ue(this._config)}set optimizeDataLabelsOverlapping(e){Ke(e,this._config)}generateChartTitle(){return B({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([t],r.prototype,"category");o([t],r.prototype,"numericFields");o([t],r.prototype,"aggregationType");o([t],r.prototype,"setSortOrder");o([t],r.prototype,"orderByList");o([t],r.prototype,"mode");o([t],r.prototype,"moveCustomSortValuesInOrderByList");o([t],r.prototype,"ticksSymbol");o([t],r.prototype,"slices");o([t],r.prototype,"groupedSliceIds");o([t],r.prototype,"sliceGrouping");o([t],r.prototype,"innerRadiusSize");o([t],r.prototype,"groupingThreshold");o([t],r.prototype,"labelCharacterLimit");o([t],r.prototype,"decimalPlaces");o([t],r.prototype,"displayType");o([t],r.prototype,"setSliceName");o([t],r.prototype,"setSliceColor");o([t],r.prototype,"orderOfSlices");o([t],r.prototype,"moveSeries");o([t],r.prototype,"resetSlices");o([t],r.prototype,"ticksVisibility");o([t],r.prototype,"startAngle");o([t],r.prototype,"endAngle");o([t],r.prototype,"displayCategoryValueOnTooltip");o([t],r.prototype,"displayNumericValueOnTooltip");o([t],r.prototype,"displayPercentageOnTooltip");o([t],r.prototype,"valuePrefix");o([t],r.prototype,"valueSuffix");o([t],r.prototype,"percentagePrefix");o([t],r.prototype,"percentageSuffix");o([t],r.prototype,"dataLabelsOffset");o([t],r.prototype,"alignDataLabels");o([t],r.prototype,"dataLabelsInside");o([t],r.prototype,"optimizeDataLabelsOverlapping");var pi=[d,K,Y,$,q];C(r,pi);return r},a,c,d,e,h,i,j,k,l,n,o)
2
+ import o from"./IPECBZP3.js";import n from"./XKHA7K4P.js";import l from"./Y5GMGU4M.js";import k from"./AYNWMLFD.js";import j from"./N3FUI2RC.js";import i from"./Y7HYSSRW.js";import h from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import e from"./7LI5APDL.js";import d from"./L6SM2ORZ.js";import c from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import{d as m}from"./3TBK72EK.js";import{I as O,L as f,da as L,fa as T,ma as N,o as b}from"./PAIRUVLU.js";import{f as u}from"./KX7KGXKQ.js";import{g as F}from"./SP2IPHWF.js";import"./IHHPUKGG.js";import{l as V}from"./RIM4HLHN.js";import{e as y,f as g}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as p}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{T:v,rb:M},{p:k,q:C,r:w},,{c:t},,U,{b:A},{b:q},{a:I,b:K,c:Y,d:$},,{a:h,b:G,c:_,d:W,e:B,f:z,g:j,h:E,i:R,j:D,k:P,l:S}])=>{var ee=i=>i.legend?.displayNumericValue??!1,ie=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayNumericValue=i)},se=i=>i.legend?.displayCategory??!1,te=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayCategory=i)},re=i=>i.legend?.displayPercentage??!1,oe=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.displayPercentage=i)},ae=i=>i.legend?.labelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ge=(i,e)=>{e.series[0]?.type===p.PieSeries&&(e.legend===void 0&&(e.legend=f()),e.legend.valueLabelMaxWidth=i)},ce=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,x=(i,e,s,a)=>{for(var n=pe(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&ce(e,s,n),n},d=class extends I{getDisplayNumericValue(){return ee(this._config)}setDisplayNumericValue(e){ie(e,this._config)}getDisplayPercentage(){return re(this._config)}setDisplayPercentage(e){oe(e,this._config)}getLabelMaxWidth(){return ae(this._config)}setLabelMaxWidth(e){ne(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ge(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return se(this._config)}set displayCategory(e){te(e,this._config),this.emitConfigUpdate("displayCategory")}};x([t],d.prototype,"setDisplayNumericValue");x([t],d.prototype,"setDisplayPercentage");x([t],d.prototype,"setLabelMaxWidth");var de=[I];C(d,de);var fe=i=>i.series?.[0]?.innerRadius,he=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ue=i=>i.series?.[0]?.dataLabelsCharacterLimit,me=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},H=i=>i.series[0]?.startAngle,ye=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},_e=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},Se=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,be=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Le=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,ve=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Ce=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,De=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},Pe=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},xe=i=>i.series?.[0]?.valueSuffix,Ve=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Fe=i=>i.series?.[0]?.percentagePrefix,Te=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ne=i=>i.series?.[0]?.percentageSuffix,Me=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},ke=i=>{let e,s=i.series?.[0];return s?.displayNumericValueOnDataLabel===!0&&s?.displayPercentageOnDataLabel===!0?e=g.Both:s?.displayNumericValueOnDataLabel===!0?e=g.Value:e=g.Percentage,e},we=(i,e)=>{let s=i===g.Value||i===g.Both,a=i===g.Percentage||i===g.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=s,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:s,displayPercentage:a})},Ae=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Be=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,je=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ee=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Re=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=O(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=O(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Ue=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ke=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},Ye=i=>i.series[0]?.ticks?.visible??!1,$e=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.lineSymbol=F(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Xe=(i,e,s)=>{s.series?.[0]?.slices?.[e]&&(s.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,ei=(i,e,s)=>{let a=s.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:u.SLS,color:i}):s.series?.[0]?.slices?.[e]!==void 0&&(s.series[0].slices[e].fillSymbol={type:u.SFS,color:i,outline:{type:u.SLS,color:i}})},ii=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),J=(i,e)=>{e.series?.[0]?.slices?.sort((s,a)=>i.findIndex(n=>s.sliceId===n)-i.findIndex(n=>a.sliceId===n))},si=i=>i.series?.[0]?.sliceGrouping,Q=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},X=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ti=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:b.defaultGroupOfSlicesId,percentageThreshold:i}},ri=i=>i.series?.[0]?.slices,Z=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},oi=i=>{Z(void 0,i),Q({sliceId:b.defaultGroupOfSlicesId,percentageThreshold:X(i)??0},i)},ai=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ni=(i,e)=>e.series[0]?.slices?.findIndex(s=>s.sliceId===i),li=i=>i.series[0]?.slices?.length??0,gi=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,o=(i,e,s,a)=>{for(var n=ci(e,s),l=i.length-1,c;l>=0;l--)(c=i[l])&&(n=c(e,s,n)||n);return n&&gi(e,s,n),n},r=class extends U{constructor(){super(...arguments),this._chartType=p.PieSeries,this._mode=y.Category,this._groupedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:s}=e;if(s!==void 0){let a=v(s.series)!==m.PieFromFields?y.Category:y.Fields;this._mode=S({category:h(this._config),numericFields:_(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!A(this._config)||e.trim()!=="")&&(this._mode=S({category:e,numericFields:_(this._config),fallbackMode:this._mode}),j({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return _(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||k(this.layerInfo.layerFieldsInfo,e)?(this._mode=S({category:h(this._config),numericFields:e,fallbackMode:this._mode}),R({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):V("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return W(this._config,this._mode)}set aggregationType(e){E({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return G(this._config,this._mode)}setSortOrder(e,s){z({newSortOrderKind:e,config:this._config,orderByList:s})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=h(this._config),s=v(this._config.series),a=[];return s===m.PieFromFields?a=this.numericFields:e.trim()!==""&&s===m.PieFromCategory&&(a=await w({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),a}moveCustomSortValuesInOrderByList(e,s){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(s,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ri(this._config)}set slices(e){Z(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return si(this._config)}set sliceGrouping(e){Q(e,this._config)}get innerRadiusSize(){return fe(this._config)??0}set innerRadiusSize(e){he(e,this._config)}get groupingThreshold(){return X(this._config)??0}set groupingThreshold(e){ti(e,this._config)}get labelCharacterLimit(){return ue(this._config)??null}set labelCharacterLimit(e){me(e,this._config)}get decimalPlaces(){return Ee(this._config)??1}set decimalPlaces(e){Re(e,this._config)}get displayType(){return ke(this._config)}set displayType(e){we(e,this._config)}generateDefaultConfig(){let e=N(this.commonStrings);return e.series=[T(this.commonStrings,M(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,s){Xe(e,s,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,s){ei(e,s,this._config)}get orderOfSlices(){return ii(this._config)}set orderOfSlices(e){e!==void 0&&J(e,this._config)}moveSeries(e,s){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(s,0,n),J(a,this._config)}}getSliceId(e){return ai(e,this._config)}getSliceIndex(e){return ni(e,this._config)}getSlicesLength(){return li(this._config)}resetSlices(){oi(this._config)}resetAvailable(){let e=!this.colorMatch,s=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let l=this.getOriginalSliceName(n),c=this.getSliceName(n);if(l!==void 0&&l?.toString()!==c?.toString()){s=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(s=!0),e||s}get ticksVisibility(){return Ye(this._config)}set ticksVisibility(e){$e(e,this._config)}get startAngle(){return H(this._config)}set startAngle(e){ye(e,this._config)}get endAngle(){return H(this._config)}set endAngle(e){_e(e,this._config)}get displayCategoryOnDataLabel(){return be(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return Se(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return Oe(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Le(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return ve(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Ce(this._config)}set displayPercentageOnTooltip(e){De(e,this._config)}get valuePrefix(){return Pe(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return xe(this._config)}set valueSuffix(e){Ve(e,this._config)}get percentagePrefix(){return Fe(this._config)}set percentagePrefix(e){Te(e,this._config)}get percentageSuffix(){return Ne(this._config)}set percentageSuffix(e){Me(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){je(e,this._config)}get alignDataLabels(){return Ae(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Be(e,this._config)}get optimizeDataLabelsOverlapping(){return Ue(this._config)}set optimizeDataLabelsOverlapping(e){Ke(e,this._config)}generateChartTitle(){return B({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};o([t],r.prototype,"category");o([t],r.prototype,"numericFields");o([t],r.prototype,"aggregationType");o([t],r.prototype,"setSortOrder");o([t],r.prototype,"orderByList");o([t],r.prototype,"mode");o([t],r.prototype,"moveCustomSortValuesInOrderByList");o([t],r.prototype,"ticksSymbol");o([t],r.prototype,"slices");o([t],r.prototype,"groupedSliceIds");o([t],r.prototype,"sliceGrouping");o([t],r.prototype,"innerRadiusSize");o([t],r.prototype,"groupingThreshold");o([t],r.prototype,"labelCharacterLimit");o([t],r.prototype,"decimalPlaces");o([t],r.prototype,"displayType");o([t],r.prototype,"setSliceName");o([t],r.prototype,"setSliceColor");o([t],r.prototype,"orderOfSlices");o([t],r.prototype,"moveSeries");o([t],r.prototype,"resetSlices");o([t],r.prototype,"ticksVisibility");o([t],r.prototype,"startAngle");o([t],r.prototype,"endAngle");o([t],r.prototype,"displayCategoryValueOnTooltip");o([t],r.prototype,"displayNumericValueOnTooltip");o([t],r.prototype,"displayPercentageOnTooltip");o([t],r.prototype,"valuePrefix");o([t],r.prototype,"valueSuffix");o([t],r.prototype,"percentagePrefix");o([t],r.prototype,"percentageSuffix");o([t],r.prototype,"dataLabelsOffset");o([t],r.prototype,"alignDataLabels");o([t],r.prototype,"dataLabelsInside");o([t],r.prototype,"optimizeDataLabelsOverlapping");var pi=[d,K,Y,$,q];C(r,pi);return r},a,c,d,e,h,i,j,k,l,n,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./GP5MHPDX.js";import e from"./WHBJYAT4.js";import c from"./OQWDZSTM.js";import{c as T}from"./Y7HBWU3M.js";import b from"./LZMLIBIH.js";import{h as O,p as te}from"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import{n as B}from"./3TBK72EK.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./PAIRUVLU.js";import{a as ee}from"./KX7KGXKQ.js";import{d as $,g as j,k as U,l as W}from"./SP2IPHWF.js";import{b as d}from"./QP5UAIC6.js";import{a as f,h,v as u}from"./547RDEMV.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
2
+ import g from"./XKHA7K4P.js";import e from"./N3FUI2RC.js";import c from"./6ODWWOUP.js";import{c as T}from"./Y7HBWU3M.js";import b from"./D46R6YHX.js";import{h as O,p as te}from"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import{n as B}from"./3TBK72EK.js";import{Da as K,F as J,G as oe,H as ie,P as D,Q as G,_ as re,ca as H,n as E,p as I}from"./PAIRUVLU.js";import{a as ee}from"./KX7KGXKQ.js";import{d as $,g as j,k as U,l as W}from"./SP2IPHWF.js";import{b as d}from"./QP5UAIC6.js";import{a as f,h,v as u}from"./547RDEMV.js";export default $arcgis.t(([{substitute:P},{O:M,S:se,ic:le,xb:ne,zb:R},{a:L,d:X,e:Y,f:ae,n:ce,r:ye},{a:me},{b:C},{i:N}])=>{var Ue=(o,e)=>e?.series?.[o]?.name,We=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},eo=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&O(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&O(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},oo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},io=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},ro=o=>Z(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Ae(o,e,i){let r=be(o,e,i),s=me(o),n=C(o);return r===s||n}function de(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Me(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=A(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var A=o=>M(o)?.x??I,Oe=$(o=>{let e=M(o),i=e?.query?.where?.split("=")[0].trim()??"";return se(e?.query?.where)?"":i},o=>M(o)?.query?.where),fe=$(o=>le(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...H(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return j(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=H(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=K,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=K)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??A(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(m=>W(S,m.y)&&m.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},m=i.series.find(v=>w===v.y);m!==void 0&&(!i.colorMatch&&"fillSymbol"in m&&(g.fillSymbol=m.fillSymbol,y=!0),g.id=m.id,g.name=m.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:E}),...t!==void 0?{color:t.color}:{}},markerSymbol:{...G(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=M(e)?.query??{},c=t??A(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:_(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let m of b)m.query&&(m.query.where=`${s}=''`)}else for(let m=0;m<S.length;m+=1){let v=S[m],q={y:n,seriesIndex:m,category:c,commonStrings:r},Q=g?Le(q):V(q),he=R({queryObject:i.layer,fieldName:s,fieldValue:v??""}),z=`${v}`,F={...Q,id:z,name:he??z,x:c===void 0||c===""?I:c,query:{...Q.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===z);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?O(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:O(x)?(F.lineSymbol={...J({width:E}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={...G(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Z(e)}),e.colorMatch=!p,Z(e)){let m=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:m,commonStrings:r});b.unshift(v)}return b}var so=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=ne(l),c=A(s),S=Ae(s,n,t),w=de(s,n,t),b=Me({config:s,layerInfo:n,newCategory:r}),p=Y(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),X({config:s,value:null,axisIndex:1,isMax:!1}),X({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=A(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var no=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return U(i)||(n=Se(e)),n=R({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},lo=o=>o?.showOutliers??!1,to=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,de(i,r,s)){let n=k(i,r,s);L(i,1,n)}},ao=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=d.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?d.customSort:r===h.Ascending?d.xAxisAsc:d.xAxisDesc;break;case u.Mean:e=r===h.Ascending?d.meanAsc:d.meanDesc;break;case u.Median:e=r===h.Ascending?d.medianAsc:d.medianDesc;break}return e},co=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===d.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case d.xAxisAsc:{r=u.Category,s=h.Ascending;break}case d.xAxisDesc:{r=u.Category,s=h.Descending;break}case d.meanAsc:{r=u.Mean,s=h.Ascending;break}case d.meanDesc:{r=u.Mean,s=h.Descending;break}case d.medianAsc:{r=u.Median,s=h.Ascending;break}case d.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Z=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=te(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},yo=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===d.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},mo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===d.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},fo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=A(e),n=Y(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:_(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},_=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!_(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:Ue,b:We,c:eo,d:Fe,e:Ie,f:oo,g:ve,h:Be,i:io,j:ro,k:A,l:Oe,m:fe,n:so,o:Te,p:k,q:be,r:no,s:lo,t:to,u:ao,v:xe,w:co,x:Z,y:Ne,z:yo,A:mo,B:fo,C:Pe,D:Ve}},"intl",a,b,c,e,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import v from"./NOAJPX72.js";import{a as Fs,b as M,c as Bs,d as I}from"./VY3KBD6N.js";import u from"./F2N6CMAL.js";import t from"./GP5MHPDX.js";import s from"./XST7FY7F.js";import r from"./JF7YQCM6.js";import q from"./EUGGSDEV.js";import o from"./LVSNOD77.js";import"./THTYR6IL.js";import n from"./CU56A45C.js";import l from"./KXKOTDCQ.js";import k from"./WHBJYAT4.js";import j from"./YPFJW7NS.js";import i from"./OQWDZSTM.js";import"./Y7HBWU3M.js";import e from"./GZU5HJCQ.js";import d from"./W6CKM3J3.js";import c from"./LZMLIBIH.js";import{i as h}from"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{l as g}from"./RIM4HLHN.js";import"./KDJ5RVHA.js";import{b as W}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as b}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,,{b:_s},{a:os,b:ns,c:as,d:hs},{b:ps,d:ys,f:ms},{b:ds,d:us,f:Ss},{d:cs,e:ls},{a:gs,b:fs},,{b:Ls},{A:w,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:F,w:B,x:ss,y:es,z:C}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return F(this._config)}setSortOrder(s,e){B(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=F(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});B(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(s){w(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Bs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=C(this._config),[o]=i.splice(s,1);i.splice(e,0,o),w(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),Cs=this.getSeriesName(a);if(x!==void 0&&x!==Cs){i=!0;break}if(this.showMeanLines===!0&&h(c)){let ws=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(ws!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)
2
+ import v from"./TSQOEJB4.js";import{a as Fs,b as M,c as Bs,d as I}from"./VY3KBD6N.js";import u from"./75XWLYW5.js";import t from"./XKHA7K4P.js";import s from"./NJAGOS7G.js";import r from"./IP3FZZNM.js";import q from"./ADJHTT4M.js";import o from"./XWDLT2E4.js";import"./THTYR6IL.js";import n from"./Y5GMGU4M.js";import l from"./AYNWMLFD.js";import k from"./N3FUI2RC.js";import j from"./Y7HYSSRW.js";import i from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import e from"./7LI5APDL.js";import d from"./L6SM2ORZ.js";import c from"./D46R6YHX.js";import{i as h}from"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import"./3TBK72EK.js";import{Da as m,ca as P,i as A,ja as D,m as f,n as p,p as y,y as O}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import{l as g}from"./RIM4HLHN.js";import"./KDJ5RVHA.js";import{b as W}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as b}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([,{o:E,p:U,q:N},,{c:r},,rs,,{b:_s},{a:os,b:ns,c:as,d:hs},{b:ps,d:ys,f:ms},{b:ds,d:us,f:Ss},{d:cs,e:ls},{a:gs,b:fs},,{b:Ls},{A:w,B:v,C:ts,D:is,a:R,b:d,c:V,d:z,e:u,f:S,g:j,h:k,i:T,j:q,k:Y,l:G,m:H,n:_,o:J,p:K,q:Q,r:L,s:X,t:Z,u:$,v:F,w:B,x:ss,y:es,z:C}])=>{var Ms=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,n=(l,s,e,i)=>{for(var o=Is(s,e),a=l.length-1,c;a>=0;a--)(c=l[a])&&(o=c(s,e,o)||o);return o&&Ms(s,e,o),o},t=class extends rs{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?y:s,this.dirtyAsyncSetters.push("category"),this.processSeriesRebuild()}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),U(e,s)?(this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),ts(this._category,this._numericFields)&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){E(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild()):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return X(this._config)}set showOutliers(s){Z({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return J(this._config)}set standardizeValues(s){$({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return F(this._config)}setSortOrder(s,e){B(s,this._config,e)}async getCustomSortValues(){return await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=F(this._config);if(e===W.customSort){this.startAsyncUpdate();let i=await v({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});B(e,this._config,i),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(s){w(s,this._config)}async updateSeriesFromLayerFilter(){this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild()}get showMeanLines(){return ss(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=es({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return z(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=Y(this._config),this._splitByField=G(this._config),this._numericFields=H(this._config)}generateDefaultConfig(){let s=D(this.commonStrings);return s.series=[P(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return!is(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],_(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await _(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}getSeriesName(s){return R(s,this._config)}setSeriesName(s,e){d(s,e,this._config)}getSeriesColor(s){return V(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Fs(e)}setSeriesLineStyle(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&M(s,i)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Bs(e)}setSeriesLineWidth(s,e){let i=this._config.series[e];this.showMeanLines===!0&&h(i)&&I(s,i)}get orderOfSeries(){return j(this._config)}set orderOfSeries(s){k(s,this._config)}moveSeries(s,e){T(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return q(this._config)}moveCustomSortValuesInOrderByList(s,e){let i=C(this._config),[o]=i.splice(s,1);i.splice(e,0,o),w(i,this._config)}generateChartTitle(){return Q(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return K(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),i=O({colorIndex:s,opacity:A}),o=this._config.series[s];S(i,s,this._config);let a=L({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});d(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(M(f,o),I(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,i=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let c=this._config.series[a],x=L({series:c,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),Cs=this.getSeriesName(a);if(x!==void 0&&x!==Cs){i=!0;break}if(this.showMeanLines===!0&&h(c)){let ws=this.getSeriesLineStyle(a),vs=this.getSeriesLineWidth(a);if(ws!==f||vs!==p){o=!0;break}}}return s||e||i||o}};n([r],t.prototype,"showOutliers");n([r],t.prototype,"standardizeValues");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"showMeanLines");n([r],t.prototype,"meanLinesBoxColor");n([r],t.prototype,"resetConfig");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setSeriesLineStyle");n([r],t.prototype,"setSeriesLineWidth");n([r],t.prototype,"orderOfSeries");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"resetSeriesStyling");var xs=[gs,os,ns,as,Ls,hs,_s,fs,ds,cs,us,ls,ps,ys,ms,Ss];N(t,xs);return t},a,c,d,e,i,j,k,l,n,o,q,r,s,t,u,v)