AdfRichUIPeer.createPeerClass(AdfDhtmlInputBasePeer,"AdfDhtmlInputDatePeer");AdfDhtmlInputDatePeer.prototype.getConvertedValue=function(a,b){var d=b;null==a&&(a=this.getComponent());var e=a.getProperty("_losslessConverter");if(e){var f=a.getConverter();if(null!=f){var g=a.getProperty("label");try{d=f.getAsObject(b,g)}catch(h){try{d=e.getAsObject(b,g)}catch(k){throw h;}}}}else return AdfDhtmlInputDatePeer.superclass.getConvertedValue.call(this,a,b);return d};
AdfDhtmlInputDatePeer.prototype.handleReturnFromChooseComponent=function(a,b){b&&this._hidePopup(a);var d=AdfAgent.AGENT.isTouchFirstDevice()?this._getGlyph(a):AdfDhtmlEditableValuePeer.getContentNode(a);d&&AdfFocusUtils.focusElement(d);var d=this.getDomElement(),e=AdfAgent.AGENT;e.setExpandoProperty(d,AdfDhtmlInputDatePeer._UPDATE_FROM_CHOOSEDATE_ATTR,"t");this.Validate(a);e.setExpandoProperty(d,AdfDhtmlInputDatePeer._UPDATE_FROM_CHOOSEDATE_ATTR,null);this._returnedFromChooseComponent=1};
AdfDhtmlInputDatePeer.prototype.handleUpdateFromChooseComponent=function(a,b,d){b==AdfUIValue.VALUE?(this._updateLosslessNode(a,d),d=this.getConvertedObject(a,d),this.SetDisplayValue(a,null,d)):b==AdfDhtmlChooseDatePeer.TIMEZONE_SEL_DISPLAY?(a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._TIMEZONE_DISPNAME_ID),a=AdfAgent.AGENT.getElementById(a),AdfAgent.AGENT.setTextContent(a,d)):b==AdfDhtmlChooseDatePeer.TIMEZONE_SEL_ID&&(a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._TIMEZONE_DISPID_ID),
AdfAgent.AGENT.getElementById(a).value=d)};
AdfDhtmlInputDatePeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfUIValue);AdfObject.ensureClassInitialization(AdfRichChooseDate);AdfObject.ensureClassInitialization(AdfRichInputDate);AdfObject.ensureClassInitialization(AdfRichPopup);AdfObject.ensureClassInitialization(AdfDhtmlChooseDatePeer);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE,AdfUIInputEvent.CLICK_EVENT_TYPE,AdfDialogEvent.EVENT_TYPE,AdfUIInputEvent.FOCUS_EVENT_TYPE,AdfValueChangeEvent.VALUE_CHANGE_TYPE);
AdfRichUIPeer.addComponentPropertyChanges(this,AdfUIValue.VALUE);AdfRichUIPeer.addComponentPropertyGetters(this,AdfRichInputDate.MIN_VALUE);AdfRichUIPeer.addComponentPropertyGetters(this,AdfRichInputDate.MAX_VALUE);AdfRichUIPeer.addComponentPropertyGetters(this,AdfRichInputDate.LABEL);AdfRichUIPeer.addComponentPropertyChanges(this,AdfRichInputDate.LABEL);this._CHILD_EXPANDO="child";this._LOSSLESS_SUBID="lcId";this._GLYPH_ID="glyph";this._CHOOSEDATE_ID="cd";this._POPUP_ID="pop";this._TIMEZONE_ID="tz";
this._TIMEZONE_DISPID_ID="tzDispId";this._TIMEZONE_DISPNAME_ID="tzDispName";this._UPDATE_FROM_CHOOSEDATE_ATTR="ufc";this._MIN_ATTR="data-afr-adfmin";this._MAX_ATTR="data-afr-adfmax";this._MIN_ISO_ATTR="data-afr-adfmnis";this._MAX_ISO_ATTR="data-afr-adfmxis";this._MAX_WIDTH_CENTER_DLG=768};AdfDhtmlInputDatePeer.prototype.InitDomElement=function(a,b){AdfDhtmlInputDatePeer.superclass.InitDomElement.call(this,a,b);return AdfPage.PAGE.scheduleTimer(this,this._hookUpChooseDate,a.getClientId(),0)};
AdfDhtmlInputDatePeer.prototype.ComponentValueChanged=function(a,b,d,e){AdfDhtmlInputDatePeer.superclass.ComponentValueChanged.call(this,a,b,d,e);if(this._isChooserSuppressed()){e=a.getProperty(AdfRichInputDate.CHOOSE_ID);var f=this.getDomElement(),f=AdfAgent.AGENT.getExpandoProperty(f,AdfDhtmlInputDatePeer._UPDATE_FROM_CHOOSEDATE_ATTR);null==e||f||AdfDhtmlInputChooseBindingUtils.updateChooseComponentProperty(a,e,AdfUIValue.VALUE,AdfDhtmlChooseDatePeer.SELECTED_DATE)}this._updateLosslessNode(a,d);
a=AdfDhtmlEditableValuePeer.getContentNode(a,b);AdfDhtmlInputBasePeer.setLastValue(a)};AdfDhtmlInputDatePeer.prototype.Validate=function(a,b){null!=b&&this._updateLosslessNode(a,null);AdfDhtmlInputDatePeer.superclass.Validate.call(this,a,b)};AdfDhtmlInputDatePeer.prototype.GetSubmittedValue=function(a,b){var d=this._getLosslessConvertedNode(a);return d&&d.value?d.value:AdfDhtmlInputDatePeer.superclass.GetSubmittedValue.call(this,a,b)};
AdfDhtmlInputDatePeer.prototype.GetComponentLabel=function(a,b){for(var d=AdfAgent.AGENT,e=b.getElementsByTagName("LABEL"),f=AdfRichUIPeer.CreateSubId(a.getClientId(),"content"),g=null,h=0;h<e.length;h++)if(d.getAttribute(e[h],"for")==f){g=e[h];break}return g?d.getTextContent(g):null};
AdfDhtmlInputDatePeer.prototype.GetComponentLabel=function(a,b){for(var d=AdfAgent.AGENT,e=b.getElementsByTagName("LABEL"),f=AdfRichUIPeer.CreateSubId(a.getClientId(),"content"),g=null,h=0;h<e.length;h++)if(d.getAttribute(e[h],"for")==f){g=e[h];break}return g?d.getTextContent(g):null};
AdfDhtmlInputDatePeer.prototype.HandleComponentClick=function(a){AdfDhtmlInputDatePeer.superclass.HandleComponentClick.call(this,a);var b=a.getSource(),d=a.getNativeEvent(),d=AdfAgent.AGENT.getEventTarget(d),e=AdfRichUIPeer.CreateSubId(b.getClientId(),AdfDhtmlInputDatePeer._GLYPH_ID),f=a.getCurrentTarget();f==b&&this._isGlyphElement(d,e)&&(this._handleChooseDatePopupLaunch(f),a.cancel())};
AdfDhtmlInputDatePeer.prototype.HandleComponentDialog=function(a){var b=this.getComponent(),d=a.getOutcome();d==AdfDialogEvent.OUTCOME_OK?(b=this._getRuntimeChooseDateId(b),b=AdfPage.PAGE.findComponent(b),d=b.getPeer(),d.bind(b),d.submitValueToInput(null,b),a.cancel()):d==AdfDialogEvent.OUTCOME_CANCEL&&(this._hidePopup(b),b=this._getGlyph(b),null!=b&&AdfFocusUtils.focusElement(b),a.cancel())};
AdfDhtmlInputDatePeer.prototype.HandleComponentFocus=function(a){AdfDhtmlInputDatePeer.superclass.HandleComponentFocus.call(this,a);a=this.getComponent();var b=AdfDhtmlInputChooseBindingUtils.getChooseId(a);null!=b&&AdfDhtmlInputChooseBindingUtils.registerBinding(!0,b,a.getClientId())};
AdfDhtmlInputDatePeer.prototype.RunValidation=function(a,b,d){this.WasSubmitted(a)&&(AdfDhtmlInputDatePeer.superclass.RunValidation.call(this,a,b,d),a=AdfDhtmlEditableValuePeer.getContentNode(a),AdfDhtmlInputBasePeer.setLastValue(a,a.value))};
AdfDhtmlInputDatePeer.prototype.HandleComponentKeyDown=function(a){var b=a.getNativeEvent(),b=AdfAgent.AGENT.getKeyCode(b),d=!1,e=this.getComponent(),f=a.getSource();if(a.getCurrentTarget()==f){switch(b){case AdfKeyStroke.ENTER_KEY:this.RunValidation(e,a.getNativeEventTarget());break;case AdfKeyStroke.ARROWDOWN_KEY:this._isChooserSuppressed()||e!=f||(this.RunValidation(e,a.getNativeEventTarget()),this._handleChooseDatePopupLaunch(e),d=!0)}d&&a.cancel()}};
AdfDhtmlInputDatePeer.prototype.LazyInitialize=function(a,b){AdfDhtmlInputDatePeer.superclass.LazyInitialize.call(this,a,b);this._createClientSideValidators(a,b)};
AdfDhtmlInputDatePeer.prototype.HandleComponentValueChange=function(a){var b=a.getSource().getClientId();a=this.getComponent();if(this._isChooserSuppressed()){var d=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._TIMEZONE_ID);b==d&&(b=AdfPage.PAGE.findComponent(d),d=b.getPeer().getDomElement(),b=AdfDhtmlEditableValuePeer.getContentNode(b,d),a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._TIMEZONE_DISPID_ID),AdfAgent.AGENT.getElementById(a).value=b.value)}};
AdfDhtmlInputDatePeer.prototype.IsSecret=function(a){return!1};AdfDhtmlInputDatePeer.prototype.SetDisplayValue=function(a,b,d){AdfAssert.assertString(d);b=AdfDhtmlEditableValuePeer.getContentNode(a,b);var e="INPUT"==AdfAgent.AGENT.getNodeName(b);a.getReadOnly()?AdfAgent.AGENT.setTextContent(b,d):(b.title=d,e?b.value=d:AdfAgent.AGENT.setTextContent(b,d))};
AdfDhtmlInputDatePeer.prototype.VetoShowNoteWindow=function(a){return this._isPopupVisible(a)||!this._isChooserSuppressed()&&(a=AdfDhtmlEditableValuePeer.getContentNode(a),AdfPage.PAGE.getActiveDomElement()!=a)?!0:AdfDhtmlInputDatePeer.superclass.VetoShowNoteWindow.call(this)};
AdfDhtmlInputDatePeer.prototype.GetComponentMinValue=function(a,b){var d=AdfDhtmlEditableValuePeer.getContentNode(a);return(d=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MIN_ISO_ATTR,-1))?AdfDhtmlInputDatePeer._getISOStandardConverter().getAsObject(d):null};
AdfDhtmlInputDatePeer.prototype.GetComponentMaxValue=function(a,b){var d=AdfDhtmlEditableValuePeer.getContentNode(a);return(d=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MAX_ISO_ATTR,-1))?AdfDhtmlInputDatePeer._getISOStandardConverter().getAsObject(d):null};AdfDhtmlInputDatePeer.prototype.GetInlineEditor=function(a){return AdfDhtmlSimpleLabelEditor.getInlineEditor()};
AdfDhtmlInputDatePeer.prototype.setSelectedDate=function(a){var b=this._getRuntimeChooseDateId(this.getComponent());(b=AdfPage.PAGE.findComponent(b))&&b.setSelectedDate(a)};AdfDhtmlInputDatePeer.prototype.__trace=function(a){AdfLogger.LOGGER.severe("InputDatePeer: "+a)};
AdfDhtmlInputDatePeer.prototype._handleChooseDatePopupLaunch=function(a){var b=this._getPopup(a);if(null!=b)if(b.isPopupVisible())b.hide();else{this.HideNoteWindow();var d=this._getRuntimeChooseDateId(a),e=AdfAgent.AGENT.getElementById(d),d=AdfPage.PAGE.findComponent(d);this._updateChooseDateExpandos(a,e,d);e=d.getPeer();e.bind(d);e.refresh();b.show(this._getChooserPopupHints(a))}else this._showPopup(a)};
AdfDhtmlInputDatePeer.prototype._createClientSideValidators=function(a,b){AdfAssert.assertDomElement(b);var d=AdfDhtmlEditableValuePeer.getContentNode(a),e=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MIN_ATTR,-1),f=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MAX_ATTR,-1),g=a.getDisabledMonths(),h=a.getDisabledDaysOfWeek();if(e||f){var k=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MIN_ISO_ATTR,-1),d=AdfAgent.AGENT.getAttribute(d,AdfDhtmlInputDatePeer._MAX_ISO_ATTR,-1),e=
new TrDateTimeRangeValidator(f,e,null,d,k);a.addValidator(e)}if(h||g)g=new TrDateRestrictionValidator(h,g,null),a.addValidator(g)};AdfDhtmlInputDatePeer.prototype._getGlyph=function(a){a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._GLYPH_ID);return AdfAgent.AGENT.getElementById(a)};AdfDhtmlInputDatePeer.prototype._getPopup=function(a){a=this._getPopupId(a);return AdfPage.PAGE.findComponent(a)};
AdfDhtmlInputDatePeer.prototype._showPopup=function(a){var b=AdfDhtmlEditableValuePeer.getContentNode(a),d=b.ownerDocument,e=AdfAgent.AGENT,f=this._getPopupId(a),g=AdfPage.PAGE,h=g.findComponent(f),k=this._getRuntimeChooseDateId(a),l=e.getElementById(k),m=g.findComponent(k);if(null==e.getElementById(f)){var n=d.createElement("div");b.parentNode.appendChild(n);e.setAttribute(n,"id",f);e.setAttribute(n,"style","display:none");l=AdfRichUIPeer.CreateSubId(f,"content");h=d.createElement("div");n.appendChild(h);
e.setAttribute(h,"id",l);e.setAttribute(h,"style","top:auto; right:auto; left:auto; bottom:auto; width:auto; height:auto; position:relative;");l=d.createElement("span");h.appendChild(l);e.setAttribute(l,"id",k);e.setAttribute(l,"class",g.getLookAndFeel().getStyleClass("af|chooseDate"));h=new AdfRichPopup(f,{contentDelivery:"immediate"});m=new AdfRichChooseDate(k);this._updateChooseDateExpandos(a,l,m);e.elementsAdded(n);g.addComponents(m,h)}else this._updateChooseDateExpandos(a,l,m);d=m.getPeer();
d.BindToComponent(m,l);d.refresh();AdfObject.ensureClassInitialization(AdfRichPopup);h.show(this._getChooserPopupHints(a))};
AdfDhtmlInputDatePeer.prototype._updateChooseDateExpandos=function(a,b,d){AdfAssert.assert(null!=a);var e=AdfAgent.AGENT;null==b&&(b=this._getRuntimeChooseDateId(a),b=e.getElementById(b));var f=AdfPage.PAGE.getLookAndFeel().getSkinProperty(AdfDhtmlChooseDatePeer._LOCALE);e.setAttribute(b,AdfDhtmlChooseDatePeer._LOCALE,f);e.setAttribute(b,AdfDhtmlChooseDatePeer._PARENT_ID,a.getClientId());e.setAttribute(b,AdfDhtmlChooseDatePeer._DISPLAY_MODE,AdfDhtmlChooseDatePeer._DATE_AND_TIME_MODE);var f=a.getLayout(),
g="";if(f&&0!=f.length)for(var h=0;h<f.length;h++)g+=f[h]+" ";else g=AdfDhtmlInputDatePeer._getSkinDeterminedLayouts();e.setAttribute(b,AdfDhtmlChooseDatePeer._LAYOUT,g);f=AdfDhtmlEditableValuePeer.getContentNode(a);h=e.getAttribute(f,AdfDhtmlChooseDatePeer._TODAY_DATE);null!=h&&e.setAttribute(b,AdfDhtmlChooseDatePeer._TODAY_DATE,h);var g=AdfDhtmlInputDatePeer._getISOStandardConverter(),k=a.getValue(),l=null;null==k?(k=a.getDefaultValue(),null!=k&&(l=g.getAsString(k))):l=g.getAsString(k);if(d){null!=
a.getDisabledDays()&&d.setDisabledDays(a.getDisabledDays());d.setDisabledMonths(a.getDisabledMonths());d.setDisabledDaysOfWeek(a.getDisabledDaysOfWeek());d.setDefaultValue(a.getDefaultValue());k=a.getMonths?a.getMonths():null;if(!k||1>k)k=AdfDhtmlInputDatePeer._getSkinDeterminedMonths();d.setMonths(Math.max(1,k));k=e.getAttribute(f,AdfDhtmlInputDatePeer._MIN_ISO_ATTR);d.setMinValue(k);k=e.getAttribute(f,AdfDhtmlInputDatePeer._MAX_ISO_ATTR);d.setMaxValue(k)}l?(e.setAttribute(b,AdfDhtmlChooseDatePeer._SELECTED_DATE_TIME,
l),d=g.getAsObject(l),d.setDate(1),e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_DATE,g.getAsString(d))):null!=h&&(h=g.getAsObject(h),l=a.getMaxValue(),a=a.getMinValue(),AdfDhtmlChooseDateDOMQueries.isDateAfterMaximumDate(d,h)&&(h=l),AdfDhtmlChooseDateDOMQueries.isDateBeforeMinimumDate(d,h)&&(h=a),h.setDate(1),e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_DATE,g.getAsString(h)));d=e.getAttribute(f,AdfDhtmlChooseDatePeer._SHOW_DATE);null!=d&&(d=g.getAsObject(d),d.setDate(1),d.setFullYear(d.getFullYear()-
AdfDhtmlChooseDatePeer._MAX_CLIENT_RANGE_YEARS/2),e.setAttribute(b,AdfDhtmlChooseDatePeer._RANGE_START,g.getAsString(d)),d.setFullYear(d.getFullYear()+AdfDhtmlChooseDatePeer._MAX_CLIENT_RANGE_YEARS),e.setAttribute(b,AdfDhtmlChooseDatePeer._RANGE_END,g.getAsString(d)));d=e.getAttribute(f,AdfDhtmlChooseDatePeer._FIRST_DAY_OF_WEEK);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._FIRST_DAY_OF_WEEK,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._ALLOW_TIME_SELECTION);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._ALLOW_TIME_SELECTION,
d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._NUMBER_HOUR_DIGITS);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._NUMBER_HOUR_DIGITS,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._SHOW_24_HOUR_FORMAT);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_24_HOUR_FORMAT,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._SHOW_AM_PM);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_AM_PM,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._SHOW_AM_PM_IN_2_ROWS);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_AM_PM_IN_2_ROWS,
d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._NUMBER_MINUTE_DIGITS);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._NUMBER_MINUTE_DIGITS,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._NUMBER_SECOND_DIGITS);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._NUMBER_SECOND_DIGITS,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._SHOW_TIMEZONE);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._SHOW_TIMEZONE,d);d=e.getAttribute(f,AdfDhtmlChooseDatePeer._COUNT_ZERO_BASED);null!=d&&e.setAttribute(b,AdfDhtmlChooseDatePeer._COUNT_ZERO_BASED,
d);f=e.getAttribute(f,AdfDhtmlChooseDatePeer._CLIENT_TIME_ZONE);null!=f&&e.setAttribute(b,AdfDhtmlChooseDatePeer._CLIENT_TIME_ZONE,f)};
AdfDhtmlInputDatePeer.prototype._getChooserPopupHints=function(a){var b={};AdfAgent.AGENT.getWindowWidth()<=AdfDhtmlInputDatePeer._MAX_WIDTH_CENTER_DLG?b[AdfDhtmlPopupHints.POSITION_CENTER]=!0:(b[AdfRichPopup.HINT_ALIGN]=AdfRichPopup.ALIGN_AFTER_START,b[AdfRichPopup.HINT_ALIGN_ID]=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._GLYPH_ID));b[AdfDhtmlPopupWindow.FOCUS]=!0;b[AdfDhtmlPopupWindow.HINT_CLOSE_HANDLER]=this.createCallback(this._chooserPopupClosedHandler);b[AdfDhtmlPopupWindow.HINT_CLOSE_HANDLER_PARAM]=
{};var d=a.getLabel();d||(a=this._getGlyph(a),d=AdfAgent.AGENT.getAttribute(a,"title"));b[AdfDhtmlPopupWindow.ARIA_LABEL]=d;return b};AdfDhtmlInputDatePeer.prototype._chooserPopupClosedHandler=function(a){a=this.getComponent();a=AdfDhtmlEditableValuePeer.getContentNode(a);AdfFocusUtils.focusElement(a)};AdfDhtmlInputDatePeer.prototype._getPopupId=function(a){return AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._POPUP_ID)};
AdfDhtmlInputDatePeer.prototype._getRuntimeChooseDateId=function(a){var b=AdfDhtmlEditableValuePeer.getContentNode(a),d=AdfDhtmlInputChooseBindingUtils.getChooseId(a,AdfRichInputDate.CHOOSE_ID);return null==d?(a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._POPUP_ID),(b=b.getAttribute(AdfDhtmlInputDatePeer._CHILD_EXPANDO))&&(a=AdfRichUIPeer.CreateSubId(a,b)),AdfRichUIPeer.CreateSubId(a,AdfDhtmlInputDatePeer._CHOOSEDATE_ID)):d};
AdfDhtmlInputDatePeer.prototype._hidePopup=function(a){a=this._getPopup(a);null!=a&&a.isPopupVisible()&&a.hide()};AdfDhtmlInputDatePeer.prototype._hookUpChooseDate=function(a){if(a=AdfPage.PAGE.findComponent(a)){var b=this._getRuntimeChooseDateId(a);null!=b&&AdfDhtmlInputChooseBindingUtils.registerBinding(!0,b,a.getClientId())}};AdfDhtmlInputDatePeer.prototype._isChooserSuppressed=function(){return"0"==AdfDhtmlEditableValuePeer.getContentNode(this.getComponent()).getAttribute(AdfDhtmlInputDatePeer._CHILD_EXPANDO)};
AdfDhtmlInputDatePeer.prototype._isGlyphElement=function(a,b){var d=AdfAgent.AGENT.getElementById(b);return null==d?!1:a==d||a==d.getElementsByTagName("img")[0]?!0:!1};AdfDhtmlInputDatePeer.prototype._isPopupVisible=function(a){a=this._getPopup(a);return null!=a&&a.isPopupVisible()?!0:!1};
AdfDhtmlInputDatePeer._getISOStandardConverter=function(){AdfDhtmlInputDatePeer.ISO_STANDARD_CONVERTER||(AdfDhtmlInputDatePeer.ISO_STANDARD_CONVERTER=new TrDateTimeConverter("yyyy-MM-dd HH:mm:ss",null,null,null,null));return AdfDhtmlInputDatePeer.ISO_STANDARD_CONVERTER};AdfDhtmlInputDatePeer.prototype._getLosslessConvertedObject=function(a,b){if(null!=b){var d=b,e=a.getProperty("_losslessConverter");return e&&(d=e.getAsString(b,a.getProperty("label")),void 0===d)?null:d}return null};
AdfDhtmlInputDatePeer.prototype._getLosslessConvertedNode=function(a){a=AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlInputDatePeer._LOSSLESS_SUBID);return AdfAgent.AGENT.getElementById(a)};AdfDhtmlInputDatePeer.prototype._updateLosslessNode=function(a,b){var d=this._getLosslessConvertedNode(a);if(d)if(b){var e=this._getLosslessConvertedObject(a,b);d.value=e}else d.value=""};
AdfDhtmlInputDatePeer._getSkinDeterminedLayouts=function(){if(!AdfDhtmlInputDatePeer._SKIN_DETERMINED_LAYOUTS){var a=AdfPage.PAGE.getLookAndFeel();AdfDhtmlInputDatePeer._SKIN_DETERMINED_LAYOUTS=a.getSkinProperty("af|inputDate-tr-layout")}return AdfDhtmlInputDatePeer._SKIN_DETERMINED_LAYOUTS};AdfDhtmlInputDatePeer._getSkinDeterminedMonths=function(){if(!AdfDhtmlInputDatePeer._SKIN_DETERMINED_MONTHS){var a=AdfPage.PAGE.getLookAndFeel();AdfDhtmlInputDatePeer._SKIN_DETERMINED_MONTHS=parseInt(a.getSkinProperty("af|inputDate-tr-months"))}return AdfDhtmlInputDatePeer._SKIN_DETERMINED_MONTHS};