// 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/metadata/base/InputBase","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/topic dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/has ./etc/docUtil ./Templated ../../../kernel".split(" "),function(b,d,g,h,e,f,k,l,m,n,p){b=b([n],{_isGxeInput:!0,_supportsMultipleValues:!1,parentXNode:null,autoSetAriaLabel:!0,hint:null,postCreate:function(){this.inherited(arguments)},applyHint:function(){var a=this.hint;this.hintNode&&"undefined"!==typeof a&&null!==a&&this.parentXNode&&
this.parentXNode.gxeDocument&&!this.parentXNode.gxeDocument.isViewOnly&&(a=d.trim(a),0!==a.length&&(this.setNodeText(this.hintNode,a),f.add(this.hintNode,"populated")))},applyViewOnly:function(){if(this.viewOnlyNode&&this.parentXNode&&this.parentXNode.gxeDocument&&this.parentXNode.gxeDocument.isViewOnly){var a=this.getDisplayValue();"undefined"!==typeof a&&null!==a&&(a.push&&1===a.length&&(a=a[0]),a.push?(this.viewOnlyNode.innerHTML="",g.forEach(a,function(a){var c=k.create("div",{"class":"gxeParagraph"},
this.viewOnlyNode);this.setNodeText(c,a)},this)):this.setNodeText(this.viewOnlyNode,a),f.add(this.viewOnlyNode,"populated"))}},connectXNode:function(a,b){b?this.focusNode&&(this.focusNode.disabled=!0):this.applyHint();this.focusNode&&a&&a.fixed&&(this.focusNode.disabled=!0);a&&a.gxePath&&(this.focusNode?e.set(this.focusNode,"data-gxe-for",a.gxePath):e.set(this.domNode,"data-gxe-for",a.gxePath));if(this.autoSetAriaLabel&&this.focusNode&&a){var c=a.getLabelString();"string"===typeof c&&0<c.length&&
"No Target"!==c&&this.focusNode.setAttribute("aria-label",c)}},emitInteractionOccurred:function(a){a||(a={inputWidget:this});this.emit("interaction-occurred",a);this.parentXNode&&null!==this.parentXNode.gxePath&&h.publish("gxe/interaction-occurred",a)},ensureFocus:function(){m.ensureVisibility(this);if(this.focusNode&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},getDisplayValue:function(){return this.getInputValue()},getInputValue:function(){return null},getXmlValue:function(){return this.getInputValue()},
importValue:function(a,b){this.setInputValue(b)},importValues:function(a,b){},setInputValue:function(a){}});l("extend-esri")&&d.setObject("dijit.metadata.base.InputBase",b,p);return b});