UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

1 lines • 20.6 kB
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3112],{46140:(e,t,i)=>{i.d(t,{R:()=>r});var s=i(49186);let r=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new s.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[r,o]=t.split("."),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r))throw new s.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!n.test(o))throw new s.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(o,10);return new e(l,a,i)}}},13112:(e,t,i)=>{i.d(t,{Hg:()=>ge,XJ:()=>me});var s=i(53966),r=i(86162),o=i(90237),n=i(4718),l=i(10107),a=(i(44208),i(40608)),u=i(43937),p=i(30524),h=i(92438),c=i(63988),y=i(68197),d=i(78888),f=i(49186),g=i(66344),m=i(74887),b=i(46140),v=i(65864),w=i(95466),_=i(71386),x=i(40863),M=i(93397);const S="esri.renderers.support.DictionaryLoader",A={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class j{constructor(e,t,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new g.q(100),this._dictionaryVersion=null,this._fieldIndex=null,this._dictionaryPromise=null,this.url=e,this.config=t,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,m.zf)(e))return this._dictionaryPromise=null,null}const s=this._dictionaryVersion?.greaterEqual(4,0),r={};if(this.fieldMap)for(const t of this._symbolFields){const i=(0,M.MO)(this.fieldMap[t],this._fieldIndex);if(i){const o=e.attributes[i];r[t]=s?o:null!=o?""+e.attributes[i]:""}else r[t]=""}let o=null;try{o=i?.(r,t)}catch(e){return null}if(!o||"string"!=typeof o||"invalid"===o)return null;const n=o.split(";"),l=[],a=[];for(let t=0;t<n.length;t++){const i=n[t];if(i)if(i.includes("po:")){const t=i.slice(3).split("|");if(3===t.length){const i=t[0],s=t[1];let r=t[2];const o="countrylabel";if(i===o&&"TextString"===s){if(null!=this.fieldMap){let t=this.fieldMap[o];null==t&&(t=o,this.fieldMap[t]=t),e.attributes[t]=r}continue}if("DashTemplate"===s)r=r.split(" ").map((e=>Number(e)));else if("Color"===s){const e=new y.A(r).toRgba();r=[e[0],e[1],e[2],255*e[3]]}else r=Number(r);a.push({primitiveName:i,propertyName:s,value:r,defaultValue:null})}}else if(i.includes("|")){for(const e of i.split("|"))if(this._itemNames.has(e)){l.push(e);break}}else if(this._itemNames.has(i))l.push(i);else if(0===t){l.length=0;let t="Invalid_P";null!=e.geometry&&((0,v.Bi)(e.geometry)?t="Invalid_A":(0,v.Rg)(e.geometry)&&(t="Invalid_L")),l.push(t);break}}const u=null==e.geometry||!e.geometry.hasZ&&"point"===e.geometry.type;return this._cimPartsToCIMSymbol(e,l,a,u,t)}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void s.A.getLogger(S).error("no valid URL!");const t=(0,d.A)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:null!=e?e.signal:null}),[{data:i}]=await Promise.all([t,(0,_.lw)()]);if(!i)throw this._dictionaryPromise=null,new f.A("esri.renderers.DictionaryRenderer","Bad dictionary data!");const{authoringInfo:r,dictionary_version:o,expression:n,itemsNames:l}=i,a=n;let u=!1;o&&(this._dictionaryVersion=b.R.parse(o),u=this._dictionaryVersion.greaterEqual(4,0)),this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(l),this._symbolFields=r.symbol;const p={};if(this.config){const e=this.config;for(const t in e)p[t]=e[t]}if(r.configuration)for(const e of r.configuration)p.hasOwnProperty(e.name)||(p[e.name]=e.value);const h=[];if(e?.fields&&this.fieldMap)for(const t in this.fieldMap){const i=this.fieldMap[t],s=e.fields.filter((e=>e.name.toLowerCase()===i?.toLowerCase()));s.length>0&&h.push({...s[0],type:u?s[0].type:"esriFieldTypeString"})}h.length>0&&(this._fieldIndex=new w.A(h));const c=(0,_.xR)(a,null!=e?e.spatialReference:null,h,p).then((e=>{const t={scale:0};return(i,s)=>{if(null==e)return null;const r=e.repurposeFeature({geometry:null,attributes:i});return t.scale=null!=s?s.scale??void 0:void 0,e.evaluate({$feature:r,$view:t},e.services)}})).catch((e=>(s.A.getLogger(S).error("Creating dictionary expression failed:",e),null)));return this._dictionaryPromise=c,c}async _cimPartsToCIMSymbol(e,t,s,r,o){const l=new Array(t.length);for(let e=0;e<t.length;e++)l[e]=this._getSymbolPart(t[e],o);let a=await Promise.all(l);const u=this.fieldMap;if(u&&a.length>0){const{OverrideHelper:t}=await i.e(3937).then(i.bind(i,73937));a=(0,n.o8)(a);for(const i of a)t.applyDictionaryTextOverrides(i,e,u,this._fieldIndex,(0,M.bs)(i))}return new x.A({data:Z(a,s,r)})}async _getSymbolPart(e,t){const i=this._symbolCache.get(e);if(i)return i;if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const s=this._refSymbolUrlTemplate.replaceAll(/\{itemName\}/gi,e),r=(0,d.A)(s,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,r),r.finally((()=>this._ongoingRequests.delete(e)));try{const t=await r;return this._symbolCache.put(e,t.data),t.data}catch(e){throw e}}}function Z(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.effects=null,s.symbolLayers=[];for(const t of e){const e=t;if(null!=e.effects)for(const t of e.symbolLayers)null==t.effects?t.effects=e.effects:t.effects.unshift(...e.effects);s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=A),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}var I;let E=I=class extends((0,c.h)(h.A)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){return new j(this.url,this.config,this.fieldMap)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new I({config:(0,n.o8)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,n.o8)(this.fieldMap),url:(0,n.o8)(this.url),visualVariables:(0,n.o8)(this.visualVariables)})}async getSymbolAsync(e,t){return this._loader.getSymbolAsync(e,t)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,p.Dx)(e,t,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}get symbols(){return[]}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};(0,o._)([(0,l.MZ)({type:j})],E.prototype,"_loader",null),(0,o._)([(0,l.MZ)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],E.prototype,"config",void 0),(0,o._)([(0,l.MZ)({type:Object,json:{write:!0}})],E.prototype,"fieldMap",void 0),(0,o._)([(0,l.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],E.prototype,"scaleExpression",void 0),(0,o._)([(0,u.K)("scaleExpression")],E.prototype,"writeData",null),(0,o._)([(0,l.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],E.prototype,"scaleExpressionTitle",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"url",void 0),(0,o._)([(0,u.K)("visualVariables")],E.prototype,"writeVisualVariables",null),E=I=(0,o._)([(0,a.$)("esri.renderers.DictionaryRenderer")],E);const R=E;var D,C=i(93223),V=i(25482),T=i(79901),P=(i(87811),i(56507));let q=D=class extends V.A{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(s.A.getLogger(this).error(".field: field must be a string value"),null):(0,P.GX)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new D({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o._)([(0,l.MZ)({type:y.A,json:{type:[Number],write:!0}})],q.prototype,"color",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],q.prototype,"field",void 0),(0,o._)([(0,T.w)("field")],q.prototype,"castField",null),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],q.prototype,"valueExpression",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],q.prototype,"valueExpressionTitle",void 0),q=D=(0,o._)([(0,a.$)("esri.renderers.support.AttributeColorInfo")],q);const N=q;var $;let O=$=class extends V.A{constructor(){super(...arguments),this.unit=null}clone(){return new $({unit:this.unit})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],O.prototype,"unit",void 0),O=$=(0,o._)([(0,a.$)("esri.renderers.support.DotDensityLegendOptions")],O);const L=O;var k,F=i(94985),H=i(31593);let z=k=class extends((0,c.h)(h.A)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new y.A([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new H.A,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new F.A({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new k({attributes:(0,n.o8)(this.attributes),backgroundColor:(0,n.o8)(this.backgroundColor),dotBlendingEnabled:(0,n.o8)(this.dotBlendingEnabled),dotShape:(0,n.o8)(this.dotShape),dotSize:(0,n.o8)(this.dotSize),dotValue:(0,n.o8)(this.dotValue),legendOptions:(0,n.o8)(this.legendOptions),outline:(0,n.o8)(this.outline),referenceScale:(0,n.o8)(this.referenceScale),seed:(0,n.o8)(this.seed),visualVariables:(0,n.o8)(this.visualVariables),authoringInfo:(0,n.o8)(this.authoringInfo)})}getControllerHash(){const e=this.attributes?.map((e=>e.field||e.valueExpression||""));return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes??[])i.valueExpression&&await(0,p.Dx)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,o._)([(0,l.MZ)({type:[N],json:{write:!0}})],z.prototype,"attributes",void 0),(0,o._)([(0,l.MZ)({type:y.A,json:{write:!0}})],z.prototype,"backgroundColor",void 0),(0,o._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],z.prototype,"dotBlendingEnabled",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!1}})],z.prototype,"dotShape",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],z.prototype,"dotSize",void 0),(0,o._)([(0,l.MZ)({type:L,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,o._)([(0,l.MZ)({type:H.A,json:{default:null,write:!0}})],z.prototype,"outline",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],z.prototype,"dotValue",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],z.prototype,"referenceScale",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],z.prototype,"seed",void 0),(0,o._)([(0,C.e)({dotDensity:"dot-density"})],z.prototype,"type",void 0),z=k=(0,o._)([(0,a.$)("esri.renderers.DotDensityRenderer")],z);const B=z;var J,U=i(90629),K=i(30943);let X=J=class extends V.A{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new J({color:this.color&&this.color.clone(),ratio:this.ratio})}};(0,o._)([(0,l.MZ)({type:y.A,json:{type:[P.jz],default:null,write:{isRequired:!0}}})],X.prototype,"color",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"ratio",void 0),X=J=(0,o._)([(0,a.$)("esri.renderers.support.HeatmapColorStop")],X);const G=X;var Q=i(69540);let W=class extends(Q.A.ClonableMixin(V.A)){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],W.prototype,"minLabel",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],W.prototype,"maxLabel",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],W.prototype,"title",void 0),W=(0,o._)([(0,a.$)("esri.renderers.support.HeatmapLegendOptions")],W);var Y,ee=i(61760),te=i(53930);function ie(e){if(null!=e){const{maxDensity:t,minDensity:i,radius:s}=e;if(null!=t||null!=i||null!=s){const{blurRadius:t,maxPixelIntensity:i,minPixelIntensity:s,...r}=e;return r}}return e}let se=Y=class extends h.A{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new G({ratio:0,color:new y.A("rgba(255, 140, 0, 0)")}),new G({ratio:.75,color:new y.A("rgba(255, 140, 0, 1)")}),new G({ratio:.9,color:new y.A("rgba(255, 0, 0, 1)")})],this.field=null,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.radius=18,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}normalizeCtorArgs(e){return ie(e)}get blurRadius(){return(0,ee.PU)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,i=this.minPixelIntensity;this._set("radius",(0,ee.zp)(e)),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",i*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity)}get _pixelIntensityToDensity(){return 24/(ee.ex**2*this.blurRadius**4)}read(e,t){e=ie(e),super.read(e,t)}getSymbol(){return new te.A}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&(0,p.rq)(e,t,i),s&&"string"==typeof s&&await(0,p.Dx)(e,t,s)}getAttributeHash(){return""}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new Y({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,n.o8)(this.colorStops),field:this.field,legendOptions:(0,n.o8)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o._)([(0,l.MZ)({type:K.A,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],se.prototype,"authoringInfo",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],se.prototype,"blurRadius",null),(0,o._)([(0,l.MZ)({type:[G],json:{write:{isRequired:!0}}})],se.prototype,"colorStops",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],se.prototype,"field",void 0),(0,o._)([(0,l.MZ)({type:W,json:{write:!0}})],se.prototype,"legendOptions",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],se.prototype,"maxDensity",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],se.prototype,"maxPixelIntensity",null),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],se.prototype,"minDensity",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],se.prototype,"minPixelIntensity",null),(0,o._)([(0,l.MZ)({type:Number,cast:U.cr,json:{write:!0}})],se.prototype,"radius",void 0),(0,o._)([(0,l.MZ)({type:Number,range:{min:0},json:{default:0,write:!0}})],se.prototype,"referenceScale",void 0),(0,o._)([(0,C.e)({heatmap:"heatmap"})],se.prototype,"type",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],se.prototype,"valueExpression",void 0),(0,o._)([(0,l.MZ)({type:String})],se.prototype,"valueExpressionTitle",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],se.prototype,"_pixelIntensityToDensity",null),se=Y=(0,o._)([(0,a.$)("esri.renderers.HeatmapRenderer")],se);const re=se;var oe=i(4576),ne=i(49849);let le=class extends(Q.A.ClonableMixin(V.A)){constructor(){super(...arguments),this.color=new y.A([0,0,0,0]),this.label=null,this.threshold=0}};(0,o._)([(0,l.MZ)({type:y.A,json:{write:!0}})],le.prototype,"color",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],le.prototype,"label",void 0),(0,o._)([(0,l.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],le.prototype,"threshold",void 0),le=(0,o._)([(0,a.$)("esri.renderers.support.OthersCategory")],le);var ae=i(20061),ue=i(62724),pe=i(48940);const he={base:i(2795).A,key:"type",typeMap:{size:pe.A,opacity:ue.A}};let ce=class extends((0,c.h)(Q.A.ClonableMixin(h.A))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new y.A([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new le,this.legendOptions=null,this.outline=null,this.size=12,this.type="pie-chart",this.visualVariables=null}getSymbol(){return new te.A({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(oe.Ru)}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return this.symbols.reduce(((e,t)=>e+JSON.stringify(t)),"")}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,p.Dx)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,o._)([(0,l.MZ)({type:[N],json:{write:!0}})],ce.prototype,"attributes",void 0),(0,o._)([(0,l.MZ)(ne.As)],ce.prototype,"backgroundFillSymbol",void 0),(0,o._)([(0,l.MZ)({type:y.A,json:{write:!0}})],ce.prototype,"defaultColor",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],ce.prototype,"defaultLabel",void 0),(0,o._)([(0,l.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],ce.prototype,"holePercentage",void 0),(0,o._)([(0,l.MZ)({type:le,json:{write:!0}})],ce.prototype,"othersCategory",void 0),(0,o._)([(0,l.MZ)({type:ae.A,json:{write:!0}})],ce.prototype,"legendOptions",void 0),(0,o._)([(0,l.MZ)({type:H.A,json:{default:null,write:!0}})],ce.prototype,"outline",void 0),(0,o._)([(0,l.MZ)({type:Number,cast:U.cr,json:{write:!0}})],ce.prototype,"size",void 0),(0,o._)([(0,C.e)({pieChart:"pie-chart"})],ce.prototype,"type",void 0),(0,o._)([(0,l.MZ)({types:[he]})],ce.prototype,"visualVariables",void 0),ce=(0,o._)([(0,a.$)("esri.renderers.PieChartRenderer")],ce);const ye=ce;var de=i(96576),fe=i(93618);const ge={key:"type",base:h.A,typeMap:{heatmap:re,simple:de.A,"unique-value":fe.A,"class-breaks":r.A,"dot-density":B,dictionary:R,"pie-chart":ye},errorContext:"renderer"},me={key:"type",base:h.A,typeMap:{simple:de.A,"unique-value":fe.A,"class-breaks":r.A,heatmap:re},errorContext:"renderer",validate:function(e){switch(e.type){case"simple":return function(e){if(e.symbol)return e;s.A.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene.")}(e);case"unique-value":return function(e){const t=e.uniqueValueInfos,i=t?.filter((({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${i}] ${t}) without a symbol from web scene.`),!!e)));return i?.length!==t?.length&&(e.uniqueValueInfos=i),e}(e);case"class-breaks":return function(e){const t=e.classBreakInfos,i=t?.filter((({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${i}] ${t}) without a symbol from web scene.`),!!e)));return i?.length!==t?.length&&(e.classBreakInfos=i),e}(e);case"heatmap":return e}}}}}]);