/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import c from"./L4PX5RPL.js";import b from"./S6PFI7AC.js";import a from"./AD6GOUND.js";import{e as x}from"./NKG4FLLR.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{T:c,V:b,aa:g,w:s},{b:v,c:n},y])=>{var _=Object.defineProperty,L=Object.getOwnPropertyDescriptor,V=(t,e,i,p)=>{for(var o=L(e,i),l=t.length-1,r;l>=0;l--)(r=t[l])&&(o=r(e,i,o)||o);return o&&_(e,i,o),o},D=t=>t.colorMatch??!0,M=(t,e)=>{e.colorMatch=t},h=class extends v{get colorMatch(){return D(this._config)}set colorMatch(e){M(e,this._config)}};V([n],h.prototype,"colorMatch");var O=Object.defineProperty,P=Object.getOwnPropertyDescriptor,R=(t,e,i,p)=>{for(var o=P(e,i),l=t.length-1,r;l>=0;l--)(r=t[l])&&(o=r(e,i,o)||o);return o&&O(e,i,o),o},j=t=>t.series[0]?.dataLabels?.visible??!1,C=(t,e)=>{e.series.forEach(i=>{i.dataLabels!==void 0?i.dataLabels.visible=t:i.dataLabels=b({text:"",visible:t,font:c(s.DataLabels),type:s.DataLabels})})},m=class extends v{get dataLabelsVisibility(){return j(this._config)}set dataLabelsVisibility(e){C(e,this._config)}};R([n],m.prototype,"dataLabelsVisibility");var S=t=>{let e=!1;return t.legend!==void 0&&(e=t.legend.visible??!0),e},k=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.visible=t},H=t=>t.legend?.title?.content,E=(t,e)=>{e.legend===void 0&&(e.legend=g()),(e.legend.title===void 0||t===void 0)&&(e.legend.title=b({text:"",visible:!0,font:c(s.LegendTitle),type:s.LegendTitle})),t!==void 0&&(e.legend.title.content=t)},w=t=>t.legend?.body,I=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.body=t??b({text:"",visible:!0,font:c(s.LegendText),type:s.LegendText}).content},T=t=>t.legend?.title?.content.text??"",N=(t,e)=>{if(e.legend?.title!==void 0)e.legend.title.content.text=t;else if(e.legend===void 0&&t!==void 0){let i=g();i.title!==void 0&&(i.title.content.text=t,i.title.visible=!0,e.legend=i)}},W=t=>t.legend?.title?.visible??!1,X=(t,e)=>{if(e.legend?.title!==void 0)e.legend.title.visible=t;else if(e.legend!==void 0&&e.legend?.title===void 0&&t)e.legend.title=b({text:T(e),visible:t,font:c(s.LegendTitle),type:s.LegendTitle});else if(e.legend===void 0){let i=g();i.title=b({text:T(e),visible:t,font:c(s.LegendTitle),type:s.LegendTitle}),e.legend=i}},q=t=>t.legend?.position??x.Right,z=(t,e)=>{if(e.legend!==void 0)e.legend.position=t;else if(e.legend===void 0){let i=g();i.position=t,e.legend=i}},A=t=>t.legend?.roundMarkers??!1,B=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.roundMarkers=t},F=t=>t.legend?.maxHeight??void 0,G=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.maxHeight=t},J=Object.defineProperty,K=Object.getOwnPropertyDescriptor,a=(t,e,i,p)=>{for(var o=K(e,i),l=t.length-1,r;l>=0;l--)(r=t[l])&&(o=r(e,i,o)||o);return o&&J(e,i,o),o},d=class extends y{get legendVisibility(){return S(this._config)}set legendVisibility(e){k(e,this._config)}get legendTitleText(){return T(this._config)}set legendTitleText(e){N(e,this._config)}get legendTitleVisibility(){return W(this._config)}set legendTitleVisibility(e){X(e,this._config)}get legendPosition(){return q(this._config)}set legendPosition(e){z(e,this._config)}get legendTitleSymbol(){return H(this._config)}set legendTitleSymbol(e){E(e,this._config)}get legendTextSymbol(){return w(this._config)}set legendTextSymbol(e){I(e,this._config)}get legendMaxHeight(){return F(this._config)}set legendMaxHeight(e){e!==void 0&&G(e,this._config)}get legendRoundMarker(){return A(this._config)}set legendRoundMarker(e){B(e,this._config)}};a([n],d.prototype,"legendVisibility");a([n],d.prototype,"legendTitleText");a([n],d.prototype,"legendTitleVisibility");a([n],d.prototype,"legendPosition");a([n],d.prototype,"legendTitleSymbol");a([n],d.prototype,"legendTextSymbol");a([n],d.prototype,"legendMaxHeight");a([n],d.prototype,"legendRoundMarker");var Q=(t,e)=>t.series?.[e??0]?.dataTooltipVisible??!0,U=(t,e,i)=>{i&&t.series?.[i]?t.series[i].dataTooltipVisible=e:t.series&&t.series.forEach(p=>{p.dataTooltipVisible=e})},Y=(t,e)=>t.series?.[e??0]?.dataTooltipReverseColor??!1,Z=(t,e,i)=>{i&&t.series?.[i]?t.series[i].dataTooltipReverseColor=e:t.series&&t.series.forEach(p=>{p.dataTooltipReverseColor=e})},$=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,u=(t,e,i,p)=>{for(var o=ee(e,i),l=t.length-1,r;l>=0;l--)(r=t[l])&&(o=r(e,i,o)||o);return o&&$(e,i,o),o},f=class extends y{getDataTooltipVisibility(e){return Q(this._config,e)}setDataTooltipVisibility(e,i){U(this._config,e,i)}getDataTooltipReverseColor(e){return Y(this._config,e)}setDataTooltipReverseColor(e,i){Z(this._config,e,i)}};u([n],f.prototype,"setDataTooltipVisibility");u([n],f.prototype,"setDataTooltipReverseColor");return{a:h,b:m,c:d,d:f}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","core/sql","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c)