// 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/charts/textRendering/TextRenderer",["dojo/_base/declare","dijit/Destroyable","esri/dijit/geoenrichment/ReportPlayer/core/sections/SectionTypes","esri/dijit/geoenrichment/ReportPlayer/core/supportClasses/ViewModes"],function(e,f,g,d){return e(f,{_textSection:null,renderTexts:function(a){this._destroyTexts();var c=a.visualProperties.floatingTexts;if(c&&c.length){var b={"class":"chartContainer_textSection"};b.initialWidth=a.chartW;b.json={type:g.DETAILS,
stack:c};b.viewModel=a.viewModel;b.themeContext=a.themeContext;b.theme=a.theme;b.tableClass="chartContainerTextTable";b.hasFixedLayout=!1;b.parentWidget=a.parentWidget;this._provideParamsForTextSection(b,a);this._textSection=a.viewModel.layoutBuilder.createElement("section",b,a.textNode);this._textSection.setResizedHeight(a.chartH);this._textSection.setViewMode(this._viewMode||d.EDIT,{richText:d.PREVIEW_VALUES,variable:d.PREVIEW_VALUES})}},_provideParamsForTextSection:function(a,c){},_viewMode:null,
setViewMode:function(a){this._viewMode!==a&&(this._viewMode=a,this._textSection&&this._textSection.setViewMode(a))},_destroyTexts:function(){this._textSection&&this._textSection.destroy();this._textSection=null},destroy:function(){this._destroyTexts();this.inherited(arguments)}})});