/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/_rollupPluginBabelHelpers","../../views/2d/engine/webgl/enums","../../views/2d/engine/webgl/materialKey/MaterialKey"],(function(e,t,l,n){"use strict";const a={marker:l.WGLGeometryType.MARKER,fill:l.WGLGeometryType.FILL,line:l.WGLGeometryType.LINE,text:l.WGLGeometryType.TEXT};let i=function(){function e(e,t,i,s){const o={minScale:null==t?void 0:t.minScale,maxScale:null==t?void 0:t.maxScale},c=r(o);this.layers=e,this.data=t,this.hash=this._createHash()+c,this.rendererKey=i;const y={isOutline:!1,placement:null,symbologyType:l.WGLSymbologyType.DEFAULT,vvFlags:i};for(const l of e){const e=a[l.type];y.isOutline="line"===l.type&&l.isOutline,l.materialKey=n.createMaterialKey(e,y),l.maxVVSize=s,l.scaleInfo=o,l.templateHash+=c}}return e.prototype._createHash=function(){let e="";for(const t of this.layers)e+=t.templateHash;return e},t._createClass(e,[{key:"type",get:function(){return"expanded-cim"}}]),e}();function r(e){return e.minScale||e.maxScale?e.minScale+"-"+e.maxScale:""}e.ExpandedCIM=i,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
