// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
define("dojo/aspect dojo/_base/lang ../DijitFactory ./dijitsSetting/TextDijitSetting ./dijitsSetting/ImageDijitSetting ./dijitsSetting/ChartDijitSetting ./dijitsSetting/GaugeDijitSetting ./dijitsSetting/NumberDijitSetting".split(" "),function(n,h,p,q,r,t,u,v){var b={},c={},k=null,l=null,m=null,g={};b._dijitsSetting=c;b.getDijitSetting=function(a){return c[a.id]};b.createDijitSetting=function(a,d,w){if(c[a.id])return c[a.id];switch(a.type){case "text":var e=q;break;case "image":e=r;break;case "chart":e=
t;break;case "gauge":e=u;break;case "number":e=v}if(!e)return console.error("Unknow type:",a.type),null;var f={nls:k,config:a.config,map:l,appConfig:m,dijit:p.createDijit(a)};f.templateName=d;f.fromInitTemplate=w;h.mixin(f,g);d=new e(f);n.after(d,"destroy",function(){delete c[a.id]},a);return c[a.id]=d};b.setNls=function(a){k=a};b.setMap=function(a){l=a};b.setContext=function(a){g=a;Object.keys(c).forEach(function(d){h.mixin(c[d],g)})};b.setAppConfig=function(a){m=a};return b});