/*
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","../../../../symbols/cim/cimAnalyzer","../../../../symbols/cim/ExpandedCIM","./webStyleUtils"],(function(e,t,n,r,a){"use strict";const l=function(){var e=t._asyncToGenerator((function*(e,t,n,r){return Promise.all(e.map((e=>o(e,t,n,r))))}));return function(t,n,r,a){return e.apply(this,arguments)}}(),i=function(){var e=t._asyncToGenerator((function*(e,t,a){return new r.ExpandedCIM(yield n.analyzeCIMSymbol(e.data,t,a),e.data,e.rendererKey,e.maxVVSize)}));return function(t,n,r){return e.apply(this,arguments)}}(),o=function(){var e=t._asyncToGenerator((function*(e,t,n,r){if(!e)return null;if("cim"===e.type)return i(e,t,n);if("web-style"===e.type){const l={type:"cim",data:yield a.fetchCIMSymbolReference(e,null,r),rendererKey:e.rendererKey,maxVVSize:e.maxVVSize};return i(l,t,n)}return e}));return function(t,n,r,a){return e.apply(this,arguments)}}();function u(e){if(!e)return null;const{type:t,cim:n,url:r,materialHash:a}=e,l={cim:n,type:t,mosaicHash:a,url:r,size:null,dashTemplate:null,path:null,text:null,fontName:null,animatedSymbolProperties:null};switch(t){case"marker":l.size=e.size,l.path=e.path,l.animatedSymbolProperties=e.animatedSymbolProperties;break;case"line":l.dashTemplate=e.dashTemplate;break;case"text":l.text=e.text,l.fontName=e.fontName}return l}e.cimLayerToRasterizationInfo=u,e.expandSymbol=o,e.expandSymbols=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
