// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
require({cache:{"url:esri/dijit/geoenrichment/ReportPlayer/core/templates/InterestingFactsInfographic.html":'\x3cdiv class\x3d"esriGEInterestingFactsInfographic"\x3e\r\n\x3c/div\x3e\r\n\r\n\r\n'}});
define("esri/dijit/geoenrichment/ReportPlayer/core/infographics/InterestingFactsInfographic","dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/dom-style dijit/_WidgetBase dijit/_TemplatedMixin esri/dijit/geoenrichment/_Invoke ./infographicUtils/InfographicThemeUtil ./infographicUtils/InfographicLayoutResizer esri/dijit/geoenrichment/utils/DomUtil dojo/text!../templates/InterestingFactsInfographic.html dojo/i18n!../../../../../nls/jsapi".split(" "),function(f,d,p,e,g,h,k,l,m,q,n,c){c=c.geoenrichment.dijit.ReportPlayer.ReportPlayer;
return f([g,h,k],{templateString:n,nls:c,viewModel:null,themeContext:null,theme:null,_currentInfographicJson:null,postCreate:function(){this.inherited(arguments)},updateInfographic:function(a){if(this.domNode){this._currentInfographicJson=this._applyThemeToJson(a);var b=this.viewModel.getStaticInfographicDefaultStyles(this.theme||this.themeContext);e.set(this.domNode,"backgroundColor",a.style.backgroundColor||b&&b.backgroundColor);this.invoke("_doUpdateContent",50)}},_resizeContent:function(){this._syncJsonDimensions();
e.set(this.domNode,{width:this.width+"px",height:this.height+"px"})},_syncJsonDimensions:function(){this._currentInfographicJson&&m.resizeLayout(this._currentInfographicJson,{w:this.width,h:this.height})},_doUpdateContent:function(){this._resizeContent()},_getAttributesStyle:function(){return this.__getContentStyle("attributesStyle")},_getNotesStyle:function(){return this.__getContentStyle("notesStyle")},__getContentStyle:function(a){var b=this.viewModel.getDocumentDefaultStyles(this.theme||this.themeContext);
return d.mixin({},b,this.viewModel.getTableDefaultStyles(this.theme||this.themeContext,"Default"),this._currentInfographicJson[a])},width:null,height:null,resize:function(a,b){this.width=a;this.height=b;this._syncJsonDimensions();this.invoke("_doUpdateContent",50)},_applyThemeToJson:function(a){var b=this.viewModel.getStaticInfographicDefaultStyles(this.theme||this.themeContext);return l.applyThemeSettingsToJson(a,b)},_undoThemeFromJson:function(a){return a},toJson:function(){var a=d.clone(this._currentInfographicJson);
return this._undoThemeFromJson(a)},destroy:function(){this.inherited(arguments)}})});