@arcgis/charts-components 5.0.0-next.158 → 5.0.0-next.159

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 (113) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{2V7XB6H4.js → 23CI3RGM.js} +1 -1
  3. package/dist/cdn/{NDU52BYA.js → 23PHK6Q3.js} +1 -1
  4. package/dist/cdn/{QLMRNKUQ.js → 2AXOHBTG.js} +1 -1
  5. package/dist/cdn/{6AURN756.js → 2PCL7BDH.js} +1 -1
  6. package/dist/cdn/{QK6RCLLF.js → 2TLI5IK4.js} +1 -1
  7. package/dist/cdn/{MISZ2NMU.js → 3LZOGVGM.js} +1 -1
  8. package/dist/cdn/{KY3JCZSP.js → 45MXWKY6.js} +1 -1
  9. package/dist/cdn/{M2TKPMMT.js → 4CGALRRQ.js} +1 -1
  10. package/dist/cdn/{3XFFDXHQ.js → 4K7ZYDKF.js} +1 -1
  11. package/dist/cdn/{XNL7NFAH.js → 4S7UHPZ2.js} +1 -1
  12. package/dist/cdn/5SFWMPAL.js +2 -0
  13. package/dist/cdn/{KVTFSNRI.js → 5WGR2IHJ.js} +1 -1
  14. package/dist/cdn/62UIRF3H.js +4 -0
  15. package/dist/cdn/6FSCLAIV.js +2 -0
  16. package/dist/cdn/{YAHISCT6.js → 7BQDP2JE.js} +1 -1
  17. package/dist/cdn/{JVBDLB6J.js → 7HDJ4GSM.js} +1 -1
  18. package/dist/cdn/{C2D4PMKS.js → 7TIE2DKP.js} +1 -1
  19. package/dist/cdn/{64LQTMWT.js → 7X2YAGTU.js} +1 -1
  20. package/dist/cdn/{I6M2SEPV.js → 7YRAV32J.js} +1 -1
  21. package/dist/cdn/{G77HWKMZ.js → A6ZS4JBJ.js} +1 -1
  22. package/dist/cdn/{DWNI6MAZ.js → B67O6VPT.js} +1 -1
  23. package/dist/cdn/{5KTCEQAS.js → BKIJ6QIW.js} +1 -1
  24. package/dist/cdn/{WJH2ZB2C.js → BM4LV6EH.js} +1 -1
  25. package/dist/cdn/{IQR4LTFT.js → CWXQVIOL.js} +1 -1
  26. package/dist/cdn/{P55AECIP.js → DA6LZ35B.js} +1 -1
  27. package/dist/cdn/{62Q5NN53.js → DPTKDNQB.js} +1 -1
  28. package/dist/cdn/{GETJXYEA.js → ECGGUBXX.js} +1 -1
  29. package/dist/cdn/{W2SRDXM2.js → EQQVZQPA.js} +1 -1
  30. package/dist/cdn/{GRFPR6LP.js → EZGIT5LQ.js} +1 -1
  31. package/dist/cdn/{M7EE7D5F.js → FMOZWC3Y.js} +1 -1
  32. package/dist/cdn/{4RGOWXHY.js → FR3NVVQY.js} +1 -1
  33. package/dist/cdn/{WESNWN3L.js → FTD5UVXO.js} +1 -1
  34. package/dist/cdn/{7KM6L3BG.js → G5ZHCAHU.js} +1 -1
  35. package/dist/cdn/{ZPNCCR62.js → G7XC3DHD.js} +1 -1
  36. package/dist/cdn/{SHM4CZPU.js → GG23R225.js} +1 -1
  37. package/dist/cdn/{KLONUA2K.js → GV2747L5.js} +1 -1
  38. package/dist/cdn/{VPVIHXGA.js → H7XKM35O.js} +1 -1
  39. package/dist/cdn/{AMHG4ZQ6.js → HKDI6JUF.js} +1 -1
  40. package/dist/cdn/{7TSSKRGD.js → I4LBY2IJ.js} +1 -1
  41. package/dist/cdn/{GBNVQDWY.js → IHJ3DMVF.js} +1 -1
  42. package/dist/cdn/{LHEQ53JJ.js → IS3RQQRJ.js} +1 -1
  43. package/dist/cdn/{AN5ERUB5.js → J2D226P4.js} +1 -1
  44. package/dist/cdn/{KMWCZIWA.js → JD7DFSFR.js} +1 -1
  45. package/dist/cdn/{4Z66DRAF.js → JWOACGON.js} +1 -1
  46. package/dist/cdn/{VB5RPSD3.js → KWVDYGKN.js} +1 -1
  47. package/dist/cdn/{ZDLSFUAP.js → L55BVO4Y.js} +1 -1
  48. package/dist/cdn/{CAUK65AY.js → LPUYUYKP.js} +1 -1
  49. package/dist/cdn/{GG3PLLNA.js → LZELHR5T.js} +1 -1
  50. package/dist/cdn/{FO2ZLJXJ.js → MNEU7XZS.js} +1 -1
  51. package/dist/cdn/{6GX7ZRO4.js → MZ2VSRNU.js} +1 -1
  52. package/dist/cdn/{AG6RJW4F.js → NATFS72O.js} +1 -1
  53. package/dist/cdn/{5CKMS657.js → NWPMXMIB.js} +1 -1
  54. package/dist/cdn/{ORCQHZIV.js → OJ7YOQ2Q.js} +1 -1
  55. package/dist/cdn/{HYRPS6N7.js → OZZTNFWS.js} +1 -1
  56. package/dist/cdn/{MYATFH46.js → P4CWVM3F.js} +1 -1
  57. package/dist/cdn/{MIEIKLAD.js → PW3IHV7Z.js} +1 -1
  58. package/dist/cdn/{KKSUIOJW.js → QCRIMI75.js} +1 -1
  59. package/dist/cdn/{MCSJNW5Z.js → QPOHR5NZ.js} +1 -1
  60. package/dist/cdn/{B4E2LEZ5.js → QQHM4RZQ.js} +1 -1
  61. package/dist/cdn/{H7CETLE7.js → RBRV4HJW.js} +1 -1
  62. package/dist/cdn/{YKARKGXM.js → RJ3O2IEU.js} +1 -1
  63. package/dist/cdn/{V63WEITJ.js → RMM33LHR.js} +1 -1
  64. package/dist/cdn/{53M2GI5B.js → RTKFG5ZZ.js} +1 -1
  65. package/dist/cdn/{XNEASAST.js → S5RUAJKR.js} +1 -1
  66. package/dist/cdn/{DN4BCK3P.js → S74NSGKM.js} +1 -1
  67. package/dist/cdn/{EMU2VTSL.js → SSCH2DXJ.js} +1 -1
  68. package/dist/cdn/{IYYKO6PY.js → SV3IS74T.js} +1 -1
  69. package/dist/cdn/{2XXVOGZO.js → TGO6QY2I.js} +1 -1
  70. package/dist/cdn/TJBC4CXQ.js +56 -0
  71. package/dist/cdn/{K6Z7VPCE.js → TJLHGYCJ.js} +1 -1
  72. package/dist/cdn/{R7PQRNFH.js → TOMVNX73.js} +1 -1
  73. package/dist/cdn/{DRUUHIXY.js → TQBS7ZGJ.js} +1 -1
  74. package/dist/cdn/{G4X3YIR3.js → USWVLIHW.js} +1 -1
  75. package/dist/cdn/{C635ZB4G.js → UU7H3QQX.js} +1 -1
  76. package/dist/cdn/{CLRN7ZKR.js → V6LRTSYP.js} +1 -1
  77. package/dist/cdn/{NLWXP3RF.js → VMVLN6F3.js} +1 -1
  78. package/dist/cdn/{RWWG3IRW.js → VSIKU7KG.js} +1 -1
  79. package/dist/cdn/{3F47KDA4.js → W2P2CHCT.js} +1 -1
  80. package/dist/cdn/{HEG6JPKW.js → WAHAF6VA.js} +1 -1
  81. package/dist/cdn/{RQB7WLMF.js → WFVDJHOW.js} +1 -1
  82. package/dist/cdn/{G6VEJICZ.js → WJHDEYRD.js} +1 -1
  83. package/dist/cdn/{IE5ATMNC.js → WPWVVMPA.js} +1 -1
  84. package/dist/cdn/{7ZRFD7LZ.js → WPYH2X5G.js} +1 -1
  85. package/dist/cdn/{RL6BNDJZ.js → XBUJWXVR.js} +1 -1
  86. package/dist/cdn/{U52UYUF5.js → XSKGEBNA.js} +1 -1
  87. package/dist/cdn/{2LMEFKSS.js → XV34WTN6.js} +1 -1
  88. package/dist/cdn/{HJPNTKVC.js → XZXK6EMI.js} +1 -1
  89. package/dist/cdn/{LCVXTZKC.js → Y6OEVM7W.js} +1 -1
  90. package/dist/cdn/{KLGJZTBX.js → ZUZ3WC7D.js} +6 -6
  91. package/dist/cdn/index.js +1 -1
  92. package/dist/chunks/bar-chart-series.js +5 -3
  93. package/dist/chunks/index.js +15 -15
  94. package/dist/chunks/index6.js +18 -0
  95. package/dist/components/arcgis-chart/customElement.js +2009 -2042
  96. package/dist/components/arcgis-charts-info-modal/customElement.js +29 -14
  97. package/dist/docs/api.json +1 -1
  98. package/dist/docs/docs.json +1 -1
  99. package/dist/docs/web-types.json +1 -1
  100. package/dist/json-schema/index.d.ts +2 -2
  101. package/dist/loader.js +3 -3
  102. package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
  103. package/dist/spec/rest-js-types.d.ts +15 -0
  104. package/dist/spec/web-chart.d.ts +4 -4
  105. package/dist/utils/chart-config/utils/index.d.ts +3 -0
  106. package/dist/utils/layer/query-parser/index.d.ts +4 -1
  107. package/dist/utils/localization/interfaces.d.ts +1 -0
  108. package/dist/utils/misc/index.d.ts +13 -7
  109. package/dist/utils/type-guards/index.d.ts +15 -8
  110. package/package.json +3 -3
  111. package/dist/cdn/DPD3VXPT.js +0 -58
  112. package/dist/cdn/WO77KL6H.js +0 -2
  113. package/dist/cdn/WY36Y4NV.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import g from"./G6VEJICZ.js";import f from"./NLWXP3RF.js";import e from"./H7CETLE7.js";import d from"./5KTCEQAS.js";import c from"./U52UYUF5.js";import{g as le,i as b,j as T,k as q,l as ce,m as ze,n as Qe}from"./UG7LOBJE.js";import a from"./KLGJZTBX.js";import{B as be,d as H,g as ee,m as Se,v as ie}from"./4B3QBH5T.js";import{a as W}from"./KUVOINJC.js";import{a as R,b as I,e as Fe,h as xe,k as z,n as V,o as Be,v as A,y as he}from"./NKG4FLLR.js";export default $arcgis.t(([{substitute:O},,,,,,,,,,,,,,{$c:U,Bb:N,Bc:$e,Da:Me,Gc:P,Hc:Ve,Jc:ae,Kc:je,Ma:E,Mc:re,Nc:ne,Nd:X,Rc:Ee,S:se,T:Ie,Ta:Q,U:Ce,Ub:Ne,Wb:te,Yc:Pe,Zc:oe,_c:Ue,ad:Xe,bd:w,ea:Ae,f:j,ha:qe,ia:ke,k:Te,ka:we,tb:M,uc:Le,wc:Oe,x:ve,xc:Re,zc:De,zd:_e},{a:D,b:ge,d:k,e:ye,f:Ye,g:ue,n:Je,r:Ke},{a:We},{c:J},{a:Ge,e:He},{a:Ze,b:de,f:$,g:Y,i:me}])=>{function is(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function ss(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function ts(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function ai(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function as(i,e){return e!=null||le(i)}async function ri(i){let{queryObject:e,chartConfig:s,options:r,splitByField:a}=i,t=[],o,l=ee(s),n=l.series[0],y=Ee({queryObject:e,chartConfig:l,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent});if(y.outStatistics?.[0]?.outStatisticFieldName&&(y.outStatistics[0].outStatisticFieldName=ve.outStatistics.outStatisticFieldName),w(n)&&Xe({xAxisValueFormatType:Te(l),setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,seriesConfig:n})&&Le(e)){let{temporalBinning:p,x:g}=n,{uniqueQuery:S}=await te({chartConfig:l,queryConfig:y,queryObject:e,options:r});o=await $e({queryObject:e,dateField:g,splitByField:a,queryConfig:S,temporalBinning:p}),t=Array.from(new Set(o.flatMap(f=>{let{stackedAttributes:d}=f,c=[];return d&&(c=d.map(m=>m[a]).filter(m=>m!==void 0)),c})).values())}else{let{uniqueQuery:p}=await te({chartConfig:l,queryObject:e,queryConfig:y,options:r});o=await De({queryObject:e,queryConfig:p,featureCount:1}),t=Array.from(new Set(o.map(g=>g.attributes[a]).filter(g=>g!==void 0)).values())}return{allValues:t,preFetchedQueryResponse:o}}function ni(i,e){let s=new Map;return i.series.forEach(r=>{let a=oe({where:r.query?.where,normalize:!0,escape:!1});e&&a!==null&&(a=Number(a));let t=he([r]);t!==void 0&&s.set(t,[...s.get(t)??[],a])}),s}function oi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:r}=i,a=new Map;return Array.from(s.keys()).forEach(t=>{let o=s.get(t)??[],l=[];r?l=e:e.forEach(n=>{o.includes(n)||l.push(n)}),a.set(t,l)}),a}function li(i){let{chartConfig:e,missingValue:s,splitByField:r,seriesTemplate:a}=i,t=JSON.parse(JSON.stringify({...e.series[0],...a}));if(t.query){if(t.id=`${s}-${e.series.length}-${Date.now()}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let l=t.id;t.query.outStatistics[0].outStatisticFieldName=l,"y"in t&&(t.y=l)}let o=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${r}=${o}`}return t}async function ci(i){let{updateSplitBySeries:e,config:s,options:r,queryObject:a}=i,{seriesTemplate:t}=e??{},o;if(e!==void 0&&s!==void 0&&(s.series.length>0||t!==void 0)&&e.addMissingSeries){let l=s.series.length===0;s.series.length===0&&t!==void 0&&s.series.push(t);let n=U(s.series);if((n===M.BoxPlotMonoFieldAndSplitBy||n===M.BoxPlotMultiFieldsAndSplitBy||n===M.BoxPlotMonoFieldAndCategoryAndSplitBy||n===M.BarAndLineSplitBy||n===M.BarAndLineSplitByNoAggregation)&&a!==void 0){let y=Pe(s.series[0]?.query?.where),p=Oe(a);await p.load();let g=p.getField(y)?.toJSON(),S=Ve(g),f=await ri({queryObject:a,chartConfig:s,splitByField:y,options:r}),{allValues:d}=f;if({preFetchedQueryResponse:o}=f,d.length>0){let c=ni(s,S),m=oi({allValues:d,configUniqueValuesPerSeriesType:c,initialConfigWasEmpty:l});Array.from(m.keys()).forEach(B=>{(m.get(B)??[]).forEach(x=>{s.series.push(li({chartConfig:s,seriesTemplate:t,missingValue:x,splitByField:y}))}),l&&s.series.shift()})}}}return o}function gi(i,e){e&&!le(e)&&(e=Re({chartConfig:e,queryObject:i}))}async function rs(i){let{configToAlter:e,layer:s,addMissingSeries:r,updateSplitBySeries:a,chartContainer:t,queryObject:o,options:l}=i,n=e,y;return n&&(gi(s,n),n=await We(n,s),r&&(y=await ci({updateSplitBySeries:a,config:n,options:l,queryObject:o})),n=_e(n,t)),{alteredConfig:n,preFetchedQueryResponse:y}}var yi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.size),e},ui=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.unit),e},di=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.timeAggregationType),e},mi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},pi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.nullPolicy),e},fi=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Si=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ns=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},os=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ls=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},cs=i=>{fi(0,i)},gs=i=>i.hideEmptyRowsAndColumns,ys=(i,e)=>{i.hideEmptyRowsAndColumns=e},us=(i,e)=>{let s=i.series[0];s.heatRulesType=e},ds=i=>i.series[0].heatRulesType,ms=(i,e)=>{let s=i.series[0];s.gradientRules=e},ps=i=>i.series[0].gradientRules,fs=i=>{let{yField:e,config:s,layerInfo:r}=i,{layerFieldsInfo:a}=r,t=J(1,s),o=Fi(s),l=X(s),n=s.series[0];if(typeof e=="string"&&o!==e&&n&&(n.y=e,ai(s),o===t||l)){let y=N(a,e);D(s,1,y)}},Fi=i=>i.series[0].y??"",Ss=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.xTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,0,t)}},Fs=i=>i.series[0].xTemporalBinning,xs=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.yTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,1,t)}},Bs=i=>i.series[0].yTemporalBinning,xi=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?A.Category:A.YValue,r=pe(e)[0],a=e.axes?.[1]?.valueFormat?.type==="category"?A.Category:A.YValue,t=pe(e)[1],o={...e.orderOptions.data??{},orderType:A.MultiAxes};r===W.customSort&&s===A.Category&&(o.orderByX=[...i]),t===W.customSort&&a===A.Category&&(o.orderByY=[...i]),Object.keys(o).length>1&&(e.orderOptions.data=o)},hs=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},bs=i=>i.series[0].gridLine?.width,Ts=(i,e)=>{let s=e.series[0],r=i?.length===4&&i.every(a=>typeof a=="number");s.gridLine&&r&&(s.gridLine.color=i)},vs=i=>i.series[0].gridLine?.color,Is=(i,e)=>{let s=e.legend;s&&(s.position=i)},Cs=i=>i.legend?.position??Fe.Bottom,As=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,qs=(i,e)=>{let s=e.series[0].query?.outStatistics?.[0];s?(s.onStatisticField=i,s.outStatisticFieldName=`${s.statisticType}_${i}`):e.series[0].query={outStatistics:[{onStatisticField:i,outStatisticFieldName:`${I.Count}_${i}`,statisticType:I.Count}]}},ks=i=>i.series[0].query?.outStatistics?.[0].statisticType??I.Count,ws=(i,e)=>{let s=e.series[0]?.query?.outStatistics?.[0];s&&i!==I.NoAggregation&&(s.statisticType=i,s.outStatisticFieldName=`${i}_${s.onStatisticField}`),(i===I.Count||i===I.Sum)&&Bi(V.Zero,e)},Ms=i=>i.nullPolicy,Bi=(i,e)=>{e.nullPolicy=i},Ns=i=>i.series[0].emptyCells,Ls=(i,e)=>{e.series[0].emptyCells=i},Os=i=>i.series[0].emptyCells?.text,Rs=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Ds=i=>i.includeLeapDay,$s=(i,e)=>{e.includeLeapDay=i},Vs=i=>i.series[0].emptyCells?.symbol,js=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function Es(i){return i.viewType}function Ps(i,e){Ne(e)||(e.viewType=i)}function Us(i){return i.series[0].classBreaksRules?.breaksCount??E.classBreaks.breaksCount}function Xs(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??E.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??E.classBreaks.breaksCount}}function _s(i){return i.series[0].classBreaksRules?.classificationMethod}function zs(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??E.classBreaks.breaksCount}function Qs(i,e){e.firstDayOfWeek=i}function Ws(i){return i.firstDayOfWeek}function _(i){let{seriesIndex:e,xAxisField:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,l=P(t?.layer).idField,n,y=a.series[e??0],p=!1,g=!1,S=!1;if(y===void 0){let c=a.series;p=c.slice(0,e).every(m=>b(m)),g=c.slice(0,e).every(m=>T(m)),S=c.slice(0,e).every(m=>ce(m))}else p=b(y),g=T(y),S=ce(y);p?n=qe({commonStrings:o,seriesIndex:e,objectIDField:l}):g?n=ke({commonStrings:o,seriesIndex:e,objectIDField:l}):S?n=Ae(o,l):n=we({seriesIndex:e,objectIDField:l,commonStrings:o});let f=a.series[0]?.dataLabels,d={...n,x:s,y:"",dataLabels:{...n.dataLabels,type:n.dataLabels?.type??R.Text,content:{...n.dataLabels?.content,...f?.content,type:be.TS},visible:f?.visible??!1}};if(d.query={groupByFieldsForStatistics:[s]},r!==I.NoAggregation&&l!==void 0){let c=`${r}_${l}_0`.toUpperCase();d.y=c,d.query.outStatistics=[{statisticType:r,onStatisticField:l,outStatisticFieldName:c}]}if(b(d)||T(d)||q(d)&&a.series[0]?.binTemporalData){let c;if(a?.series?.[0]!==void 0&&(c=U(a.series)),c!==M.BarAndLineNoAggregation&&c!==M.BarAndLineSplitByNoAggregation){let m=ui(a);m===z.Quarter&&(m=z.Month),d.temporalBinning={size:yi(a),unit:m,timeAggregationType:di(a),trimIncompleteTimeInterval:mi(a),nullPolicy:pi(a)}}}return ee(d)}function ei(i,e,s){let{layerFieldsInfo:r}=e,{idField:a,isTraditionalTypeOID:t}=P(e.layer),o=$(i),l=fe(i),n=si(i),y=K(i),p=t&&(l.length===0||l.includes(a)),g=Me(n,s),S=p?"":l.map(u=>N(r??[],u)).join(", "),f=N(r??[],o),d=N(r??[],y),c=i.series.some(u=>q(u)),m=c?"category":"xAxisField",B=f,x="";if(me({fieldName:o,numericFields:l,fieldList:r}))x=O(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:S});else if(n===I.NoAggregation){let u=p?a:S;if(y===""){let F=c?"aggrTypeCategory":"aggrTypeXAxisField";x=O(s.titleLabels[F],{aggregationType:u,[m]:B})}else{let F=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=O(s.titleLabels[F],{aggregationType:u,[m]:B,splitByField:d})}}else if(n===I.Count)if(y===""){let u=c?"aggrTypeCategory":"aggrTypeXAxisField";x=O(s.titleLabels[u],{aggregationType:g,[m]:B})}else{let u=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=O(s.titleLabels[u],{aggregationType:g,[m]:B,splitByField:d})}else if(y!==""){let u=c?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";x=O(s.titleLabels[u],{aggregationType:g,aggregationField:S,[m]:B,splitByField:d})}else if(l.length>0){let u=c?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";x=O(s.titleLabels[u],{aggregationType:g,aggregationFields:S,[m]:B})}return x}var ii=i=>oe({where:i.query?.where,normalize:!1,escape:!1})??"",si=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??I.NoAggregation,K=H(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return Ue(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),fe=H(i=>{let e=[];if(K(i)==="")e=i?.series.map(s=>{let r=s.query?.outStatistics?.map(a=>a.onStatisticField)??[];return r?.length>0?r:s.y}).flat()??[];else{let s=i?.series?.[0],r=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=r!==void 0?[r]:[]}return[...new Set(e.filter(s=>s!==""))]},i=>i?.series);function hi(i){let{numericFields:e,aggregationType:s,config:r,layerInfo:a}=i,t=!1;s===I.Count?t=!0:s===I.NoAggregation&&(t=e.every(n=>{let y=a.layerFieldsInfo.find(p=>p.name===n);return y!==void 0?ae(y):!1})),ue(r,1,t);let o=r.series.some(n=>b(n)),l=r.series.some(n=>T(n));if(o||l){let n=$(r),y=a.layerFieldsInfo.find(g=>g.name===n),p=y!==void 0&&ae(y);ue(r,0,p)}}var pe=i=>{let e;if(Q(i)){let s=i.orderOptions?.data?.orderByX??[""],r=i.orderOptions?.data?.orderByY??[""],a=i.axes?.[0]?.valueFormat?.type==="category"?A.Category:A.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?A.Category:A.YValue;e=[de(s,a),de(r,t)]}else{let s=i.orderOptions?.data?.orderType??A.Category,r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:xe.Ascending;e=[Ze(r,s)]}return e};function bi(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,{layerFieldsInfo:l}=t,n=!1,y=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:0,commonStrings:o}),p=Y({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,fieldList:l}).name,g={...y,id:`series_${Date.now()}`,name:o.axisLabels.values,x:j,y:p},S=[];for(let d of s)S.push({onStatisticField:d,outStatisticFieldName:`${d}_0`.toUpperCase(),statisticType:r});g.query={outStatistics:S};let f=a.series[0];return f!==void 0&&(g.id=f.id,a.colorMatch||(q(f)&&q(g)?g.fillSymbol=f.fillSymbol:(b(g)&&b(f)||T(g)&&T(f))&&(g.lineSymbol=f.lineSymbol,g.markerSymbol=f.markerSymbol),n=!0),g.id=f.id,f.name!==y.name&&(g.name=f.name)),a.series.length===1&&!a.colorMatch&&(q(g)?g.fillSymbol=a.series[0].fillSymbol:(b(g)||T(g))&&(g.lineSymbol=a.series[0].lineSymbol,g.markerSymbol=a.series[0].markerSymbol),n=!0),a.colorMatch=!n,[g]}function ti(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,{layerFieldsInfo:l}=t,n=P(t.layer).idField,y=[],p=!1;for(let c=0;c<s.length;c+=1){let m=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:c,commonStrings:o}),B=Y({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,numericFieldIndex:c,fieldList:l}).name,x=s[c],u={...m,query:{...m.query}};s&&x!==n&&(u={...u,id:x,name:N(l,x)});let F=x;u.query!==void 0&&(r!==I.NoAggregation?(F=B,u.query.outStatistics=[{...m.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:B,statisticType:r}]):delete u.query.outStatistics),u.y=F;let v=a.series.find(L=>L.query?.outStatistics?.[0]?.onStatisticField===x&&L.query.where===void 0);if(v!==void 0&&typeof v.y=="string"&&v.y.trim()!==""){a.colorMatch||(q(u)&&q(v)?u.fillSymbol=v.fillSymbol:(b(u)&&b(v)||T(u)&&T(v))&&(u.lineSymbol=v.lineSymbol,u.markerSymbol=v.markerSymbol),p=!0);let L=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:c,commonStrings:o});u.id=v.id,v.id!==L.id&&v.name!==L.name&&(u.id=v.id,u.name=v.name)}y.push(u)}let g=y.filter(c=>q(c)),S=y.filter(c=>b(c)||T(c)),f=a.series.filter(c=>q(c)),d=a.series.filter(c=>b(c)||T(c));return f.length===1&&g.length===1&&!a.colorMatch&&(q(f[0])&&q(g[0])&&(g[0].fillSymbol=f[0].fillSymbol),p=!0),d.length===1&&S.length===1&&!a.colorMatch&&((b(d[0])&&b(S[0])||T(d[0])&&T(S[0]))&&(S[0].lineSymbol=d[0].lineSymbol,S[0].markerSymbol=d[0].markerSymbol),p=!0),a.colorMatch=!p,y}async function Ti(i){let{splitByField:e,xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l}=i,{layer:n,layerFieldsInfo:y}=o,{fetchNullValues:p}=t?.series?.[0]?.query??{},g=s!==j?s:void 0,{categoriesArray:S,splitByFieldType:f,numericalField:d}=await Je({config:t,layer:n,layerFieldsInfo:y,xAxisField:g,aggregationFields:r,splitByField:e,fetchNullValues:p}),c=[],m=!1;if(S.length===0){c=ti({xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l});for(let B of c)B.query&&(B.query.where=`${e}=''`)}else for(let B=0;B<S.length;B+=1){let x=S[B],u=Y({config:t,xAxisField:s,numericFields:r,aggregationType:a,layer:o.layer,seriesIndex:B,splitByField:e,fieldList:y}).name,F=_({config:t,xAxisField:s,aggregationType:a,layerInfo:o,seriesIndex:B,commonStrings:l}),v={fieldName:e,fieldValueToMatch:x??"",subtypeInfo:re(o.layer),fieldList:o.layerFieldsInfo},L=ne(v),Z=`${x}`,h={...F,id:Z,name:L??Z,y:u,query:{...F.query,where:`${e}=${f===ie.String&&x!==null?`'${x}'`:x}`,outStatistics:a!==I.NoAggregation?[{...F.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:u,statisticType:a}]:void 0}};a===I.NoAggregation&&(h.query!==void 0&&(delete h.query.outStatistics,delete h.query.groupByFieldsForStatistics),h.y=d);let C=t.series.find(G=>String(ii(G)).trim().replace(/'/gu,"")===Z);C!==void 0&&(t.colorMatch||(q(h)&&q(C)?h.fillSymbol=C.fillSymbol:(b(h)&&b(C)||T(h)&&T(C))&&(h.lineSymbol=C.lineSymbol,h.markerSymbol=C.markerSymbol),m=!0),(b(h)&&b(C)||T(h)&&T(C))&&(h.lineSmoothed=C.lineSmoothed),(b(h)&&b(C)||T(h)&&T(C))&&(h.showArea=C.showArea),h.id=C.id,h.name=C.name),h.query&&(h.query.fetchNullValues=t.series.some(G=>G.query?.fetchNullValues)),c.push(h)}return t.colorMatch=!m,c}var Ys=async i=>{let{xAxisField:e,splitByField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l}=i,{layerFieldsInfo:n}=o??{},y=He(t),p=$(t),g=vi(t,o,l),S=Ii(t,o,l),f=Ci(t,o),d=ye(t),c=t.series.some(F=>q(F)),m=ze(t.series),B=Qe(t.series),x=Q(t),u={};if(x&&(u.classBreaksRules=t.series[0]?.classBreaksRules,u.xTemporalBinning=t.series[0]?.xTemporalBinning,u.yTemporalBinning=t.series[0]?.yTemporalBinning),n!==void 0){let F=je(n);!F.includes(p)&&F.includes(e)?d=Ie():F.includes(p)&&!F.includes(e)&&(c?d=se():d=Ce()),n.find(v=>v.name===e)?.type===ie.String&&(d=se()),d!==void 0&&Ye(t,l,d)}if(y===0&&(t.series=[_({config:t,xAxisField:e,aggregationType:a,layerInfo:o,commonStrings:l})]),t.series.forEach(F=>{F.x=e,F.query!==void 0&&(F.query.groupByFieldsForStatistics=[e])}),s===""||r.length>1?me({fieldName:e,numericFields:r,fieldList:n})?t.series=bi({config:t,layerInfo:o,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):t.series=ti({config:t,layerInfo:o,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):(await Promise.resolve(),t.series=await Ti({config:t,layerInfo:o,splitByField:s,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l})),f){let F=N(n,e);D(t,0,F)}if(S){let F=ge({config:t,layerInfo:o,commonStrings:l,numericFields:r,aggregationType:a});D(t,1,F)}if(t.title&&g&&(t.title.content.text=ei(t,o,l)),k({config:t,value:null,axisIndex:1,isMax:!1}),k({config:t,value:null,axisIndex:1,isMax:!0}),hi({numericFields:r,aggregationType:a,config:t,layerInfo:o}),m||B){k({config:t,value:null,axisIndex:0,isMax:!1}),k({config:t,value:null,axisIndex:0,isMax:!0});let F=d?.type===R.DateAxisFormat?V.Null:V.Interpolate;Si(F,t)}x&&(t.series[0].classBreaksRules=u.classBreaksRules,t.series[0].xTemporalBinning=u.xTemporalBinning,t.series[0].yTemporalBinning=u.yTemporalBinning)},Js=i=>{let{config:e,seriesIndex:s,layerInfo:r,commonStrings:a}=i,t=e.series?.[s],o=K(e),l;if(U(e.series)===M.BarAndLineFromFields)l=a.axisLabels.values;else if(Se(o)){let n=t.query?.outStatistics?.[0]?.onStatisticField;n!==void 0&&n!==P(r.layer).idField&&(l=N(r.layerFieldsInfo,n))}else{let n=String(ii(t)).trim().replace(/'/gu,""),y={fieldName:K(e),fieldValueToMatch:n??"",subtypeInfo:re(r.layer),fieldList:r.layerFieldsInfo};l=ne(y)??n}return l??t.id},Ks=(i,e)=>{if(Q(e))xi(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;pe(e)[0]===W.customSort&&s===A.Category&&(e.orderOptions.data={orderType:A.Category,orderBy:[...i]})}},Zs=async(i,e)=>{let s=$(i),r=ye(i)?.type,a=fe(i),t=U(i.series),o=[];return r===R.CategoryAxisFormat&&(t===M.BarAndLineFromFields||s===j?o=a.map(l=>N(e?.layerFieldsInfo,l)):s.trim()!==""&&s!==j&&e!==void 0&&(o=await Ke({layerInfo:e,config:i,category:s}))),o};function vi(i,e,s){let r=ei(i,e,s),a=Ge(i),t=X(i);return r===a||t}function Ii(i,e,s){let r=ge({config:i,layerInfo:e,commonStrings:s,numericFields:fe(i),aggregationType:si(i)}),a=J(1,i),t=X(i);return r===a||t}function Ci(i,e){let s=N(e.layerFieldsInfo,$(i)),r=J(0,i),a=X(i);return s===r||a}function Gs(i){return i.series[0]?.binTemporalData??!1}function Hs(i,e){e?.series.forEach(s=>{(s?.type===R.BarSeries||s?.type===R.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:z.Day,size:0,timeAggregationType:Be.Start,trimIncompleteTimeInterval:!0,nullPolicy:V.Null}:delete s.temporalBinning)})}return{a:is,b:ss,c:ts,d:ai,e:as,f:rs,g:yi,h:ui,i:di,j:mi,k:pi,l:fi,m:Si,n:ns,o:os,p:ls,q:cs,r:gs,s:ys,t:us,u:ds,v:ms,w:ps,x:fs,y:Fi,z:Ss,A:Fs,B:xs,C:Bs,D:hs,E:bs,F:Ts,G:vs,H:Is,I:Cs,J:As,K:qs,L:ks,M:ws,N:Ms,O:Bi,P:Ns,Q:Ls,R:Os,S:Rs,T:Ds,U:$s,V:Vs,W:js,X:Es,Y:Ps,Z:Us,_:Xs,$:_s,aa:zs,ba:Qs,ca:Ws,da:ei,ea:si,fa:K,ga:fe,ha:pe,ia:Ys,ja:Js,ka:Ks,la:Zs,ma:Gs,na:Hs}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,c,d,e,f,g)
