@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.7

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.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import u from"./6GLTSMOR.js";import t from"./BLZODYE2.js";import{a as f}from"./IVLVCLDE.js";import{a as ae}from"./L7CMLBHB.js";import{a as $,b as W,e as ee}from"./OBPAQN4H.js";import{a as ie}from"./VOTZAPI3.js";import{a as k}from"./JNNB2DIA.js";import{a as se}from"./IHO3OLL3.js";import s from"./JRHMUFED.js";import{a as P}from"./MRTKZZTF.js";import{d as c}from"./AK7X7SGI.js";import r from"./2N4MK6FQ.js";import q from"./KO7HQLGV.js";import p from"./QFEZPP3R.js";import m from"./LC6CY2HW.js";import l from"./MVHQR4FJ.js";import j from"./7YWZG3ZS.js";import i from"./MGEW6X3Y.js";import{b as B,c as L,i as Y,l as w,p as D}from"./THTYR6IL.js";import g from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import e from"./HWJGWDU3.js";import d from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import{d as M,e as X}from"./EZV7JSQJ.js";import{C as v,c as R,q as x}from"./ADGMA3ST.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as T}from"./SP2IPHWF.js";import"./NZR4L5AA.js";import{A as _,B as h,C as U,E as S,G as z,g as N,i as n,n as C,y as A,z as V}from"./CHQDKVVQ.js";import{a as J}from"./4LPXOEML.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as o,k as H}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{substitute:le},{Ga:O,Jb:K,eb:G,hb:Z,jc:j},,,,,{b:I},,{a:Q},,,,,{r:te},{e:y,f:q},{b:E}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function re(m,e){let i=new Set,t=e;return m?.forEach((a,s)=>{let r=a.chartId;(i.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=a.chartId)),i.add(r)}),t}function ce(m,e,i){return m?.filter(t=>x(i,t.config)&&t.layer?.id===e)??[]}function ne(m){let{modelList:e,layerList:i,activeLayerId:t,disableEditing:a}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),a||i.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function he(m,e){m.forEach(i=>{e.forEach(t=>{i?.id===t.layer?.id&&oe(i,t)})})}function oe(m,e){let i=m;if(i){let t=[...i?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),s=!1;a!==void 0&&a>-1?(s=!T(t[a],e.config),t[a]=e.config):i&&!I(e.config)&&(s=!0,t.push(e.config)),s&&(i.charts=t)}}function de(m,e){let i=m;if(i){let t=[...i.charts??[]],a=t.findIndex(s=>s.id===e);a>-1&&(t.splice(a,1),i.charts=t)}}function me(m,e){let i=m;if(i){let t=[...i.charts??[]];t=v({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),i.charts=t}}var pe=N`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,F=class extends _{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=A(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let i=e,{chartData:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,X(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:g,aggregated:u}=r,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,a.dataStore.aggregated=u,u&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;if((L(s)||B(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&ee($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),B(s)){let g=s.xAxisField,u=r.some(b=>b[g]===null),p=s.nullCategory;u&&p===void 0&&(s.nullCategory=R.nullCategory)}break}}},this.chartAxesMinMaxChange=e=>{let i=e,{bounds:t,model:a}=i.detail,s=this.getModel(this.selectedChartId),r=a?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let i=e,{data:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let i=e,{propName:t,value:a,model:s}=i.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&Q(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&D(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&D(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let i=e,{legendItemVisibility:t,model:a}=i.detail,s=this.modelList.find(r=>a?.isSameChartAs(r));s?.setSeriesVisibility(t),w(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),L(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:i,layerId:t}=e.target;i!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:i,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let i=e.target;oe(i?.layer,i)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=pe}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:i}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:i,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=i.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(s=>s.id.toString()===t);a&&me(a,i)}}}async layerListChange(){let e=[],i=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>i.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let s=a.charts;for(let r of s??[]){let l=await J({layer:a,config:r,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}re(e),e.forEach(a=>{t.find(s=>s.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!K(a.config)),this.modelList=t}modelListChange(e,i){this.selectedChartId=re(e,this.selectedChartId),i?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?E({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&he(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let i=this.getModel(e);this.setEventBasedPropsFromModelData(i),this.currentChartTypeText=i?.chartType!==void 0?E({chartType:i.chartType,commonStrings:this.commonStrings,config:i.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:i})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let i=this.getModel(this.selectedChartId)?.config,t=[];if(i!==void 0&&e!==void 0){let a=j({chartConfig:i,chartData:e}),{minY:s,maxY:r,minX:l,maxX:g}=a;t=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(i=>{let{isXAxis:t,maximum:a,minimum:s}=i,r=this.getModel(this.selectedChartId);if(r!==void 0&&w(r)&&this.selectedChartId!==void 0){let l=new ae(r,t),g=W({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],b={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!T(p,b)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=b)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(i=>x(O,i.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:i,layerId:t,layerType:a}=e.detail,s=!0;if(M(a)&&t){let r=this.layerList.find(l=>l.id===t);M(r?.type)&&(s=!!(await Z(r))?.attributeTable)}this.setupSelectChartTypePopover(i,t,a,s)}setupSelectChartTypePopover(e,i,t,a=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(i=>i.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=se(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!I(e.config))}onViewChartDelete(e){let{chartId:i}=e.detail;if(i!==void 0){let t=this.modelList.find(s=>s.chartId===i),a=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==i)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&de(a,i)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let i=e.target,t="";switch(i.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${U({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){te(this.tooltip)}renderViewCharts(){let e=ne({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,i=>i.id,i=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ce(this.modelList,i.id.toString(),M(i.type)?G:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${k("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${V(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return k("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),i=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return t}};z("arcgis-charts-config-create-flow",F);return F},"intl",a,b,d,e,g,i,j,l,m,p,q,r,s,t,u)
2
+ import u from"./6GLTSMOR.js";import t from"./WGYJBMRM.js";import{a as f}from"./IVLVCLDE.js";import{a as ae}from"./L7CMLBHB.js";import{a as $,b as W,e as ee}from"./OBPAQN4H.js";import{a as ie}from"./VOTZAPI3.js";import{a as k}from"./JNNB2DIA.js";import{a as se}from"./IHO3OLL3.js";import s from"./JRHMUFED.js";import{a as P}from"./MRTKZZTF.js";import{d as c}from"./AK7X7SGI.js";import r from"./2N4MK6FQ.js";import q from"./KO7HQLGV.js";import p from"./QFEZPP3R.js";import m from"./LC6CY2HW.js";import l from"./MVHQR4FJ.js";import j from"./7YWZG3ZS.js";import i from"./MGEW6X3Y.js";import{b as B,c as L,i as Y,l as w,p as D}from"./THTYR6IL.js";import g from"./KLHZFPYK.js";import"./Y7HBWU3M.js";import e from"./HWJGWDU3.js";import d from"./ML3A3MYV.js";import b from"./PRGFNLY7.js";import"./WNKDEOFZ.js";import a from"./TJMTF45U.js";import{d as M,e as X}from"./EZV7JSQJ.js";import{C as v,c as R,q as x}from"./ADGMA3ST.js";import"./PAIRUVLU.js";import"./KX7KGXKQ.js";import{l as T}from"./SP2IPHWF.js";import"./NZR4L5AA.js";import{A as _,B as h,C as U,E as S,G as z,g as N,i as n,n as C,y as A,z as V}from"./CHQDKVVQ.js";import{a as J}from"./4LPXOEML.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as o,k as H}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{substitute:le},{Ga:O,Jb:K,eb:G,hb:Z,jc:j},,,,,{b:I},,{a:Q},,,,,{r:te},{e:y,f:q},{b:E}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function re(m,e){let i=new Set,t=e;return m?.forEach((a,s)=>{let r=a.chartId;(i.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=a.chartId)),i.add(r)}),t}function ce(m,e,i){return m?.filter(t=>x(i,t.config)&&t.layer?.id===e)??[]}function ne(m){let{modelList:e,layerList:i,activeLayerId:t,disableEditing:a}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),a||i.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function he(m,e){m.forEach(i=>{e.forEach(t=>{i?.id===t.layer?.id&&oe(i,t)})})}function oe(m,e){let i=m;if(i){let t=[...i?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),s=!1;a!==void 0&&a>-1?(s=!T(t[a],e.config),t[a]=e.config):i&&!I(e.config)&&(s=!0,t.push(e.config)),s&&(i.charts=t)}}function de(m,e){let i=m;if(i){let t=[...i.charts??[]],a=t.findIndex(s=>s.id===e);a>-1&&(t.splice(a,1),i.charts=t)}}function me(m,e){let i=m;if(i){let t=[...i.charts??[]];t=v({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),i.charts=t}}var pe=N`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,F=class extends _{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=A(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let i=e,{chartData:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,X(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:g,aggregated:u}=r,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,a.dataStore.aggregated=u,u&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;if((L(s)||B(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&ee($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),B(s)){let g=s.xAxisField,u=r.some(b=>b[g]===null),p=s.nullCategory;u&&p===void 0&&(s.nullCategory=R.nullCategory)}break}}},this.chartAxesMinMaxChange=e=>{let i=e,{bounds:t,model:a}=i.detail,s=this.getModel(this.selectedChartId),r=a?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let i=e,{data:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let i=e,{propName:t,value:a,model:s}=i.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&Q(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&D(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&D(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let i=e,{legendItemVisibility:t,model:a}=i.detail,s=this.modelList.find(r=>a?.isSameChartAs(r));s?.setSeriesVisibility(t),w(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),L(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:i,layerId:t}=e.target;i!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:i,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let i=e.target;oe(i?.layer,i)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=pe}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:i}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:i,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=i.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(s=>s.id.toString()===t);a&&me(a,i)}}}async layerListChange(){let e=[],i=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>i.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let s=a.charts;for(let r of s??[]){let l=await J({layer:a,config:r,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}re(e),e.forEach(a=>{t.find(s=>s.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!K(a.config)),this.modelList=t}modelListChange(e,i){this.selectedChartId=re(e,this.selectedChartId),i?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?E({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&he(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=c.Data;let i=this.getModel(e);this.setEventBasedPropsFromModelData(i),this.currentChartTypeText=i?.chartType!==void 0?E({chartType:i.chartType,commonStrings:this.commonStrings,config:i.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:i})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let i=this.getModel(this.selectedChartId)?.config,t=[];if(i!==void 0&&e!==void 0){let a=j({chartConfig:i,chartData:e}),{minY:s,maxY:r,minX:l,maxX:g}=a;t=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(i=>{let{isXAxis:t,maximum:a,minimum:s}=i,r=this.getModel(this.selectedChartId);if(r!==void 0&&w(r)&&this.selectedChartId!==void 0){let l=new ae(r,t),g=W({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],b={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!T(p,b)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=b)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(i=>x(O,i.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:i,layerId:t,layerType:a}=e.detail,s=!0;if(M(a)&&t){let r=this.layerList.find(l=>l.id===t);M(r?.type)&&(s=!!(await Z(r))?.attributeTable)}this.setupSelectChartTypePopover(i,t,a,s)}setupSelectChartTypePopover(e,i,t,a=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(n`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(i=>i.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=se(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!I(e.config))}onViewChartDelete(e){let{chartId:i}=e.detail;if(i!==void 0){let t=this.modelList.find(s=>s.chartId===i),a=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==i)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&de(a,i)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let i=e.target,t="";switch(i.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=S(n`<calcite-tooltip style=${U({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){te(this.tooltip)}renderViewCharts(){let e=ne({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,i=>i.id,i=>n`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ce(this.modelList,i.id.toString(),M(i.type)?G:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:n`<calcite-flow>${k("charts-list",n`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${V(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return k("chart-edit",n`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??c.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?n`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===c.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=c.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?n`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?n`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?n`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===c.Series} @click=${()=>{this.selectedPanel=c.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?n`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===c.Slices} @click=${()=>{this.selectedPanel=c.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===c.Axes} @click=${()=>{this.selectedPanel=c.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?n`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===c.Guides} @click=${()=>{this.selectedPanel=c.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===c.Format} @click=${()=>{this.selectedPanel=c.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===c.General} @click=${()=>{this.selectedPanel=c.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),i=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=n`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=n`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=n`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=n`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=n`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=n`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=n`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??c.Data}></arcgis-charts-config-heat-chart>`;break}return t}};z("arcgis-charts-config-create-flow",F);return F},"intl",a,b,d,e,g,i,j,l,m,p,q,r,s,t,u)
@@ -0,0 +1,4 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{i as Fe}from"./IVLVCLDE.js";import{c as Y}from"./AK7X7SGI.js";import i from"./2N4MK6FQ.js";import f from"./KO7HQLGV.js";import e from"./QFEZPP3R.js";import d from"./LC6CY2HW.js";import c from"./7YWZG3ZS.js";import b from"./KLHZFPYK.js";import a from"./TJMTF45U.js";import{c as O,d as g,r as V}from"./ADGMA3ST.js";import{Ba as le,Ca as U,Ea as k,Fa as ne,p as $,q as R}from"./PAIRUVLU.js";import{a as ie}from"./KX7KGXKQ.js";import{e as v,l as re,m as j,s as Z}from"./SP2IPHWF.js";import{e as K}from"./QP5UAIC6.js";import{a as oe}from"./XJFVSX2E.js";import{a as h,l as S}from"./547RDEMV.js";export default $arcgis.t(([{B:D,J:se,T:T,a:J,ec:I,ob:ue,qb:fe,wb:me},{c:Q},{f:ce,g:E},{k:_,l:q,m:G,x:de},{b:ge},{a:ye,c:be,d:xe},{ka:X,la:pe,ma:ee}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:i="en-US"}=l,a=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},o=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);o=new Intl.DateTimeFormat(i,a).format(n),o.includes(":")||o.startsWith("0")&&(o=o.slice(1))}return o}function Pe(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:i=7}=l,a=t&&Object.keys(t).length>0?t:{weekday:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(i)&&i>0&&i<=7){let n=(e+i-1)%7,c=new Date(2e3,0,2+n);o=new Intl.DateTimeFormat(r,a).format(c)}return o}function Se(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,i=t&&Object.keys(t).length>0?t:{month:"long"},a=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let o=new Date(2e3,e-1);a=new Intl.DateTimeFormat(r,i).format(o)}return a}function Le(l){let{value:e,formatLocale:t,unit:r,config:i,utilsStrings:a}=l,o={label:"",value:e.toString()};switch(r){case S.DayOfWeek:o={label:a.heatChartCalendarDatePartsUnits.dayOfWeek,value:Pe({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in i?i.firstDayOfWeek:ne,locale:t})};break;case S.MonthOfYear:o={label:a.heatChartCalendarDatePartsUnits.monthOfYear,value:Se({monthNumber:e,locale:t})};break;case S.HourOfDay:o={label:a.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case S.DayOfMonth:o={label:a.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case S.DayOfYear:o={label:a.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.MinuteOfDay:o={label:a.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case S.WeekOfYear:o={label:a.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case S.QuarterOfYear:o={label:a.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return o}function Be(l,e){return!re(l,e)}function ot(l,e){return Be(l,e)||l!==e}function he(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function ke(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var ve=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:i}=l,a=e==null?"":String(e);if(e===null)a="null";else if(e===void 0)a="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let o=ke(r),n=i??a.split(o)[1]?.length??2;a=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(a))&&(a=`"${a.replace(/"/gu,'""')}"`),a};function it(l,e={}){let{columns:t,delimiter:r,includeHeader:i=!0,quoteAll:a=!1,locale:o,roundDecimals:n}=e,c=l.length===0,u="";if(!c){let y=t??Object.keys(l[0]),F=[],x=r??he(o??"en");if(o!==void 0&&x!==","&&(u+=`sep=${x}\r
3
+ `),i){let p=y.map(d=>ve({value:d,quoteAll:a,locale:o,roundDecimals:n}));F.push(p.join(x))}l.forEach(p=>{let d=y.map(s=>ve({value:p[s],quoteAll:a,locale:o,roundDecimals:n}));F.push(d.join(x))}),u+=F.join(`\r
4
+ `)}return u}function lt(l){let{rawData:e,config:t,layer:r,fieldList:i,formatters:a,formatLocale:o,utilsStrings:n}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=oe(t?.series);u===h.HistogramSeries?c=$e(t,e,a):u===h.HeatSeries?c=Ce({config:t,rows:e,layer:r,fieldList:i,formatLocale:o,utilsStrings:n}):u===h.BarSeries||u===h.LineSeries||u===h.ComboLineAndBarSeries?c=Ve({config:t,rows:e,layer:r,fieldList:i,formatters:a}):u===h.PieSeries?c=Ie({config:t,rows:e,layer:r,fieldList:i,formatters:a}):u===h.BoxPlotSeries&&(c=je({config:t,rows:e,layer:r,fieldList:i,formatters:a}))}return c}function A(l){let{value:e,originalValue:t,formatter:r}=l,i=e;return r!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(i=r(e,t)),i}function B(l){let{field:e,value:t,layer:r,fieldList:i,formatter:a}=l,o;if(t==null||typeof t=="boolean"||Array.isArray(t))o=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let n=r!==void 0&&(typeof t=="string"||typeof t=="number")?me({queryObject:r,fieldName:e,fieldValue:t}):void 0;o=Ae({field:e,value:n??t,fieldList:i})}else o=t;return A({value:o,originalValue:t,formatter:a})}function C(l){let{field:e,row:t,layer:r,fieldList:i,formatter:a}=l,o=Object.keys(t).find(c=>c.toLocaleLowerCase()===e.toLocaleLowerCase()),n=t[o??e];return B({field:e,value:n,layer:r,fieldList:i,formatter:a})}function te(l){let{config:e,seriesIndex:t,formatters:r}=l;return e.series?.[t]?.assignToSecondValueAxis===!0?r?.secondaryYAxisLabelFormatter:r?.yAxisLabelFormatter}function Oe(l){let{config:e,splitValueIndex:t,formatters:r}=l;return e?.series?.[t]?.assignToSecondValueAxis===!0?r?.secondaryYAxisLabelFormatter:r?.yAxisLabelFormatter}function Ce(l){let{config:e,rows:t,layer:r,fieldList:i,formatLocale:a,utilsStrings:o}=l,[n]=e.series,c=n.x,u=X(e),y=ee(e),F=E({config:e,xAxisField:c,numericFields:y,aggregationType:u,layer:r,fieldList:i});return t.map(x=>{let p=x[R.xField],d=x[R.yField],s=x[R.valueField],m=typeof s=="number"&&Number.isFinite(s)?s.toFixed(2):s,f={label:n.x,value:p},b={label:n.y,value:d};if(n.xTemporalBinning!==void 0){let{label:L,value:w}=Le({value:Number(p),config:e,formatLocale:a,unit:n.xTemporalBinning.unit,utilsStrings:o});!V(L)&&!V(w)&&(f={label:L,value:w})}if(n.yTemporalBinning!==void 0){let{label:L,value:w}=Le({value:Number(d),config:e,formatLocale:a,unit:n.yTemporalBinning.unit,utilsStrings:o});!V(L)&&!V(w)&&(b={label:L,value:w})}return{[f.label]:f.value,[b.label]:b.value,[F.description]:m}})}function $e(l,e,t){let r=ge(l),i=`${v(Y.Min)} of ${r}`,a=`${v(Y.Max)} of ${r}`,o=`${v(Y.Count)} of ${r}`;return e.map(n=>{let{minValue:c,maxValue:u,count:y}=n,F=j(c),x=j(u),p=j(y),d={};if(F&&(d[i]=A({value:c,originalValue:c,formatter:t?.xAxisLabelFormatter})),x&&(d[a]=A({value:u,originalValue:u,formatter:t?.xAxisLabelFormatter})),F&&x){let s=A({value:c,originalValue:c,formatter:t?.xAxisLabelFormatter}),m=A({value:u,originalValue:u,formatter:t?.xAxisLabelFormatter});d.Label=`${String(s??"")} - ${String(m??"")}`}return p&&(d[o]=A({value:y,originalValue:y,formatter:t?.yAxisLabelFormatter})),d})}function Me(l,e,t){let r=Object.keys(l),i=[];return t?i=t.map(a=>r.find(o=>o.toLowerCase().includes(a.toLowerCase()))||""):i=r.filter(a=>a.toLowerCase().includes(e.toLowerCase())),i.filter(a=>a.trim()!=="")}function Ve(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=ce(e),n=X(e),c=v(n),u=ee(e),y=T(e.series),F=Q(e),x=pe(e),{idField:p,isTraditionalTypeOID:d}=ue(se(r)),s=d&&u.length===1&&u[0]===p,m;switch(y){case g.BarAndLineNoAggregation:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L={[o]:b};return Object.assign(L,...u.map((w,P)=>({[w]:A({value:f[w],originalValue:f[w],formatter:te({config:e,seriesIndex:P,formatters:a})})}))),L});break;case g.BarAndLineFromFields:m=Z(u,t).map(([f,b])=>{let L=I(e.series)[0],w={};return b!==void 0&&f!==void 0&&(w.Field=A({value:b[o],originalValue:b[o],formatter:a?.xAxisLabelFormatter}),w.Value=A({value:b[L],originalValue:b[L],formatter:te({config:e,seriesIndex:0,formatters:a})})),w});break;case g.BarAndLineMonoField:case g.BarAndLineMultiFields:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L={[o]:b};return u.forEach((w,P)=>{let M=E({config:e,xAxisField:o,numericFields:u,aggregationType:n,layer:r,numericFieldIndex:P,fieldList:i}),H=I(e.series)[P],ae=H,z=H;H.toLowerCase()===M.name.toLowerCase()&&(ae=M.description,z=M.name),L[ae]=A({value:f[z],originalValue:f[z],formatter:te({config:e,seriesIndex:P,formatters:a})})}),L});break;case g.BarAndLineSplitBy:m=t.flatMap(f=>{let b=I(e.series),L=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});return F.map((w,P)=>{let M=B({field:x,value:w,layer:r,fieldList:i});return{[o]:L,[x]:M,[s?c:`${c} of ${u[0]}`]:A({value:f[b[P]],originalValue:f[b[P]],formatter:Oe({config:e,splitValueIndex:P,formatters:a})})}})});break;case g.BarAndLineSplitByNoAggregation:m=t.map(f=>{let b=C({field:o,row:f,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),L=Me(f,u[0],F),w=B({field:x,value:f[x],layer:r,fieldList:i});return{[o]:b,[x]:w,[u[0]]:A({value:f[L[0]],originalValue:f[L[0]],formatter:a?.yAxisLabelFormatter})}});break;default:m=t}return m}function Te(l){if(l.length===0)return[];let e=l.reduce((t,r)=>{for(let[i,a]of Object.entries(r))typeof a=="number"&&Number.isFinite(a)&&(t[i]=(t[i]??0)+a);return t},{});return l.map(t=>{let r={...t};for(let[i,a]of Object.entries(t))if(typeof a=="number"&&e[i]>0){let o=a/e[i];r[`${i}${k}`]=o.toPrecision(2)}return r})}function Ie(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=ye(e),n=T(e.series),c=Te(t),u=be(e),y=n!==g.PieFromFields?K.Category:K.Fields,F=xe(e,y),x=E({config:e,xAxisField:o,numericFields:u,aggregationType:F,mode:y,layer:r,fieldList:i}),p=I(e.series)[0];return n===g.PieFromCategory||n===g.PieNoAggregation?c=c.map(d=>{let s=C({field:o,row:d,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter}),m={[o]:s},f=p,b=p;return n===g.PieFromCategory&&p.toLowerCase()===x.name.toLowerCase()&&(f=x.description,b=x.name),m[f]=A({value:d[b],originalValue:d[b],formatter:a?.yAxisLabelFormatter}),m[v(k.trim())]=A({value:d[`${b}${k}`],originalValue:d[`${b}${k}`],formatter:a?.yAxisLabelFormatter}),m}):n===g.PieFromFields&&(c=Z(u,c).map(([d,s])=>{let m={};return s!==void 0&&d!==void 0&&(m.Field=A({value:s[o],originalValue:s[o],formatter:a?.xAxisLabelFormatter}),m.Value=A({value:s[p],originalValue:s[p],formatter:a?.yAxisLabelFormatter}),m[v(k.trim())]=A({value:s[`${p}${k}`],originalValue:s[`${p}${k}`],formatter:a?.yAxisLabelFormatter})),m})),c}function W(l){let{rawData:e,keyBase:t="",outRow:r}=l;for(let[i,a]of Object.entries(D)){let o=e[t+a];o!==void 0&&(r[i]=o);let n=e[t+a+le];n!==void 0&&(r[`${i} Outlier`]=n);let c=e[t+a+U];c!==void 0&&(r[`${i} Z-Score`]=c)}}function N(l){let{rawData:e,outRow:t,config:r,boxPlotSubType:i,layer:a,fieldList:o}=l,n=_(r),c=G(r),u=q(r),y=D.Outlier,F=$;switch(i){case g.BoxPlotMonoFieldAndCategory:{let d=Ae({field:n,value:e[n],fieldList:o});t[n]=d,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMultiFieldsAndCategory:{t[v(n)]=e[n],y=`${c.find(d=>Object.keys(e).some(s=>s.toLowerCase().includes(d.toLowerCase())))??""}_${y}`,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:{let d=String(e[u]),s=B({field:u,value:d,layer:a,fieldList:o});y=`${d}_${y}`,t.Field=e[F],t[v(u)]=s,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{let d=String(e[u]),s=B({field:u,value:d,layer:a,fieldList:o});y=`${d}_${y}`,t[v(n)]=e[n],t[v(u)]=s,t[v(D.Outlier)]=e[y];break}case g.BoxPlotMonoField:case g.BoxPlotMultiFields:default:{t.Field=e[F],t[v(D.Outlier)]=e[y];break}}let x=`${y}${U}`,p=e[x];p!==void 0&&(t[`${v(D.Outlier)} Z-Score`]=p)}function Ne(l){let{rawData:e,outRow:t,config:r,splitByValue:i,layer:a,fieldList:o}=l,n=T(r.series),c=e[`${i}_${D.Average}`],u=q(r),y=_(r),F="";switch(n){case g.BoxPlotMonoFieldAndSplitBy:{F=`${i}_${u}`,t.Field=e[$],t[v(u)]=B({field:u,value:e[F],layer:a,fieldList:o});break}case g.BoxPlotMultiFieldsAndSplitBy:{F=`${i}_${D.Average}`,t.Field=e[$],t[v(u)]=B({field:u,value:e[F],layer:a,fieldList:o});break}case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=`${i}_${D.Average}`,t[y]=e[y],t[v(u)]=B({field:u,value:i,layer:a,fieldList:o});break}}t[v(D.Average)]=c;let x=`${String(c)}${U}`,p=e[x];p!==void 0&&(t[`${v(D.Average)} Z-Score`]=p)}function je(l){let{config:e,rows:t,layer:r,fieldList:i,formatters:a}=l,o=T(e.series),n=o,c=de(e),u=Array.isArray(t)&&t.length>0&&t.every(s=>s[O.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(o===g.BoxPlotMonoFieldAndSplitBy?n=g.BoxPlotMonoField:o===g.BoxPlotMultiFieldsAndSplitBy?n=g.BoxPlotMultiFields:o===g.BoxPlotMonoFieldAndCategoryAndSplitBy&&(n=g.BoxPlotMonoFieldAndCategory));let y=_(e),F=G(e),x=Q(e),p=q(e),d;switch(n){case g.BoxPlotMonoField:case g.BoxPlotMonoFieldAndCategory:{d=t.map(s=>{let m={};if(s[O.boxPlot.boxPlotOutlierId])N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i});else{if(n===g.BoxPlotMonoFieldAndCategory){let f=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});m[y]=f}else n===g.BoxPlotMonoField&&(m.Field=s[$]);W({rawData:s,outRow:m})}return m});break}case g.BoxPlotMultiFields:{d=t.flatMap(s=>{let m={};return s[O.boxPlot.boxPlotOutlierId]?N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i}):(m.Field=s[$],W({rawData:s,outRow:m})),[m]});break}case g.BoxPlotMultiFieldsAndCategory:{d=t.flatMap(s=>F.map(m=>{let f={},b="";if(f.Field=m,s[O.boxPlot.boxPlotOutlierId])N({rawData:s,outRow:f,config:e,boxPlotSubType:n,layer:r,fieldList:i});else{if(n===g.BoxPlotMultiFieldsAndCategory){let L=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});f[y]=L,b=`${m}_`}W({rawData:s,outRow:f,keyBase:b})}return f}));break}case g.BoxPlotMonoFieldAndSplitBy:case g.BoxPlotMultiFieldsAndSplitBy:case g.BoxPlotMonoFieldAndCategoryAndSplitBy:{d=t.flatMap(s=>{if(s[O.boxPlot.boxPlotOutlierId]){let m={};return N({rawData:s,outRow:m,config:e,boxPlotSubType:n,layer:r,fieldList:i}),[m]}else return s[O.boxPlot.boxPlotMeanLineMarkerId]?x?.map(m=>{let f={};return Ne({rawData:s,outRow:f,splitByValue:m,config:e,layer:r,fieldList:i}),f}):x.map(m=>{let f={},b=B({field:p,value:m,layer:r,fieldList:i});if(n===g.BoxPlotMonoFieldAndCategoryAndSplitBy){let L=C({field:y,row:s,layer:r,fieldList:i,formatter:a?.xAxisLabelFormatter});f[y]=L}return s[O.boxPlot.boxPlotOutlierId]?N({rawData:s,outRow:f,config:e,boxPlotSubType:n}):(f[p]=b,W({rawData:s,outRow:f,keyBase:`${m}_`})),f})});break}default:d=t}return d}var we=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},Re=l=>J.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd"),Ue=l=>J.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),Ae=l=>{let{field:e,value:t,fieldList:r}=l,i=t,a=r?.find(o=>o.name===e);if(a){let o=a.type===ie.DateOnly;fe(a)&&!o?i=we(t)?Ue(new Date(t)):t:o&&typeof t!="string"&&(i=we(t)?Re(new Date(t)):t)}return i};function nt(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:r,syncViewTimeExtent:i}=l,a=e;return t&&(r===Fe.Refresh||i)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(a={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),a}return{a:De,b:Pe,c:Se,d:Le,e:Be,f:ot,g:it,h:lt,i:nt}},a,b,c,d,e,f,i)
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{F as a,p as e}from"./CHQDKVVQ.js";import{a as i}from"./4LPXOEML.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";var r=e(a,{"arcgis-chart":[()=>import("./STU55UIS.js"),"_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,commonStrings:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./QY53LXP2.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./UT4TYXFO.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./JS2KOBA2.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./OGYY2Y22.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./VZTLODMQ.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./RG3DO2OE.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./G72TNKCS.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./YEZL5KRS.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./C2FOUUEM.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./K4WI2SGM.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./CVU3UPPF.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./JTTJ455Y.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./QJC3FDWG.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./O5A25X5K.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./7VN3A7S2.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./A5GIBV5W.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./R75MHIRF.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./FQT7V7QG.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo;setFocus"],"arcgis-charts-config-field-select":[()=>import("./BBURKBKE.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./7OF2IANH.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./RPNZL6AC.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./YYK7SPXC.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./VFREVEVA.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./JWO5WVTZ.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./3EIVHDDK.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./EZD3FBJU.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./WASEMNYV.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./XCUXUZXY.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./JNG6V7XC.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./RDA5NV6M.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./6CFIKYKR.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./ADPDJISV.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./3NUNWPAR.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./OAAJ6CIN.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./VBHQFV2H.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./EP34TF4L.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./DPNTYHTH.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./6AF2OTL6.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./MBVTB42G.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./UZEMSOA2.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./EGISZTGB.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./SCAZDS2G.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./32FR66QO.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./B4KAJRUJ.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./TDHHWIIC.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./HZR4NSZV.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./NTSTL3FK.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo"],"arcgis-charts-config-scatter-plot-data":[()=>import("./24RLLXS6.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./D73VV2AZ.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./CZ5XRXCE.js"),"headerTitle,isRasterBarChartSupported,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType;reposition"],"arcgis-charts-config-view-charts":[()=>import("./BBUPTHPL.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./DJACBOFO.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});r({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];export{i as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
2
+ import{F as a,p as e}from"./CHQDKVVQ.js";import{a as i}from"./4LPXOEML.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import"./XJFVSX2E.js";import"./547RDEMV.js";import"./U67P6YAZ.js";var r=e(a,{"arcgis-chart":[()=>import("./J6WQX4UD.js"),"_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,commonStrings:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./QY53LXP2.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./UT4TYXFO.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./JS2KOBA2.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./OGYY2Y22.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./VZTLODMQ.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./RG3DO2OE.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./G72TNKCS.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./YEZL5KRS.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./C2FOUUEM.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./K4WI2SGM.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./CVU3UPPF.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./JTTJ455Y.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./QJC3FDWG.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./O5A25X5K.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./7VN3A7S2.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./A5GIBV5W.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./R75MHIRF.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./OHF3AEWY.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo;setFocus"],"arcgis-charts-config-field-select":[()=>import("./BBURKBKE.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./7OF2IANH.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./RPNZL6AC.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./YYK7SPXC.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./VFREVEVA.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./JWO5WVTZ.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./3EIVHDDK.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./EZD3FBJU.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./WASEMNYV.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./XCUXUZXY.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./JNG6V7XC.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./RDA5NV6M.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./6CFIKYKR.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./ADPDJISV.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./3NUNWPAR.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./OAAJ6CIN.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./VBHQFV2H.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./EP34TF4L.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./DPNTYHTH.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./6AF2OTL6.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./MBVTB42G.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./UZEMSOA2.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./EGISZTGB.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./SCAZDS2G.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./32FR66QO.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./B4KAJRUJ.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./TDHHWIIC.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./HZR4NSZV.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./NTSTL3FK.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo"],"arcgis-charts-config-scatter-plot-data":[()=>import("./24RLLXS6.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./D73VV2AZ.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./CZ5XRXCE.js"),"headerTitle,isRasterBarChartSupported,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType;reposition"],"arcgis-charts-config-view-charts":[()=>import("./BBUPTHPL.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./DJACBOFO.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});r({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];export{i as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url