// 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/_base/declare","dojo/_base/lang","dojo/on","./settingComponents","./SettingObject"],function(h,k,l,b,m){return h(m,{_inputControl:null,_inputControlDiv:null,_inputControlOnChange:null,_disableNextOnChange:!1,constructor:function(a,d,e,f,n,g,c,p){a=[];c=b.dropdownCtl(null,"full-width",c);a.push(c.div);this._inputControl=c.ctl;this._inputControlDiv=c.div;this._inputControlOnChange=p;this.own(l(this._inputControl,"change",k.hitch(this,this._onChange)));g&&a.push(b.text("hint",g));this._mainDiv=
b.container("flexbox "+(d||""),"minorTrailingHorizGap",[b.container("inline-block "+(e?e:""),"",[b.text("static-text",n)]),b.container("inline-block "+(f?f:""),"minorTrailingVertGap",a)])},setValue:function(a){this._inputControl&&this._inputControl.set("value",a)},getValue:function(){return this._inputControl?this._inputControl.get("value"):null},setConfig:function(){this._inputControl&&this._config&&this._config!==this.getValue()&&(this._disableNextOnChange=!0,this.setValue(this._config))},getConfig:function(a,
d){this._inputControl&&(this._config=this.getValue())},setOptions:function(a){this._inputControl&&this._inputControl.destroy();this._inputControl=b.dropdown(this._inputControlDiv,"full-width",a,this._inputControlOnChange)},_onChange:function(a){this._disableNextOnChange?this._disableNextOnChange=!1:this._inputControlOnChange(a)}})});