text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See http://js.arcgis.com/3.34/esri/copyright.txt for details.
  //>>built
  define("esri/dijit/geoenrichment/ReportPlayer/core/reportContainerGrid/utils/SerializationManager","dojo/_base/declare dojo/_base/lang dojo/dom-style esri/dijit/geoenrichment/when ../../supportClasses/DocumentOptions ../../supportClasses/templateJsonUtils/PageJsonUtil ../../supportClasses/templateJsonUtils/TemplateJsonModificationUtil ../../themes/ReportThemes esri/dijit/geoenrichment/utils/DomUtil esri/dijit/geoenrichment/utils/async/AsyncQueue".split(" "),function(l,d,c,e,m,n,p,f,q,r){return l(null,
  {_wizard:null,_pendingJsonObj:null,constructor:function(a){this._wizard=a},notifyShown:function(){if(this._canApplyJson()&&this._pendingJsonObj){var a=this._pendingJsonObj;this._pendingJsonObj=null;c.set(this._wizard.domNode,"visibility","visible");return e(this.fromJson(a),function(){!this._pendingJsonObj&&this._wizard.onPendingDataApplied()}.bind(this))}},_canApplyJson:function(){return q.isNodeInLayout(this._wizard.domNode)},fromJson:function(a,b){b=b||{};b.progressCallback=b.progressCallback||
  function(){};a=a&&a.sectionsTables&&a.sectionsTables.length?a:this.getEmptyPageJson();if(this._canApplyJson()){this._pendingJsonObj=null;c.set(this._wizard.domNode,"visibility","visible");this._wizard.clear();a.documentOptions&&p.adjustDocumentOptions(a);this._wizard.theme=a.theme&&a.theme.id!==f.GRAPHIC?a.theme:null;this._wizard.documentOptions=d.mixin(m.getDefaultDocumentOptions(),a.documentOptions);this._wizard.tooltipInfo=a.tooltipInfo;var g=this;if(b.renderSync)a.sectionsTables.forEach(function(a){g._wizard.createGridFromSectionTableJson(a)});
  else{(new Date).getTime();var h=new r,k=0;a.sectionsTables.forEach(function(c){h.add(function(){(new Date).getTime();var d=g._wizard.createGridFromSectionTableJson(c);return e(d.getRenderPromise(),function(){k+=1/a.sectionsTables.length;b.progressCallback(k)})},{delayBefore:0,delayAfter:0})});return h.getPromise().then(function(){})}}else this._pendingJsonObj=a,c.set(this._wizard.domNode,"visibility","hidden")},getEmptyPageJson:function(a){return n.getGraphicReportEmptyPageJson({numRows:3,numColumns:2,
  documentOptions:this._wizard.documentOptions,jsonToCopy:a?this._wizard.toJson():null})},toJson:function(a){var b={};b.documentOptions=d.clone(this._wizard.documentOptions||{});b.sectionsTables=a&&void 0!==a.pageIndex?[this._wizard.getGrids()[a.pageIndex].toJson()]:this._wizard.getGrids().map(function(a){return a.toJson()});(this._wizard.theme&&this._wizard.theme.id)!==f.GRAPHIC&&(b.theme=this._wizard.theme||this._wizard.viewModel.getCurrentTheme());b.tooltipInfo=this._wizard.tooltipInfo;return b}})});