@arcgis/charts-components 5.2.0-next.71 → 5.2.0-next.73
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.
- package/LICENSE.md +4 -2
- package/dist/cdn/{4M4SAEH4.js → 27T5D3K4.js} +1 -1
- package/dist/cdn/{QSGJ3MAT.js → 2EX6L3UK.js} +1 -1
- package/dist/cdn/{54VUGIAU.js → 2NQ6MELS.js} +1 -1
- package/dist/cdn/{VHW4OAKG.js → 2TE3YZBW.js} +3 -3
- package/dist/cdn/{7XWR4EVM.js → 3K3AZU3H.js} +1 -1
- package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
- package/dist/cdn/{5NVOWYWZ.js → 3VM4DOEZ.js} +1 -1
- package/dist/cdn/{IODRBLGT.js → 4BRBVLD3.js} +1 -1
- package/dist/cdn/{2SLJKRSD.js → 4R7PF5KX.js} +1 -1
- package/dist/cdn/{SSQPRUUN.js → 54JCSWKS.js} +1 -1
- package/dist/cdn/{IO6A77U4.js → 5LWG4OGB.js} +1 -1
- package/dist/cdn/{I5DMUUEL.js → 5ROKZRVW.js} +1 -1
- package/dist/cdn/{25MA553Z.js → 5TF4XWIC.js} +1 -1
- package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
- package/dist/cdn/{3PDVKKKZ.js → 6F6RXEE7.js} +1 -1
- package/dist/cdn/{SL7NRRSJ.js → 6O3HF44R.js} +1 -1
- package/dist/cdn/{QWCNHH6G.js → 6QQTUFRP.js} +1 -1
- package/dist/cdn/{WDUTZ6EO.js → 76SBKWBM.js} +1 -1
- package/dist/cdn/{VUHFYOLC.js → 7NQYTB6K.js} +1 -1
- package/dist/cdn/{4DC4ARHU.js → 7O3T7HG5.js} +1 -1
- package/dist/cdn/{6TJIHHQF.js → 7VJRGF4E.js} +1 -1
- package/dist/cdn/{GIH3U7YP.js → A7ISZ5RM.js} +1 -1
- package/dist/cdn/{VNYRZDY5.js → BBWFFVQ7.js} +1 -1
- package/dist/cdn/{RCZLTGQI.js → BE3D4CYZ.js} +1 -1
- package/dist/cdn/{BZ6FUIQF.js → BRWJSQNF.js} +1 -1
- package/dist/cdn/{OTFA727N.js → BTKWU3YE.js} +1 -1
- package/dist/cdn/{PTUMQCFF.js → C6U7HPQE.js} +1 -1
- package/dist/cdn/{DT5BOM5F.js → CY3UKUIP.js} +1 -1
- package/dist/cdn/{2K4MIK4T.js → D2AGAJK7.js} +1 -1
- package/dist/cdn/{LIDWAYQH.js → D43DR25R.js} +28 -28
- package/dist/cdn/{4JWIBRGO.js → D6MRUKIA.js} +1 -1
- package/dist/cdn/{4IO3VF3L.js → DQSPIG3P.js} +1 -1
- package/dist/cdn/DY2DE7FX.js +2 -0
- package/dist/cdn/{3B6QE7OV.js → E4ZOL5K5.js} +1 -1
- package/dist/cdn/{QT64PB4L.js → EUNBXPUS.js} +1 -1
- package/dist/cdn/{ROG3HFDT.js → EUQPESOK.js} +1 -1
- package/dist/cdn/{K6F2LRKI.js → F3ZGHFA6.js} +1 -1
- package/dist/cdn/{MAC4MPUA.js → FLMUOC55.js} +1 -1
- package/dist/cdn/{WM6SCZHN.js → HOQNWF7T.js} +1 -1
- package/dist/cdn/{PIEX577B.js → HS52MRKJ.js} +1 -1
- package/dist/cdn/{QC3FMJKL.js → HXC5LKJW.js} +1 -1
- package/dist/cdn/{IK4FPUFJ.js → IMG5US47.js} +1 -1
- package/dist/cdn/{7KNUJIOC.js → IXBLQSE6.js} +1 -1
- package/dist/cdn/{V2FHLWYC.js → JYV4I2GQ.js} +1 -1
- package/dist/cdn/{3FM3YR57.js → KBROJDYY.js} +1 -1
- package/dist/cdn/{NUHPR7BM.js → KMX777EF.js} +1 -1
- package/dist/cdn/{BQORJ3LU.js → KN6WLM2H.js} +1 -1
- package/dist/cdn/{WPLHZAZ3.js → LKNQUAR2.js} +1 -1
- package/dist/cdn/{OE7Q4MG5.js → LMOH2EKW.js} +1 -1
- package/dist/cdn/{NF4EBNLN.js → LP5TTMQR.js} +1 -1
- package/dist/cdn/{OE7FIKPS.js → M2TX43TJ.js} +1 -1
- package/dist/cdn/{XH57C72H.js → MQJAK2SJ.js} +1 -1
- package/dist/cdn/{L6DFXTSQ.js → NAUEEC5O.js} +1 -1
- package/dist/cdn/{F5AR3N3Z.js → NLIYZT4J.js} +1 -1
- package/dist/cdn/{LAPBDR32.js → NPH57JQ6.js} +1 -1
- package/dist/cdn/{JYLEN3VQ.js → NQ5JEX36.js} +1 -1
- package/dist/cdn/{MOG5ZVLX.js → NVINMCGT.js} +1 -1
- package/dist/cdn/{BAFCVCT4.js → OFJFM4B4.js} +1 -1
- package/dist/cdn/{BNNBHYRP.js → OQZDT6CL.js} +1 -1
- package/dist/cdn/{3XB2RWHK.js → OUOCOHTG.js} +1 -1
- package/dist/cdn/{EJWHEBKW.js → OWJQEWK7.js} +1 -1
- package/dist/cdn/{JAQYU6KP.js → P6YFC7LU.js} +1 -1
- package/dist/cdn/{7REEJ3OW.js → PE3I5BB4.js} +1 -1
- package/dist/cdn/{5GZDXWTQ.js → PZL4HGLN.js} +1 -1
- package/dist/cdn/{CVFKL3S2.js → Q2GJNRU2.js} +1 -1
- package/dist/cdn/{O2BQ374Y.js → Q7VV6RA4.js} +1 -1
- package/dist/cdn/{3WOYVXSZ.js → R2GPX6DA.js} +1 -1
- package/dist/cdn/{VAF3UIVA.js → RHSCKBJG.js} +1 -1
- package/dist/cdn/RSLGXN7X.js +2 -0
- package/dist/cdn/{P6DBPQZO.js → RXSNPRN7.js} +1 -1
- package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
- package/dist/cdn/{3V4ZETXH.js → S3QIWVN6.js} +1 -1
- package/dist/cdn/{LPYRKK25.js → SJ7UC3JM.js} +1 -1
- package/dist/cdn/{NP24UZGI.js → SM5PY54Q.js} +1 -1
- package/dist/cdn/{AVE3KXWQ.js → SPAWFHXG.js} +1 -1
- package/dist/cdn/{RCLHFY6O.js → TBAK2RCH.js} +1 -1
- package/dist/cdn/{33JR3GH6.js → TSORVNA6.js} +1 -1
- package/dist/cdn/{27RKQQPS.js → TTMIUSJW.js} +1 -1
- package/dist/cdn/{QAXXYD6N.js → UFCXIYYK.js} +1 -1
- package/dist/cdn/{4ODTQZJK.js → UUKKQ3K7.js} +1 -1
- package/dist/cdn/VMN2UXWS.js +3 -0
- package/dist/cdn/{GKEW5JYD.js → VZOL2AD6.js} +1 -1
- package/dist/cdn/{E7QFC64H.js → W4F6FFOT.js} +1 -1
- package/dist/cdn/{4JUR3VIE.js → XFO5L4DP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-model.js +37 -37
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +15 -15
- package/dist/chunks/index2.js +3184 -3143
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-model.js +385 -334
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +50 -50
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/type-guards2.js +15 -15
- package/dist/chunks/utils.js +10 -10
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +5 -5
- package/dist/components/arcgis-chart/customElement.d.ts +11 -29
- package/dist/components/arcgis-chart/customElement.js +171 -166
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +208 -207
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
- package/dist/model/shared/type-guards.d.ts +1 -0
- package/dist/utils/chart-config/converter/index.js +32 -32
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/package.json +4 -4
- package/dist/cdn/CNI32IL3.js +0 -2
- package/dist/cdn/CRQK4CKK.js +0 -2
- package/dist/cdn/NAGOJPIX.js +0 -3
package/LICENSE.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Licensing
|
|
2
2
|
|
|
3
|
-
COPYRIGHT
|
|
3
|
+
COPYRIGHT Esri
|
|
4
4
|
|
|
5
5
|
All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
|
|
6
6
|
|
|
7
|
-
This material is licensed for use under the
|
|
7
|
+
This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
|
|
8
8
|
You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
9
9
|
|
|
10
|
+
See use restrictions at https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf.
|
|
11
|
+
|
|
10
12
|
For additional information, contact:
|
|
11
13
|
Environmental Systems Research Institute, Inc.
|
|
12
14
|
Attn: Contracts and Legal Services Department
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import t from"./
|
|
2
|
+
import t from"./R2GPX6DA.js";import s from"./5LWG4OGB.js";import q from"./F3ZGHFA6.js";import o from"./UUKKQ3K7.js";import n from"./EUQPESOK.js";import m from"./IXBLQSE6.js";import l from"./SPAWFHXG.js";import k from"./NAUEEC5O.js";import j from"./3VM4DOEZ.js";import i from"./TSORVNA6.js";import h from"./HOQNWF7T.js";import g from"./4R7PF5KX.js";import"./5X7Q3I6R.js";import f from"./76SBKWBM.js";import e from"./LMOH2EKW.js";import"./WDMYVS4F.js";import d from"./NVINMCGT.js";import c from"./OWJQEWK7.js";import b from"./D6MRUKIA.js";import a from"./VMN2UXWS.js";import{r as S}from"./CRNIOME2.js";import"./BGOWDCTO.js";import{sa as _}from"./USNJZCHH.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import"./7SBVBD4E.js";import"./DAFNQT4C.js";import{c as r}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as u,b as p}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{za:l},,,{c:i},,,,,,,,,,,{e:y},,{$:z,A:O,B:v,C:b,D:L,E:R,F:I,G:w,H:D,I:P,J:k,K:B,L:U,M:Y,N:N,O:W,P:m,Q:h,R:M,S:V,T:E,U:G,V:H,W:X,X:j,Y:Q,Z:Z,_:q,aa:J,ba:K,ca:$,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,ma:pt,qa:f,v:C,w:T,x:A,y:x,z:F},{a:ct,b:lt,e:yt}])=>{var mt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(c,t,o,a)=>{for(var n=ht(t,o),g=c.length-1,d;g>=0;g--)(d=c[g])&&(n=d(t,o,n)||n);return n&&mt(t,o,n),n},e=class extends yt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?pt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),gt({commonStrings:this.commonStrings,config:this._config,layerInfo:this.layerInfo}),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return b(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get viewType(){return z(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{J(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){L({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return w(this._config)}set yTemporalBinning(t){I({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return K(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{$(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){D(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return ct(0,this._config)}set seriesName(t){typeof t=="string"&<(t,0,this._config)}get heatRulesType(){return x(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return O(this._config)}set gradientRules(t){F(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=N(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];this._numericFields=[n],W({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=m(this._config);a&&g!==p.Count&&(this._aggregationType=p.Count,h({aggregationType:p.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}))}get aggregationType(){return m(this._config)}set aggregationType(t){this._aggregationType=t,h({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return Y(this._config)}set legendPosition(t){U(t,this._config)}get nullPolicy(){return M(this._config)}set nullPolicy(t){V(t,this._config)}get emptyCell(){return E(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{G(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return H(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return Z(this._config)}set emptyCellSymbol(t){q(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}getAssignToSecondValueAxis(){return!1}setSeriesToSecondaryYAxis(t,o){}getSeriesToSecondaryYAxis(){return!1}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"setSeriesToSecondaryYAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as c}from"./IPEJCIHO.js";import{b as k}from"./IHO3OLL3.js";import e from"./
|
|
2
|
+
import{a as c}from"./IPEJCIHO.js";import{b as k}from"./IHO3OLL3.js";import e from"./IMG5US47.js";import{i as s}from"./JYC77MVD.js";import{a as $}from"./SN4KBI42.js";import d from"./D6MRUKIA.js";import a from"./VMN2UXWS.js";import{n as b}from"./CRNIOME2.js";import"./BGOWDCTO.js";import{i as C}from"./USNJZCHH.js";import{f as v}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as h,B as f,C as i,H as y,g,i as t,n as p,z as m}from"./7SBVBD4E.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{c as o}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Aa:u},,{a:P,l:S}])=>{var l={symbolPropertyPopover:"symbol-property-popover",colorPicker:"color-picker",header:"header",popoverPickList:"popover-pick-list",fieldSelectPanel:"field-select-panel",transformationPanel:"transformation-panel"},T=g`.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)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.picklist=m(),this.popoverElement=m(),this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigHistogramPopoverChange=p(),this.arcgisChartsConfigHistogramPopoverSymbolChange=p(),this.arcgisChartsConfigPopoverClose=p()}static{this.properties={messageOverrides:0,layerFieldsInfo:0,headingTitle:1,selectedNumericField:1,selectedTransformationType:1,selectedOverlaySymbol:0,selectedBinColor:0,referenceElement:0,contentKind:1,placement:1,open:5,selectedOverlaySymbolType:1}}static{this.styles=T}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},P.PopoverTimer),k(this.popoverElement.value,this.open)}buildPickListItems(e){let n=[];if(e===s.numericFields)for(let r=0;r<this.layerFieldsInfo?.length;r+=1){let a=this.layerFieldsInfo[r];u(a)&&n.push(c(a.name,t`<calcite-list-item .label=${b(this.layerFieldsInfo,a.name)} .value=${a.name} .selected=${this.selectedNumericField===a.name}></calcite-list-item>`))}else{let r=[c(o.None,t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType===o.None}></calcite-list-item>`),c(o.Log,t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType===o.Log}></calcite-list-item>`),c(o.Sqrt,t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType===o.Sqrt}></calcite-list-item>`)];n.push(...r)}return n}getPopoverClass(){return this.contentKind===s.fillSymbol||this.contentKind===s.lineSymbol?l.symbolPropertyPopover:""}closePopover(){(this.open||this.popoverElement.value?.open===!1)&&(this.open=!1,this.arcgisChartsConfigPopoverClose.emit())}overlaySymbolChange(e){this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail)}fillColorChange(e){let n=e.detail,[r,a,w]=n,x=C*255;this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({type:v.SFS,color:[r,a,w,x]})}onPickListChange(e){e.target!==null&&(this.arcgisChartsConfigHistogramPopoverChange.emit({contentKind:this.contentKind,value:e.target.selectedItems[0].value}),this.open=!1)}renderFillColor(){return t`<arcgis-charts-config-color-style class=${i(l.colorPicker)} .header=${this.headingTitle??this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`}renderOverlayStyle(){return t`<arcgis-charts-config-line-style class=${i(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle??this._messages.lineStyle} use-panel .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`}renderFieldSelect(){let e=this.buildPickListItems(s.numericFields);return t`<calcite-panel class=${i(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`}renderTransformationSelect(){let e=this.buildPickListItems(s.transformation);return t`<calcite-panel class=${i(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`}render(){return t`<div><calcite-popover class=${i(this.getPopoverClass())} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`}renderContentType(){switch(this.contentKind){case s.fillSymbol:return this.renderFillColor();case s.lineSymbol:return this.renderOverlayStyle();case s.numericFields:return this.renderFieldSelect();case s.transformation:return this.renderTransformationSelect();default:return}}};y("arcgis-charts-config-histogram-popover",d);return d},a,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as _}from"./IPEJCIHO.js";import{a as N}from"./IHO3OLL3.js";import{a as u,c as P,d as T,f as w}from"./OBPAQN4H.js";import{f as l}from"./JYC77MVD.js";import{a as C}from"./SN4KBI42.js";import e from"./4ODTQZJK.js";import a from"./NAGOJPIX.js";import{n as p,u as S}from"./CRNIOME2.js";import"./BGOWDCTO.js";import{Aa as B,za as I}from"./USNJZCHH.js";import"./KX7KGXKQ.js";import{l as k}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as m,B as F,C as s,F as x,H as A,g as y,i as r,n as g,z as h}from"./7SBVBD4E.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{b as c,k as b,n as d}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ba:E,za:f},{h:L}])=>{var z=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:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`,n={label:"label",fieldList:"field-list",fab:"fab",timeBinningHeader:"time-binning-header",linkContainer:"link-container",dimText:"dim-text"},$=class extends F{constructor(){super(...arguments),this._messages=C(),this.commonStrings=C({name:"common",blocking:!0}),this.lineChartPopover=null,this.aggregationElement=h(),this.xAxisFieldElement=h(),this.numericFieldsElement=h(),this.splitByFieldElement=h(),this.intervalAlignmentElement=h(),this.intervalElement=h(),this.onLineChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(P(u),t){case l.aggregation:this.model.aggregationType=i[0]!==c.NoAggregation?i[0]:c.NoAggregation;break;case l.xAxisField:{let a=i[0]?.trim()||"";this.model.xAxisField=a,this.arcgisChartsConfigResetTimeInterval.emit();break}case l.numericFields:this.model.numericFields=i,this.model.numericFields.length>0&&this.model.aggregationType===c.Count&&this.model.numericFields[0]!==f(this.model.layer).idField&&(this.model.aggregationType=c.Sum);break;case l.splitByField:{let a=i[0]?.trim()||"";this.model.splitByField=a,this.model.colorMatch=!0;break}case l.interval:this.model.temporalBinningSize=i[0]?.intervalSize,this.model.temporalBinningUnit=i[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case l.intervalAlignment:this.model.timeAggregationType=i[0]??"";break;default:break}t!==l.interval&&t!==l.intervalAlignment&&w(u)}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.removeLineChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.lineChartPopover===e?.target&&this.removeLineChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigCustomizedTimeInterval=g(),this.arcgisChartsConfigDataChangeError=g(),this.arcgisChartsConfigLineChartDataNumericFieldValidate=g(),this.arcgisChartsConfigResetTimeInterval=g()}static{this.properties={aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,messageOverrides:0,model:0,resetTimeInterval:0,layerFieldsInfo:0}}static{this.styles=z}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=I(this.model.aggregationType,this.commonStrings);let t=this.model.timeAggregationType;t!==void 0&&(this.timeAggregationLabel=B(t,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1}disconnectedCallback(){super.disconnectedCallback(),this.removeLineChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return _(e,r`<calcite-list-item .label=${p(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}onAggregationSelect(e){this.contentKind=l.aggregation,this.setupPopover(e)}onXAxisFieldSelect(e){this.contentKind=l.xAxisField,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=l.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=l.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||this.model.numericFields.length>1?"":p(this.layerFieldsInfo,this.model.splitByField)}getCorrectedXAxisValue(){return L({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":p(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=this.model.aggregationType!==c.NoAggregation;return e!==void 0&&E(e)&&t}setupPopover(e){e.stopImmediatePropagation(),this.removeLineChartDataPopover();let t={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??b.Second},i,a,o;switch(this.contentKind){case l.aggregation:i=this.aggregationElement.value,a=this._messages.aggregationHeader,o=this.model.aggregationType;break;case l.xAxisField:i=this.xAxisFieldElement.value,a=this._messages.xAxisFieldHeader,o=this.model.xAxisField;break;case l.numericFields:i=this.numericFieldsElement.value,a=this._messages.numericFieldsHeader,o=this.model.numericFields;break;case l.splitByField:i=this.splitByFieldElement.value,a=this._messages.splitByFieldHeader,o=this.model.splitByField;break;case l.interval:i=this.intervalElement.value,a=this._messages.editInterval,o=t;break;case l.intervalAlignment:i=this.intervalAlignmentElement.value,a=this._messages.intervalAlignment,o=this.model.timeAggregationType??"";break}this.lineChartPopover=x(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`),!document.body.contains(this.lineChartPopover)&&this.lineChartPopover!==null&&document.body.appendChild(this.lineChartPopover)}removeLineChartDataPopover(){this.lineChartPopover!==null&&(this.lineChartPopover.open=!1,this.lineChartPopover=N(this.lineChartPopover))}renderAggregation(){return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===c.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderXAxisField(){let e=this.getCorrectedXAxisValue();return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${m(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let t=f(this.model.layer).idField,i=[];for(let a of e)a!==t&&i.push(this.buildNumericFieldItem(a));return r`<calcite-list label class=${s(n.fieldList)} ${m(this.numericFieldsElement)}>${i}</calcite-list>`}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,t=this.model.temporalBinningSize??"",i=S(this.model.temporalBinningUnit??b.Second,this._messages)??"",a=T(u),o={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},v=k(o,a);return[r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e?"":`${t} ${i}`} .label=${e?"":`${t} ${i}`} @click=${e?()=>{}:this.onIntervalSelect} ${m(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${v} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${m(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${d.Zero} .checked=${this.model.nullPolicy===d.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${d.Interpolate} .checked=${this.model.nullPolicy===d.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${d.Null} .checked=${this.model.nullPolicy===d.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),t=this.renderXAxisField(),i=this.renderSplitBy(),a=this.renderNumericFields([...this.model.numericFields]),o=this.renderInterval(),v=this.renderIntervalAlignment(),D=this.renderEmptyBins();return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.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=${s(n.label)}><span class=${s(this.disableSplitBy?n.dimText:"")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${v}</calcite-label><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==c.Count?r`<calcite-label class=${s(n.label)}>${this._messages.emptyBins}${D}</calcite-label>`:null}</div><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label>`}};A("arcgis-charts-config-line-chart-data",$);return $},a,e)
|
|
2
|
+
import{a as _}from"./IPEJCIHO.js";import{a as N}from"./IHO3OLL3.js";import{a as u,c as P,d as T,f as w}from"./OBPAQN4H.js";import{f as l}from"./JYC77MVD.js";import{a as C}from"./SN4KBI42.js";import e from"./UUKKQ3K7.js";import a from"./VMN2UXWS.js";import{n as p,u as S}from"./CRNIOME2.js";import"./BGOWDCTO.js";import{Aa as B,za as I}from"./USNJZCHH.js";import"./KX7KGXKQ.js";import{l as k}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as m,B as F,C as s,F as x,H as A,g as y,i as r,n as g,z as h}from"./7SBVBD4E.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{b as c,k as b,n as d}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ba:E,za:f},{h:L}])=>{var z=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:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`,n={label:"label",fieldList:"field-list",fab:"fab",timeBinningHeader:"time-binning-header",linkContainer:"link-container",dimText:"dim-text"},$=class extends F{constructor(){super(...arguments),this._messages=C(),this.commonStrings=C({name:"common",blocking:!0}),this.lineChartPopover=null,this.aggregationElement=h(),this.xAxisFieldElement=h(),this.numericFieldsElement=h(),this.splitByFieldElement=h(),this.intervalAlignmentElement=h(),this.intervalElement=h(),this.onLineChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(P(u),t){case l.aggregation:this.model.aggregationType=i[0]!==c.NoAggregation?i[0]:c.NoAggregation;break;case l.xAxisField:{let a=i[0]?.trim()||"";this.model.xAxisField=a,this.arcgisChartsConfigResetTimeInterval.emit();break}case l.numericFields:this.model.numericFields=i,this.model.numericFields.length>0&&this.model.aggregationType===c.Count&&this.model.numericFields[0]!==f(this.model.layer).idField&&(this.model.aggregationType=c.Sum);break;case l.splitByField:{let a=i[0]?.trim()||"";this.model.splitByField=a,this.model.colorMatch=!0;break}case l.interval:this.model.temporalBinningSize=i[0]?.intervalSize,this.model.temporalBinningUnit=i[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case l.intervalAlignment:this.model.timeAggregationType=i[0]??"";break;default:break}t!==l.interval&&t!==l.intervalAlignment&&w(u)}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.removeLineChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.lineChartPopover===e?.target&&this.removeLineChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigCustomizedTimeInterval=g(),this.arcgisChartsConfigDataChangeError=g(),this.arcgisChartsConfigLineChartDataNumericFieldValidate=g(),this.arcgisChartsConfigResetTimeInterval=g()}static{this.properties={aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,messageOverrides:0,model:0,resetTimeInterval:0,layerFieldsInfo:0}}static{this.styles=z}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=I(this.model.aggregationType,this.commonStrings);let t=this.model.timeAggregationType;t!==void 0&&(this.timeAggregationLabel=B(t,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1}disconnectedCallback(){super.disconnectedCallback(),this.removeLineChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return _(e,r`<calcite-list-item .label=${p(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}onAggregationSelect(e){this.contentKind=l.aggregation,this.setupPopover(e)}onXAxisFieldSelect(e){this.contentKind=l.xAxisField,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=l.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=l.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||this.model.numericFields.length>1?"":p(this.layerFieldsInfo,this.model.splitByField)}getCorrectedXAxisValue(){return L({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":p(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=this.model.aggregationType!==c.NoAggregation;return e!==void 0&&E(e)&&t}setupPopover(e){e.stopImmediatePropagation(),this.removeLineChartDataPopover();let t={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??b.Second},i,a,o;switch(this.contentKind){case l.aggregation:i=this.aggregationElement.value,a=this._messages.aggregationHeader,o=this.model.aggregationType;break;case l.xAxisField:i=this.xAxisFieldElement.value,a=this._messages.xAxisFieldHeader,o=this.model.xAxisField;break;case l.numericFields:i=this.numericFieldsElement.value,a=this._messages.numericFieldsHeader,o=this.model.numericFields;break;case l.splitByField:i=this.splitByFieldElement.value,a=this._messages.splitByFieldHeader,o=this.model.splitByField;break;case l.interval:i=this.intervalElement.value,a=this._messages.editInterval,o=t;break;case l.intervalAlignment:i=this.intervalAlignmentElement.value,a=this._messages.intervalAlignment,o=this.model.timeAggregationType??"";break}this.lineChartPopover=x(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`),!document.body.contains(this.lineChartPopover)&&this.lineChartPopover!==null&&document.body.appendChild(this.lineChartPopover)}removeLineChartDataPopover(){this.lineChartPopover!==null&&(this.lineChartPopover.open=!1,this.lineChartPopover=N(this.lineChartPopover))}renderAggregation(){return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===c.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderXAxisField(){let e=this.getCorrectedXAxisValue();return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${m(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let t=f(this.model.layer).idField,i=[];for(let a of e)a!==t&&i.push(this.buildNumericFieldItem(a));return r`<calcite-list label class=${s(n.fieldList)} ${m(this.numericFieldsElement)}>${i}</calcite-list>`}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,t=this.model.temporalBinningSize??"",i=S(this.model.temporalBinningUnit??b.Second,this._messages)??"",a=T(u),o={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},v=k(o,a);return[r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e?"":`${t} ${i}`} .label=${e?"":`${t} ${i}`} @click=${e?()=>{}:this.onIntervalSelect} ${m(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${v} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${m(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${d.Zero} .checked=${this.model.nullPolicy===d.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${d.Interpolate} .checked=${this.model.nullPolicy===d.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${d.Null} .checked=${this.model.nullPolicy===d.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),t=this.renderXAxisField(),i=this.renderSplitBy(),a=this.renderNumericFields([...this.model.numericFields]),o=this.renderInterval(),v=this.renderIntervalAlignment(),D=this.renderEmptyBins();return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.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=${s(n.label)}><span class=${s(this.disableSplitBy?n.dimText:"")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${v}</calcite-label><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==c.Count?r`<calcite-label class=${s(n.label)}>${this._messages.emptyBins}${D}</calcite-label>`:null}</div><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label>`}};A("arcgis-charts-config-line-chart-data",$);return $},a,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{i as we}from"./7NWEE7T2.js";import{c as W}from"./JYC77MVD.js";import i from"./
|
|
3
|
-
`),o){let w=c.map(
|
|
4
|
-
`)}return f}function dt(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=se(t?.series);u===k.HistogramSeries?c=Ve(t,e,i):u===k.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===k.BarSeries||u===k.LineSeries||u===k.ComboLineAndBarSeries?c=Ie({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===k.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===k.BoxPlotSeries&&(c=Ye({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function A(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?ye({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=De({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return A({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=ue({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=h.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Ae(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=_({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],x=g[E.yField],p=g[E.valueField],F=typeof p=="number"&&Number.isFinite(p)?p.toFixed(2):p,m={label:n.x,value:w},y={label:n.y,value:x};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(x),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(y={label:d,value:L})}return{[m.label]:m.value,[y.label]:y.value,[u.description]:F}})}function Ve(l,e,t){let a=xe(l),o=`${v(W.Min)} of ${a}`,i=`${v(W.Max)} of ${a}`,r=`${v(W.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),x={};if(u&&(x[o]=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(x[i]=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let p=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});x.Label=`${String(p??"")} - ${String(F??"")}`}return w&&(x[r]=c),x})}function Te(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=be(e),f=te(e),c=v(f),u=ae(e),g=T(e.series),w=X(e),x=ve(e),{idField:p,isTraditionalTypeOID:F}=ce(fe(a)),m=F&&u.length===1&&u[0]===p,y;switch(g){case b.BarAndLineNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return Object.assign(B,...u.map(P=>({[P]:A({value:d[P],originalValue:d[P]})}))),B});break;case b.BarAndLineFromFields:y=K(u,t).map(([d,L])=>{let B=I(e.series)[0],P={};return L!==void 0&&d!==void 0&&(P.Field=A({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),P.Value=A({value:L[B],originalValue:L[B]})),P});break;case b.BarAndLineMonoField:case b.BarAndLineMultiFields:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return u.forEach((P,C)=>{let Z=_({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:C,fieldList:o}),R=I(e.series)[C],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),B[oe]=A({value:d[J],originalValue:d[J]})}),B});break;case b.BarAndLineSplitBy:y=t.flatMap(d=>{let L=I(e.series),B=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((P,C)=>{let Z=Ae({config:e,splitByField:x,splitByValue:P,splitByValueIndex:C,layer:a,fieldList:o,timeZone:n});return{[s]:B,[x]:Z,[m?c:`${c} of ${u[0]}`]:d[L[C]]}})});break;case b.BarAndLineSplitByNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B=Te(d,u[0],w),P=d[x],C=w.findIndex(R=>Ze(R,P)),Z=Ae({config:e,splitByField:x,splitByValue:P,splitByValueIndex:C>=0?C:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[x]:Z,[u[0]]:d[B[0]]}});break;default:y=t}return y}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${O}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=pe(e),f=T(e.series),c=je(t),u=Le(e),g=f!==b.PieFromFields?G.Category:G.Fields,w=Fe(e,g),x=_({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),p=I(e.series)[0];return f===b.PieFromCategory||f===b.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),y={[s]:m},d=p,L=p;return f===b.PieFromCategory&&p.toLowerCase()===x.name.toLowerCase()&&(d=x.description,L=x.name),y[d]=A({value:F[L],originalValue:F[L]}),y[v(O.trim())]=A({value:F[`${L}${O}`],originalValue:F[`${L}${O}`]}),y}):f===b.PieFromFields&&(c=K(u,c).map(([F,m])=>{let y={};return m!==void 0&&F!==void 0&&(y.Field=A({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),y.Value=A({value:m[p],originalValue:m[p]}),y[v(O.trim())]=A({value:m[`${p}${O}`],originalValue:m[`${p}${O}`]})),y})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(S)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+le];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+Y];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=q(a),f=ee(a),c=H(a),u=S.Outlier,g=N;switch(o){case b.BoxPlotMonoFieldAndCategory:{let p=De({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=p,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(p=>Object.keys(e).some(F=>F.toLowerCase().includes(p.toLowerCase())))??""}_${u}`,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoFieldAndSplitBy:case b.BoxPlotMultiFieldsAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoField:case b.BoxPlotMultiFields:default:{t.Field=e[g],t[v(S.Outlier)]=e[u];break}}let w=`${u}${Y}`,x=e[w];x!==void 0&&(t[`${v(S.Outlier)} Z-Score`]=x)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=T(a.series),f=e[`${o}_${S.Average}`],c=H(a),u=q(a),g="";switch(s){case b.BoxPlotMonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotMultiFieldsAndSplitBy:{g=`${o}_${S.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=`${o}_${S.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(S.Average)]=f;let w=`${String(f)}${Y}`,x=e[w];x!==void 0&&(t[`${v(S.Average)} Z-Score`]=x)}function Ye(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=T(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[h.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===b.BoxPlotMonoFieldAndSplitBy?f=b.BoxPlotMonoField:s===b.BoxPlotMultiFieldsAndSplitBy?f=b.BoxPlotMultiFields:s===b.BoxPlotMonoFieldAndCategoryAndSplitBy&&(f=b.BoxPlotMonoFieldAndCategory));let g=q(e),w=ee(e),x=X(e),p=H(e),F;switch(f){case b.BoxPlotMonoField:case b.BoxPlotMonoFieldAndCategory:{F=t.map(m=>{let y={};if(m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotMonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});y[g]=d}else f===b.BoxPlotMonoField&&(y.Field=m[N]);z({rawData:m,outRow:y})}return y});break}case b.BoxPlotMultiFields:{F=t.flatMap(m=>{let y={};return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(y.Field=m[N],z({rawData:m,outRow:y})),[y]});break}case b.BoxPlotMultiFieldsAndCategory:{F=t.flatMap(m=>w.map(y=>{let d={},L="";if(d.Field=y,m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotMultiFieldsAndCategory){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B,L=`${y}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case b.BoxPlotMonoFieldAndSplitBy:case b.BoxPlotMultiFieldsAndSplitBy:case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[h.boxPlot.boxPlotOutlierId]){let y={};return j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[y]}else return m[h.boxPlot.boxPlotMeanLineMarkerId]?x?.map(y=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:y,config:e,layer:a,fieldList:o,timeZone:n}),d}):x.map(y=>{let d={},L=M({field:p,value:y,layer:a,fieldList:o});if(f===b.BoxPlotMonoFieldAndCategoryAndSplitBy){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B}return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[p]=L,z({rawData:m,outRow:d,keyBase:`${y}_`})),d})});break}default:F=t}return F}var Pe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),_e=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),De=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===re.DateOnly;me(r)&&!n?i=Pe(t)?_e(new Date(t),o):t:n&&typeof t!="string"&&(i=Pe(t)?We(new Date(t),o):t)}return i};function ct(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:he,b:Ce,c:ke,d:Be,e:Oe,f:ut,g:ft,h:dt,i:ct}},a,c,d,e,f,g,i)
|
|
2
|
+
import{i as we}from"./7NWEE7T2.js";import{c as W}from"./JYC77MVD.js";import i from"./HXC5LKJW.js";import g from"./P6YFC7LU.js";import f from"./RXSNPRN7.js";import e from"./5LWG4OGB.js";import d from"./UUKKQ3K7.js";import c from"./LMOH2EKW.js";import a from"./VMN2UXWS.js";import{c as h,d as b,r as V}from"./CRNIOME2.js";import{Ea as le,Fa as Y,Ha as O,Ia as ne,p as N,q as E}from"./USNJZCHH.js";import{a as re}from"./KX7KGXKQ.js";import{e as v,l as ie,m as U,s as K}from"./SP2IPHWF.js";import{e as G}from"./QP5UAIC6.js";import{a as se}from"./KJZTU3DV.js";import{a as k,l as D}from"./K4APZJ2O.js";export default $arcgis.t(([{Ba:me,Gc:I,Ha:ye,M:fe,Q:de,a:Q,ba:S,m:ue,yb:T,za:ce},{c:X},{f:be,g:_},{na:te,oa:ve,pa:ae},{k:q,l:H,m:ee,x:ge},{b:pe},{a:xe,c:Le,d:Fe}])=>{function he(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function Ce(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function ke(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Be(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:Ce({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:ne,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:ke({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:he({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function Oe(l,e){return!ie(l,e)}function ut(l,e){return Oe(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Se=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ft(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
|
|
3
|
+
`),o){let w=c.map(p=>Se({value:p,quoteAll:i,locale:r,roundDecimals:n}));u.push(w.join(g))}l.forEach(w=>{let p=c.map(x=>Se({value:w[x],quoteAll:i,locale:r,roundDecimals:n}));u.push(p.join(g))}),f+=u.join(`\r
|
|
4
|
+
`)}return f}function dt(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=se(t?.series);u===k.HistogramSeries?c=Ve(t,e,i):u===k.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===k.BarSeries||u===k.LineSeries||u===k.ComboLineAndBarSeries?c=Ie({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===k.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===k.BoxPlotSeries&&(c=Ye({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function A(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?ye({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=De({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return A({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=ue({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=h.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Ae(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=_({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],p=g[E.yField],x=g[E.valueField],F=typeof x=="number"&&Number.isFinite(x)?x.toFixed(2):x,m={label:n.x,value:w},y={label:n.y,value:p};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(p),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(y={label:d,value:L})}return{[m.label]:m.value,[y.label]:y.value,[u.description]:F}})}function Ve(l,e,t){let a=pe(l),o=`${v(W.Min)} of ${a}`,i=`${v(W.Max)} of ${a}`,r=`${v(W.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),p={};if(u&&(p[o]=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(p[i]=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let x=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});p.Label=`${String(x??"")} - ${String(F??"")}`}return w&&(p[r]=c),p})}function Te(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=be(e),f=te(e),c=v(f),u=ae(e),g=T(e.series),w=X(e),p=ve(e),{idField:x,isTraditionalTypeOID:F}=ce(fe(a)),m=F&&u.length===1&&u[0]===x,y;switch(g){case b.BarAndLineNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return Object.assign(B,...u.map(P=>({[P]:A({value:d[P],originalValue:d[P]})}))),B});break;case b.BarAndLineFromFields:y=K(u,t).map(([d,L])=>{let B=I(e.series)[0],P={};return L!==void 0&&d!==void 0&&(P.Field=A({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),P.Value=A({value:L[B],originalValue:L[B]})),P});break;case b.BarAndLineMonoField:case b.BarAndLineMultiFields:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return u.forEach((P,C)=>{let Z=_({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:C,fieldList:o}),R=I(e.series)[C],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),B[oe]=A({value:d[J],originalValue:d[J]})}),B});break;case b.BarAndLineSplitBy:y=t.flatMap(d=>{let L=I(e.series),B=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((P,C)=>{let Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C,layer:a,fieldList:o,timeZone:n});return{[s]:B,[p]:Z,[m?c:`${c} of ${u[0]}`]:d[L[C]]}})});break;case b.BarAndLineSplitByNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B=Te(d,u[0],w),P=d[p],C=w.findIndex(R=>Ze(R,P)),Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C>=0?C:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[p]:Z,[u[0]]:d[B[0]]}});break;default:y=t}return y}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${O}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=xe(e),f=T(e.series),c=je(t),u=Le(e),g=f!==b.PieFromFields?G.Category:G.Fields,w=Fe(e,g),p=_({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),x=I(e.series)[0];return f===b.PieFromCategory||f===b.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),y={[s]:m},d=x,L=x;return f===b.PieFromCategory&&x.toLowerCase()===p.name.toLowerCase()&&(d=p.description,L=p.name),y[d]=A({value:F[L],originalValue:F[L]}),y[v(O.trim())]=A({value:F[`${L}${O}`],originalValue:F[`${L}${O}`]}),y}):f===b.PieFromFields&&(c=K(u,c).map(([F,m])=>{let y={};return m!==void 0&&F!==void 0&&(y.Field=A({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),y.Value=A({value:m[x],originalValue:m[x]}),y[v(O.trim())]=A({value:m[`${x}${O}`],originalValue:m[`${x}${O}`]})),y})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(S)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+le];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+Y];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=q(a),f=ee(a),c=H(a),u=S.Outlier,g=N;switch(o){case b.BoxPlotMonoFieldAndCategory:{let x=De({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=x,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(x=>Object.keys(e).some(F=>F.toLowerCase().includes(x.toLowerCase())))??""}_${u}`,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoFieldAndSplitBy:case b.BoxPlotMultiFieldsAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case b.BoxPlotMonoField:case b.BoxPlotMultiFields:default:{t.Field=e[g],t[v(S.Outlier)]=e[u];break}}let w=`${u}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Outlier)} Z-Score`]=p)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=T(a.series),f=e[`${o}_${S.Average}`],c=H(a),u=q(a),g="";switch(s){case b.BoxPlotMonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotMultiFieldsAndSplitBy:{g=`${o}_${S.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=`${o}_${S.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(S.Average)]=f;let w=`${String(f)}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Average)} Z-Score`]=p)}function Ye(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=T(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[h.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===b.BoxPlotMonoFieldAndSplitBy?f=b.BoxPlotMonoField:s===b.BoxPlotMultiFieldsAndSplitBy?f=b.BoxPlotMultiFields:s===b.BoxPlotMonoFieldAndCategoryAndSplitBy&&(f=b.BoxPlotMonoFieldAndCategory));let g=q(e),w=ee(e),p=X(e),x=H(e),F;switch(f){case b.BoxPlotMonoField:case b.BoxPlotMonoFieldAndCategory:{F=t.map(m=>{let y={};if(m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotMonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});y[g]=d}else f===b.BoxPlotMonoField&&(y.Field=m[N]);z({rawData:m,outRow:y})}return y});break}case b.BoxPlotMultiFields:{F=t.flatMap(m=>{let y={};return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(y.Field=m[N],z({rawData:m,outRow:y})),[y]});break}case b.BoxPlotMultiFieldsAndCategory:{F=t.flatMap(m=>w.map(y=>{let d={},L="";if(d.Field=y,m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotMultiFieldsAndCategory){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B,L=`${y}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case b.BoxPlotMonoFieldAndSplitBy:case b.BoxPlotMultiFieldsAndSplitBy:case b.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[h.boxPlot.boxPlotOutlierId]){let y={};return j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[y]}else return m[h.boxPlot.boxPlotMeanLineMarkerId]?p?.map(y=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:y,config:e,layer:a,fieldList:o,timeZone:n}),d}):p.map(y=>{let d={},L=M({field:x,value:y,layer:a,fieldList:o});if(f===b.BoxPlotMonoFieldAndCategoryAndSplitBy){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B}return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[x]=L,z({rawData:m,outRow:d,keyBase:`${y}_`})),d})});break}default:F=t}return F}var Pe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),_e=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),De=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===re.DateOnly;me(r)&&!n?i=Pe(t)?_e(new Date(t),o):t:n&&typeof t!="string"&&(i=Pe(t)?We(new Date(t),o):t)}return i};function ct(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:he,b:Ce,c:ke,d:Be,e:Oe,f:ut,g:ft,h:dt,i:ct}},a,c,d,e,f,g,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{d as i}from"./JYC77MVD.js";import a from"./
|
|
2
|
+
import{d as i}from"./JYC77MVD.js";import a from"./VMN2UXWS.js";import"./CRNIOME2.js";import"./BGOWDCTO.js";import"./USNJZCHH.js";import"./KX7KGXKQ.js";import{l as d}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{B as n,H as h,g as r,i as s}from"./7SBVBD4E.js";import"./KJZTU3DV.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{db:p,va:c,xa:g}])=>{var m=r`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,o=class extends n{static{this.properties={layerFieldsInfo:16,model:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=m}async load(){await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!d(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,t=this.layer;if(!t){let l=p(a)?a.iLayer:void 0;l&&(t=await c(l))}t&&(await t.load(),this.layerFieldsInfo=g(t,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}async onModelConfigChange(e){let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)}render(){let e;switch(this.page){case i.Data:e=s`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;break;case i.Format:e=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};h("arcgis-charts-config-heat-chart",o);return o},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{n as t}from"./
|
|
2
|
+
import{n as t}from"./5X7Q3I6R.js";import{j as e}from"./QP5UAIC6.js";var g={addGuide:"add-guide",noMessages:"no-messages"};function i(s,n,o){let r=t(o)?o.getXGuidesLength()??0:0;return n===e.X?s:r+s}export{g as a,i as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./TSORVNA6.js";import b from"./NVINMCGT.js";import a from"./D6MRUKIA.js";import{j as s}from"./QP5UAIC6.js";export default $arcgis.t(([{q:p},{c:a},{a:g,b:c,c:d}])=>{var u=Object.defineProperty,x=Object.getOwnPropertyDescriptor,m=(r,e,o,G)=>{for(var t=x(e,o),n=r.length-1,f;n>=0;n--)(f=r[n])&&(t=f(e,o,t)||t);return t&&u(e,o,t),t},i=class extends d{getXGuidesLength(){return this._config.axes?.[0]?.guides?.length}addXAxisGuide(e,o){g({config:this._config,name:e,index:o,orientation:s.X})}deleteXAxisGuide(e){c({config:this._config,index:e,orientation:s.X})}};m([a],i.prototype,"addXAxisGuide");m([a],i.prototype,"deleteXAxisGuide");var h=[d];p(i,h);return i},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as te}from"./FJGG2VVZ.js";import{a as W}from"./IPEJCIHO.js";import{a as ee}from"./IHO3OLL3.js";import{b as T}from"./IONJLIQQ.js";import d from"./IK4FPUFJ.js";import"./JYC77MVD.js";import{a as j}from"./SN4KBI42.js";import{l as Y,n as K,o as H}from"./OAXHS4LE.js";import b from"./4JWIBRGO.js";import a from"./NAGOJPIX.js";import"./CRNIOME2.js";import"./BGOWDCTO.js";import{I as O}from"./USNJZCHH.js";import{b as q,f as m}from"./KX7KGXKQ.js";import{g as D}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as h,B as N,C as o,D as I,F as w,H as z,g as R,i as r,n as X,z as c}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import{j as v}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as V}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{$a:U,ab:g,lc:Z,mc:P,nc:k,ub:p},,{h:C,i:x,n:E,p:J,r:Q}])=>{var n={row:"row",column:"column",colorPicker:"color-picker"},se=R`.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}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`,A=class extends N{constructor(){super(...arguments),this._messages=j(),this.startCalciteInput=c(),this.endCalciteInput=c(),this.startDateCalciteInput=c(),this.endDateCalciteInput=c(),this.startTimeCalciteInput=c(),this.endTimeCalciteInput=c(),this.colorElement=c(),this.colorChange=e=>{let t=e.detail,i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation);if(p(i,a)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},color:t};this.lineStyleChange({detail:d})}else this.setColor(t)},this.symbolChange=e=>{let t=e?.detail,i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation);if(p(i,a)===m.SLS){let l=D(T.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},...g(t)?t:{}};this.lineStyleChange({detail:d})}else t?.color!==void 0&&this.setColor(t.color)},this.onModelConfigChange=()=>{this.requestUpdate()},this.guidePopover=null,this.latestGuidePosition=0,this.arcgisChartsConfigGuideChange=X()}static{this.properties={guidePopover:16,messageOverrides:0,model:0,timeZone:1,calculatedMinMaxBounds:0,index:9,orientation:1,latestGuidePosition:9}}static{this.styles=se}get isXAxisDateField(){return this.orientation===v.X&&Y(this.model)&&this.model.getAxisValueFormat(0)?.type===V.DateAxisFormat}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}loaded(){this.isXAxisDateField&&this.setGuideDateTimeRange()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onColorElementSelect(e){this.guidePopover?.open===!0?this.removeGuidePopover():this.setupGuidePopover(e)}setGuideStart(e){let{value:t}=e.target;this.startCalciteInput.value!==void 0&&(t===""?C({inputElement:this.startCalciteInput.value,status:x.INVALID}):(this.model.setGuideStart(t,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),C({inputElement:this.startCalciteInput.value,status:x.IDLE}))),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideEnd(e){let{value:t}=e.target;this.endCalciteInput.value!==void 0&&(this.model.setGuideEnd(t===""?null:t,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),C({inputElement:this.endCalciteInput.value,status:x.IDLE})),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideDateTimeRange(){let e=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.minimum,t=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.maximum,i=typeof e=="number"?new Date(e):new Date,a=typeof t=="number"?new Date(t):new Date,l=new window.Intl.DateTimeFormat().resolvedOptions().timeZone,s=Z(this.timeZone)??l,d=P(i,s),$=k(i,s),f=P(a,s),ie=k(a,s),_=this.startDateCalciteInput.value?.value??"",G=_===""?d:_,F=this.startTimeCalciteInput.value?.value??"",L=F===""?$:F,b=this.endDateCalciteInput.value?.value??"",y=b===""?f:b,M=this.endTimeCalciteInput.value?.value??"",B=M===""?ie:M,S=!1;if(!Array.isArray(G)&&G!==void 0&&L!==void 0){let u=`${G}T${L}`;this.model.setGuideStart(u,this.index,this.orientation),S=!0}if(!Array.isArray(y)&&y!==void 0&&B!==void 0){let u=b===""?void 0:`${y}T${B}`;this.model.setGuideEnd(u,this.index,this.orientation),S=!0}S&&(this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.guidePopover?.open===!0&&this.removeGuidePopover())}setGuideName(e){let t=e.target.value;this.model.setGuideName(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideLabel(e){let t=e.target.value;this.model.setGuideLabelText(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideRendered(e){let t=e.target?.selectedItem?.value;if(t!==void 0){let i=t===this._messages.inFront;this.model.setGuideAbove(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}}lineStyleChange(e){let t=e.detail;this.model.setGuideStyle(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setupGuidePopover(e){e.stopImmediatePropagation();let t=this.model.getGuideStyle(this.index,this.orientation),i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation),l;p(i,a)===m.SLS?l=g(t)?t:void 0:l=t?.color;let s=this.colorElement.value;Array.isArray(t?.color)?(this.guidePopover=w(r`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`),this.guidePopover!==void 0&&!document.body.contains(this.guidePopover)&&document.body.appendChild(this.guidePopover)):this.removeGuidePopover()}removeGuidePopover(){this.guidePopover!==null&&this.guidePopover!==void 0&&(this.guidePopover=ee(this.guidePopover))}setColor(e){let t=O({opacity:0}),i=this.model.getGuideStyle(this.index,this.orientation),a={...U(i)?i:{},type:m.SFS,color:e,outline:t};this.model.setGuideStyle(a,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}getDateStringFromBound(e){return typeof e=="string"?e.split("T")[0]:""}getTimeStringFromBound(e){return typeof e=="string"?e.split("T")[1]:""}createTooltip(e){let t=e.target,i="";switch(t.icon){case"view-visible":i=this._messages.hideGuide??"";break;case"view-hide":i=this._messages.showGuide??"";break;default:i=this._messages.deleteGuide??"";break}this.tooltip=w(r`<calcite-tooltip style=${I({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}toggleGuide(){let e=this.model.getGuideVisibility(this.index,this.orientation);this.model.setGuideVisibility(!e,this.index,this.orientation)}destroyTooltip(){Q(this.tooltip)}deleteGuide(){this.destroyTooltip(),this.orientation===v.X&&K(this.model)?this.model.deleteXAxisGuide(this.index):this.orientation===v.Y&&H(this.model)&&this.model.deleteYAxisGuide(this.index),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!0})}renderColorElement(){let e=this.model.getGuideStyle(this.index,this.orientation),[t,i,a,l]=[...e?.color??[1,1,1,255]],s=this.model.getGuideStart(this.index,this.orientation),d=this.model.getGuideEnd(this.index,this.orientation),$=g(e)?J(e.style):q.Solid,f=p(s,d)===m.SLS?`line-${$}`:"square-f";return r`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${h(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${I({color:`rgba(${t},${i},${a},${l/255})`})}></calcite-icon></calcite-list-item></calcite-list>`}render(){let e=this.model.getGuideStart(this.index,this.orientation),t=this.model.getGuideEnd(this.index,this.orientation),i=this.model.getGuideName(this.index,this.orientation),a=this.model.getGuideLabelText(this.index,this.orientation),l=this.model.getGuideAbove(this.index,this.orientation),s=this.model.getGuideVisibility(this.index,this.orientation),d=this.isXAxisDateField;return r`<calcite-block .heading=${i??""} .expanded=${this.latestGuidePosition===te(this.index,this.orientation,this.model)} collapsible .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}}><calcite-action slot=actions-end text .icon=${s?"view-visible":"view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.startDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${E} number-button-type=none .value=${e?.toString()} ${h(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.endDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${E} number-button-type=none .value=${t?.toString()} ${h(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${d?W("time-picker-row",r`<div class=${o(n.row)}>${e!=null?r`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}${t!=null?r`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}</div>`):null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`}};z("arcgis-charts-config-guide",A);return A},a,b,d)
|
|
2
|
+
import{b as te}from"./3P2SRGLO.js";import{a as W}from"./IPEJCIHO.js";import{a as ee}from"./IHO3OLL3.js";import{b as E}from"./IONJLIQQ.js";import d from"./IMG5US47.js";import"./JYC77MVD.js";import{a as j}from"./SN4KBI42.js";import{l as Y,n as K,o as H}from"./5X7Q3I6R.js";import b from"./D6MRUKIA.js";import a from"./VMN2UXWS.js";import"./CRNIOME2.js";import"./BGOWDCTO.js";import{I as O}from"./USNJZCHH.js";import{b as q,f as m}from"./KX7KGXKQ.js";import{g as D}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as h,B as N,C as o,D as I,F as w,H as z,g as R,i as r,n as X,z as c}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import{j as v}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as V}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{$a:U,ab:g,lc:Z,mc:P,nc:k,ub:p},,{h:C,i:x,n:T,p:J,r:Q}])=>{var n={row:"row",column:"column",colorPicker:"color-picker"},se=R`.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}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`,A=class extends N{constructor(){super(...arguments),this._messages=j(),this.startCalciteInput=c(),this.endCalciteInput=c(),this.startDateCalciteInput=c(),this.endDateCalciteInput=c(),this.startTimeCalciteInput=c(),this.endTimeCalciteInput=c(),this.colorElement=c(),this.colorChange=e=>{let t=e.detail,i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation);if(p(i,a)===m.SLS){let l=D(E.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},color:t};this.lineStyleChange({detail:d})}else this.setColor(t)},this.symbolChange=e=>{let t=e?.detail,i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation);if(p(i,a)===m.SLS){let l=D(E.style),s=this.model.getGuideStyle(this.index,this.orientation),d={...l,...g(s)?s:{},...g(t)?t:{}};this.lineStyleChange({detail:d})}else t?.color!==void 0&&this.setColor(t.color)},this.onModelConfigChange=()=>{this.requestUpdate()},this.guidePopover=null,this.latestGuidePosition=0,this.arcgisChartsConfigGuideChange=X()}static{this.properties={guidePopover:16,messageOverrides:0,model:0,timeZone:1,calculatedMinMaxBounds:0,index:9,orientation:1,latestGuidePosition:9}}static{this.styles=se}get isXAxisDateField(){return this.orientation===v.X&&Y(this.model)&&this.model.getAxisValueFormat(0)?.type===V.DateAxisFormat}load(){this.modelChange(this.model)}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}loaded(){this.isXAxisDateField&&this.setGuideDateTimeRange()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onColorElementSelect(e){this.guidePopover?.open===!0?this.removeGuidePopover():this.setupGuidePopover(e)}setGuideStart(e){let{value:t}=e.target;this.startCalciteInput.value!==void 0&&(t===""?C({inputElement:this.startCalciteInput.value,status:x.INVALID}):(this.model.setGuideStart(t,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),C({inputElement:this.startCalciteInput.value,status:x.IDLE}))),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideEnd(e){let{value:t}=e.target;this.endCalciteInput.value!==void 0&&(this.model.setGuideEnd(t===""?null:t,this.index,this.orientation),this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),C({inputElement:this.endCalciteInput.value,status:x.IDLE})),this.guidePopover?.open===!0&&this.removeGuidePopover()}setGuideDateTimeRange(){let e=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.minimum,t=this.calculatedMinMaxBounds?.find(u=>u.isXAxis)?.maximum,i=typeof e=="number"?new Date(e):new Date,a=typeof t=="number"?new Date(t):new Date,l=new window.Intl.DateTimeFormat().resolvedOptions().timeZone,s=Z(this.timeZone)??l,d=P(i,s),$=k(i,s),G=P(a,s),ie=k(a,s),_=this.startDateCalciteInput.value?.value??"",f=_===""?d:_,F=this.startTimeCalciteInput.value?.value??"",L=F===""?$:F,b=this.endDateCalciteInput.value?.value??"",y=b===""?G:b,M=this.endTimeCalciteInput.value?.value??"",B=M===""?ie:M,S=!1;if(!Array.isArray(f)&&f!==void 0&&L!==void 0){let u=`${f}T${L}`;this.model.setGuideStart(u,this.index,this.orientation),S=!0}if(!Array.isArray(y)&&y!==void 0&&B!==void 0){let u=b===""?void 0:`${y}T${B}`;this.model.setGuideEnd(u,this.index,this.orientation),S=!0}S&&(this.symbolChange(),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1}),this.guidePopover?.open===!0&&this.removeGuidePopover())}setGuideName(e){let t=e.target.value;this.model.setGuideName(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideLabel(e){let t=e.target.value;this.model.setGuideLabelText(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setGuideRendered(e){let t=e.target?.selectedItem?.value;if(t!==void 0){let i=t===this._messages.inFront;this.model.setGuideAbove(i,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}}lineStyleChange(e){let t=e.detail;this.model.setGuideStyle(t,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}setupGuidePopover(e){e.stopImmediatePropagation();let t=this.model.getGuideStyle(this.index,this.orientation),i=this.model.getGuideStart(this.index,this.orientation),a=this.model.getGuideEnd(this.index,this.orientation),l;p(i,a)===m.SLS?l=g(t)?t:void 0:l=t?.color;let s=this.colorElement.value;Array.isArray(t?.color)?(this.guidePopover=w(r`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`),this.guidePopover!==void 0&&!document.body.contains(this.guidePopover)&&document.body.appendChild(this.guidePopover)):this.removeGuidePopover()}removeGuidePopover(){this.guidePopover!==null&&this.guidePopover!==void 0&&(this.guidePopover=ee(this.guidePopover))}setColor(e){let t=O({opacity:0}),i=this.model.getGuideStyle(this.index,this.orientation),a={...U(i)?i:{},type:m.SFS,color:e,outline:t};this.model.setGuideStyle(a,this.index,this.orientation),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!1})}getDateStringFromBound(e){return typeof e=="string"?e.split("T")[0]:""}getTimeStringFromBound(e){return typeof e=="string"?e.split("T")[1]:""}createTooltip(e){let t=e.target,i="";switch(t.icon){case"view-visible":i=this._messages.hideGuide??"";break;case"view-hide":i=this._messages.showGuide??"";break;default:i=this._messages.deleteGuide??"";break}this.tooltip=w(r`<calcite-tooltip style=${I({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}toggleGuide(){let e=this.model.getGuideVisibility(this.index,this.orientation);this.model.setGuideVisibility(!e,this.index,this.orientation)}destroyTooltip(){Q(this.tooltip)}deleteGuide(){this.destroyTooltip(),this.orientation===v.X&&K(this.model)?this.model.deleteXAxisGuide(this.index):this.orientation===v.Y&&H(this.model)&&this.model.deleteYAxisGuide(this.index),this.arcgisChartsConfigGuideChange.emit({index:this.index,orientation:this.orientation,isDelete:!0})}renderColorElement(){let e=this.model.getGuideStyle(this.index,this.orientation),[t,i,a,l]=[...e?.color??[1,1,1,255]],s=this.model.getGuideStart(this.index,this.orientation),d=this.model.getGuideEnd(this.index,this.orientation),$=g(e)?J(e.style):q.Solid,G=p(s,d)===m.SLS?`line-${$}`:"square-f";return r`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${h(this.colorElement)}><calcite-icon slot=content-end .icon=${G} style=${I({color:`rgba(${t},${i},${a},${l/255})`})}></calcite-icon></calcite-list-item></calcite-list>`}render(){let e=this.model.getGuideStart(this.index,this.orientation),t=this.model.getGuideEnd(this.index,this.orientation),i=this.model.getGuideName(this.index,this.orientation),a=this.model.getGuideLabelText(this.index,this.orientation),l=this.model.getGuideAbove(this.index,this.orientation),s=this.model.getGuideVisibility(this.index,this.orientation),d=this.isXAxisDateField;return r`<calcite-block .heading=${i??""} .expanded=${this.latestGuidePosition===te(this.index,this.orientation,this.model)} collapsible .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}}><calcite-action slot=actions-end text .icon=${s?"view-visible":"view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.startDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${T} number-button-type=none .value=${e?.toString()} ${h(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${d?r`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${h(this.endDateCalciteInput)}></calcite-input-date-picker>`:r`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${T} number-button-type=none .value=${t?.toString()} ${h(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${d?W("time-picker-row",r`<div class=${o(n.row)}>${e!=null?r`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}${t!=null?r`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${h(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>`:null}</div>`):null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`}};z("arcgis-charts-config-guide",A);return A},a,b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{f as p,h as T,i as y,j as m,k as A}from"./
|
|
2
|
+
import{f as p,h as T,i as y,j as m,k as A}from"./5X7Q3I6R.js";import{c as h,d as g,e as u,f as d}from"./WDMYVS4F.js";import a from"./NVINMCGT.js";import{n as o}from"./CRNIOME2.js";import{p as f}from"./USNJZCHH.js";export default $arcgis.t(([{b:a,c:x}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,e,v)=>{for(var s=j(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&P(t,e,s),s};function X(i){return i!==void 0&&"xAxisTitleText"in i}var l=class extends a{get xAxisTitleText(){return h(0,this._config)}set xAxisTitleText(t){g(t,0,this._config)}};O([x],l.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,F=(i,t,e,v)=>{for(var s=C(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&_(t,e,s),s};function B(i){return i!==void 0&&"xAxisTitleVisibility"in i}var c=class extends a{get xAxisTitleVisibility(){return u(0,this._config)}set xAxisTitleVisibility(t){d(t,0,this._config)}};F([x],c.prototype,"xAxisTitleVisibility");function M(i){return i!==void 0&&"generateXAxisTitle"in i}var b=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(y(this)||p(this))return o(t,this.xAxisField);if(T(this))return this.category!==f?o(t,this.category):"";if(m(this))return o(t,this.numericField);if(A(this)){let e=this.xTemporalBinning?.unit;return e!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[e]:""}return""}};return{a:X,b:l,c:B,d:c,e:M,f:b}},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as P}from"./IPEJCIHO.js";import{a as k}from"./IHO3OLL3.js";import{h as a}from"./JYC77MVD.js";import{a as F}from"./SN4KBI42.js";import g from"./
|
|
2
|
+
import{a as P}from"./IPEJCIHO.js";import{a as k}from"./IHO3OLL3.js";import{h as a}from"./JYC77MVD.js";import{a as F}from"./SN4KBI42.js";import g from"./UUKKQ3K7.js";import e from"./VMN2UXWS.js";import{n as d}from"./CRNIOME2.js";import"./BGOWDCTO.js";import"./USNJZCHH.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as c,B as C,C as o,F as u,H as b,g as f,i as s,n as h,z as n}from"./7SBVBD4E.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{b as v}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{i:m,za:y},{h:$}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},E=f`.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}`,g=class extends C{constructor(){super(...arguments),this._messages=F(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case a.aggregation:this.model.aggregationType=i[0]!==v.NoAggregation?i[0]:"";break;case a.category:{let r=i[0]?.trim()||"",p=this.model.numericFields;p.length>1&&r!==m&&(this.model.numericFields=[p[0]]),this.model.category=r,this.model.colorMatch=!0;break}case a.numericFields:i.length>1&&(this.model.category=m),this.model.numericFields=i;break;case a.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=h(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=h()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return P(e,s`<calcite-list-item .label=${d(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,r;switch(this.contentKind){case a.category:t=this.categoryElement.value,i=this._messages.categoryHeader,r=this.model.category;break;case a.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,r=this.model.numericFields;break;case a.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,r=this.model.getSortOrder();break}this.pieChartPopover=u(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return $({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":d(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=k(this.pieChartPopover))}renderSorting(){return s`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return s`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let t=y(this.model.layer).idField,i=[];for(let r of e)r!==t&&i.push(this.buildNumericFieldItem(r));return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,s`<div class=${o(l.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(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};b("arcgis-charts-config-pie-chart-data",g);return g},e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./4ODTQZJK.js";import e from"./L6DFXTSQ.js";import d from"./OE7Q4MG5.js";import{c as K}from"./WDMYVS4F.js";import c from"./MOG5ZVLX.js";import b from"./4JWIBRGO.js";import a from"./NAGOJPIX.js";import{c as $,d as E,n as N}from"./CRNIOME2.js";import{e as ne,f as We}from"./BGOWDCTO.js";import{J as re,K as z,L as Re,Y as Ee,ba as Me,ca as Ve,ea as Pe,f as De,za as je}from"./USNJZCHH.js";import{a as me,f as Ne}from"./KX7KGXKQ.js";import{d as qe,g as H,k as ke}from"./SP2IPHWF.js";import{a as oe}from"./QP5UAIC6.js";import{a as fe,c as $e}from"./KJZTU3DV.js";import{a as h,b as I,e as Oe,h as we,k as se,l as L,n as j,o as Le,v as q}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:Z},{$b:oi,Aa:ei,Ac:gi,Ba:R,Bb:ai,Ca:Q,Cb:A,Cc:ui,Da:X,Ea:pe,Ec:yi,Fc:di,Ha:Se,Ic:mi,K:Ue,Ka:xe,Ma:ii,N:Ye,Qa:Fe,Z:He,ba:ze,c:W,d:Ze,db:Be,fb:O,gb:w,hb:V,ib:he,ja:Qe,jb:ti,jc:li,k:U,kb:si,lc:ci,ma:Xe,pa:Je,vb:ri,wb:ae,xa:Ke,xb:ni,ya:Ge,yb:J,z:_e,za:Y},{a:P,b:le,d:k,e:be,f:fi,g:ve,j:Ie,r:pi},{a:Si,b:xi,c:Fi},{a:Bi,e:hi},{b:ee},{a:bi,b:Te,f:M,g:G,i:ce}])=>{var kt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.size),e},Mi=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.unit),e},Ot=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.timeAggregationType),e},wt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.trimIncompleteTimeInterval),e},Lt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.nullPolicy),e},Vi=(t,e)=>{e?.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.size=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Pi=(t,e)=>{e?.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.nullPolicy=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Nt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.unit=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Dt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.timeAggregationType=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Rt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.trimIncompleteTimeInterval=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ji=t=>{Vi(0,t)},$i=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Zi=(t,e,i,n)=>{for(var s=Wi(e,i),r=t.length-1,a;r>=0;r--)(a=t[r])&&(s=a(e,i,s)||s);return s&&$i(e,i,s),s},_i=t=>{let e;return W(t)?e=t.outTimeZone:t?.series.forEach(i=>{(i.type===h.BarSeries||i.type===h.RadarSeries||i.type===h.LineSeries)&&i.temporalBinning&&(e=i.temporalBinning.outTimeZone)}),e||(e=t?.axes?.[0]?.valueFormat.type===h.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0),e},ki=(t,e)=>{let i=ci(t);W(e)?t?e.outTimeZone=i:delete e.outTimeZone:e?.series.forEach(n=>{(n.type===h.BarSeries||n.type===h.RadarSeries||n.type===h.LineSeries)&&(t?(n.temporalBinning??={},n.temporalBinning.outTimeZone=i):n.temporalBinning&&delete n.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===h.DateAxisFormat&&(t?e.axes[0].valueFormat.intlOptions.timeZone=i:delete e.axes[0].valueFormat.intlOptions.timeZone)},Ce=class extends xi{get timeZone(){return _i(this._config)}set timeZone(e){ki(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};Zi([Fi],Ce.prototype,"timeZone");function Et(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.position=t)),i}function Mt(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.visible=t)),i}function Vt(t,e){let i;return e!==void 0&&(i={...e,rotated:t}),i}function Ui(t){let e;return t!==void 0&&(e={...t},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Pt(t,e){return e!=null||Be(t)}async function jt(t){let{config:e,layer:i,abortSignal:n}=t,s=!1;return ne(i)||We(e)?e&&ne(i)&&(s=await Je({config:e,layer:i,abortSignal:n})):s=!0,s}async function Yi(t){let{queryObject:e,chartConfig:i,splitByField:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p}=t,g=[],d,u=H(i),m=u.series[0],c=ii({queryObject:e,chartConfig:u,runtimeDataFilters:a,ignoreViewExtent:o});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=De.outStatistics.outStatisticFieldName),A(m)&&ai({xAxisValueFormatType:_e(u),setTimeBinningInfoWhenNotProvided:l,seriesConfig:m,queryObject:e})&&Ue(n,e)){let{temporalBinning:B,x:F}=m,{uniqueQuery:S}=Fe({chartConfig:u,queryConfig:c,queryObject:e,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,chartLimits:p}),T=i.axes?.[0].valueFormat.type===h.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0;d=await Xe({queryObject:e,dateField:F,splitByField:n,queryConfig:S,axisTimeZone:T,temporalBinning:B,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.flatMap(v=>{let{stackedAttributes:b}=v,C=[];return b&&(C=b.map(x=>x[n]).filter(x=>x!==void 0)),C})).values())}else{let{uniqueQuery:B}=Fe({chartConfig:u,queryObject:e,queryConfig:c,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,chartLimits:p}),{elementCount:F}=await gi({chartConfig:u,queryObject:e,queryConfig:c,behaviorAfterLimit:p?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:B.num,abortSignal:r});d=await Qe({queryObject:e,queryConfig:B,featureCount:F,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.map(S=>S.attributes[n]).filter(S=>S!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:d}}function Hi(t,e){let i=new Map;return t.series.forEach(n=>{let s=ae({where:n.query?.where,normalize:!0,escape:!1});e&&s!==null&&(s=Number(s));let r=fe([n]);r!==void 0&&i.set(r,[...i.get(r)??[],s])}),i}function zi(t){let{allValues:e,configUniqueValuesPerSeriesType:i,initialConfigWasEmpty:n}=t,s=new Map;return Array.from(i.keys()).forEach(r=>{let a=i.get(r)??[],o=[];n?o=e:e.forEach(l=>{a.includes(l)||o.push(l)}),s.set(r,o)}),s}function Qi(t){let{chartConfig:e,missingValue:i,splitByField:n,seriesTemplate:s}=t,r=JSON.parse(JSON.stringify({...e.series[0],...s}));if(r.query){if(i===null?r.id=$.nullValue:i===""?r.id=$.emptyStringValue:r.id=`${i}`,r.name=`${i}`,r.query.outStatistics?.[0]!==void 0){let o=r.id;r.query.outStatistics[0].outStatisticFieldName=o,"y"in r&&(r.y=o)}let a=typeof i=="number"||i===null?i:`'${i}'`;r.query.where=`${n}=${a}`}return r}async function Xi(t){let{updateSplitBySeries:e,config:i,queryObject:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p}=t,{seriesTemplate:g}=e??{},d;if(n&&!ne(n)&&e!==void 0&&i!==void 0&&(i.series.length>0||g!==void 0)&&e.addMissingSeries){let u=i.series.length===0;i.series.length===0&&g!==void 0&&i.series.push(g);let m=J(i.series);if(m===E.BoxPlotMonoFieldAndSplitBy||m===E.BoxPlotMultiFieldsAndSplitBy||m===E.BoxPlotMonoFieldAndCategoryAndSplitBy||m===E.BarAndLineSplitBy||m===E.BarAndLineSplitByNoAggregation){let c=ri(i.series[0]?.query?.where),B=Ke(n),F=Ge(c,B),S=F?ei(F):!1,T=await Yi({queryObject:n,chartConfig:i,splitByField:c,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p,errorStrings:s}),{allValues:v}=T;if({preFetchedQueryResponse:d}=T,v.length>0){let b=Hi(i,S),C=zi({allValues:v,configUniqueValuesPerSeriesType:b,initialConfigWasEmpty:u});Array.from(C.keys()).forEach(x=>{(C.get(x)??[]).forEach(_=>{i.series.push(Qi({chartConfig:i,seriesTemplate:g,missingValue:_,splitByField:c}))}),u&&i.series.shift()})}}}return d}function Ji(t,e){e&&!Be(e)&&(e=Ye({chartConfig:e,queryObject:t}))}async function $t(t){let{configToAlter:e,layer:i,addMissingSeries:n,updateSplitBySeries:s,chartContainer:r,queryObject:a,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:y,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d,timeZone:u,errorStrings:m}=t,c=e,B;return c&&(Ji(i,c),c=await Si(c,i,void 0,o),n&&a&&(B=await Xi({updateSplitBySeries:s,config:c,queryObject:a,errorStrings:m,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:y,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d})),c=oi(c,r),ki(u,c)),{alteredConfig:c,preFetchedQueryResponse:B}}function Ki(t,e){let i=!1;if(e!==void 0){let n=yi({key:ze.Average,splitBy:e});i=Number.isFinite(t[n])}return i}function Wt(t){let{data:e,config:i,showEmptySeries:n}=t,s=i.series.length,r=H(i),a=!1;if(!n&&s>1&&e){let o=ui(e),l=fe(i?.series),y=J(i?.series),f=new Set;switch(l){case h.ComboLineAndBarSeries:case h.BarSeries:case h.RadarSeries:case h.LineSeries:{r.series.forEach(g=>{if(Array.isArray(o)){let d="";"y"in g&&(d=Array.isArray(g.y)?g.y[0]:g.y,y===E.BarAndLineSplitByNoAggregation&&(d=`${d}_${ae({where:g.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(u=>mi({dataItem:u,x:g.x,y:d,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))&&f.add(g))}});break}case h.BoxPlotSeries:{if(Ze(i)){let g=He(i);i.series.forEach(d=>{let u,m;d.type===h.BoxPlotSeries?(u=e.dataItems,m=u?.some(c=>di({dataItem:c,splitBy:d.query?.where,showOutliers:g}))):d.type===h.LineSeries&&(u=e.meanLines,m=u?.some(c=>Ki(c,d.query?.where))),m&&f.add(d)})}break}}let p=Array.from(f.values());a=p.length>0&&p.length<s,a&&(r.series=p)}return{seriesFilteredOut:a,filteredConfig:r}}var Zt=t=>t.hideEmptyRowsAndColumns,_t=(t,e)=>{t.hideEmptyRowsAndColumns=e},Ut=(t,e)=>{let i=t.series[0];i.heatRulesType=e},Yt=t=>t.series[0].heatRulesType,Ht=(t,e)=>{let i=t.series[0];i.gradientRules=e},zt=t=>t.series[0].gradientRules,Qt=t=>{let{yField:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r}=n,a=K(1,i),o=Gi(i),l=ee(i),y=i.series[0];if(typeof e=="string"&&o!==e&&y){if(y.y=e,Ui(i),o===a||l){let f=N(r,e);P(i,1,f)}Oi({commonStrings:s,config:i,layerInfo:n})}},Gi=t=>t.series[0].y??"",Xt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.xTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];P(i,0,r)}ge({axisIndex:0,commonStrings:n,config:i})},et=t=>t.series[0].xTemporalBinning,Jt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.yTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];P(i,1,r)}ge({axisIndex:1,commonStrings:n,config:i})},it=t=>t.series[0].yTemporalBinning,tt=(t,e)=>{e.orderOptions??={};let i=e.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,n=Ae(e)[0],s=e.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue,r=Ae(e)[1],a={...e.orderOptions.data??{},orderType:q.MultiAxes};n===oe.customSort&&i===q.Category&&(a.orderByX=[...t]),r===oe.customSort&&s===q.Category&&(a.orderByY=[...t]),Object.keys(a).length>1&&(e.orderOptions.data=a)},Kt=(t,e)=>{let i=e.series[0];i.gridLine&&(i.gridLine.width=t)},Gt=t=>t.series[0].gridLine?.width,es=(t,e)=>{let i=e.series[0],n=t?.length===4&&t.every(s=>typeof s=="number");i.gridLine&&n&&(i.gridLine.color=t)},is=t=>t.series[0].gridLine?.color,ts=(t,e)=>{let i=e.legend;i&&(i.position=t)},ss=t=>t.legend?.position??Oe.Bottom,rs=t=>t.series[0].query?.outStatistics?.[0]?.onStatisticField,ns=t=>{let{field:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0].query?.outStatistics?.[0],a=de(i,n,s);r?(r.onStatisticField=e,r.outStatisticFieldName=`${r.statisticType}_${e}`):i.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${I.Count}_${e}`,statisticType:I.Count}]},a&&i.title&&(i.title.content.text=ie(i,n,s))},as=t=>t.series[0].query?.outStatistics?.[0].statisticType??I.Count,os=t=>{let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0]?.query?.outStatistics?.[0],a=de(i,n,s);r&&e!==I.NoAggregation&&(r.statisticType=e,r.outStatisticFieldName=`${e}_${r.onStatisticField}`),(e===I.Count||e===I.Sum)&&st(j.Zero,i),a&&i.title&&(i.title.content.text=ie(i,n,s))},ls=t=>t.nullPolicy,st=(t,e)=>{e.nullPolicy=t},cs=t=>t.series[0].emptyCells,gs=(t,e)=>{e.series[0].emptyCells=t},us=t=>t.series[0].emptyCells?.text,ys=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=t:e.series[0].emptyCells={text:t}},ds=t=>t.includeLeapDay,ms=(t,e)=>{e.includeLeapDay=t},fs=t=>t.series[0].emptyCells?.symbol,ps=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=t:e.series[0].emptyCells={symbol:t}};function Ss(t){return t.viewType}function xs(t,e){li(e)||(e.viewType=t)}function Fs(t){return t.series[0].classBreaksRules?.breaksCount??$.classBreaks.breaksCount}function Bs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=t??$.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:t??$.classBreaks.breaksCount}}function hs(t){return t.series[0].classBreaksRules?.classificationMethod}function bs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=t:e.series[0].classBreaksRules={classificationMethod:t},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??$.classBreaks.breaksCount}function vs(t,e){e.firstDayOfWeek=t}function Is(t){return t.firstDayOfWeek}function Ts(t){return t.series[0].classBreaksRules?.colorRampInfo?.name}function Cs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:t}:e.series[0].classBreaksRules={colorRampInfo:{name:t,flipped:!1}}}function As(t){return t.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function qs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:t}:e.series[0].classBreaksRules={colorRampInfo:{flipped:t}}}var rt=[L.DayOfMonth,L.MonthOfYear],vi=t=>{let e;return Q(t)?e=re():(R(t)||X(t))&&(e=z()),e},Ii=t=>R(t)||X(t),Ti=t=>{let{axisIndex:e,commonStrings:i,config:n,valueFormat:s}=t,r=n.axes?.[e]?.valueFormat;s!==void 0&&r?.type!==s.type&&Ie({config:n,commonStrings:i,valueFormat:s,axisIndex:e})},nt=(t,e)=>{let i;return e===0?i=t.series[0]?.xTemporalBinning:e===1&&(i=t.series[0]?.yTemporalBinning),i},Ci=(t,e)=>t.utilsStrings.heatChartCalendarDatePartsUnits[e]??"",Ai=(t,e)=>{let i=rt[t];return t===0&&e?.unit===L.DayOfWeek?i=L.HourOfDay:t===1&&e?.unit===L.HourOfDay&&(i=L.DayOfWeek),{type:h.CalendarDateParts,unit:i}},at=t=>{let e={};switch(t.unit){case L.DayOfMonth:e={day:"2-digit"};break;case L.DayOfWeek:e={weekday:"short"};break;case L.HourOfDay:e={hour:"numeric",hour12:!1};break;case L.MonthOfYear:e={month:"short"};break;default:e=z().intlOptions;break}return{type:h.DateAxisFormat,intlOptions:e}},qi=t=>{let{axisIndex:e,binning:i,commonStrings:n,config:s,fieldName:r,layerInfo:a}=t,o=s.series[0],l=K(e,s),y=N(a.layerFieldsInfo,r);e===0?o.xTemporalBinning=i:e===1&&(o.yTemporalBinning=i),i!==void 0&&(l===""||l===y||l===Ci(n,i.unit)||l===n.xAxis)&&P(s,e,Ci(n,i.unit))},ge=t=>{let{axisIndex:e,commonStrings:i,config:n}=t,s=nt(n,e),r=s?at(s):void 0;Ie({config:n,commonStrings:i,valueFormat:r,axisIndex:e})},Oi=t=>{let{commonStrings:e,config:i,layerInfo:n}=t,s=i.series[0]?.x??"",r=i.series[0]?.y??"",a=xe(n.layerFieldsInfo,s),o=xe(n.layerFieldsInfo,r),l=vi(a),y=vi(o),f=Ii(a)&&Ii(o),p=Q(a)&&Q(o);if(Ti({axisIndex:0,commonStrings:e,config:i,valueFormat:l}),Ti({axisIndex:1,commonStrings:e,config:i,valueFormat:y}),f){let g=et(i)===void 0,d=it(i)===void 0;g&&(qi({axisIndex:0,binning:Ai(0,i.series[0].yTemporalBinning),commonStrings:e,config:i,fieldName:s,layerInfo:n}),ge({axisIndex:0,commonStrings:e,config:i})),d&&(qi({axisIndex:1,binning:Ai(1,i.series[0].xTemporalBinning),commonStrings:e,config:i,fieldName:r,layerInfo:n}),ge({axisIndex:1,commonStrings:e,config:i}))}p&&(i.series[0].xTemporalBinning=void 0,i.series[0].yTemporalBinning=void 0)};function ot(t){let e={};return t.series.forEach(i=>{$e(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===h.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0}function ue(t){let{seriesIndex:e,xAxisField:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,o=Y(r?.layer).idField,l,y=s.series[e??0],f=!1,p=!1,g=!1;if(y===void 0){let b=s.series;f=b.slice(0,e).every(C=>O(C)),p=b.slice(0,e).every(C=>w(C)),g=b.slice(0,e).every(C=>he(C))}else f=O(y),p=w(y),g=he(y);f?l=Me({commonStrings:a,seriesIndex:e,objectIDField:o}):p?l=Ve({commonStrings:a,seriesIndex:e,objectIDField:o}):g?l=Ee(a,o):l=Pe({seriesIndex:e,objectIDField:o,commonStrings:a});let d=s.series[0]?.dataLabels,u="nullCategory"in s.series[0]?ot(s):void 0,m="binTemporalData"in s.series[0]?s.series[0].binTemporalData:void 0,c="classBreakRules"in s.series[0]?s.series[0].classBreakRules:void 0,B="xTemporalBinning"in s.series[0]?s.series[0].xTemporalBinning:void 0,F="yTemporalBinning"in s.series[0]?s.series[0].yTemporalBinning:void 0,S="emptyCells"in s.series[0]?s.series[0].emptyCells:void 0,T=s.series[0].query&&"fetchNullValues"in s.series[0].query?s.series[0].query?.fetchNullValues:void 0,v={...l,x:i,y:"",dataLabels:{...l.dataLabels,type:l.dataLabels?.type??h.Text,content:{...l.dataLabels?.content,...d?.content,type:Ne.TS},visible:d?.visible??!1},...u!==void 0?{nullCategory:u}:{},...m!==void 0?{binTemporalData:m}:{},...c!==void 0?{classBreakRules:c}:{},...B!==void 0?{xTemporalBinning:B}:{},...F!==void 0?{yTemporalBinning:F}:{},...S!==void 0?{emptyCells:S}:{}};if(v.query={groupByFieldsForStatistics:[i],...T!==void 0?{fetchNullValues:T}:{}},n!==I.NoAggregation&&o!==void 0){let b=`${n}_${o}_0`.toUpperCase();v.y=b,v.query.outStatistics=[{statisticType:n,onStatisticField:o,outStatisticFieldName:b}]}if(A(s.series[0])&&A(v)){let b=Mi(s);b===se.Quarter&&(b=se.Month),v.temporalBinning={...s.series[0]?.temporalBinning,unit:b}}return H(v)}function ie(t,e,i){let{layerFieldsInfo:n}=e,{idField:s,isTraditionalTypeOID:r}=Y(e.layer),a=M(t),o=te(t),l=Li(t),y=ye(t),f=r&&(o.length===0||o.includes(s)),p=je(l,i),g=f?"":o.map(S=>N(n??[],S)).join(", "),d=N(n??[],a),u=N(n??[],y),m=t.series.some(S=>V(S)),c=m?"category":"xAxisField",B=d,F="";if(ce({fieldName:a,numericFields:o,fieldList:n}))F=Z(i.titleLabels.aggrTypeOfAggrFields,{aggregationType:p,aggregationFields:g});else if(l===I.NoAggregation){let S=f?s:g;if(y===""){let T=m?"aggrTypeCategory":"aggrTypeXAxisField";F=Z(i.titleLabels[T],{aggregationType:S,[c]:B})}else{let T=m?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=Z(i.titleLabels[T],{aggregationType:S,[c]:B,splitByField:u})}}else if(l===I.Count)if(y===""){let S=m?"aggrTypeCategory":"aggrTypeXAxisField";F=Z(i.titleLabels[S],{aggregationType:p,[c]:B})}else{let S=m?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=Z(i.titleLabels[S],{aggregationType:p,[c]:B,splitByField:u})}else if(y!==""){let S=m?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";F=Z(i.titleLabels[S],{aggregationType:p,aggregationField:g,[c]:B,splitByField:u})}else if(o.length>0){let S=m?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";F=Z(i.titleLabels[S],{aggregationType:p,aggregationFields:g,[c]:B})}return F}var wi=t=>ae({where:t.query?.where,normalize:!1,escape:!1})??"",Li=t=>t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??I.NoAggregation,ye=qe(t=>{let e=t?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return ni(t?.series?.[0]?.query?.where)?"":e},t=>t?.series?.[0]?.query?.where),te=t=>{let e=[];if(ye(t)==="")e=t?.series.map(i=>{let n=i.query?.outStatistics?.map(s=>s.onStatisticField)??[];return n?.length>0?n:i.y}).flat()??[];else{let i=t?.series?.[0],n=i?.query?.outStatistics?.[0]?.onStatisticField??[i?.y].flat()[0];e=n!==void 0?[n]:[]}return e.filter(i=>i!=="")};function Ni(t){let{splitByField:e,numericFields:i,layer:n,seriesIndex:s}=t,r=Y(n).idField??"";return e===""?i[s]??r:i[0]??r}function lt(t){let{numericFields:e,aggregationType:i,config:n,layerInfo:s}=t,r=!1;i===I.Count?r=!0:i===I.NoAggregation&&(r=e.every(l=>{let y=s.layerFieldsInfo.find(f=>f.name===l);return y!==void 0?pe(y):!1})),ve(n,1,r);let a=n.series.some(l=>O(l)),o=n.series.some(l=>w(l));if(a||o){let l=M(n),y=s.layerFieldsInfo.find(p=>p.name===l),f=y!==void 0&&pe(y);ve(n,0,f)}}var Ae=t=>{let e;if(W(t)){let i=t.orderOptions?.data?.orderByX??[""],n=t.orderOptions?.data?.orderByY??[""],s=t.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,r=t.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue;e=[Te(i,s),Te(n,r)]}else{let i=t.orderOptions?.data?.orderType??q.Category,n=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:we.Ascending;e=[bi(n,i)]}return e};function ct(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:0,commonStrings:a}),y=G({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,fieldList:o}).name,f=M(s),p=te(s),g=ce({fieldName:f,numericFields:p,fieldList:o})?s.series[0]:void 0,d=`series_${Date.now()}`,u=g?.id??d,m=g?.name??a.axisLabels.values,c={...g??l,id:u,name:m,x:U,y},B=[];for(let F of i)B.push({onStatisticField:F,outStatisticFieldName:`${F}_0`.toUpperCase(),statisticType:n});return c.query={outStatistics:B},s.series.length===1&&((O(c)||w(c))&&Ri(c,s.series[0]),V(c)?c.fillSymbol=s.series[0].fillSymbol:(O(c)||w(c))&&(c.lineSymbol=s.series[0].lineSymbol,c.markerSymbol=s.series[0].markerSymbol)),[c]}function Di(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=Y(r.layer).idField,y=[];for(let u=0;u<i.length;u+=1){let m=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:u,commonStrings:a}),c=s.series[u]?.y,B=typeof c=="string"&&c.trim()!==""&&!o.find(D=>D.name===c)?c:G({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,numericFieldIndex:u,fieldList:o}).name,F=i[u],S=s.series.find(D=>D.query?.where===void 0&&(D.query?.outStatistics?.length===1&&D.query?.outStatistics?.[0]?.onStatisticField===F||D.query?.outStatistics===void 0&&(D.y===F||D.x===F))),T=F!==l?F:m.id,v=S?.id??T,b=S?.name??N(o,F)??v,C=S??m,x={...C,id:v,name:b},_=F;x.query!==void 0&&(n!==I.NoAggregation?(_=x.type===h.HeatSeries&&S?.type===h.HeatSeries?F:B,x.query.outStatistics=[{...C.query?.outStatistics?.[0]??{},onStatisticField:F,outStatisticFieldName:B,statisticType:n}]):delete x.query.outStatistics),x.y=_,y.push(x)}let f=y.filter(u=>V(u)),p=y.filter(u=>O(u)||w(u)),g=s.series.filter(u=>V(u)),d=s.series.filter(u=>O(u)||w(u));return g.length===1&&f.length===1&&V(g[0])&&V(f[0])&&(f[0].fillSymbol=g[0].fillSymbol),d.length===1&&p.length===1&&((O(d[0])&&O(p[0])||w(d[0])&&w(p[0]))&&Ri(p[0],d[0]),(O(d[0])&&O(p[0])||w(d[0])&&w(p[0]))&&(p[0].lineSymbol=d[0].lineSymbol,p[0].markerSymbol=d[0].markerSymbol)),y}function ks(t){let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r,layer:a}=n,o=M(i),l=te(i),y=ye(i),f=de(i,n,s),p=Ei(i,n,s);if(i.series.forEach((g,d)=>{let u=G({config:i,xAxisField:o,numericFields:l,aggregationType:e,splitByField:y,layer:a,seriesIndex:d,numericFieldIndex:d,fieldList:r}).name;g.y=u;let m=Ni({splitByField:y,numericFields:l,layer:a,seriesIndex:d}),c=g.query?.outStatistics?.[0]?.onStatisticField??m;g.query={...g.query,outStatistics:e===I.NoAggregation?void 0:[{...g.query?.outStatistics?.[0],outStatisticFieldName:u,statisticType:e,onStatisticField:c}]},"temporalBinning"in g&&g.temporalBinning!==void 0&&(g.temporalBinning.nullPolicy=e===I.NoAggregation?j.Interpolate:j.Null),e===I.NoAggregation&&ji(i)}),f&&i.title&&(i.title.content.text=ie(i,n,s)),p&&i.series[0].type!==h.HeatSeries){let g=le({config:i,layerInfo:n,commonStrings:s,numericFields:l,aggregationType:e});P(i,1,g)}}function gt(t){let{splitByField:e,xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layer:y,layerFieldsInfo:f}=a,{categoriesArray:p,splitByFieldType:g}=l,d=Ni({splitByField:e,numericFields:n,layer:y,seriesIndex:0}),u=[];if(p.length===0){u=Di({xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o});for(let m of u)m.query&&(m.query.where=`${e}=''`)}else for(let m=0;m<p.length;m+=1){let c=p[m],B=G({config:r,xAxisField:i,numericFields:n,aggregationType:s,layer:a.layer,seriesIndex:m,splitByField:e,fieldList:f}).name,F=ue({config:r,xAxisField:i,aggregationType:s,layerInfo:a,seriesIndex:m,commonStrings:o}),S=Se({queryObject:a.layer,fieldName:e,fieldValue:c??""}),T=`${c}`,v=r.series.find(D=>String(wi(D)).trim().replace(/'/gu,"")===T),b=v?.id??T,C=v?.name??S??b,x=v??F,_={...x,id:b,name:C,y:B,query:{...x.query,where:`${e}=${g===me.String&&c!==null?`'${c}'`:c}`,outStatistics:s!==I.NoAggregation?[{...x.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:B,statisticType:s}]:void 0}};u.push(_)}return u}var Os=t=>{let{xAxisFieldName:e,splitByField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layerFieldsInfo:y}=a??{},f=H(r),p=hi(r),g=M(f),d=y.find(x=>x.name===g),u=r.series[0]?.query===void 0,m=y.find(x=>x.name===e),c=de(f,a,o),B=Ei(f,a,o),F=ut({config:f,layerInfo:a,commonStrings:o}),S=be(r),T=f.series.some(x=>V(x)),v=ti(f.series),b=si(f.series),C=R(d)||R(m);if(Q(m)?S=re():!X(d)&&X(m)?S=z():!R(d)&&R(m)?S=z():R(d)&&!R(m)&&(T?S=re():S=Re()),S!==void 0&&fi(r,o,S),p===0&&(r.series=[ue({config:r,xAxisField:e,aggregationType:s,layerInfo:a,commonStrings:o})]),r.series.forEach(x=>{x.x=e,x.query!==void 0&&(x.query.groupByFieldsForStatistics=[e])}),i===""||n.length>1?ce({fieldName:e,numericFields:n,fieldList:y})?r.series=ct({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):r.series=Di({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):l&&(r.series=gt({config:r,layerInfo:a,splitByField:i,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o,splitByFieldInfos:l})),F&&e!==U&&r.series[0].type!==h.HeatSeries){let x=N(y,e);P(r,0,x)}if(B&&r.series[0].type!==h.HeatSeries){let x=le({config:r,layerInfo:a,commonStrings:o,numericFields:n,aggregationType:s});P(r,1,x)}if(c&&r.title&&(r.title.content.text=ie(r,a,o)),k({config:r,value:null,axisIndex:1,isMax:!1}),k({config:r,value:null,axisIndex:1,isMax:!0}),lt({numericFields:n,aggregationType:s,config:r,layerInfo:a}),(v||b)&&(k({config:r,value:null,axisIndex:0,isMax:!1}),k({config:r,value:null,axisIndex:0,isMax:!0}),C&&s!==I.NoAggregation&&!W(f))){let x=R(m)?j.Null:j.Interpolate;Pi(x,r)}W(r)&&Oi({commonStrings:o,config:r,layerInfo:a}),r.series.forEach(x=>{u&&delete x.query,A(x)&&x.binTemporalData===void 0&&m?.type===me.TimeOnly&&(x.binTemporalData=!1)})},Ri=(t,e)=>{t.markerVisible=e.markerVisible,t.lineSmoothed=e.lineSmoothed,t.showArea=e.showArea,t.areaColor=e.areaColor,t.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(t.lineSymbol={...e.lineSymbol,color:t.lineSymbol?.color}),e.markerSymbol&&(t.markerSymbol={...e.markerSymbol,color:t.markerSymbol?.color})},ws=t=>{let{config:e,seriesIndex:i,layerInfo:n,commonStrings:s}=t,r=e.series?.[i],a=ye(e),o;if(J(e.series)===E.BarAndLineFromFields)o=s.axisLabels.values;else if(ke(a)){let l=r.query?.outStatistics?.[0]?.onStatisticField;l!==void 0&&l!==Y(n.layer).idField&&(o=N(n.layerFieldsInfo,l))}else{let l=String(wi(r)).trim().replace(/'/gu,"");o=Se({queryObject:n.layer,fieldName:a,fieldValue:l??""})??l}return o??r.id},Ls=(t,e)=>{if(W(e))tt(t,e);else{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;Ae(e)[0]===oe.customSort&&i===q.Category&&(e.orderOptions.data={orderType:q.Category,orderBy:[...t]})}},Ns=async t=>{let{config:e,layerInfo:i,errorStrings:n}=t,s=M(e),r=be(e)?.type,a=te(e),o=J(e.series),l=[];return r===h.CategoryAxisFormat&&(o===E.BarAndLineFromFields||s===U?l=a.map(y=>N(i?.layerFieldsInfo,y)):s.trim()!==""&&s!==U&&i!==void 0&&(l=await pi({layerInfo:i,config:e,category:s,errorStrings:n}))),l};function de(t,e,i){let n=ie(t,e,i),s=Bi(t),r=ee(t);return n===s||r}function Ei(t,e,i){let n=le({config:t,layerInfo:e,commonStrings:i,numericFields:te(t),aggregationType:Li(t)}),s=K(1,t),r=ee(t);return n===s||r}function ut(t){let{config:e,layerInfo:i,commonStrings:n}=t,s=N(i.layerFieldsInfo,M(e)),r=K(0,e),a=ee(e),o=M(e)===U&&(r===""||r===n.xAxis);return s===r||a||o}function Ds(t){return A(t.series[0])?t.series[0].binTemporalData??!0:!1}function Rs(t,e){e?.series.forEach(i=>{A(i)&&(i.binTemporalData=t,t?i.temporalBinning={unit:se.Day,size:0,timeAggregationType:Le.Start,trimIncompleteTimeInterval:!0,nullPolicy:j.Null}:delete i.temporalBinning)})}return{a:kt,b:Mi,c:Ot,d:wt,e:Lt,f:Vi,g:Pi,h:Nt,i:Dt,j:Rt,k:ji,l:ki,m:Ce,n:Et,o:Mt,p:Vt,q:Ui,r:Pt,s:jt,t:$t,u:Wt,v:Zt,w:_t,x:Ut,y:Yt,z:Ht,A:zt,B:Qt,C:Gi,D:Xt,E:et,F:Jt,G:it,H:Kt,I:Gt,J:es,K:is,L:ts,M:ss,N:rs,O:ns,P:as,Q:os,R:ls,S:st,T:cs,U:gs,V:us,W:ys,X:ds,Y:ms,Z:fs,_:ps,$:Ss,aa:xs,ba:Fs,ca:Bs,da:hs,ea:bs,fa:vs,ga:Is,ha:Ts,ia:Cs,ja:As,ka:qs,la:Oi,ma:ie,na:Li,oa:ye,pa:te,qa:Ae,ra:ks,sa:Os,ta:ws,ua:Ls,va:Ns,wa:Ds,xa:Rs}},"intl",a,b,c,d,e,f)
|
|
2
|
+
import f from"./UUKKQ3K7.js";import e from"./NAUEEC5O.js";import d from"./LMOH2EKW.js";import{c as K}from"./WDMYVS4F.js";import c from"./NVINMCGT.js";import b from"./D6MRUKIA.js";import a from"./VMN2UXWS.js";import{c as $,d as E,n as N}from"./CRNIOME2.js";import{e as ne,f as We}from"./BGOWDCTO.js";import{J as re,K as Q,L as Re,Y as Ee,ba as Me,ca as Ve,ea as Pe,f as De,za as je}from"./USNJZCHH.js";import{a as me,f as Ne}from"./KX7KGXKQ.js";import{d as qe,g as H,k as ke}from"./SP2IPHWF.js";import{a as oe}from"./QP5UAIC6.js";import{a as fe,c as $e}from"./KJZTU3DV.js";import{a as h,b as I,e as Oe,h as we,k as se,l as L,n as j,o as Le,v as q}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:Z},{$b:oi,Aa:ei,Ac:gi,Ba:R,Bb:ai,Ca:z,Cb:A,Cc:ui,Da:X,Ea:pe,Ec:yi,Fc:di,Ha:Se,Ic:mi,K:Ue,Ka:xe,Ma:ii,N:Ye,Qa:Fe,Z:He,ba:Qe,c:W,d:Ze,db:Be,fb:O,gb:w,hb:V,ib:he,ja:ze,jb:ti,jc:li,k:U,kb:si,lc:ci,ma:Xe,pa:Je,vb:ri,wb:ae,xa:Ke,xb:ni,ya:Ge,yb:J,z:_e,za:Y},{a:P,b:le,d:k,e:be,f:fi,g:ve,j:Ie,r:pi},{a:Si,b:xi,c:Fi},{a:Bi,e:hi},{b:ee},{a:bi,b:Te,f:M,g:G,i:ce}])=>{var kt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.size),e},Mi=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.unit),e},Ot=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.timeAggregationType),e},wt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.trimIncompleteTimeInterval),e},Lt=t=>{let e,i=t.series[0];return A(i)&&(e=i.temporalBinning?.nullPolicy),e},Vi=(t,e)=>{e?.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.size=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Pi=(t,e)=>{e?.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.nullPolicy=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Nt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.unit=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Dt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.timeAggregationType=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},Rt=(t,e)=>{e.series?.forEach(i=>{A(i)&&(i.temporalBinning??={},i.temporalBinning.trimIncompleteTimeInterval=t)}),k({config:e,value:null,axisIndex:1,isMax:!1}),k({config:e,value:null,axisIndex:1,isMax:!0})},ji=t=>{Vi(0,t)},$i=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Zi=(t,e,i,n)=>{for(var s=Wi(e,i),r=t.length-1,a;r>=0;r--)(a=t[r])&&(s=a(e,i,s)||s);return s&&$i(e,i,s),s},_i=t=>{let e;return W(t)?e=t.outTimeZone:t?.series.forEach(i=>{(i.type===h.BarSeries||i.type===h.RadarSeries||i.type===h.LineSeries)&&i.temporalBinning&&(e=i.temporalBinning.outTimeZone)}),e||(e=t?.axes?.[0]?.valueFormat.type===h.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0),e},ki=(t,e)=>{let i=ci(t);W(e)?t?e.outTimeZone=i:delete e.outTimeZone:e?.series.forEach(n=>{(n.type===h.BarSeries||n.type===h.RadarSeries||n.type===h.LineSeries)&&(t?(n.temporalBinning??={},n.temporalBinning.outTimeZone=i):n.temporalBinning&&delete n.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===h.DateAxisFormat&&(t?e.axes[0].valueFormat.intlOptions.timeZone=i:delete e.axes[0].valueFormat.intlOptions.timeZone)},Ce=class extends xi{get timeZone(){return _i(this._config)}set timeZone(e){ki(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};Zi([Fi],Ce.prototype,"timeZone");function Et(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.position=t)),i}function Mt(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.visible=t)),i}function Vt(t,e){let i;return e!==void 0&&(i={...e,rotated:t}),i}function Ui(t){let e;return t!==void 0&&(e={...t},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Pt(t,e){return e!=null||Be(t)}async function jt(t){let{config:e,layer:i,abortSignal:n}=t,s=!1;return ne(i)||We(e)?e&&ne(i)&&(s=await Je({config:e,layer:i,abortSignal:n})):s=!0,s}async function Yi(t){let{queryObject:e,chartConfig:i,splitByField:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p}=t,g=[],d,u=H(i),m=u.series[0],c=ii({queryObject:e,chartConfig:u,runtimeDataFilters:a,ignoreViewExtent:o});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=De.outStatistics.outStatisticFieldName),A(m)&&ai({xAxisValueFormatType:_e(u),setTimeBinningInfoWhenNotProvided:l,seriesConfig:m,queryObject:e})&&Ue(n,e)){let{temporalBinning:B,x:F}=m,{uniqueQuery:S}=Fe({chartConfig:u,queryConfig:c,queryObject:e,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,chartLimits:p}),T=i.axes?.[0].valueFormat.type===h.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0;d=await Xe({queryObject:e,dateField:F,splitByField:n,queryConfig:S,axisTimeZone:T,temporalBinning:B,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.flatMap(v=>{let{stackedAttributes:b}=v,C=[];return b&&(C=b.map(x=>x[n]).filter(x=>x!==void 0)),C})).values())}else{let{uniqueQuery:B}=Fe({chartConfig:u,queryObject:e,queryConfig:c,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,chartLimits:p}),{elementCount:F}=await gi({chartConfig:u,queryObject:e,queryConfig:c,behaviorAfterLimit:p?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:B.num,abortSignal:r});d=await ze({queryObject:e,queryConfig:B,featureCount:F,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.map(S=>S.attributes[n]).filter(S=>S!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:d}}function Hi(t,e){let i=new Map;return t.series.forEach(n=>{let s=ae({where:n.query?.where,normalize:!0,escape:!1});e&&s!==null&&(s=Number(s));let r=fe([n]);r!==void 0&&i.set(r,[...i.get(r)??[],s])}),i}function Qi(t){let{allValues:e,configUniqueValuesPerSeriesType:i,initialConfigWasEmpty:n}=t,s=new Map;return Array.from(i.keys()).forEach(r=>{let a=i.get(r)??[],o=[];n?o=e:e.forEach(l=>{a.includes(l)||o.push(l)}),s.set(r,o)}),s}function zi(t){let{chartConfig:e,missingValue:i,splitByField:n,seriesTemplate:s}=t,r=JSON.parse(JSON.stringify({...e.series[0],...s}));if(r.query){if(i===null?r.id=$.nullValue:i===""?r.id=$.emptyStringValue:r.id=`${i}`,r.name=`${i}`,r.query.outStatistics?.[0]!==void 0){let o=r.id;r.query.outStatistics[0].outStatisticFieldName=o,"y"in r&&(r.y=o)}let a=typeof i=="number"||i===null?i:`'${i}'`;r.query.where=`${n}=${a}`}return r}async function Xi(t){let{updateSplitBySeries:e,config:i,queryObject:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p}=t,{seriesTemplate:g}=e??{},d;if(n&&!ne(n)&&e!==void 0&&i!==void 0&&(i.series.length>0||g!==void 0)&&e.addMissingSeries){let u=i.series.length===0;i.series.length===0&&g!==void 0&&i.series.push(g);let m=J(i.series);if(m===E.BoxPlotMonoFieldAndSplitBy||m===E.BoxPlotMultiFieldsAndSplitBy||m===E.BoxPlotMonoFieldAndCategoryAndSplitBy||m===E.BarAndLineSplitBy||m===E.BarAndLineSplitByNoAggregation){let c=ri(i.series[0]?.query?.where),B=Ke(n),F=Ge(c,B),S=F?ei(F):!1,T=await Yi({queryObject:n,chartConfig:i,splitByField:c,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:y,returnStatisticsAggregatedIds:f,chartLimits:p,errorStrings:s}),{allValues:v}=T;if({preFetchedQueryResponse:d}=T,v.length>0){let b=Hi(i,S),C=Qi({allValues:v,configUniqueValuesPerSeriesType:b,initialConfigWasEmpty:u});Array.from(C.keys()).forEach(x=>{(C.get(x)??[]).forEach(_=>{i.series.push(zi({chartConfig:i,seriesTemplate:g,missingValue:_,splitByField:c}))}),u&&i.series.shift()})}}}return d}function Ji(t,e){e&&!Be(e)&&(e=Ye({chartConfig:e,queryObject:t}))}async function $t(t){let{configToAlter:e,layer:i,addMissingSeries:n,updateSplitBySeries:s,chartContainer:r,queryObject:a,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:y,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d,timeZone:u,errorStrings:m}=t,c=e,B;return c&&(Ji(i,c),c=await Si(c,i,void 0,o),n&&a&&(B=await Xi({updateSplitBySeries:s,config:c,queryObject:a,errorStrings:m,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:y,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d})),c=oi(c,r),ki(u,c)),{alteredConfig:c,preFetchedQueryResponse:B}}function Ki(t,e){let i=!1;if(e!==void 0){let n=yi({key:Qe.Average,splitBy:e});i=Number.isFinite(t[n])}return i}function Wt(t){let{data:e,config:i,showEmptySeries:n}=t,s=i.series.length,r=H(i),a=!1;if(!n&&s>1&&e){let o=ui(e),l=fe(i?.series),y=J(i?.series),f=new Set;switch(l){case h.ComboLineAndBarSeries:case h.BarSeries:case h.RadarSeries:case h.LineSeries:{r.series.forEach(g=>{if(Array.isArray(o)){let d="";"y"in g&&(d=Array.isArray(g.y)?g.y[0]:g.y,y===E.BarAndLineSplitByNoAggregation&&(d=`${d}_${ae({where:g.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(u=>mi({dataItem:u,x:g.x,y:d,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))&&f.add(g))}});break}case h.BoxPlotSeries:{if(Ze(i)){let g=He(i);i.series.forEach(d=>{let u,m;d.type===h.BoxPlotSeries?(u=e.dataItems,m=u?.some(c=>di({dataItem:c,splitBy:d.query?.where,showOutliers:g}))):d.type===h.LineSeries&&(u=e.meanLines,m=u?.some(c=>Ki(c,d.query?.where))),m&&f.add(d)})}break}}let p=Array.from(f.values());a=p.length>0&&p.length<s,a&&(r.series=p)}return{seriesFilteredOut:a,filteredConfig:r}}var Zt=t=>t.hideEmptyRowsAndColumns,_t=(t,e)=>{t.hideEmptyRowsAndColumns=e},Ut=(t,e)=>{let i=t.series[0];i.heatRulesType=e},Yt=t=>t.series[0].heatRulesType,Ht=(t,e)=>{let i=t.series[0];i.gradientRules=e},Qt=t=>t.series[0].gradientRules,zt=t=>{let{yField:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r}=n,a=K(1,i),o=Gi(i),l=ee(i),y=i.series[0];if(typeof e=="string"&&o!==e&&y){if(y.y=e,Ui(i),o===a||l){let f=N(r,e);P(i,1,f)}Oi({commonStrings:s,config:i,layerInfo:n})}},Gi=t=>t.series[0].y??"",Xt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.xTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];P(i,0,r)}ge({axisIndex:0,commonStrings:n,config:i})},et=t=>t.series[0].xTemporalBinning,Jt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.yTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];P(i,1,r)}ge({axisIndex:1,commonStrings:n,config:i})},it=t=>t.series[0].yTemporalBinning,tt=(t,e)=>{e.orderOptions??={};let i=e.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,n=Ae(e)[0],s=e.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue,r=Ae(e)[1],a={...e.orderOptions.data??{},orderType:q.MultiAxes};n===oe.customSort&&i===q.Category&&(a.orderByX=[...t]),r===oe.customSort&&s===q.Category&&(a.orderByY=[...t]),Object.keys(a).length>1&&(e.orderOptions.data=a)},Kt=(t,e)=>{let i=e.series[0];i.gridLine&&(i.gridLine.width=t)},Gt=t=>t.series[0].gridLine?.width,es=(t,e)=>{let i=e.series[0],n=t?.length===4&&t.every(s=>typeof s=="number");i.gridLine&&n&&(i.gridLine.color=t)},is=t=>t.series[0].gridLine?.color,ts=(t,e)=>{let i=e.legend;i&&(i.position=t)},ss=t=>t.legend?.position??Oe.Bottom,rs=t=>t.series[0].query?.outStatistics?.[0]?.onStatisticField,ns=t=>{let{field:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0].query?.outStatistics?.[0],a=de(i,n,s);r?(r.onStatisticField=e,r.outStatisticFieldName=`${r.statisticType}_${e}`):i.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${I.Count}_${e}`,statisticType:I.Count}]},a&&i.title&&(i.title.content.text=ie(i,n,s))},as=t=>t.series[0].query?.outStatistics?.[0].statisticType??I.Count,os=t=>{let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0]?.query?.outStatistics?.[0],a=de(i,n,s);r&&e!==I.NoAggregation&&(r.statisticType=e,r.outStatisticFieldName=`${e}_${r.onStatisticField}`),(e===I.Count||e===I.Sum)&&st(j.Zero,i),a&&i.title&&(i.title.content.text=ie(i,n,s))},ls=t=>t.nullPolicy,st=(t,e)=>{e.nullPolicy=t},cs=t=>t.series[0].emptyCells,gs=(t,e)=>{e.series[0].emptyCells=t},us=t=>t.series[0].emptyCells?.text,ys=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=t:e.series[0].emptyCells={text:t}},ds=t=>t.includeLeapDay,ms=(t,e)=>{e.includeLeapDay=t},fs=t=>t.series[0].emptyCells?.symbol,ps=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=t:e.series[0].emptyCells={symbol:t}};function Ss(t){return t.viewType}function xs(t,e){li(e)||(e.viewType=t)}function Fs(t){return t.series[0].classBreaksRules?.breaksCount??$.classBreaks.breaksCount}function Bs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=t??$.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:t??$.classBreaks.breaksCount}}function hs(t){return t.series[0].classBreaksRules?.classificationMethod}function bs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=t:e.series[0].classBreaksRules={classificationMethod:t},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??$.classBreaks.breaksCount}function vs(t,e){e.firstDayOfWeek=t}function Is(t){return t.firstDayOfWeek}function Ts(t){return t.series[0].classBreaksRules?.colorRampInfo?.name}function Cs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:t}:e.series[0].classBreaksRules={colorRampInfo:{name:t,flipped:!1}}}function As(t){return t.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function qs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:t}:e.series[0].classBreaksRules={colorRampInfo:{flipped:t}}}var rt=[L.DayOfMonth,L.MonthOfYear],vi=t=>{let e;return z(t)?e=re():(R(t)||X(t))&&(e=Q()),e},Ii=t=>R(t)||X(t),Ti=t=>{let{axisIndex:e,commonStrings:i,config:n,valueFormat:s}=t,r=n.axes?.[e]?.valueFormat;s!==void 0&&r?.type!==s.type&&Ie({config:n,commonStrings:i,valueFormat:s,axisIndex:e})},nt=(t,e)=>{let i;return e===0?i=t.series[0]?.xTemporalBinning:e===1&&(i=t.series[0]?.yTemporalBinning),i},Ci=(t,e)=>t.utilsStrings.heatChartCalendarDatePartsUnits[e]??"",Ai=(t,e)=>{let i=rt[t];return t===0&&e?.unit===L.DayOfWeek?i=L.HourOfDay:t===1&&e?.unit===L.HourOfDay&&(i=L.DayOfWeek),{type:h.CalendarDateParts,unit:i}},at=t=>{let e={};switch(t.unit){case L.DayOfMonth:e={day:"2-digit"};break;case L.DayOfWeek:e={weekday:"short"};break;case L.HourOfDay:e={hour:"numeric",hour12:!1};break;case L.MonthOfYear:e={month:"short"};break;default:e=Q().intlOptions;break}return{type:h.DateAxisFormat,intlOptions:e}},qi=t=>{let{axisIndex:e,binning:i,commonStrings:n,config:s,fieldName:r,layerInfo:a}=t,o=s.series[0],l=K(e,s),y=N(a.layerFieldsInfo,r);e===0?o.xTemporalBinning=i:e===1&&(o.yTemporalBinning=i),i!==void 0&&(l===""||l===y||l===Ci(n,i.unit)||l===n.xAxis)&&P(s,e,Ci(n,i.unit))},ge=t=>{let{axisIndex:e,commonStrings:i,config:n}=t,s=nt(n,e),r=s?at(s):void 0;Ie({config:n,commonStrings:i,valueFormat:r,axisIndex:e})},Oi=t=>{let{commonStrings:e,config:i,layerInfo:n}=t,s=i.series[0]?.x??"",r=i.series[0]?.y??"",a=xe(n.layerFieldsInfo,s),o=xe(n.layerFieldsInfo,r),l=vi(a),y=vi(o),f=Ii(a)&&Ii(o),p=z(a)&&z(o);if(Ti({axisIndex:0,commonStrings:e,config:i,valueFormat:l}),Ti({axisIndex:1,commonStrings:e,config:i,valueFormat:y}),f){let g=et(i)===void 0,d=it(i)===void 0;g&&(qi({axisIndex:0,binning:Ai(0,i.series[0].yTemporalBinning),commonStrings:e,config:i,fieldName:s,layerInfo:n}),ge({axisIndex:0,commonStrings:e,config:i})),d&&(qi({axisIndex:1,binning:Ai(1,i.series[0].xTemporalBinning),commonStrings:e,config:i,fieldName:r,layerInfo:n}),ge({axisIndex:1,commonStrings:e,config:i}))}p&&(i.series[0].xTemporalBinning=void 0,i.series[0].yTemporalBinning=void 0)};function ot(t){let e={};return t.series.forEach(i=>{$e(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===h.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0}function ue(t){let{seriesIndex:e,xAxisField:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,o=Y(r?.layer).idField,l,y=s.series[e??0],f=!1,p=!1,g=!1;if(y===void 0){let b=s.series;f=b.slice(0,e).every(C=>O(C)),p=b.slice(0,e).every(C=>w(C)),g=b.slice(0,e).every(C=>he(C))}else f=O(y),p=w(y),g=he(y);f?l=Me({commonStrings:a,seriesIndex:e,objectIDField:o}):p?l=Ve({commonStrings:a,seriesIndex:e,objectIDField:o}):g?l=Ee(a,o):l=Pe({seriesIndex:e,objectIDField:o,commonStrings:a});let d=s.series[0]?.dataLabels,u="nullCategory"in s.series[0]?ot(s):void 0,m="binTemporalData"in s.series[0]?s.series[0].binTemporalData:void 0,c="classBreakRules"in s.series[0]?s.series[0].classBreakRules:void 0,B="xTemporalBinning"in s.series[0]?s.series[0].xTemporalBinning:void 0,F="yTemporalBinning"in s.series[0]?s.series[0].yTemporalBinning:void 0,S="emptyCells"in s.series[0]?s.series[0].emptyCells:void 0,T=s.series[0].query&&"fetchNullValues"in s.series[0].query?s.series[0].query?.fetchNullValues:void 0,v={...l,x:i,y:"",dataLabels:{...l.dataLabels,type:l.dataLabels?.type??h.Text,content:{...l.dataLabels?.content,...d?.content,type:Ne.TS},visible:d?.visible??!1},...u!==void 0?{nullCategory:u}:{},...m!==void 0?{binTemporalData:m}:{},...c!==void 0?{classBreakRules:c}:{},...B!==void 0?{xTemporalBinning:B}:{},...F!==void 0?{yTemporalBinning:F}:{},...S!==void 0?{emptyCells:S}:{}};if(v.query={groupByFieldsForStatistics:[i],...T!==void 0?{fetchNullValues:T}:{}},n!==I.NoAggregation&&o!==void 0){let b=`${n}_${o}_0`.toUpperCase();v.y=b,v.query.outStatistics=[{statisticType:n,onStatisticField:o,outStatisticFieldName:b}]}if(A(s.series[0])&&A(v)){let b=Mi(s);b===se.Quarter&&(b=se.Month),v.temporalBinning={...s.series[0]?.temporalBinning,unit:b}}return H(v)}function ie(t,e,i){let{layerFieldsInfo:n}=e,{idField:s,isTraditionalTypeOID:r}=Y(e.layer),a=M(t),o=te(t),l=Li(t),y=ye(t),f=r&&(o.length===0||o.includes(s)),p=je(l,i),g=f?"":o.map(S=>N(n??[],S)).join(", "),d=N(n??[],a),u=N(n??[],y),m=t.series.some(S=>V(S)),c=m?"category":"xAxisField",B=d,F="";if(ce({fieldName:a,numericFields:o,fieldList:n}))F=Z(i.titleLabels.aggrTypeOfAggrFields,{aggregationType:p,aggregationFields:g});else if(l===I.NoAggregation){let S=f?s:g;if(y===""){let T=m?"aggrTypeCategory":"aggrTypeXAxisField";F=Z(i.titleLabels[T],{aggregationType:S,[c]:B})}else{let T=m?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=Z(i.titleLabels[T],{aggregationType:S,[c]:B,splitByField:u})}}else if(l===I.Count)if(y===""){let S=m?"aggrTypeCategory":"aggrTypeXAxisField";F=Z(i.titleLabels[S],{aggregationType:p,[c]:B})}else{let S=m?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";F=Z(i.titleLabels[S],{aggregationType:p,[c]:B,splitByField:u})}else if(y!==""){let S=m?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";F=Z(i.titleLabels[S],{aggregationType:p,aggregationField:g,[c]:B,splitByField:u})}else if(o.length>0){let S=m?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";F=Z(i.titleLabels[S],{aggregationType:p,aggregationFields:g,[c]:B})}return F}var wi=t=>ae({where:t.query?.where,normalize:!1,escape:!1})??"",Li=t=>t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??I.NoAggregation,ye=qe(t=>{let e=t?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return ni(t?.series?.[0]?.query?.where)?"":e},t=>t?.series?.[0]?.query?.where),te=t=>{let e=[];if(ye(t)==="")e=t?.series.map(i=>{let n=i.query?.outStatistics?.map(s=>s.onStatisticField)??[];return n?.length>0?n:i.y}).flat()??[];else{let i=t?.series?.[0],n=i?.query?.outStatistics?.[0]?.onStatisticField??[i?.y].flat()[0];e=n!==void 0?[n]:[]}return e.filter(i=>i!=="")};function Ni(t){let{splitByField:e,numericFields:i,layer:n,seriesIndex:s}=t,r=Y(n).idField??"";return e===""?i[s]??r:i[0]??r}function lt(t){let{numericFields:e,aggregationType:i,config:n,layerInfo:s}=t,r=!1;i===I.Count?r=!0:i===I.NoAggregation&&(r=e.every(l=>{let y=s.layerFieldsInfo.find(f=>f.name===l);return y!==void 0?pe(y):!1})),ve(n,1,r);let a=n.series.some(l=>O(l)),o=n.series.some(l=>w(l));if(a||o){let l=M(n),y=s.layerFieldsInfo.find(p=>p.name===l),f=y!==void 0&&pe(y);ve(n,0,f)}}var Ae=t=>{let e;if(W(t)){let i=t.orderOptions?.data?.orderByX??[""],n=t.orderOptions?.data?.orderByY??[""],s=t.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,r=t.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue;e=[Te(i,s),Te(n,r)]}else{let i=t.orderOptions?.data?.orderType??q.Category,n=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:we.Ascending;e=[bi(n,i)]}return e};function ct(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:0,commonStrings:a}),y=G({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,fieldList:o}).name,f=M(s),p=te(s),g=ce({fieldName:f,numericFields:p,fieldList:o})?s.series[0]:void 0,d=`series_${Date.now()}`,u=g?.id??d,m=g?.name??a.axisLabels.values,c={...g??l,id:u,name:m,x:U,y},B=[];for(let F of i)B.push({onStatisticField:F,outStatisticFieldName:`${F}_0`.toUpperCase(),statisticType:n});return c.query={outStatistics:B},s.series.length===1&&((O(c)||w(c))&&Ri(c,s.series[0]),V(c)?c.fillSymbol=s.series[0].fillSymbol:(O(c)||w(c))&&(c.lineSymbol=s.series[0].lineSymbol,c.markerSymbol=s.series[0].markerSymbol)),[c]}function Di(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=Y(r.layer).idField,y=[];for(let u=0;u<i.length;u+=1){let m=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:u,commonStrings:a}),c=s.series[u]?.y,B=typeof c=="string"&&c.trim()!==""&&!o.find(D=>D.name===c)?c:G({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,numericFieldIndex:u,fieldList:o}).name,F=i[u],S=s.series.find(D=>D.query?.where===void 0&&(D.query?.outStatistics?.length===1&&D.query?.outStatistics?.[0]?.onStatisticField===F||D.query?.outStatistics===void 0&&(D.y===F||D.x===F))),T=F!==l?F:m.id,v=S?.id??T,b=S?.name??N(o,F)??v,C=S??m,x={...C,id:v,name:b},_=F;x.query!==void 0&&(n!==I.NoAggregation?(_=x.type===h.HeatSeries&&S?.type===h.HeatSeries?F:B,x.query.outStatistics=[{...C.query?.outStatistics?.[0]??{},onStatisticField:F,outStatisticFieldName:B,statisticType:n}]):delete x.query.outStatistics),x.y=_,y.push(x)}let f=y.filter(u=>V(u)),p=y.filter(u=>O(u)||w(u)),g=s.series.filter(u=>V(u)),d=s.series.filter(u=>O(u)||w(u));return g.length===1&&f.length===1&&V(g[0])&&V(f[0])&&(f[0].fillSymbol=g[0].fillSymbol),d.length===1&&p.length===1&&((O(d[0])&&O(p[0])||w(d[0])&&w(p[0]))&&Ri(p[0],d[0]),(O(d[0])&&O(p[0])||w(d[0])&&w(p[0]))&&(p[0].lineSymbol=d[0].lineSymbol,p[0].markerSymbol=d[0].markerSymbol)),y}function ks(t){let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r,layer:a}=n,o=M(i),l=te(i),y=ye(i),f=de(i,n,s),p=Ei(i,n,s);if(i.series.forEach((g,d)=>{let u=G({config:i,xAxisField:o,numericFields:l,aggregationType:e,splitByField:y,layer:a,seriesIndex:d,numericFieldIndex:d,fieldList:r}).name;g.y=u;let m=Ni({splitByField:y,numericFields:l,layer:a,seriesIndex:d}),c=g.query?.outStatistics?.[0]?.onStatisticField??m;g.query={...g.query,outStatistics:e===I.NoAggregation?void 0:[{...g.query?.outStatistics?.[0],outStatisticFieldName:u,statisticType:e,onStatisticField:c}]},"temporalBinning"in g&&g.temporalBinning!==void 0&&(g.temporalBinning.nullPolicy=e===I.NoAggregation?j.Interpolate:j.Null),e===I.NoAggregation&&ji(i)}),f&&i.title&&(i.title.content.text=ie(i,n,s)),p&&i.series[0].type!==h.HeatSeries){let g=le({config:i,layerInfo:n,commonStrings:s,numericFields:l,aggregationType:e});P(i,1,g)}}function gt(t){let{splitByField:e,xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layer:y,layerFieldsInfo:f}=a,{categoriesArray:p,splitByFieldType:g}=l,d=Ni({splitByField:e,numericFields:n,layer:y,seriesIndex:0}),u=[];if(p.length===0){u=Di({xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o});for(let m of u)m.query&&(m.query.where=`${e}=''`)}else for(let m=0;m<p.length;m+=1){let c=p[m],B=G({config:r,xAxisField:i,numericFields:n,aggregationType:s,layer:a.layer,seriesIndex:m,splitByField:e,fieldList:f}).name,F=ue({config:r,xAxisField:i,aggregationType:s,layerInfo:a,seriesIndex:m,commonStrings:o}),S=Se({queryObject:a.layer,fieldName:e,fieldValue:c??""}),T=`${c}`,v=r.series.find(D=>String(wi(D)).trim().replace(/'/gu,"")===T),b=v?.id??T,C=v?.name??S??b,x=v??F,_={...x,id:b,name:C,y:B,query:{...x.query,where:`${e}=${g===me.String&&c!==null?`'${c}'`:c}`,outStatistics:s!==I.NoAggregation?[{...x.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:B,statisticType:s}]:void 0}};u.push(_)}return u}var Os=t=>{let{xAxisFieldName:e,splitByField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layerFieldsInfo:y}=a??{},f=H(r),p=hi(r),g=M(f),d=y.find(x=>x.name===g),u=r.series[0]?.query===void 0,m=y.find(x=>x.name===e),c=de(f,a,o),B=Ei(f,a,o),F=ut({config:f,layerInfo:a,commonStrings:o}),S=be(r),T=f.series.some(x=>V(x)),v=ti(f.series),b=si(f.series),C=R(d)||R(m);if(z(m)?S=re():!X(d)&&X(m)?S=Q():!R(d)&&R(m)?S=Q():R(d)&&!R(m)&&(T?S=re():S=Re()),S!==void 0&&fi(r,o,S),p===0&&(r.series=[ue({config:r,xAxisField:e,aggregationType:s,layerInfo:a,commonStrings:o})]),r.series.forEach(x=>{x.x=e,x.query!==void 0&&(x.query.groupByFieldsForStatistics=[e])}),i===""||n.length>1?ce({fieldName:e,numericFields:n,fieldList:y})?r.series=ct({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):r.series=Di({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):l&&(r.series=gt({config:r,layerInfo:a,splitByField:i,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o,splitByFieldInfos:l})),F&&e!==U&&r.series[0].type!==h.HeatSeries){let x=N(y,e);P(r,0,x)}if(B&&r.series[0].type!==h.HeatSeries){let x=le({config:r,layerInfo:a,commonStrings:o,numericFields:n,aggregationType:s});P(r,1,x)}if(c&&r.title&&(r.title.content.text=ie(r,a,o)),k({config:r,value:null,axisIndex:1,isMax:!1}),k({config:r,value:null,axisIndex:1,isMax:!0}),lt({numericFields:n,aggregationType:s,config:r,layerInfo:a}),(v||b)&&(k({config:r,value:null,axisIndex:0,isMax:!1}),k({config:r,value:null,axisIndex:0,isMax:!0}),C&&s!==I.NoAggregation&&!W(f))){let x=R(m)?j.Null:j.Interpolate;Pi(x,r)}W(r)&&Oi({commonStrings:o,config:r,layerInfo:a}),r.series.forEach(x=>{u&&delete x.query,A(x)&&x.binTemporalData===void 0&&m?.type===me.TimeOnly&&(x.binTemporalData=!1)})},Ri=(t,e)=>{t.markerVisible=e.markerVisible,t.lineSmoothed=e.lineSmoothed,t.showArea=e.showArea,t.areaColor=e.areaColor,t.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(t.lineSymbol={...e.lineSymbol,color:t.lineSymbol?.color}),e.markerSymbol&&(t.markerSymbol={...e.markerSymbol,color:t.markerSymbol?.color})},ws=t=>{let{config:e,seriesIndex:i,layerInfo:n,commonStrings:s}=t,r=e.series?.[i],a=ye(e),o;if(J(e.series)===E.BarAndLineFromFields)o=s.axisLabels.values;else if(ke(a)){let l=r.query?.outStatistics?.[0]?.onStatisticField;l!==void 0&&l!==Y(n.layer).idField&&(o=N(n.layerFieldsInfo,l))}else{let l=String(wi(r)).trim().replace(/'/gu,"");o=Se({queryObject:n.layer,fieldName:a,fieldValue:l??""})??l}return o??r.id},Ls=(t,e)=>{if(W(e))tt(t,e);else{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;Ae(e)[0]===oe.customSort&&i===q.Category&&(e.orderOptions.data={orderType:q.Category,orderBy:[...t]})}},Ns=async t=>{let{config:e,layerInfo:i,errorStrings:n}=t,s=M(e),r=be(e)?.type,a=te(e),o=J(e.series),l=[];return r===h.CategoryAxisFormat&&(o===E.BarAndLineFromFields||s===U?l=a.map(y=>N(i?.layerFieldsInfo,y)):s.trim()!==""&&s!==U&&i!==void 0&&(l=await pi({layerInfo:i,config:e,category:s,errorStrings:n}))),l};function de(t,e,i){let n=ie(t,e,i),s=Bi(t),r=ee(t);return n===s||r}function Ei(t,e,i){let n=le({config:t,layerInfo:e,commonStrings:i,numericFields:te(t),aggregationType:Li(t)}),s=K(1,t),r=ee(t);return n===s||r}function ut(t){let{config:e,layerInfo:i,commonStrings:n}=t,s=N(i.layerFieldsInfo,M(e)),r=K(0,e),a=ee(e),o=M(e)===U&&(r===""||r===n.xAxis);return s===r||a||o}function Ds(t){return A(t.series[0])?t.series[0].binTemporalData??!0:!1}function Rs(t,e){e?.series.forEach(i=>{A(i)&&(i.binTemporalData=t,t?i.temporalBinning={unit:se.Day,size:0,timeAggregationType:Le.Start,trimIncompleteTimeInterval:!0,nullPolicy:j.Null}:delete i.temporalBinning)})}return{a:kt,b:Mi,c:Ot,d:wt,e:Lt,f:Vi,g:Pi,h:Nt,i:Dt,j:Rt,k:ji,l:ki,m:Ce,n:Et,o:Mt,p:Vt,q:Ui,r:Pt,s:jt,t:$t,u:Wt,v:Zt,w:_t,x:Ut,y:Yt,z:Ht,A:Qt,B:zt,C:Gi,D:Xt,E:et,F:Jt,G:it,H:Kt,I:Gt,J:es,K:is,L:ts,M:ss,N:rs,O:ns,P:as,Q:os,R:ls,S:st,T:cs,U:gs,V:us,W:ys,X:ds,Y:ms,Z:fs,_:ps,$:Ss,aa:xs,ba:Fs,ca:Bs,da:hs,ea:bs,fa:vs,ga:Is,ha:Ts,ia:Cs,ja:As,ka:qs,la:Oi,ma:ie,na:Li,oa:ye,pa:te,qa:Ae,ra:ks,sa:Os,ta:ws,ua:Ls,va:Ns,wa:Ds,xa:Rs}},"intl",a,b,c,d,e,f)
|