text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See http://js.arcgis.com/3.24/esri/copyright.txt for details.
  //>>built
  define("esri/dijit/geoenrichment/ReportPlayer/core/supportClasses/templateJsonUtils/fieldInfo/FieldInfoFormatUtil",[],function(){return{processFieldInfoTagAttributes:function(a){a&&!a.m&&(a.decimals||a.symbol||a.thousands)&&(a.m={showCurrency:"currency"===a.symbol,showPercent:"percent"===a.symbol,useThousandsSeparator:!1!==a.thousands,decimals:Number(a.decimals)||0})},buildFormatStringFromFieldInfo:function(a){if(a&&"esriFieldTypeString"!==a.type){if(a.format)return a.format;var b=a.decimals,d=a.showCurrency,
  e=a.showPercent;a=!!a.useThousandsSeparator;var c="";d&&(c+="\\$");a&&(c+="#,#");c+="0";if(0<b)for(c+=".";b--;)c+="0";!d&&e&&(c+="\\%");return c}},setFieldInfoFormat:function(a,b){b&&"object"===typeof b?(a.showCurrency=b.showCurrency,a.showPercent=b.showPercent,a.useThousandsSeparator=!!b.useThousandsSeparator,a.decimals=Number(b.decimals)||0):"string"===typeof b&&(a.showCurrency=-1!==b.indexOf("$"),a.showPercent=-1!==b.indexOf("%"),a.useThousandsSeparator=-1!==b.indexOf("#,#"),a.decimals=0,-1!==
  b.indexOf("0.")&&(a.decimals=b.split("0").length-2))}}});