// 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
require({cache:{"url:widgets/Infographic/setting/dijitsSetting/ImageDijitSetting.html":'\x3cdiv class\x3d"settings-container"\x3e\r\n  \x3cdiv class\x3d"title"\x3e\r\n    ${nls.imageSettings}\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"style-selector"\x3e\r\n    \x3cdiv class\x3d"section"\x3e\r\n      \x3cdiv class\x3d"setting-items clearFix"\x3e\r\n        \x3cdiv class\x3d"label-position jimu-float-leading" title\x3d"${nls.image}"\x3e${nls.image}\x3c/div\x3e\r\n        \x3cdiv class\x3d"setting-wapper jimu-float-trailing"\x3e\r\n          \x3cdiv class\x3d"image-btn" data-dojo-attach-point\x3d"imageChooserNode"\x3e\x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"section"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"backgroundSettingNode"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare dojo/on dojo/_base/html dojo/_base/lang ./BaseDijitSetting dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin ./_dijits/BackgroundSetting dojo/text!./ImageDijitSetting.html jimu/dijit/ImageChooser".split(" "),function(e,d,f,b,g,h,k,l,m,n,a){return e([g,h,k,l],{templateString:n,type:"image",nls:null,postMixInProperties:function(){b.mixin(this.nls,window.jimuNls.common)},postCreate:function(){this.backgroundSetting=new m({config:this.config.background,nls:this.nls});
this.backgroundSetting.placeAt(this.backgroundSettingNode);this.backgroundSetting.startup();this.own(d(this.backgroundSetting,"change",b.hitch(this,function(){this._update()})));this.imageChooser=new a({label:this.nls.upload,cropImage:!1,showSelfImg:!1,format:[a.GIF,a.JPEG,a.PNG],goldenWidth:30,goldenHeight:30,maxSize:1024});f.place(this.imageChooser.domNode,this.imageChooserNode);this.own(d(this.imageChooser,"imageChange",b.hitch(this,"_onImgChoosed")));this._update()},_update:function(){this.backgroundSetting&&
(this.config.background=this.backgroundSetting.getConfig());this.updateDijit()},_onImgChoosed:function(p,c){this.config.image=p;this.config.alt=c&&c.fileName?c.fileName:"";this._update()},getConfig:function(){return this.config}})});