// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/themes/conversion/ThemeToCssConverter",[],function(){var l={fontSize:"font-size",fontFamily:"font-family",fontStyle:"font-style",fontWeight:"font-weight",textDecoration:"text-decoration",color:"color",backgroundColor:"background-color",opacity:"opacity",data:"url",position:"background-position",repeat:"background-repeat",scale:"background-size"};return{toCssText:function(n){function k(b){for(var e="",c=0;c<b;c++)e+="    ";return e}function r(b,e,
c){h+=k(c)+"."+b+" {\n";Object.keys(e).forEach(function(b,f){h+=k(c+1)+b+": "+e[b]+";\n"});h+=k(c)+"}\n\n"}function t(b,e){var c={};b.forEach(function(b,f){c[e+"_"+f]=b});return c}function q(b,e,c){for(var h in b){var f=b[h];if(f&&"object"===typeof f){Array.isArray(f)&&(f=t(f,h));var k=(c?c+"_":"")+h,n=k,m=f,p={},d=void 0;for(d in m)if("border"===d){var g=m[d],a=p;a.borderStyle=g.style;a.border=g.thickness+"px "+g.lineStyle+" "+g.color}else a=m[d],"object"!==typeof a&&(g="fontSize"===d?{name:l[d],
value:a+"px"}:"repeat"===d?{name:l[d],value:a?"repeat":"no-repeat"}:"scale"===d?a?{name:l[d],value:m.repeat?"contain":"cover"}:!1:null,!1!==g&&(a=g?g.value:a,p[g&&g.name||l[d]||d]=void 0===a||null===a||"null"===a||"undefined"===a?"":a));r(n,p,e);q(f,e+1,k)}}}var h="";q(n,0);return h}}});