// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","../../Color","../../core/arrayUtils","./support/symbologyUtils","./support/utils"],function(f,d,n,g,h){function l(a,b){var c="mesh"!==a.geometryType&&a.worldScale?a.view:null;switch(a.geometryType){case "point":case "multipoint":a={...b.outline};var e=b.size;return{color:new d(b.color),outline:{color:new d(a.color),width:a.width},size:c?h.toWorldScale(e,c):e,opacity:1};case "polyline":return a=b.width,{color:new d(b.color),width:c?h.toWorldScale(a,c):a,opacity:1};case "polygon":a= b.size;e={...b.outline};var k=b.opacity;return{color:new d(b.color),outline:{color:new d(e.color),width:e.width},size:c?h.toWorldScale(a,c):a,opacity:k};case "mesh":return c=b.opacity,{color:new d(b.color),opacity:c}}}const m=g.createThemes({themeDictionary:{default:{name:"default",label:"Default",description:"Default theme for basic visualization of features.",schemes:{point:{light:{primary:{color:[77,77,77,1],outline:{color:[255,255,255,.25],width:"1px"},size:"8px"},secondary:[{color:[226,119,40, 1],outline:{color:[255,255,255,.25],width:"1px"},size:"8px"},{color:[255,255,255,1],outline:{color:[51,51,51,.25],width:"1px"},size:"8px"}]},dark:{primary:{color:[255,255,255,1],outline:{color:[92,92,92,.25],width:"1px"},size:"8px"},secondary:[{color:[226,119,40,1],outline:{color:[255,255,255,.25],width:"1px"},size:"8px"},{color:[26,26,26,1],outline:{color:[178,178,178,.25],width:"1px"},size:"8px"}]}},polyline:{light:{primary:{color:[77,77,77,1],width:"2px"},secondary:[{color:[226,119,40,1],width:"2px"}, {color:[255,255,255,1],width:"2px"}]},dark:{primary:{color:[255,255,255,1],width:"2px"},secondary:[{color:[226,119,40,1],width:"2px"},{color:[26,26,26,1],width:"2px"}]}},polygon:{light:{primary:{size:"12px",color:[227,139,79,1],outline:{color:[255,255,255,.25],width:"1px"},opacity:.8},secondary:[{size:"12px",color:[128,128,128,1],outline:{color:[255,255,255,.25],width:"1px"},opacity:.8},{size:"12px",color:[255,255,255,1],outline:{color:[128,128,128,.25],width:"1px"},opacity:.8}]},dark:{primary:{size:"12px", color:[227,139,79,1],outline:{color:[92,92,92,.25],width:"1px"},opacity:.8},secondary:[{size:"12px",color:[178,178,178,1],outline:{color:[92,92,92,.25],width:"1px"},opacity:.8},{size:"12px",color:[26,26,26,1],outline:{color:[128,128,128,.25],width:"1px"},opacity:.8}]}}}}}});f.cloneScheme=function(a){if(a)return a={...a},a.color&&(a.color=new d(a.color)),"outline"in a&&a.outline&&(a.outline={color:a.outline.color&&new d(a.outline.color),width:a.outline.width}),a};f.getSchemes=function(a){const b=g.getRawSchemes({basemap:a.basemap, geometryType:a.geometryType,basemapTheme:a.basemapTheme,theme:m.get("default")});if(b){var {schemesInfo:c,basemapId:e,basemapTheme:k}=b;return{primaryScheme:l(a,c.primary),secondarySchemes:c.secondary.map(p=>l(a,p)).filter(n.isSome),basemapId:e,basemapTheme:k}}};f.getThemes=function(a){return g.getThemesforBasemap(m,a)};Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});