/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./core/Warning","./renderers/ClassBreaksRenderer","./renderers/FlowRenderer","./renderers/RasterColormapRenderer","./renderers/RasterShadedReliefRenderer","./renderers/RasterStretchRenderer","./renderers/UniqueValueRenderer","./renderers/VectorFieldRenderer"],(function(e,r,s,t,n,a,d,l,o){"use strict";const i={key:"type",base:null,typeMap:{"unique-value":l,"class-breaks":s,"raster-colormap":n,"raster-stretch":d,"vector-field":o,"raster-shaded-relief":a,flow:t}},u={...i,typeMap:{...i.typeMap}};delete u.typeMap["vector-field"],delete u.typeMap.flow;const c={uniqueValue:l,classBreaks:s,rasterStretch:d,rasterColormap:n,vectorField:o,rasterShadedRelief:a,flowRenderer:t};function p(e){return e&&c[e.type]||null}function R(e,s){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const r=e.authoringInfo||{classificationMethod:""};r.classificationMethod=e.classificationMethod,e.authoringInfo=r}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const t=p(e);if(t){const r=new t;return r.read(e,s),r}return s&&s.messages&&e&&s.messages.push(new r("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:s})),null}function f(e,r){return R(e,r)}e.ClassBreaksRenderer=s,e.FlowRenderer=t,e.RasterColormapRenderer=n,e.RasterShadedReliefRenderer=a,e.RasterStretchRenderer=d,e.UniqueValueRenderer=l,e.VectorFieldRenderer=o,e.fromJSON=f,e.rasterRendererTypes=i,e.read=R,e.websceneRasterRendererTypes=u,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
