define(["dojo/_base/declare","dijit/form/DateTextBox","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/on","dojo/ready"],function(declare,selectBox,domClass,domGeom,style,on,ready){return declare("core/ui/LabelDateBox",selectBox,{labelText:"",_showLabel:true,postCreate:function(){this.inherited(arguments);var self=this;var domNode=this.domNode;domClass.add(this.domNode,"medBox combo opHasLabel isComboDateBox");if(this.readOnly) {domClass.add(this.domNode,"readonly")} if(this._showLabel) {this.addLabel()} this.domNode.style.position="relative";domClass.add(this.domNode,"a-medBox");this.label_div=document.createElement("div");domClass.add(this.label_div,"a-label-box-label");this.label_div.innerHTML=this.labelText;this.domNode.appendChild(this.label_div);if(this.value) {domClass.add(self.label_div,"a-label-box-label-with-value")} setTimeout(function(){if(self._beingDestroyed) {return} if(self.get("value")) {domClass.add(self.label_div,"a-label-box-label-with-value")}},200);on(this.focusNode,"focus",function(){domClass.add(self.label_div,"a-label-box-label-with-focus")});on(this,"change",function(){domClass.remove(self.label_div,"a-label-box-label-with-focus");if(self.get("value")) {domClass.add(self.label_div,"a-label-box-label-with-value")} else {domClass.remove(self.label_div,"a-label-box-label-with-value")}});on(this.focusNode,"blur",function(){domClass.remove(self.label_div,"a-label-box-label-with-focus");if(self.get("value")) {domClass.add(self.label_div,"a-label-box-label-with-value")} else {domClass.remove(self.label_div,"a-label-box-label-with-value")}});this.startup();this.postValue=this.valueNode.defaultValue;this.old_setValueAttr=this._setValueAttr;var _self=this;this._setValueAttr=function(v){_self.old_setValueAttr(v);_self.postValue=_self.valueNode.defaultValue}},addLabel:function(){return this},resizeLabel:function(){return this},_setPostValueAttr:function(v){this.postValue=v},_getPostValueAttr:function(){return this.postValue},postValue:null,old_setValueAttr:null})});