2
+ import g from"./WJHDEYRD.js";import f from"./VMVLN6F3.js";import e from"./RBRV4HJW.js";import d from"./BKIJ6QIW.js";import c from"./XSKGEBNA.js";import{g as le,i as b,j as T,k as q,l as ce,m as ze,n as Qe}from"./UG7LOBJE.js";import a from"./ZUZ3WC7D.js";import{B as be,d as H,g as ee,m as Se,v as ie}from"./4B3QBH5T.js";import{a as W}from"./KUVOINJC.js";import{a as R,b as I,e as Fe,h as xe,k as z,n as V,o as Be,v as A,y as he}from"./NKG4FLLR.js";export default $arcgis.t(([{substitute:O},,,,,,,,,,,,,,{$c:U,Bb:N,Bc:$e,Da:Me,Gc:P,Hc:Ve,Jc:ae,Kc:je,Ma:E,Mc:re,Nc:ne,Nd:X,Rc:Ee,S:se,T:Ie,Ta:Q,U:Ce,Ub:Ne,Wb:te,Yc:Pe,Zc:oe,_c:Ue,ad:Xe,bd:w,ea:Ae,f:j,ha:qe,ia:ke,k:Te,ka:we,tb:M,uc:Le,wc:Oe,x:ve,xc:Re,zc:De,zd:_e},{a:D,b:ge,d:k,e:ye,f:Ye,g:ue,n:Je,r:Ke},{a:We},{c:J},{a:Ge,e:He},{a:Ze,b:de,f:$,g:Y,i:me}])=>{function is(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.position=i)),s}function ss(i,e){let s;return e!==void 0&&(s={...e},s.legend!==void 0&&(s.legend.visible=i)),s}function ts(i,e){let s;return e!==void 0&&(s={...e,rotated:i}),s}function ai(i){let e;return i!==void 0&&(e={...i},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function as(i,e){return e!=null||le(i)}async function ri(i){let{queryObject:e,chartConfig:s,options:r,splitByField:a}=i,t=[],o,l=ee(s),n=l.series[0],y=Ee({queryObject:e,chartConfig:l,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent});if(y.outStatistics?.[0]?.outStatisticFieldName&&(y.outStatistics[0].outStatisticFieldName=ve.outStatistics.outStatisticFieldName),w(n)&&Xe({xAxisValueFormatType:Te(l),setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,seriesConfig:n})&&Le(e)){let{temporalBinning:p,x:g}=n,{uniqueQuery:S}=await te({chartConfig:l,queryConfig:y,queryObject:e,options:r});o=await $e({queryObject:e,dateField:g,splitByField:a,queryConfig:S,temporalBinning:p}),t=Array.from(new Set(o.flatMap(f=>{let{stackedAttributes:d}=f,c=[];return d&&(c=d.map(m=>m[a]).filter(m=>m!==void 0)),c})).values())}else{let{uniqueQuery:p}=await te({chartConfig:l,queryObject:e,queryConfig:y,options:r});o=await De({queryObject:e,queryConfig:p,featureCount:1}),t=Array.from(new Set(o.map(g=>g.attributes[a]).filter(g=>g!==void 0)).values())}return{allValues:t,preFetchedQueryResponse:o}}function ni(i,e){let s=new Map;return i.series.forEach(r=>{let a=oe({where:r.query?.where,normalize:!0,escape:!1});e&&a!==null&&(a=Number(a));let t=he([r]);t!==void 0&&s.set(t,[...s.get(t)??[],a])}),s}function oi(i){let{allValues:e,configUniqueValuesPerSeriesType:s,initialConfigWasEmpty:r}=i,a=new Map;return Array.from(s.keys()).forEach(t=>{let o=s.get(t)??[],l=[];r?l=e:e.forEach(n=>{o.includes(n)||l.push(n)}),a.set(t,l)}),a}function li(i){let{chartConfig:e,missingValue:s,splitByField:r,seriesTemplate:a}=i,t=JSON.parse(JSON.stringify({...e.series[0],...a}));if(t.query){if(t.id=`${s}-${e.series.length}-${Date.now()}`,t.name=`${s}`,t.query.outStatistics?.[0]!==void 0){let l=t.id;t.query.outStatistics[0].outStatisticFieldName=l,"y"in t&&(t.y=l)}let o=typeof s=="number"||s===null?s:`'${s}'`;t.query.where=`${r}=${o}`}return t}async function ci(i){let{updateSplitBySeries:e,config:s,options:r,queryObject:a}=i,{seriesTemplate:t}=e??{},o;if(e!==void 0&&s!==void 0&&(s.series.length>0||t!==void 0)&&e.addMissingSeries){let l=s.series.length===0;s.series.length===0&&t!==void 0&&s.series.push(t);let n=U(s.series);if((n===M.BoxPlotMonoFieldAndSplitBy||n===M.BoxPlotMultiFieldsAndSplitBy||n===M.BoxPlotMonoFieldAndCategoryAndSplitBy||n===M.BarAndLineSplitBy||n===M.BarAndLineSplitByNoAggregation)&&a!==void 0){let y=Pe(s.series[0]?.query?.where),p=Oe(a);await p.load();let g=p.getField(y)?.toJSON(),S=Ve(g),f=await ri({queryObject:a,chartConfig:s,splitByField:y,options:r}),{allValues:d}=f;if({preFetchedQueryResponse:o}=f,d.length>0){let c=ni(s,S),m=oi({allValues:d,configUniqueValuesPerSeriesType:c,initialConfigWasEmpty:l});Array.from(m.keys()).forEach(B=>{(m.get(B)??[]).forEach(x=>{s.series.push(li({chartConfig:s,seriesTemplate:t,missingValue:x,splitByField:y}))}),l&&s.series.shift()})}}}return o}function gi(i,e){e&&!le(e)&&(e=Re({chartConfig:e,queryObject:i}))}async function rs(i){let{configToAlter:e,layer:s,addMissingSeries:r,updateSplitBySeries:a,chartContainer:t,queryObject:o,options:l}=i,n=e,y;return n&&(gi(s,n),n=await We(n,s),r&&(y=await ci({updateSplitBySeries:a,config:n,options:l,queryObject:o})),n=_e(n,t)),{alteredConfig:n,preFetchedQueryResponse:y}}var yi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.size),e},ui=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.unit),e},di=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.timeAggregationType),e},mi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.trimIncompleteTimeInterval),e},pi=i=>{let e,s=i.series[0];return w(s)&&(e=s.temporalBinning?.nullPolicy),e},fi=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.size=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Si=(i,e)=>{e?.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.nullPolicy=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ns=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.unit=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},os=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.timeAggregationType=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ls=(i,e)=>{e.series?.forEach(s=>{w(s)&&(s.temporalBinning??={},s.temporalBinning.trimIncompleteTimeInterval=i)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},cs=i=>{fi(0,i)},gs=i=>i.hideEmptyRowsAndColumns,ys=(i,e)=>{i.hideEmptyRowsAndColumns=e},us=(i,e)=>{let s=i.series[0];s.heatRulesType=e},ds=i=>i.series[0].heatRulesType,ms=(i,e)=>{let s=i.series[0];s.gradientRules=e},ps=i=>i.series[0].gradientRules,fs=i=>{let{yField:e,config:s,layerInfo:r}=i,{layerFieldsInfo:a}=r,t=J(1,s),o=Fi(s),l=X(s),n=s.series[0];if(typeof e=="string"&&o!==e&&n&&(n.y=e,ai(s),o===t||l)){let y=N(a,e);D(s,1,y)}},Fi=i=>i.series[0].y??"",Ss=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.xTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,0,t)}},Fs=i=>i.series[0].xTemporalBinning,xs=i=>{let{binning:e,config:s,commonStrings:r}=i,a=s.series[0];if(a.yTemporalBinning=e,e?.unit!==void 0&&e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits){let t=r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];D(s,1,t)}},Bs=i=>i.series[0].yTemporalBinning,xi=(i,e)=>{e.orderOptions??={};let s=e.axes?.[0]?.valueFormat?.type==="category"?A.Category:A.YValue,r=pe(e)[0],a=e.axes?.[1]?.valueFormat?.type==="category"?A.Category:A.YValue,t=pe(e)[1],o={...e.orderOptions.data??{},orderType:A.MultiAxes};r===W.customSort&&s===A.Category&&(o.orderByX=[...i]),t===W.customSort&&a===A.Category&&(o.orderByY=[...i]),Object.keys(o).length>1&&(e.orderOptions.data=o)},hs=(i,e)=>{let s=e.series[0];s.gridLine&&(s.gridLine.width=i)},bs=i=>i.series[0].gridLine?.width,Ts=(i,e)=>{let s=e.series[0],r=i?.length===4&&i.every(a=>typeof a=="number");s.gridLine&&r&&(s.gridLine.color=i)},vs=i=>i.series[0].gridLine?.color,Is=(i,e)=>{let s=e.legend;s&&(s.position=i)},Cs=i=>i.legend?.position??Fe.Bottom,As=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,qs=(i,e)=>{let s=e.series[0].query?.outStatistics?.[0];s?(s.onStatisticField=i,s.outStatisticFieldName=`${s.statisticType}_${i}`):e.series[0].query={outStatistics:[{onStatisticField:i,outStatisticFieldName:`${I.Count}_${i}`,statisticType:I.Count}]}},ks=i=>i.series[0].query?.outStatistics?.[0].statisticType??I.Count,ws=(i,e)=>{let s=e.series[0]?.query?.outStatistics?.[0];s&&i!==I.NoAggregation&&(s.statisticType=i,s.outStatisticFieldName=`${i}_${s.onStatisticField}`),(i===I.Count||i===I.Sum)&&Bi(V.Zero,e)},Ms=i=>i.nullPolicy,Bi=(i,e)=>{e.nullPolicy=i},Ns=i=>i.series[0].emptyCells,Ls=(i,e)=>{e.series[0].emptyCells=i},Os=i=>i.series[0].emptyCells?.text,Rs=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Ds=i=>i.includeLeapDay,$s=(i,e)=>{e.includeLeapDay=i},Vs=i=>i.series[0].emptyCells?.symbol,js=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function Es(i){return i.viewType}function Ps(i,e){Ne(e)||(e.viewType=i)}function Us(i){return i.series[0].classBreaksRules?.breaksCount??E.classBreaks.breaksCount}function Xs(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=i??E.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:i??E.classBreaks.breaksCount}}function _s(i){return i.series[0].classBreaksRules?.classificationMethod}function zs(i,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=i:e.series[0].classBreaksRules={classificationMethod:i},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??E.classBreaks.breaksCount}function Qs(i,e){e.firstDayOfWeek=i}function Ws(i){return i.firstDayOfWeek}function _(i){let{seriesIndex:e,xAxisField:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,l=P(t?.layer).idField,n,y=a.series[e??0],p=!1,g=!1,S=!1;if(y===void 0){let c=a.series;p=c.slice(0,e).every(m=>b(m)),g=c.slice(0,e).every(m=>T(m)),S=c.slice(0,e).every(m=>ce(m))}else p=b(y),g=T(y),S=ce(y);p?n=qe({commonStrings:o,seriesIndex:e,objectIDField:l}):g?n=ke({commonStrings:o,seriesIndex:e,objectIDField:l}):S?n=Ae(o,l):n=we({seriesIndex:e,objectIDField:l,commonStrings:o});let f=a.series[0]?.dataLabels,d={...n,x:s,y:"",dataLabels:{...n.dataLabels,type:n.dataLabels?.type??R.Text,content:{...n.dataLabels?.content,...f?.content,type:be.TS},visible:f?.visible??!1}};if(d.query={groupByFieldsForStatistics:[s]},r!==I.NoAggregation&&l!==void 0){let c=`${r}_${l}_0`.toUpperCase();d.y=c,d.query.outStatistics=[{statisticType:r,onStatisticField:l,outStatisticFieldName:c}]}if(b(d)||T(d)||q(d)&&a.series[0]?.binTemporalData){let c;if(a?.series?.[0]!==void 0&&(c=U(a.series)),c!==M.BarAndLineNoAggregation&&c!==M.BarAndLineSplitByNoAggregation){let m=ui(a);m===z.Quarter&&(m=z.Month),d.temporalBinning={size:yi(a),unit:m,timeAggregationType:di(a),trimIncompleteTimeInterval:mi(a),nullPolicy:pi(a)}}}return ee(d)}function ei(i,e,s){let{layerFieldsInfo:r}=e,{idField:a,isTraditionalTypeOID:t}=P(e.layer),o=$(i),l=fe(i),n=si(i),y=K(i),p=t&&(l.length===0||l.includes(a)),g=Me(n,s),S=p?"":l.map(u=>N(r??[],u)).join(", "),f=N(r??[],o),d=N(r??[],y),c=i.series.some(u=>q(u)),m=c?"category":"xAxisField",B=f,x="";if(me({fieldName:o,numericFields:l,fieldList:r}))x=O(s.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:S});else if(n===I.NoAggregation){let u=p?a:S;if(y===""){let F=c?"aggrTypeCategory":"aggrTypeXAxisField";x=O(s.titleLabels[F],{aggregationType:u,[m]:B})}else{let F=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=O(s.titleLabels[F],{aggregationType:u,[m]:B,splitByField:d})}}else if(n===I.Count)if(y===""){let u=c?"aggrTypeCategory":"aggrTypeXAxisField";x=O(s.titleLabels[u],{aggregationType:g,[m]:B})}else{let u=c?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=O(s.titleLabels[u],{aggregationType:g,[m]:B,splitByField:d})}else if(y!==""){let u=c?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";x=O(s.titleLabels[u],{aggregationType:g,aggregationField:S,[m]:B,splitByField:d})}else if(l.length>0){let u=c?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";x=O(s.titleLabels[u],{aggregationType:g,aggregationFields:S,[m]:B})}return x}var ii=i=>oe({where:i.query?.where,normalize:!1,escape:!1})??"",si=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??I.NoAggregation,K=H(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return Ue(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),fe=H(i=>{let e=[];if(K(i)==="")e=i?.series.map(s=>{let r=s.query?.outStatistics?.map(a=>a.onStatisticField)??[];return r?.length>0?r:s.y}).flat()??[];else{let s=i?.series?.[0],r=s?.query?.outStatistics?.[0]?.onStatisticField??[s?.y].flat()[0];e=r!==void 0?[r]:[]}return[...new Set(e.filter(s=>s!==""))]},i=>i?.series);function hi(i){let{numericFields:e,aggregationType:s,config:r,layerInfo:a}=i,t=!1;s===I.Count?t=!0:s===I.NoAggregation&&(t=e.every(n=>{let y=a.layerFieldsInfo.find(p=>p.name===n);return y!==void 0?ae(y):!1})),ue(r,1,t);let o=r.series.some(n=>b(n)),l=r.series.some(n=>T(n));if(o||l){let n=$(r),y=a.layerFieldsInfo.find(g=>g.name===n),p=y!==void 0&&ae(y);ue(r,0,p)}}var pe=i=>{let e;if(Q(i)){let s=i.orderOptions?.data?.orderByX??[""],r=i.orderOptions?.data?.orderByY??[""],a=i.axes?.[0]?.valueFormat?.type==="category"?A.Category:A.YValue,t=i.axes?.[1]?.valueFormat?.type==="category"?A.Category:A.YValue;e=[de(s,a),de(r,t)]}else{let s=i.orderOptions?.data?.orderType??A.Category,r=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:xe.Ascending;e=[Ze(r,s)]}return e};function bi(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,{layerFieldsInfo:l}=t,n=!1,y=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:0,commonStrings:o}),p=Y({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,fieldList:l}).name,g={...y,id:`series_${Date.now()}`,name:o.axisLabels.values,x:j,y:p},S=[];for(let d of s)S.push({onStatisticField:d,outStatisticFieldName:`${d}_0`.toUpperCase(),statisticType:r});g.query={outStatistics:S};let f=a.series[0];return f!==void 0&&(g.id=f.id,a.colorMatch||(q(f)&&q(g)?g.fillSymbol=f.fillSymbol:(b(g)&&b(f)||T(g)&&T(f))&&(g.lineSymbol=f.lineSymbol,g.markerSymbol=f.markerSymbol),n=!0),g.id=f.id,f.name!==y.name&&(g.name=f.name)),a.series.length===1&&!a.colorMatch&&(q(g)?g.fillSymbol=a.series[0].fillSymbol:(b(g)||T(g))&&(g.lineSymbol=a.series[0].lineSymbol,g.markerSymbol=a.series[0].markerSymbol),n=!0),a.colorMatch=!n,[g]}function ti(i){let{xAxisField:e,numericFields:s,aggregationType:r,config:a,layerInfo:t,commonStrings:o}=i,{layerFieldsInfo:l}=t,n=P(t.layer).idField,y=[],p=!1;for(let c=0;c<s.length;c+=1){let m=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:c,commonStrings:o}),B=Y({config:a,xAxisField:e,numericFields:s,aggregationType:r,layer:t.layer,numericFieldIndex:c,fieldList:l}).name,x=s[c],u={...m,query:{...m.query}};s&&x!==n&&(u={...u,id:x,name:N(l,x)});let F=x;u.query!==void 0&&(r!==I.NoAggregation?(F=B,u.query.outStatistics=[{...m.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:B,statisticType:r}]):delete u.query.outStatistics),u.y=F;let v=a.series.find(L=>L.query?.outStatistics?.[0]?.onStatisticField===x&&L.query.where===void 0);if(v!==void 0&&typeof v.y=="string"&&v.y.trim()!==""){a.colorMatch||(q(u)&&q(v)?u.fillSymbol=v.fillSymbol:(b(u)&&b(v)||T(u)&&T(v))&&(u.lineSymbol=v.lineSymbol,u.markerSymbol=v.markerSymbol),p=!0);let L=_({config:a,xAxisField:e,aggregationType:r,layerInfo:t,seriesIndex:c,commonStrings:o});u.id=v.id,v.id!==L.id&&v.name!==L.name&&(u.id=v.id,u.name=v.name)}y.push(u)}let g=y.filter(c=>q(c)),S=y.filter(c=>b(c)||T(c)),f=a.series.filter(c=>q(c)),d=a.series.filter(c=>b(c)||T(c));return f.length===1&&g.length===1&&!a.colorMatch&&(q(f[0])&&q(g[0])&&(g[0].fillSymbol=f[0].fillSymbol),p=!0),d.length===1&&S.length===1&&!a.colorMatch&&((b(d[0])&&b(S[0])||T(d[0])&&T(S[0]))&&(S[0].lineSymbol=d[0].lineSymbol,S[0].markerSymbol=d[0].markerSymbol),p=!0),a.colorMatch=!p,y}async function Ti(i){let{splitByField:e,xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l}=i,{layer:n,layerFieldsInfo:y}=o,{fetchNullValues:p}=t?.series?.[0]?.query??{},g=s!==j?s:void 0,{categoriesArray:S,splitByFieldType:f,numericalField:d}=await Je({config:t,layer:n,layerFieldsInfo:y,xAxisField:g,aggregationFields:r,splitByField:e,fetchNullValues:p}),c=[],m=!1;if(S.length===0){c=ti({xAxisField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l});for(let B of c)B.query&&(B.query.where=`${e}=''`)}else for(let B=0;B<S.length;B+=1){let x=S[B],u=Y({config:t,xAxisField:s,numericFields:r,aggregationType:a,layer:o.layer,seriesIndex:B,splitByField:e,fieldList:y}).name,F=_({config:t,xAxisField:s,aggregationType:a,layerInfo:o,seriesIndex:B,commonStrings:l}),v={fieldName:e,fieldValueToMatch:x??"",subtypeInfo:re(o.layer),fieldList:o.layerFieldsInfo},L=ne(v),Z=`${x}`,h={...F,id:Z,name:L??Z,y:u,query:{...F.query,where:`${e}=${f===ie.String&&x!==null?`'${x}'`:x}`,outStatistics:a!==I.NoAggregation?[{...F.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:u,statisticType:a}]:void 0}};a===I.NoAggregation&&(h.query!==void 0&&(delete h.query.outStatistics,delete h.query.groupByFieldsForStatistics),h.y=d);let C=t.series.find(G=>String(ii(G)).trim().replace(/'/gu,"")===Z);C!==void 0&&(t.colorMatch||(q(h)&&q(C)?h.fillSymbol=C.fillSymbol:(b(h)&&b(C)||T(h)&&T(C))&&(h.lineSymbol=C.lineSymbol,h.markerSymbol=C.markerSymbol),m=!0),(b(h)&&b(C)||T(h)&&T(C))&&(h.lineSmoothed=C.lineSmoothed),(b(h)&&b(C)||T(h)&&T(C))&&(h.showArea=C.showArea),h.id=C.id,h.name=C.name),h.query&&(h.query.fetchNullValues=t.series.some(G=>G.query?.fetchNullValues)),c.push(h)}return t.colorMatch=!m,c}var Ys=async i=>{let{xAxisField:e,splitByField:s,numericFields:r,aggregationType:a,config:t,layerInfo:o,commonStrings:l}=i,{layerFieldsInfo:n}=o??{},y=He(t),p=$(t),g=vi(t,o,l),S=Ii(t,o,l),f=Ci(t,o),d=ye(t),c=t.series.some(F=>q(F)),m=ze(t.series),B=Qe(t.series),x=Q(t),u={};if(x&&(u.classBreaksRules=t.series[0]?.classBreaksRules,u.xTemporalBinning=t.series[0]?.xTemporalBinning,u.yTemporalBinning=t.series[0]?.yTemporalBinning),n!==void 0){let F=je(n);!F.includes(p)&&F.includes(e)?d=Ie():F.includes(p)&&!F.includes(e)&&(c?d=se():d=Ce()),n.find(v=>v.name===e)?.type===ie.String&&(d=se()),d!==void 0&&Ye(t,l,d)}if(y===0&&(t.series=[_({config:t,xAxisField:e,aggregationType:a,layerInfo:o,commonStrings:l})]),t.series.forEach(F=>{F.x=e,F.query!==void 0&&(F.query.groupByFieldsForStatistics=[e])}),s===""||r.length>1?me({fieldName:e,numericFields:r,fieldList:n})?t.series=bi({config:t,layerInfo:o,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):t.series=ti({config:t,layerInfo:o,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l}):(await Promise.resolve(),t.series=await Ti({config:t,layerInfo:o,splitByField:s,xAxisField:e,numericFields:r,aggregationType:a,commonStrings:l})),f){let F=N(n,e);D(t,0,F)}if(S){let F=ge({config:t,layerInfo:o,commonStrings:l,numericFields:r,aggregationType:a});D(t,1,F)}if(t.title&&g&&(t.title.content.text=ei(t,o,l)),k({config:t,value:null,axisIndex:1,isMax:!1}),k({config:t,value:null,axisIndex:1,isMax:!0}),hi({numericFields:r,aggregationType:a,config:t,layerInfo:o}),m||B){k({config:t,value:null,axisIndex:0,isMax:!1}),k({config:t,value:null,axisIndex:0,isMax:!0});let F=d?.type===R.DateAxisFormat?V.Null:V.Interpolate;Si(F,t)}x&&(t.series[0].classBreaksRules=u.classBreaksRules,t.series[0].xTemporalBinning=u.xTemporalBinning,t.series[0].yTemporalBinning=u.yTemporalBinning)},Js=i=>{let{config:e,seriesIndex:s,layerInfo:r,commonStrings:a}=i,t=e.series?.[s],o=K(e),l;if(U(e.series)===M.BarAndLineFromFields)l=a.axisLabels.values;else if(Se(o)){let n=t.query?.outStatistics?.[0]?.onStatisticField;n!==void 0&&n!==P(r.layer).idField&&(l=N(r.layerFieldsInfo,n))}else{let n=String(ii(t)).trim().replace(/'/gu,""),y={fieldName:K(e),fieldValueToMatch:n??"",subtypeInfo:re(r.layer),fieldList:r.layerFieldsInfo};l=ne(y)??n}return l??t.id},Ks=(i,e)=>{if(Q(e))xi(i,e);else{e.orderOptions??={};let s=e.orderOptions?.data?.orderType;pe(e)[0]===W.customSort&&s===A.Category&&(e.orderOptions.data={orderType:A.Category,orderBy:[...i]})}},Zs=async(i,e)=>{let s=$(i),r=ye(i)?.type,a=fe(i),t=U(i.series),o=[];return r===R.CategoryAxisFormat&&(t===M.BarAndLineFromFields||s===j?o=a.map(l=>N(e?.layerFieldsInfo,l)):s.trim()!==""&&s!==j&&e!==void 0&&(o=await Ke({layerInfo:e,config:i,category:s}))),o};function vi(i,e,s){let r=ei(i,e,s),a=Ge(i),t=X(i);return r===a||t}function Ii(i,e,s){let r=ge({config:i,layerInfo:e,commonStrings:s,numericFields:fe(i),aggregationType:si(i)}),a=J(1,i),t=X(i);return r===a||t}function Ci(i,e){let s=N(e.layerFieldsInfo,$(i)),r=J(0,i),a=X(i);return s===r||a}function Gs(i){return i.series[0]?.binTemporalData??!1}function Hs(i,e){e?.series.forEach(s=>{(s?.type===R.BarSeries||s?.type===R.LineSeries)&&(s.binTemporalData=i,i?s.temporalBinning={unit:z.Day,size:0,timeAggregationType:Be.Start,trimIncompleteTimeInterval:!0,nullPolicy:V.Null}:delete s.temporalBinning)})}return{a:is,b:ss,c:ts,d:ai,e:as,f:rs,g:yi,h:ui,i:di,j:mi,k:pi,l:fi,m:Si,n:ns,o:os,p:ls,q:cs,r:gs,s:ys,t:us,u:ds,v:ms,w:ps,x:fs,y:Fi,z:Ss,A:Fs,B:xs,C:Bs,D:hs,E:bs,F:Ts,G:vs,H:Is,I:Cs,J:As,K:qs,L:ks,M:ws,N:Ms,O:Bi,P:Ns,Q:Ls,R:Os,S:Rs,T:Ds,U:$s,V:Vs,W:js,X:Es,Y:Ps,Z:Us,_:Xs,$:_s,aa:zs,ba:Qs,ca:Ws,da:ei,ea:si,fa:K,ga:fe,ha:pe,ia:Ys,ja:Js,ka:Ks,la:Zs,ma:Gs,na:Hs}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b}from"./FEJD2JHY.js";import e from"./G77HWKMZ.js";import"./DPJE33GY.js";import{a as $}from"./6KBLMTZM.js";import d from"./U52UYUF5.js";import"./UG7LOBJE.js";import c from"./KLGJZTBX.js";import{w as i}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as o,C as r,F as y,g as C,h as v,m as s,x as a,y as n,z as f}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{z:S},,{a:w,f:E,g:x,h:c,i:p}])=>{var l={jsAppFlyout:"js-app-flyout",sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},I=C`.hide{display:none}.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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=a(),this.lineWidthInputElement=a(),this.lineStyleDropdownElement=a(),this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=I}async reposition(){await this.popoverElement.value?.reposition()}updated(){b(this.popoverElement.value,this.open),this.hasUpdated||setTimeout(()=>{this.popoverElement.value?.reposition()},w.PopoverTimer)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[h,m,g]=t,u=S*255;this.selectedColor=[h,m,g,u],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[h,m,g,u]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&E(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),c({inputElement:this.lineWidthInputElement.value,status:p.IDLE})):this.lineWidthInputElement.value&&c({inputElement:this.lineWidthInputElement.value,status:p.INVALID})}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return v`<div class=${o({[l.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${n(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(l.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${o(l.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${n(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${o(l.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??r}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??r}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??r}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${x(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${n(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${o(l.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-line-chart-series-popover",d);return d},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",c,d,e)
2
+ import{b}from"./FEJD2JHY.js";import e from"./A6ZS4JBJ.js";import"./DPJE33GY.js";import{a as $}from"./6KBLMTZM.js";import d from"./XSKGEBNA.js";import"./UG7LOBJE.js";import c from"./ZUZ3WC7D.js";import{w as i}from"./4B3QBH5T.js";import"./DNDAIWFV.js";import"./KUVOINJC.js";import"./NKG4FLLR.js";import{A as o,C as r,F as y,g as C,h as v,m as s,x as a,y as n,z as f}from"./2BRTKEX6.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,,,,,,,,,,,,{z:S},,{a:w,f:E,g:x,h:c,i:p}])=>{var l={jsAppFlyout:"js-app-flyout",sizeSection:"size-section",dropdownText:"dropdown-text",panelChildrenContainer:"panel-children-container"},I=C`.hide{display:none}.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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.popoverElement=a(),this.lineWidthInputElement=a(),this.lineStyleDropdownElement=a(),this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=s(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedSeriesIndex:9,selectedLineWidth:9,placement:1,open:5}}static{this.styles=I}async reposition(){await this.popoverElement.value?.reposition()}updated(){b(this.popoverElement.value,this.open),this.hasUpdated||setTimeout(()=>{this.popoverElement.value?.reposition()},w.PopoverTimer)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[h,m,g]=t,u=S*255;this.selectedColor=[h,m,g,u],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[h,m,g,u]})}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.selectedLineStyle=e,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({lineStyle:e})}lineWidthChange(){let e=Number.parseInt(this.lineWidthInputElement.value?.value??"");this.lineWidthInputElement.value?.value!==void 0&&E(e,this.lineWidthInputElement.value.min,this.lineWidthInputElement.value.max)?(this.selectedLineWidth=e,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({lineWidth:e}),c({inputElement:this.lineWidthInputElement.value,status:p.IDLE})):this.lineWidthInputElement.value&&c({inputElement:this.lineWidthInputElement.value,status:p.INVALID})}getSelectedLineStyleInfo(){let e,t;switch(this.selectedLineStyle){case i.Dot:e="line-dotted",t=this._messages.dot??"";break;case i.Dash:e="line-dashed",t=this._messages.dash??"";break;case i.Solid:default:e="line-solid",t=this._messages.solid??"";break}return{icon:e,style:t}}render(){let e=this.selectedColor;return v`<div class=${o({[l.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${n(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(l.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${o(l.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${n(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${o(l.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle===i.Solid} accesskey=${i.Solid??r}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle===i.Dot} accesskey=${i.Dot??r}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle===i.Dash} accesskey=${i.Dash??r}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${x(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${n(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${o(l.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-line-chart-series-popover",d);return d},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",c,d,e)