var $AdfDhtmlChooseDatePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlChooseDatePeer");
$goog$exportSymbol$$("AdfDhtmlChooseDatePeer", $AdfDhtmlChooseDatePeer$$);
$AdfDhtmlChooseDatePeer$$.prototype.$handleUpdateFromInputComponent$ = function $$AdfDhtmlChooseDatePeer$$$$$handleUpdateFromInputComponent$$($chooseComponent$$1$$, $propertyName$$41$$, $newValue$$39$$) {
  $propertyName$$41$$ == $AdfDhtmlChooseDatePeer$$.$SELECTED_DATE$ && ($newValue$$39$$ == $JSCompiler_alias_NULL$$ && ($newValue$$39$$ = $JSCompiler_StaticMethods__getTodayDate$$(this.$getDomElement$())), $JSCompiler_StaticMethods__queueGridRefresh$$(this, $chooseComponent$$1$$, $newValue$$39$$.getMonth(), $newValue$$39$$.getFullYear()))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.handleUpdateFromInputComponent", {$handleUpdateFromInputComponent$:$AdfDhtmlChooseDatePeer$$.prototype.$handleUpdateFromInputComponent$});
$AdfDhtmlChooseDatePeer$$.prototype.$submitValueToInput$ = function $$AdfDhtmlChooseDatePeer$$$$$submitValueToInput$$($dayNode$$, $chooseDateComp$$) {
  var $component$$inline_1381_datetime$$;
  $component$$inline_1381_datetime$$ = this.$getComponent$();
  var $date$$inline_1394_day$$inline_1382$$, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$, $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$, $hour$$inline_1385$$, $min$$inline_1386$$, $sec$$inline_1387$$, $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = this.$getDomElement$();
  if($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_CURRMONTH_ID_ATTR_NAME$)) {
    if($month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ = parseInt($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_CURRMONTH_ID_ATTR_NAME$)), $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$ = parseInt($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_CURRYEAR_ID_ATTR_NAME$)), 
    $dayNode$$) {
      $date$$inline_1394_day$$inline_1382$$ = parseInt($AdfAgent$$.$AGENT$.$getTextContent$($dayNode$$)), $dayNode$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_DAY_ID_ATTR_NAME$)
    }else {
      if($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = this.$_getCurrentSelection$($JSCompiler_alias_FALSE$$)) {
        $date$$inline_1394_day$$inline_1382$$ = parseInt($AdfAgent$$.$AGENT$.$getTextContent$($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$)), $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_DAY_ID_ATTR_NAME$)
      }
    }
  }
  $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$inline_1381_datetime$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_HOUR_SPIN_ID$);
  if($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = $AdfPage$$.$PAGE$.$findComponent$($ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$)) {
    if($hour$$inline_1385$$ = $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getValue(), $min$$inline_1386$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$inline_1381_datetime$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_MIN_SPIN_ID$)).getValue(), $sec$$inline_1387$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$inline_1381_datetime$$.$getClientId$(), 
    $AdfDhtmlChooseDatePeer$$.$_SEC_SPIN_ID$)).getValue(), $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$inline_1381_datetime$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_AMPM_ID$))) {
      $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ = $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$.getValue(), 12 == $hour$$inline_1385$$ ? "0" == $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ && ($hour$$inline_1385$$ = 0) : "1" == 
      $ampm$$inline_1393_ampmComp$$inline_1392_hourComp$$inline_1391_hourSubId$$inline_1390_rootDomElement$$inline_1388_selNode$$inline_1389$$ && ($hour$$inline_1385$$ = +$hour$$inline_1385$$ + 12)
    }
  }
  $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$ != $JSCompiler_alias_VOID$$ && $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ != $JSCompiler_alias_VOID$$ && $date$$inline_1394_day$$inline_1382$$ != $JSCompiler_alias_VOID$$ ? ($date$$inline_1394_day$$inline_1382$$ = $hour$$inline_1385$$ != $JSCompiler_alias_VOID$$ && $min$$inline_1386$$ != $JSCompiler_alias_VOID$$ && $sec$$inline_1387$$ != $JSCompiler_alias_VOID$$ ? 
  new Date($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$, $date$$inline_1394_day$$inline_1382$$, $hour$$inline_1385$$, $min$$inline_1386$$, $sec$$inline_1387$$) : new Date($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$, $date$$inline_1394_day$$inline_1382$$), 
  $date$$inline_1394_day$$inline_1382$$.setFullYear($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$)) : $date$$inline_1394_day$$inline_1382$$ = $JSCompiler_alias_NULL$$;
  $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$inline_1381_datetime$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_TIMEZONE_ID$);
  if($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$ = $AdfPage$$.$PAGE$.$findComponent$($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$)) {
    $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ = $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$.$getPeer$(), $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$.bind($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$), $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ = 
    $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$.$getDomElement$(), $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$), $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$ = 
    $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$.value, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$ = $AdfAgent$$.$AGENT$.$getTextContent$($month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$.options[$month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$.selectedIndex]), $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$inline_1381_datetime$$, 
    $JSCompiler_alias_NULL$$, $AdfDhtmlChooseDatePeer$$.$TIMEZONE_SEL_DISPLAY$, $month$$inline_1383_tzContent$$inline_1399_tzDisp$$inline_1401_tzNode$$inline_1398_tzPeer$$inline_1397$$), $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$inline_1381_datetime$$, $JSCompiler_alias_NULL$$, $AdfDhtmlChooseDatePeer$$.$TIMEZONE_SEL_ID$, $tzComp$$inline_1396_tzId$$inline_1400_tzsubId$$inline_1395_year$$inline_1384$$)
  }
  $component$$inline_1381_datetime$$ = $date$$inline_1394_day$$inline_1382$$;
  $component$$inline_1381_datetime$$ != $JSCompiler_alias_NULL$$ && $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($chooseDateComp$$, $JSCompiler_alias_NULL$$, AdfUIValue.VALUE, $component$$inline_1381_datetime$$);
  $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($chooseDateComp$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.submitValueToInput", {$submitValueToInput$:$AdfDhtmlChooseDatePeer$$.prototype.$submitValueToInput$});
$AdfDhtmlChooseDatePeer$$.$InitSubclass$ = function $$AdfDhtmlChooseDatePeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfValueChangeEvent$$.$VALUE_CHANGE_TYPE$);
  this.$_CHOOSE_MONTH_ID$ = "mSel";
  this.$_YEAR_SPIN_ID$ = "ys";
  this.$_NEXT_MONTH_ID$ = "nm";
  this.$_PREV_MONTH_ID$ = "pm";
  this.$_CAL_GRID_ID$ = "cg";
  this.$_HOUR_SPIN_ID$ = "hs";
  this.$_MIN_SPIN_ID$ = "ms";
  this.$_SEC_SPIN_ID$ = "ss";
  this.$_AMPM_ID$ = "ap";
  this.$_TIMEZONE_ID$ = "tz";
  this.$_TIMEZONE_DISPID_ID$ = "tzDispId";
  this.$_CONTENT_ID$ = "content";
  this.$_INCREMENT_ID$ = "increment";
  this.$_DECREMENT_ID$ = "decrement";
  this.$_CURRDAY_ID_ATTR_NAME$ = "data-afr-adfCDay";
  this.$_CURRMONTH_ID_ATTR_NAME$ = "data-afr-adfCMonth";
  this.$_CURRYEAR_ID_ATTR_NAME$ = "data-afr-adfCYear";
  this.$_DAY_ID_ATTR_NAME$ = "data-afr-adfDay";
  this.$_SELECTED_DATE$ = "data-afr-adfseld";
  this.$_SHOW_DATE$ = "data-afr-adfshwd";
  this.$_TODAY_DATE$ = "data-afr-adftdy";
  this.$_RANGE_START$ = "data-afr-adfrs";
  this.$_RANGE_END$ = "data-afr-adfre";
  this.$_ALLOW_TIME_SELECTION$ = "data-afr-adfts";
  this.$_FIRST_DAY_OF_WEEK$ = "data-afr-adffdow";
  this.$_NUMBER_HOUR_DIGITS$ = "data-afr-adfhh";
  this.$_NUMBER_MINUTE_DIGITS$ = "data-afr-adfmm";
  this.$_NUMBER_SECOND_DIGITS$ = "data-afr-adfss";
  this.$_SHOW_TIMEZONE$ = "data-afr-adftz";
  this.$_SHOW_24_HOUR_FORMAT$ = "data-afr-adf24";
  this.$_COUNT_ZERO_BASED$ = "data-afr-adfcnt0";
  this.$_SHOW_AM_PM$ = "data-afr-adfampm";
  this.$_SHOW_AM_PM_IN_2_ROWS$ = "data-afr-adfampm2";
  this.$_CLIENT_TIME_ZONE$ = "data-afr-adfctz";
  this.$_PARENT_ID$ = "data-afr-par";
  this.$_LOCALE$ = "data-afr-loc";
  this.$_IS_FETCH$ = "data-afr-fetch";
  this.$_LEAD_ZERO$ = "_adfLeadingZero";
  this.$THAI_BUDDHIST$ = "th_TH";
  this.$_THAI_BUDDHIST_YEAR_OFFSET$ = 543;
  this.$SELECTED_DATE$ = "selectedDate";
  this.$TIMEZONE_SEL_DISPLAY$ = "tzSelDisp";
  this.$TIMEZONE_SEL_ID$ = "tzSelId";
  this.$_SEL_DAY_CLASS$ = "p_AFSelected";
  this.$_DISABLED_STYLE_CLASS$ = "p_AFDisabled";
  this.$_MAX_CLIENT_RANGE_YEARS$ = 6;
  this.$_DISABLED_DAYS_OF_WEEK_KEYS$ = {sun:0, mon:1, tue:2, wed:3, thu:4, fri:5, sat:6};
  this.$_DISABLED_MONTHS_KEYS$ = {jan:0, feb:1, mar:2, apr:3, may:4, jun:5, jul:6, aug:7, sep:8, oct:9, nov:10, dec:11}
};
$goog$exportSymbol$$("AdfDhtmlChooseDatePeer.InitSubclass", $AdfDhtmlChooseDatePeer$$.$InitSubclass$);
$AdfDhtmlChooseDatePeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlChooseDatePeer$$$$$InitDomElement$$($component$$483$$, $domElement$$98$$) {
  $AdfDhtmlChooseDatePeer$$.$superclass$.$InitDomElement$.call(this, $component$$483$$, $domElement$$98$$);
  $component$$483$$.getDisabledDays() != $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__getClientRangeStartDate$$($domElement$$98$$) == $JSCompiler_alias_NULL$$ && $JSCompiler_StaticMethods__getClientRangeEndDate$$($domElement$$98$$) == $JSCompiler_alias_NULL$$) && $JSCompiler_StaticMethods__createOrUpdateClientStartAndEndRange$$($domElement$$98$$, $JSCompiler_StaticMethods__getShowDate$$($domElement$$98$$));
  this.$BindToComponent$($component$$483$$, $JSCompiler_StaticMethods__renderChooseDateDom$$(this, $component$$483$$, $domElement$$98$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlChooseDatePeer$$.prototype.$InitDomElement$});
$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlChooseDatePeer$$$$$HandleComponentClick$$($componentEvent$$78_exclude_nextSubid_prevSubid$$) {
  var $eventTarget$$31$$ = $componentEvent$$78_exclude_nextSubid_prevSubid$$.$getNativeEventTarget$(), $component$$484$$ = $componentEvent$$78_exclude_nextSubid_prevSubid$$.getSource();
  $componentEvent$$78_exclude_nextSubid_prevSubid$$.$isLeftButtonPressed$() && ($JSCompiler_StaticMethods__isInCalendarGrid$$($eventTarget$$31$$) ? ($componentEvent$$78_exclude_nextSubid_prevSubid$$ = $JSCompiler_StaticMethods__getParentID$$(this.$getDomElement$()) && this.$getComponent$().getParent() instanceof AdfRichDialog, $JSCompiler_StaticMethods__selectDateInGrid$$(this, $eventTarget$$31$$, $component$$484$$, !$componentEvent$$78_exclude_nextSubid_prevSubid$$)) : ($componentEvent$$78_exclude_nextSubid_prevSubid$$ = 
  $AdfRichUIPeer$$.$CreateSubId$($component$$484$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_PREV_MONTH_ID$), $AdfDomUtils$$.$isAncestorOrSelf$($AdfAgent$$.$AGENT$.getElementById($componentEvent$$78_exclude_nextSubid_prevSubid$$), $eventTarget$$31$$) ? $JSCompiler_StaticMethods__manipulateMonthValue$$(this, $component$$484$$, $JSCompiler_alias_FALSE$$) : ($componentEvent$$78_exclude_nextSubid_prevSubid$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$484$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_NEXT_MONTH_ID$), 
  $AdfDomUtils$$.$isAncestorOrSelf$($AdfAgent$$.$AGENT$.getElementById($componentEvent$$78_exclude_nextSubid_prevSubid$$), $eventTarget$$31$$) && $JSCompiler_StaticMethods__manipulateMonthValue$$(this, $component$$484$$, $JSCompiler_alias_TRUE$$))))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlChooseDatePeer$$$$$HandleComponentKeyDown$$($componentEvent$$79$$) {
  var $eventTarget$$32_evt$$81$$ = $componentEvent$$79$$.$getNativeEvent$(), $hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($eventTarget$$32_evt$$81$$), $component$$485$$ = $componentEvent$$79$$.getSource(), $cancelEvt$$1_closeDialog$$;
  if(!$eventTarget$$32_evt$$81$$.ctrlKey) {
    $eventTarget$$32_evt$$81$$ = $componentEvent$$79$$.$getNativeEventTarget$();
    switch($hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$) {
      case $AdfKeyStroke$$.$ARROWUP_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
        $JSCompiler_StaticMethods__isInCalendarGrid$$($eventTarget$$32_evt$$81$$) && ($cancelEvt$$1_closeDialog$$ = this.$_handleArrowKeys$($hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$, $eventTarget$$32_evt$$81$$));
        break;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        if($JSCompiler_StaticMethods__isInCalendarGrid$$($eventTarget$$32_evt$$81$$)) {
          $cancelEvt$$1_closeDialog$$ = $JSCompiler_alias_TRUE$$, $hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$485$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_HOUR_SPIN_ID$), $AdfPage$$.$PAGE$.$findComponent$($hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$) && ($cancelEvt$$1_closeDialog$$ = $JSCompiler_alias_FALSE$$), $JSCompiler_StaticMethods__selectDateInGrid$$(this, $eventTarget$$32_evt$$81$$, $component$$485$$, $cancelEvt$$1_closeDialog$$), 
          $cancelEvt$$1_closeDialog$$ = $JSCompiler_alias_TRUE$$
        }else {
          $hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$485$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_PREV_MONTH_ID$);
          if($AdfDomUtils$$.$isAncestorOrSelf$($AdfAgent$$.$AGENT$.getElementById($hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$), $eventTarget$$32_evt$$81$$)) {
            $JSCompiler_StaticMethods__manipulateMonthValue$$(this, $component$$485$$, $JSCompiler_alias_FALSE$$);
            return
          }
          $hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$485$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_NEXT_MONTH_ID$);
          if($AdfDomUtils$$.$isAncestorOrSelf$($AdfAgent$$.$AGENT$.getElementById($hourSubId_keyCode$$34_nextSubid$$1_prevSubid$$1$$), $eventTarget$$32_evt$$81$$)) {
            $JSCompiler_StaticMethods__manipulateMonthValue$$(this, $component$$485$$, $JSCompiler_alias_TRUE$$);
            return
          }
        }
        break;
      case $AdfKeyStroke$$.$ENTER_KEY$:
        $JSCompiler_StaticMethods__isInCalendarGrid$$($eventTarget$$32_evt$$81$$) && ($JSCompiler_StaticMethods__selectDateInGrid$$(this, $eventTarget$$32_evt$$81$$, $component$$485$$, $JSCompiler_alias_TRUE$$), $cancelEvt$$1_closeDialog$$ = $JSCompiler_alias_TRUE$$)
    }
    if($cancelEvt$$1_closeDialog$$) {
      return $componentEvent$$79$$.cancel(), $JSCompiler_alias_FALSE$$
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentValueChange$ = function $$AdfDhtmlChooseDatePeer$$$$$HandleComponentValueChange$$($componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$) {
  var $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.getSource().$getClientId$(), $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$ = this.$getComponent$(), $chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$ = $AdfRichUIPeer$$.$CreateSubId$($chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$.$getClientId$(), 
  $AdfDhtmlChooseDatePeer$$.$_CHOOSE_MONTH_ID$);
  if($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ == $chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$) {
    $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$ = $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.getSource(), $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.$_ignoreVCE$ ? delete $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.$_ignoreVCE$ : ($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = 
    $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.$getClientId$(), $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.substring(0, $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.lastIndexOf("::")), 
    $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $AdfPage$$.$PAGE$.$findComponent$($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$), $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$ = 
    $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.$getPeer$(), $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$.bind($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$), $chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$ = 
    $JSCompiler_StaticMethods__getShowDate$$(this.$getDomElement$()), $JSCompiler_StaticMethods__queueGridRefresh$$($chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$, $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$, parseInt($componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.getValue()), 
    $chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$.getFullYear()))
  }else {
    if($chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$ = $AdfRichUIPeer$$.$CreateSubId$($chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_YEAR_SPIN_ID$), $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ == $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$) {
      if($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$.getSource(), $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.$_ignoreVCE$) {
        delete $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.$_ignoreVCE$
      }else {
        $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$ = $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.getValue();
        $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.$getClientId$();
        $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.substring(0, $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.lastIndexOf("::"));
        $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$ = $AdfPage$$.$PAGE$.$findComponent$($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$);
        $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$ = $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$.$getPeer$();
        $chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$.bind($chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$);
        var $chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$ = this.$getDomElement$(), $curDisplayDate$$inline_1421$$ = $JSCompiler_StaticMethods__getShowDate$$($chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$);
        $JSCompiler_StaticMethods__isThaiBuddistCalendar$$($chooseMonthSubid_curDisplayDate$$inline_1410_domElement$$inline_1420$$) && ($componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$ -= $AdfDhtmlChooseDatePeer$$.$_THAI_BUDDHIST_YEAR_OFFSET$);
        $JSCompiler_StaticMethods__queueGridRefresh$$($chooseDatePeer$$inline_1409_chooseDatePeer$$inline_1419_chooseYearSubid_component$$486$$, $chooseDate$$inline_1408_chooseDate$$inline_1418_chooseDateId$$inline_1407_chooseDateId$$inline_1417_monthChooseId$$inline_1406_sourceId$$1_yrSpin$$inline_1414_yrSpinId$$inline_1416$$, $curDisplayDate$$inline_1421$$.getMonth(), $componentEvent$$80_displayYear$$inline_1415_monthChoose$$inline_1405_year$$inline_1422$$)
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.HandleComponentValueChange", {$HandleComponentValueChange$:$AdfDhtmlChooseDatePeer$$.prototype.$HandleComponentValueChange$});
$AdfDhtmlChooseDatePeer$$.prototype.$hardRefreshDOM$ = function $$AdfDhtmlChooseDatePeer$$$$$hardRefreshDOM$$() {
  var $component$$487$$ = this.$getComponent$(), $placeHolderElement$$ = this.$getDomElement$();
  domNode = $AdfAgent$$.$AGENT$.getElementById($component$$487$$.$getClientId$());
  this.$BindToComponent$($component$$487$$, $JSCompiler_StaticMethods__renderChooseDateDom$$(this, $component$$487$$, $placeHolderElement$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseDatePeer.prototype.hardRefreshDOM", {$hardRefreshDOM$:$AdfDhtmlChooseDatePeer$$.prototype.$hardRefreshDOM$});
function $JSCompiler_StaticMethods__getGridElement$$($JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$) {
  $JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$ = $JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$.$getComponent$();
  $JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$ = $AdfRichUIPeer$$.$CreateSubId$($JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_CAL_GRID_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($JSCompiler_StaticMethods__getGridElement$self_component$$488_gridid$$)
}
$AdfDhtmlChooseDatePeer$$.prototype.$_getCurrentSelection$ = function $$AdfDhtmlChooseDatePeer$$$$$_getCurrentSelection$$($clearStyle$$) {
  if(this.$getDomElement$().getAttribute($AdfDhtmlChooseDatePeer$$.$_CURRDAY_ID_ATTR_NAME$)) {
    var $rows$$13$$ = $JSCompiler_StaticMethods__getGridElement$$(this).childNodes[0].childNodes;
    for(i = 0;i < $rows$$13$$.length;i++) {
      if("TR" == $AdfAgent$$.$AGENT$.$getNodeName$($rows$$13$$[i])) {
        var $tr$$1$$ = $rows$$13$$[i];
        for(j = 0;j < $tr$$1$$.childNodes.length;j++) {
          var $child$$12$$ = $tr$$1$$.childNodes[j];
          if("TD" == $AdfAgent$$.$AGENT$.$getNodeName$($child$$12$$) && $AdfDomUtils$$.$containsCSSClassName$($child$$12$$, $AdfDhtmlChooseDatePeer$$.$_SEL_DAY_CLASS$)) {
            return $clearStyle$$ && $AdfDomUtils$$.$removeCSSClassName$($child$$12$$, $AdfDhtmlChooseDatePeer$$.$_SEL_DAY_CLASS$), $child$$12$$
          }
        }
      }
    }
  }
  return $JSCompiler_alias_NULL$$
};
$AdfDhtmlChooseDatePeer$$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlChooseDatePeer$$$$$_handleArrowKeys$$($keyCode$$35$$, $tdcell$$) {
  var $targetElement$$25$$ = $JSCompiler_alias_NULL$$, $nextRow$$2_pos$$19_prevRow$$2$$;
  switch($keyCode$$35$$) {
    case $AdfKeyStroke$$.$ARROWUP_KEY$:
    ;
    case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      if($targetElement$$25$$ = $keyCode$$35$$ == $AdfKeyStroke$$.$ARROWUP_KEY$ ? $AdfDomUtils$$.$getPreviousElement$($tdcell$$.parentNode) : $AdfDomUtils$$.$getNextElement$($tdcell$$.parentNode)) {
        $nextRow$$2_pos$$19_prevRow$$2$$ = $AdfDomUtils$$.$getElementPosition$($tdcell$$), $targetElement$$25$$ = $AdfDomUtils$$.$getChildElementByPosition$($targetElement$$25$$, $tdcell$$.nodeType, $nextRow$$2_pos$$19_prevRow$$2$$)
      }
      break;
    case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
      $targetElement$$25$$ = $AdfDomUtils$$.$getNextElement$($tdcell$$);
      !$targetElement$$25$$ && $tdcell$$.parentNode != $JSCompiler_alias_NULL$$ && ($nextRow$$2_pos$$19_prevRow$$2$$ = $AdfDomUtils$$.$getNextElement$($tdcell$$.parentNode)) && ($targetElement$$25$$ = $AdfDomUtils$$.$getFirstChildElement$($nextRow$$2_pos$$19_prevRow$$2$$));
      break;
    case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
      $targetElement$$25$$ = $AdfDomUtils$$.$getPreviousElement$($tdcell$$), !$targetElement$$25$$ && $tdcell$$.parentNode != $JSCompiler_alias_NULL$$ && ($nextRow$$2_pos$$19_prevRow$$2$$ = $AdfDomUtils$$.$getPreviousElement$($tdcell$$.parentNode)) && ($targetElement$$25$$ = $AdfDomUtils$$.$getLastChildElement$($nextRow$$2_pos$$19_prevRow$$2$$))
  }
  return $targetElement$$25$$ && $JSCompiler_StaticMethods__isInCalendarGrid$$($targetElement$$25$$) ? ($tdcell$$ && $tdcell$$.setAttribute("tabIndex", "-1"), $targetElement$$25$$.setAttribute("tabIndex", "0"), $AdfFocusUtils$$.$focusElement$($targetElement$$25$$), $JSCompiler_alias_TRUE$$) : $JSCompiler_alias_FALSE$$
};
function $JSCompiler_StaticMethods__isInCalendarGrid$$($day$$4_node$$71$$) {
  return $day$$4_node$$71$$ && "TD" == $AdfAgent$$.$AGENT$.$getNodeName$($day$$4_node$$71$$) && ($day$$4_node$$71$$ = parseInt($AdfAgent$$.$AGENT$.$getTextContent$($day$$4_node$$71$$)), !isNaN($day$$4_node$$71$$)) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
}
function $JSCompiler_StaticMethods__manipulateMonthValue$$($JSCompiler_StaticMethods__manipulateMonthValue$self$$, $component$$490$$, $chooseMonth_chooseMonthSubid$$1_increment$$1$$) {
  var $domElement$$100$$ = $JSCompiler_StaticMethods__manipulateMonthValue$self$$.$getDomElement$(), $curDisplayDate$$2_year$$3$$ = $JSCompiler_StaticMethods__getShowDate$$($domElement$$100$$), $month$$2$$ = $curDisplayDate$$2_year$$3$$.getMonth(), $curDisplayDate$$2_year$$3$$ = $curDisplayDate$$2_year$$3$$.getFullYear();
  $chooseMonth_chooseMonthSubid$$1_increment$$1$$ ? $month$$2$$++ : $month$$2$$--;
  $chooseMonth_chooseMonthSubid$$1_increment$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$490$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_CHOOSE_MONTH_ID$);
  $chooseMonth_chooseMonthSubid$$1_increment$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($chooseMonth_chooseMonthSubid$$1_increment$$1$$);
  var $chooseYearSubid$$1_yearChange_yrSpin$$1$$ = 0;
  0 > $month$$2$$ ? ($month$$2$$ += 12, $chooseYearSubid$$1_yearChange_yrSpin$$1$$ = -1) : 11 < $month$$2$$ && ($month$$2$$ -= 12, $chooseYearSubid$$1_yearChange_yrSpin$$1$$ = 1);
  if($chooseYearSubid$$1_yearChange_yrSpin$$1$$) {
    var $curDisplayDate$$2_year$$3$$ = $curDisplayDate$$2_year$$3$$ + $chooseYearSubid$$1_yearChange_yrSpin$$1$$, $chooseYearSubid$$1_yearChange_yrSpin$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$490$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_YEAR_SPIN_ID$), $chooseYearSubid$$1_yearChange_yrSpin$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($chooseYearSubid$$1_yearChange_yrSpin$$1$$), $displayYear$$1_max$$2$$ = $chooseYearSubid$$1_yearChange_yrSpin$$1$$.getMaximum(), $min$$4$$ = $chooseYearSubid$$1_yearChange_yrSpin$$1$$.getMinimum();
    if($min$$4$$ && $curDisplayDate$$2_year$$3$$ < $min$$4$$ || $displayYear$$1_max$$2$$ && $curDisplayDate$$2_year$$3$$ > $displayYear$$1_max$$2$$) {
      return
    }
    $chooseYearSubid$$1_yearChange_yrSpin$$1$$.$_ignoreVCE$ = $JSCompiler_alias_TRUE$$;
    $displayYear$$1_max$$2$$ = $curDisplayDate$$2_year$$3$$;
    $JSCompiler_StaticMethods__isThaiBuddistCalendar$$($domElement$$100$$) && ($displayYear$$1_max$$2$$ += $AdfDhtmlChooseDatePeer$$.$_THAI_BUDDHIST_YEAR_OFFSET$);
    $chooseYearSubid$$1_yearChange_yrSpin$$1$$.setProperty("value", "" + $displayYear$$1_max$$2$$)
  }
  $chooseMonth_chooseMonthSubid$$1_increment$$1$$.$_ignoreVCE$ = $JSCompiler_alias_TRUE$$;
  $chooseMonth_chooseMonthSubid$$1_increment$$1$$.setProperty("value", "" + ($month$$2$$ + 12) % 12);
  $JSCompiler_StaticMethods__queueGridRefresh$$($JSCompiler_StaticMethods__manipulateMonthValue$self$$, $component$$490$$, $month$$2$$, $curDisplayDate$$2_year$$3$$)
}
function $JSCompiler_StaticMethods__queueGridRefresh$$($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$, $component$$491$$, $month$$3_startOfClientRange$$, $endOfClientRange_year$$4$$) {
  var $agent$$183$$ = $AdfAgent$$.$AGENT$, $rootDomElement$$12$$ = $JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$.$getDomElement$(), $requiresServerTrip_tableElem$$1$$ = $JSCompiler_alias_FALSE$$, $hour$$2_hourSubId$$2_showDate$$ = new Date($JSCompiler_StaticMethods__getShowDate$$($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$.$getDomElement$()).getTime());
  $hour$$2_hourSubId$$2_showDate$$.setDate(1);
  $hour$$2_hourSubId$$2_showDate$$.setMonth($month$$3_startOfClientRange$$);
  $hour$$2_hourSubId$$2_showDate$$.setYear($endOfClientRange_year$$4$$);
  $AdfAssert$$.assert($rootDomElement$$12$$ != $JSCompiler_alias_NULL$$);
  $AdfAgent$$.$AGENT$.setAttribute($rootDomElement$$12$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_DATE$, $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsString($hour$$2_hourSubId$$2_showDate$$));
  $month$$3_startOfClientRange$$ = $JSCompiler_StaticMethods__getClientRangeStartDate$$($rootDomElement$$12$$);
  $endOfClientRange_year$$4$$ = $JSCompiler_StaticMethods__getClientRangeEndDate$$($rootDomElement$$12$$);
  if($month$$3_startOfClientRange$$ != $JSCompiler_alias_NULL$$ && $endOfClientRange_year$$4$$ != $JSCompiler_alias_NULL$$ && ($hour$$2_hourSubId$$2_showDate$$ < $month$$3_startOfClientRange$$ || $hour$$2_hourSubId$$2_showDate$$ > $endOfClientRange_year$$4$$)) {
    $requiresServerTrip_tableElem$$1$$ = $JSCompiler_alias_TRUE$$
  }
  if($requiresServerTrip_tableElem$$1$$) {
    $JSCompiler_StaticMethods__queueAdfContentFetchEvent$$($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$, $component$$491$$, $hour$$2_hourSubId$$2_showDate$$)
  }else {
    $requiresServerTrip_tableElem$$1$$ = $agent$$183$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($component$$491$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_CAL_GRID_ID$));
    $agent$$183$$.$elementsRemoved$($requiresServerTrip_tableElem$$1$$);
    day = $agent$$183$$.getAttribute($rootDomElement$$12$$, $AdfDhtmlChooseDatePeer$$.$_CURRDAY_ID_ATTR_NAME$);
    $month$$3_startOfClientRange$$ = $agent$$183$$.getAttribute($rootDomElement$$12$$, $AdfDhtmlChooseDatePeer$$.$_CURRMONTH_ID_ATTR_NAME$);
    $endOfClientRange_year$$4$$ = $agent$$183$$.getAttribute($rootDomElement$$12$$, $AdfDhtmlChooseDatePeer$$.$_CURRYEAR_ID_ATTR_NAME$);
    var $hour$$2_hourSubId$$2_showDate$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$491$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_HOUR_SPIN_ID$), $ampm$$1_ampmComp$$1_hourComp$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($hour$$2_hourSubId$$2_showDate$$), $min$$5$$ = $hour$$2_hourSubId$$2_showDate$$ = 0, $sec$$1$$ = 0;
    if($ampm$$1_ampmComp$$1_hourComp$$2$$ && ($hour$$2_hourSubId$$2_showDate$$ = $ampm$$1_ampmComp$$1_hourComp$$2$$.getValue(), $min$$5$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$491$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_MIN_SPIN_ID$)).getValue(), $sec$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$491$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_SEC_SPIN_ID$)).getValue(), $ampm$$1_ampmComp$$1_hourComp$$2$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($component$$491$$.$getClientId$(), 
    $AdfDhtmlChooseDatePeer$$.$_AMPM_ID$)))) {
      $ampm$$1_ampmComp$$1_hourComp$$2$$ = $ampm$$1_ampmComp$$1_hourComp$$2$$.getValue(), 12 == $hour$$2_hourSubId$$2_showDate$$ ? "0" == $ampm$$1_ampmComp$$1_hourComp$$2$$ && ($hour$$2_hourSubId$$2_showDate$$ = 0) : "1" == $ampm$$1_ampmComp$$1_hourComp$$2$$ && ($hour$$2_hourSubId$$2_showDate$$ = +$hour$$2_hourSubId$$2_showDate$$ + 12)
    }
    $JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$ = $JSCompiler_StaticMethods__buildCalendarDateMatrix$$($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$, $component$$491$$, $rootDomElement$$12$$, new Date($endOfClientRange_year$$4$$, $month$$3_startOfClientRange$$, day, $hour$$2_hourSubId$$2_showDate$$, $min$$5$$, $sec$$1$$));
    $requiresServerTrip_tableElem$$1$$.parentNode.replaceChild($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$, $requiresServerTrip_tableElem$$1$$);
    $agent$$183$$.$elementsAdded$($JSCompiler_StaticMethods__queueGridRefresh$self_newDateMatrixDOM$$)
  }
}
function $JSCompiler_StaticMethods__queueAdfContentFetchEvent$$($JSCompiler_StaticMethods__queueAdfContentFetchEvent$self_rootDOMElement$$, $component$$492_contentFetchEvt$$, $showDate$$1$$) {
  var $params$$32$$ = {};
  $params$$32$$.month = $showDate$$1$$.getMonth();
  $params$$32$$.year = $showDate$$1$$.getFullYear();
  $JSCompiler_StaticMethods__queueAdfContentFetchEvent$self_rootDOMElement$$ = $JSCompiler_StaticMethods__queueAdfContentFetchEvent$self_rootDOMElement$$.$getDomElement$();
  $AdfAgent$$.$AGENT$.setAttribute($JSCompiler_StaticMethods__queueAdfContentFetchEvent$self_rootDOMElement$$, $AdfDhtmlChooseDatePeer$$.$_IS_FETCH$, "true");
  $JSCompiler_StaticMethods__createOrUpdateClientStartAndEndRange$$($JSCompiler_StaticMethods__queueAdfContentFetchEvent$self_rootDOMElement$$, $showDate$$1$$);
  $component$$492_contentFetchEvt$$ = new $AdfContentFetchEvent$$($component$$492_contentFetchEvt$$, $AdfContentFetchEvent$$.$FETCH_EVENT_TYPE$, $params$$32$$);
  $component$$492_contentFetchEvt$$.$preventUserInput$();
  $component$$492_contentFetchEvt$$.$queue$()
}
function $JSCompiler_StaticMethods__createOrUpdateClientStartAndEndRange$$($rootDOMElement$$1$$, $newShowDate$$) {
  $newShowDate$$.setYear($newShowDate$$.getFullYear() - $AdfDhtmlChooseDatePeer$$.$_MAX_CLIENT_RANGE_YEARS$ / 2);
  $newShowDate$$.setDate(1);
  $AdfAssert$$.assert($rootDOMElement$$1$$ != $JSCompiler_alias_NULL$$);
  $AdfAgent$$.$AGENT$.setAttribute($rootDOMElement$$1$$, $AdfDhtmlChooseDatePeer$$.$_RANGE_START$, $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsString($newShowDate$$));
  $newShowDate$$.setYear($newShowDate$$.getFullYear() + $AdfDhtmlChooseDatePeer$$.$_MAX_CLIENT_RANGE_YEARS$);
  $AdfAssert$$.assert($rootDOMElement$$1$$ != $JSCompiler_alias_NULL$$);
  $AdfAgent$$.$AGENT$.setAttribute($rootDOMElement$$1$$, $AdfDhtmlChooseDatePeer$$.$_RANGE_END$, $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsString($newShowDate$$))
}
function $JSCompiler_StaticMethods__selectDateInGrid$$($JSCompiler_StaticMethods__selectDateInGrid$self$$, $tdcell$$1$$, $component$$494$$, $updateInput$$) {
  $AdfAssert$$.assert($tdcell$$1$$ != $JSCompiler_alias_NULL$$);
  var $clientId$$124_displayYear$$2_year$$5$$ = $component$$494$$.$getClientId$(), $rootDOMElement$$2$$ = $JSCompiler_StaticMethods__selectDateInGrid$self$$.$getDomElement$();
  if(!$AdfDomUtils$$.$containsCSSClassName$($tdcell$$1$$, $AdfDhtmlChooseDatePeer$$.$_DISABLED_STYLE_CLASS$)) {
    $JSCompiler_StaticMethods__selectDateInGrid$self$$.$_getCurrentSelection$($JSCompiler_alias_TRUE$$);
    $AdfDomUtils$$.$addCSSClassName$($tdcell$$1$$, $AdfDhtmlChooseDatePeer$$.$_SEL_DAY_CLASS$);
    var $day$$6$$ = parseInt($AdfAgent$$.$AGENT$.$getTextContent$($tdcell$$1$$)), $month$$4$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($clientId$$124_displayYear$$2_year$$5$$, $AdfDhtmlChooseDatePeer$$.$_CHOOSE_MONTH_ID$)).getValue(), $clientId$$124_displayYear$$2_year$$5$$ = $AdfPage$$.$PAGE$.$findComponent$($AdfRichUIPeer$$.$CreateSubId$($clientId$$124_displayYear$$2_year$$5$$, $AdfDhtmlChooseDatePeer$$.$_YEAR_SPIN_ID$)).getValue(), $clientId$$124_displayYear$$2_year$$5$$ = 
    $JSCompiler_StaticMethods__isThaiBuddistCalendar$$($rootDOMElement$$2$$) ? $clientId$$124_displayYear$$2_year$$5$$ - $AdfDhtmlChooseDatePeer$$.$_THAI_BUDDHIST_YEAR_OFFSET$ : $clientId$$124_displayYear$$2_year$$5$$, $dayattr$$1$$ = $tdcell$$1$$.getAttribute($AdfDhtmlChooseDatePeer$$.$_DAY_ID_ATTR_NAME$);
    $dayattr$$1$$ && ($dayattr$$1$$ == $AdfDhtmlChooseDatePeer$$.$_PREV_MONTH_ID$ ? ($month$$4$$--, -1 == $month$$4$$ && ($month$$4$$ = 11, $clientId$$124_displayYear$$2_year$$5$$--)) : $dayattr$$1$$ == $AdfDhtmlChooseDatePeer$$.$_NEXT_MONTH_ID$ && ($month$$4$$++, 12 == $month$$4$$ && ($month$$4$$ = 0, $clientId$$124_displayYear$$2_year$$5$$++)));
    $rootDOMElement$$2$$.setAttribute($AdfDhtmlChooseDatePeer$$.$_CURRDAY_ID_ATTR_NAME$, $day$$6$$);
    $rootDOMElement$$2$$.setAttribute($AdfDhtmlChooseDatePeer$$.$_CURRMONTH_ID_ATTR_NAME$, $month$$4$$);
    $rootDOMElement$$2$$.setAttribute($AdfDhtmlChooseDatePeer$$.$_CURRYEAR_ID_ATTR_NAME$, $clientId$$124_displayYear$$2_year$$5$$);
    $updateInput$$ == $JSCompiler_alias_TRUE$$ && $JSCompiler_StaticMethods__selectDateInGrid$self$$.$submitValueToInput$($tdcell$$1$$, $component$$494$$)
  }
}
function $JSCompiler_StaticMethods__renderChooseDateDom$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $rootDOMElement$$3_subIdArray$$1$$) {
  var $agent$$184$$ = $AdfAgent$$.$AGENT$, $chooseDateRootTable_laf$$23$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $clientId$$125_i$$193$$ = $component$$495_contentId$$3_contentNode$$14_timeEl$$.$getClientId$(), $oldCalendarMatrixRoot_rootNode$$1$$ = $AdfAgent$$.$AGENT$.getElementById($clientId$$125_i$$193$$);
  $JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$.$_childComponents$ = [];
  var $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ = $agent$$184$$.getAttribute($rootDOMElement$$3_subIdArray$$1$$, $AdfDhtmlChooseDatePeer$$.$_SELECTED_DATE$), $dateToBeSelected_newValue$$40_tmp$$ = $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ != $JSCompiler_alias_NULL$$ ? $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsObject($attrValue$$1_chooseDateRootTableBody_showDate$$2$$) : $JSCompiler_StaticMethods__getTodayDate$$($rootDOMElement$$3_subIdArray$$1$$), $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ = 
  $JSCompiler_StaticMethods__getShowDate$$($rootDOMElement$$3_subIdArray$$1$$);
  if($agent$$184$$.getAttribute($rootDOMElement$$3_subIdArray$$1$$, $AdfDhtmlChooseDatePeer$$.$_IS_FETCH$) != $JSCompiler_alias_NULL$$) {
    return $rootDOMElement$$3_subIdArray$$1$$.removeAttribute($AdfDhtmlChooseDatePeer$$.$_IS_FETCH$), $oldCalendarMatrixRoot_rootNode$$1$$ = $agent$$184$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$125_i$$193$$, $AdfDhtmlChooseDatePeer$$.$_CAL_GRID_ID$)), $JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$ = $JSCompiler_StaticMethods__buildCalendarDateMatrix$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, 
    $rootDOMElement$$3_subIdArray$$1$$, $dateToBeSelected_newValue$$40_tmp$$), $oldCalendarMatrixRoot_rootNode$$1$$.parentNode.replaceChild($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $oldCalendarMatrixRoot_rootNode$$1$$), $agent$$184$$.$elementsAdded$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$), $rootDOMElement$$3_subIdArray$$1$$
  }
  var $attrs$$6_startOfClientRange$$1$$ = $JSCompiler_StaticMethods__getClientRangeStartDate$$($rootDOMElement$$3_subIdArray$$1$$), $endOfClientRange$$1$$ = $JSCompiler_StaticMethods__getClientRangeEndDate$$($rootDOMElement$$3_subIdArray$$1$$), $shouldRemoveSelectedDateAttribute$$ = $JSCompiler_alias_TRUE$$;
  if($component$$495_contentId$$3_contentNode$$14_timeEl$$.getDisabledDays() != $JSCompiler_alias_NULL$$ && $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ != $JSCompiler_alias_NULL$$ && ($attrs$$6_startOfClientRange$$1$$ != $JSCompiler_alias_NULL$$ && $endOfClientRange$$1$$ != $JSCompiler_alias_NULL$$ && ($attrValue$$1_chooseDateRootTableBody_showDate$$2$$ < $attrs$$6_startOfClientRange$$1$$ || $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ > $endOfClientRange$$1$$) || $attrs$$6_startOfClientRange$$1$$ == 
  $JSCompiler_alias_NULL$$ && $endOfClientRange$$1$$ == $JSCompiler_alias_NULL$$)) {
    $JSCompiler_StaticMethods__queueAdfContentFetchEvent$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $attrValue$$1_chooseDateRootTableBody_showDate$$2$$), $shouldRemoveSelectedDateAttribute$$ = $JSCompiler_alias_FALSE$$
  }
  $shouldRemoveSelectedDateAttribute$$ && $rootDOMElement$$3_subIdArray$$1$$.removeAttribute($AdfDhtmlChooseDatePeer$$.$_SELECTED_DATE$);
  $chooseDateRootTable_laf$$23$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("table", {role:"group", cellpadding:"0", cellspacing:"0", border:"0", summary:"", "class":$chooseDateRootTable_laf$$23$$.getStyleClass("af|chooseDate"), id:$clientId$$125_i$$193$$, "data-afr-adfCDay":$dateToBeSelected_newValue$$40_tmp$$.getDate(), "data-afr-adfCMonth":$dateToBeSelected_newValue$$40_tmp$$.getMonth(), "data-afr-adfCYear":$dateToBeSelected_newValue$$40_tmp$$.getFullYear()});
  $attrs$$6_startOfClientRange$$1$$ = $rootDOMElement$$3_subIdArray$$1$$.attributes;
  for($clientId$$125_i$$193$$ = 0;$clientId$$125_i$$193$$ < $attrs$$6_startOfClientRange$$1$$.length;$clientId$$125_i$$193$$++) {
    $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ = $agent$$184$$.getAttribute($chooseDateRootTable_laf$$23$$, $attrs$$6_startOfClientRange$$1$$[$clientId$$125_i$$193$$].name), $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ == $JSCompiler_alias_NULL$$ && $agent$$184$$.setAttribute($chooseDateRootTable_laf$$23$$, $attrs$$6_startOfClientRange$$1$$[$clientId$$125_i$$193$$].name, $agent$$184$$.getAttribute($rootDOMElement$$3_subIdArray$$1$$, $attrs$$6_startOfClientRange$$1$$[$clientId$$125_i$$193$$].name))
  }
  $attrValue$$1_chooseDateRootTableBody_showDate$$2$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("tbody", {}, $chooseDateRootTable_laf$$23$$);
  $attrValue$$1_chooseDateRootTableBody_showDate$$2$$.appendChild($JSCompiler_StaticMethods__buildHeaderDOM$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $rootDOMElement$$3_subIdArray$$1$$));
  $attrValue$$1_chooseDateRootTableBody_showDate$$2$$.appendChild($JSCompiler_StaticMethods__buildWallCalendarDOM$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $rootDOMElement$$3_subIdArray$$1$$, $dateToBeSelected_newValue$$40_tmp$$));
  $AdfAssert$$.assert($rootDOMElement$$3_subIdArray$$1$$ != $JSCompiler_alias_NULL$$);
  $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$3_subIdArray$$1$$, $AdfDhtmlChooseDatePeer$$.$_ALLOW_TIME_SELECTION$) != $JSCompiler_alias_NULL$$ && ($attrValue$$1_chooseDateRootTableBody_showDate$$2$$.appendChild($JSCompiler_StaticMethods__buildTimeSelectionDOM$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $rootDOMElement$$3_subIdArray$$1$$, $dateToBeSelected_newValue$$40_tmp$$)), $AdfAssert$$.assert($rootDOMElement$$3_subIdArray$$1$$ != 
  $JSCompiler_alias_NULL$$), $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$3_subIdArray$$1$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_TIMEZONE$) != $JSCompiler_alias_NULL$$ && $attrValue$$1_chooseDateRootTableBody_showDate$$2$$.appendChild($JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$$($JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$, $rootDOMElement$$3_subIdArray$$1$$)));
  $rootDOMElement$$3_subIdArray$$1$$ = [$AdfRichUIPeer$$.$CreateSubId$($component$$495_contentId$$3_contentNode$$14_timeEl$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_HOUR_SPIN_ID$), $AdfRichUIPeer$$.$CreateSubId$($component$$495_contentId$$3_contentNode$$14_timeEl$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_MIN_SPIN_ID$), $AdfRichUIPeer$$.$CreateSubId$($component$$495_contentId$$3_contentNode$$14_timeEl$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_SEC_SPIN_ID$)];
  for($clientId$$125_i$$193$$ in $rootDOMElement$$3_subIdArray$$1$$) {
    if($component$$495_contentId$$3_contentNode$$14_timeEl$$ = $agent$$184$$.getElementById($rootDOMElement$$3_subIdArray$$1$$[$clientId$$125_i$$193$$])) {
      $component$$495_contentId$$3_contentNode$$14_timeEl$$.setAttribute($AdfDhtmlChooseDatePeer$$.$_LEAD_ZERO$, $JSCompiler_alias_TRUE$$), $component$$495_contentId$$3_contentNode$$14_timeEl$$ = $AdfRichUIPeer$$.$CreateSubId$($rootDOMElement$$3_subIdArray$$1$$[$clientId$$125_i$$193$$], $AdfDhtmlChooseDatePeer$$.$_CONTENT_ID$), $component$$495_contentId$$3_contentNode$$14_timeEl$$ = $AdfAgent$$.$AGENT$.getElementById($component$$495_contentId$$3_contentNode$$14_timeEl$$), $dateToBeSelected_newValue$$40_tmp$$ = 
      $component$$495_contentId$$3_contentNode$$14_timeEl$$.value, $AdfAssert$$.$assertString$($dateToBeSelected_newValue$$40_tmp$$), $dateToBeSelected_newValue$$40_tmp$$ = parseFloat($dateToBeSelected_newValue$$40_tmp$$), isNaN($dateToBeSelected_newValue$$40_tmp$$) || 9 < $dateToBeSelected_newValue$$40_tmp$$ || ($dateToBeSelected_newValue$$40_tmp$$ = "0" + $dateToBeSelected_newValue$$40_tmp$$, "INPUT" == $component$$495_contentId$$3_contentNode$$14_timeEl$$.tagName ? ($component$$495_contentId$$3_contentNode$$14_timeEl$$.value = 
      $dateToBeSelected_newValue$$40_tmp$$, $component$$495_contentId$$3_contentNode$$14_timeEl$$.title = $dateToBeSelected_newValue$$40_tmp$$) : $AdfAgent$$.$AGENT$.$setTextContent$($component$$495_contentId$$3_contentNode$$14_timeEl$$, $dateToBeSelected_newValue$$40_tmp$$))
    }
  }
  $agent$$184$$.$elementsRemoved$($oldCalendarMatrixRoot_rootNode$$1$$);
  $oldCalendarMatrixRoot_rootNode$$1$$.parentNode.replaceChild($chooseDateRootTable_laf$$23$$, $oldCalendarMatrixRoot_rootNode$$1$$);
  $agent$$184$$.$elementsAdded$($chooseDateRootTable_laf$$23$$);
  $AdfPage$$.$PAGE$.$addComponents$.apply($AdfPage$$.$PAGE$, $JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$.$_childComponents$);
  delete $JSCompiler_StaticMethods__renderChooseDateDom$self_newCalendarMatrixRoot$$.$_childComponents$;
  return $chooseDateRootTable_laf$$23$$
}
function $JSCompiler_StaticMethods__buildHeaderDOM$$($JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$, $cliendId_component$$496$$, $nextMonthText_rootDOMElement$$4_selectedYear$$) {
  var $laf$$24$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  $cliendId_component$$496$$ = $cliendId_component$$496$$.$getClientId$();
  var $monthNames_showDate$$3$$ = $JSCompiler_StaticMethods__getLocaleSymbols$$($nextMonthText_rootDOMElement$$4_selectedYear$$).$getMonths$().slice(0, 12), $headerRow$$1$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {}), $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$24$$.getStyleClass("af|chooseDate::month-year-row"), align:"center", colspan:7}, $headerRow$$1$$), $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$ = 
  $JSCompiler_StaticMethods__createAndAppendElement$$("table", {cellpadding:"0", cellspacing:"0", border:"0", summary:"", role:"presentation"}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$), $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("tbody", {}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$), $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("tr", 
  {}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$), $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$24$$.getStyleClass("af|chooseDate::prev-month-arrow-cell")}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$), $monthSelectItems_prevMonthText_selectMonthSpan$$ = $laf$$24$$.$getTranslatedString$("af_chooseDate.TIP_PREVIOUS_MONTH");
  $JSCompiler_StaticMethods__createAndAppendElement$$("a", {role:"button", "aria-label":$monthSelectItems_prevMonthText_selectMonthSpan$$, href:"#", onclick:"this.focus(); return false", "class":$laf$$24$$.getStyleClass("af|chooseDate::prev-month-arrow"), id:$AdfRichUIPeer$$.$CreateSubId$($cliendId_component$$496$$, $AdfDhtmlChooseDatePeer$$.$_PREV_MONTH_ID$), title:$monthSelectItems_prevMonthText_selectMonthSpan$$}, $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$);
  for(var $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$), $monthSelectItems_prevMonthText_selectMonthSpan$$ = [], $i$$194$$ = 0;$i$$194$$ < $monthNames_showDate$$3$$.length;$i$$194$$++) {
    var $selectItem$$1$$ = {};
    $selectItem$$1$$[$i$$194$$] = $monthNames_showDate$$3$$[$i$$194$$];
    $monthSelectItems_prevMonthText_selectMonthSpan$$.push($selectItem$$1$$)
  }
  $monthNames_showDate$$3$$ = $JSCompiler_StaticMethods__getShowDate$$($nextMonthText_rootDOMElement$$4_selectedYear$$);
  $monthSelectItems_prevMonthText_selectMonthSpan$$ = $JSCompiler_StaticMethods__buildSelectOneChoiceElement$$($JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$, $AdfRichUIPeer$$.$CreateSubId$($cliendId_component$$496$$, $AdfDhtmlChooseDatePeer$$.$_CHOOSE_MONTH_ID$), $laf$$24$$.getStyleClass("af|chooseDate::choice-list-content"), $laf$$24$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_MONTH"), $monthSelectItems_prevMonthText_selectMonthSpan$$, $monthNames_showDate$$3$$.getMonth());
  $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$.appendChild($monthSelectItems_prevMonthText_selectMonthSpan$$);
  $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$24$$.getStyleClass("af|chooseDate::year-selector-cell")}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$);
  $nextMonthText_rootDOMElement$$4_selectedYear$$ = $monthNames_showDate$$3$$.getFullYear() + ($JSCompiler_StaticMethods__isThaiBuddistCalendar$$($nextMonthText_rootDOMElement$$4_selectedYear$$) ? $AdfDhtmlChooseDatePeer$$.$_THAI_BUDDHIST_YEAR_OFFSET$ : 0);
  $JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$ = $JSCompiler_StaticMethods__buildNumberSpinboxElement$$($JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$, $AdfRichUIPeer$$.$CreateSubId$($cliendId_component$$496$$, $AdfDhtmlChooseDatePeer$$.$_YEAR_SPIN_ID$), $nextMonthText_rootDOMElement$$4_selectedYear$$, 1, 9999, 4, $laf$$24$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_YEAR"));
  $monthSelectChoiceColumn_previousMonthAnchorColumn_yearSpinboxColumn$$.appendChild($JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$);
  $JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$24$$.getStyleClass("af|chooseDate::next-month-arrow-cell")}, $headerTable$$2_headerTableBody_headerTableColumn_headerTableRow$$);
  $nextMonthText_rootDOMElement$$4_selectedYear$$ = $laf$$24$$.$getTranslatedString$("af_chooseDate.TIP_NEXT_MONTH");
  $JSCompiler_StaticMethods__createAndAppendElement$$("a", {role:"button", "aria-label":$nextMonthText_rootDOMElement$$4_selectedYear$$, href:"#", onclick:"this.focus();return false", "class":$laf$$24$$.getStyleClass("af|chooseDate::next-month-arrow"), id:$AdfRichUIPeer$$.$CreateSubId$($cliendId_component$$496$$, $AdfDhtmlChooseDatePeer$$.$_NEXT_MONTH_ID$), title:$nextMonthText_rootDOMElement$$4_selectedYear$$}, $JSCompiler_StaticMethods__buildHeaderDOM$self_nextMonthAnchorColumn_selectYearSpinbox$$);
  return $headerRow$$1$$
}
function $JSCompiler_StaticMethods__buildWallCalendarDOM$$($JSCompiler_StaticMethods__buildWallCalendarDOM$self$$, $component$$497$$, $rootDOMElement$$5$$, $dateToBeSelected$$1$$) {
  var $calendarDomRow$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {});
  $JSCompiler_StaticMethods__createAndAppendElement$$("td", {}, $calendarDomRow$$).appendChild($JSCompiler_StaticMethods__buildCalendarDateMatrix$$($JSCompiler_StaticMethods__buildWallCalendarDOM$self$$, $component$$497$$, $rootDOMElement$$5$$, $dateToBeSelected$$1$$));
  return $calendarDomRow$$
}
function $JSCompiler_StaticMethods__buildCalendarDateMatrix$$($JSCompiler_StaticMethods__buildCalendarDateMatrix$self$$, $component$$498$$, $rootDOMElement$$6$$, $dRow_dateToBeSelected$$2$$) {
  var $laf$$25$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $calendarDomTable_clientId$$126$$ = $component$$498$$.$getClientId$(), $calendarDomTableBody_monthNames$$1_showDate$$4$$ = $JSCompiler_StaticMethods__getShowDate$$($rootDOMElement$$6$$), $showMonth$$ = $calendarDomTableBody_monthNames$$1_showDate$$4$$.getMonth(), $JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$ = $calendarDomTableBody_monthNames$$1_showDate$$4$$.getFullYear(), $calendarDomTableBody_monthNames$$1_showDate$$4$$ = 
  $JSCompiler_StaticMethods__getLocaleSymbols$$($rootDOMElement$$6$$).$getMonths$(), $calendarDomTable_clientId$$126$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("table", {role:"grid", cellpadding:"0", cellspacing:"0", border:"0", width:"100%", "aria-label":$calendarDomTableBody_monthNames$$1_showDate$$4$$[$showMonth$$] + " " + ($JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$ + ($JSCompiler_StaticMethods__isThaiBuddistCalendar$$($rootDOMElement$$6$$) ? 
  $AdfDhtmlChooseDatePeer$$.$_THAI_BUDDHIST_YEAR_OFFSET$ : 0)), id:$AdfRichUIPeer$$.$CreateSubId$($calendarDomTable_clientId$$126$$, $AdfDhtmlChooseDatePeer$$.$_CAL_GRID_ID$), "class":$laf$$25$$.getStyleClass("af|chooseDate::calendar-grid"), "data-afr-par":$JSCompiler_StaticMethods__getParentID$$($rootDOMElement$$6$$)}), $calendarDomTableBody_monthNames$$1_showDate$$4$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("tbody", {}, $calendarDomTable_clientId$$126$$);
  $calendarDomTableBody_monthNames$$1_showDate$$4$$.appendChild($JSCompiler_StaticMethods__buildWallCalendarGridHeader$$($rootDOMElement$$6$$));
  var $curRows_daysInMonth$$ = 32 - (new Date($JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$, $showMonth$$, 32)).getDate(), $leadDays_printDate$$ = ((new Date($JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$, $showMonth$$, 1)).getDay() - $JSCompiler_StaticMethods__getFirstDayOfTheWeek$$($rootDOMElement$$6$$) + 7) % 7, $curRows_daysInMonth$$ = Math.ceil(($leadDays_printDate$$ + $curRows_daysInMonth$$) / 7), $rowStylesMap$$ = {0:"p_AFFirst"};
  $rowStylesMap$$[$curRows_daysInMonth$$ - 1] = "p_AFLast";
  var $leadDays_printDate$$ = new Date($JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$, $showMonth$$, 1 - $leadDays_printDate$$, 0, 0, 0, 0), $tabIndexZeroMonth$$ = $leadDays_printDate$$.getMonth(), $tabIndexZeroDate$$ = $leadDays_printDate$$.getDate(), $monthToBeSelected$$, $dayToBeSelected$$;
  $dRow_dateToBeSelected$$2$$.getFullYear() == $JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$ && ($tabIndexZeroDate$$ = $dayToBeSelected$$ = $dRow_dateToBeSelected$$2$$.getDate(), $tabIndexZeroMonth$$ = $monthToBeSelected$$ = $dRow_dateToBeSelected$$2$$.getMonth());
  for($dRow_dateToBeSelected$$2$$ = 0;$dRow_dateToBeSelected$$2$$ < $curRows_daysInMonth$$;$dRow_dateToBeSelected$$2$$++) {
    for(var $JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$ = $JSCompiler_StaticMethods__buildCalendarDateMatrix$self$$, $component$$inline_1438$$ = $component$$498$$, $calendarGridRow$$inline_1451_rowStyle$$inline_1439$$ = $laf$$25$$.getStyleClass("af|chooseDate::days-row") + ($rowStylesMap$$[$dRow_dateToBeSelected$$2$$] ? " " + $rowStylesMap$$[$dRow_dateToBeSelected$$2$$] : ""), $printDate$$inline_1440$$ = $leadDays_printDate$$, $drawMonth$$inline_1441$$ = $showMonth$$, 
    $tabIndexZeroMonth$$inline_1442$$ = $tabIndexZeroMonth$$, $tabIndexZeroDate$$inline_1443$$ = $tabIndexZeroDate$$, $monthToBeSelected$$inline_1444$$ = $monthToBeSelected$$, $dateToBeSelected$$inline_1445$$ = $dayToBeSelected$$, $rootDOMElement$$inline_1446_today$$inline_1448$$ = $rootDOMElement$$6$$, $dayStyles$$inline_1449_laf$$inline_1447$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $rootDOMElement$$inline_1446_today$$inline_1448$$ = $JSCompiler_StaticMethods__getTodayDate$$($rootDOMElement$$inline_1446_today$$inline_1448$$), 
    $dayStyles$$inline_1449_laf$$inline_1447$$ = {"-1":$dayStyles$$inline_1449_laf$$inline_1447$$.getStyleClass("af|chooseDate::prev-month-day"), 0:$dayStyles$$inline_1449_laf$$inline_1447$$.getStyleClass("af|chooseDate::regular-day"), 1:$dayStyles$$inline_1449_laf$$inline_1447$$.getStyleClass("af|chooseDate::next-month-day")}, $adfDayValueMap$$inline_1450$$ = {"-1":$AdfDhtmlChooseDatePeer$$.$_PREV_MONTH_ID$, 1:$AdfDhtmlChooseDatePeer$$.$_NEXT_MONTH_ID$}, $calendarGridRow$$inline_1451_rowStyle$$inline_1439$$ = 
    $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {role:"row", "class":$calendarGridRow$$inline_1451_rowStyle$$inline_1439$$}), $dow$$inline_1452$$ = 0;7 > $dow$$inline_1452$$;$dow$$inline_1452$$++) {
      var $currDate$$inline_1453$$ = $printDate$$inline_1440$$.getDate(), $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = $printDate$$inline_1440$$.getMonth(), $isDateDisabled$$inline_1455_isDateDisabled$$inline_5265$$ = $JSCompiler_StaticMethods__buildCalendarGridRow$self$$inline_1437_showYear$$.$_isDisabled$($component$$inline_1438$$, $printDate$$inline_1440$$), $JSCompiler_temp_const$$4975_dayColumn$$inline_1456$$ = $isDateDisabled$$inline_1455_isDateDisabled$$inline_5265$$ ? 
      $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_VOID$$, $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ == $tabIndexZeroMonth$$inline_1442$$ && $currDate$$inline_1453$$ == $tabIndexZeroDate$$inline_1443$$ ? 0 : -1, $dayStyles$$inline_5259$$ = $dayStyles$$inline_1449_laf$$inline_1447$$, $printDate$$inline_5260$$ = $printDate$$inline_1440$$, $diff$$inline_5268_drawMonth$$inline_5261$$ = 
      $drawMonth$$inline_1441$$, $today$$inline_5262$$ = $rootDOMElement$$inline_1446_today$$inline_1448$$, $selectedMonth$$inline_5263$$ = $monthToBeSelected$$inline_1444$$, $selectedDate$$inline_5264$$ = $dateToBeSelected$$inline_1445$$, $laf$$inline_5266$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $dayStyle$$inline_5267$$ = "";
      $printDate$$inline_5260$$.getYear() == $today$$inline_5262$$.getYear() && $printDate$$inline_5260$$.getMonth() == $today$$inline_5262$$.getMonth() && $printDate$$inline_5260$$.getDate() == $today$$inline_5262$$.getDate() ? $dayStyle$$inline_5267$$ = $laf$$inline_5266$$.getStyleClass("af|chooseDate::today") : ($diff$$inline_5268_drawMonth$$inline_5261$$ = $printDate$$inline_5260$$.getMonth() - $diff$$inline_5268_drawMonth$$inline_5261$$, 1 < $diff$$inline_5268_drawMonth$$inline_5261$$ ? $diff$$inline_5268_drawMonth$$inline_5261$$ = 
      -1 : -1 > $diff$$inline_5268_drawMonth$$inline_5261$$ && ($diff$$inline_5268_drawMonth$$inline_5261$$ = 1), $dayStyle$$inline_5267$$ = $dayStyles$$inline_5259$$[$diff$$inline_5268_drawMonth$$inline_5261$$]);
      $isDateDisabled$$inline_1455_isDateDisabled$$inline_5265$$ ? $dayStyle$$inline_5267$$ += " " + $AdfDhtmlChooseDatePeer$$.$_DISABLED_STYLE_CLASS$ : $selectedDate$$inline_5264$$ && ($printDate$$inline_5260$$.getMonth() == $selectedMonth$$inline_5263$$ && $printDate$$inline_5260$$.getDate() == $selectedDate$$inline_5264$$) && ($dayStyle$$inline_5267$$ += " " + $AdfDhtmlChooseDatePeer$$.$_SEL_DAY_CLASS$);
      $JSCompiler_temp_const$$4975_dayColumn$$inline_1456$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {role:"gridcell", "aria-disabled":$JSCompiler_temp_const$$4975_dayColumn$$inline_1456$$, tabindex:$JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$, "class":$dayStyle$$inline_5267$$}, $calendarGridRow$$inline_1451_rowStyle$$inline_1439$$);
      $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = $printDate$$inline_1440$$.getMonth() - $drawMonth$$inline_1441$$;
      1 < $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ ? $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = -1 : -1 > $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ && ($JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = 1);
      ($JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$ = $adfDayValueMap$$inline_1450$$[$JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$]) && $JSCompiler_temp_const$$4975_dayColumn$$inline_1456$$.setAttribute($AdfDhtmlChooseDatePeer$$.$_DAY_ID_ATTR_NAME$, $JSCompiler_temp_const$$4974_adfday$$inline_1458_currMonth$$inline_1454_diff$$inline_1457$$);
      $JSCompiler_temp_const$$4975_dayColumn$$inline_1456$$.textContent = $currDate$$inline_1453$$;
      $printDate$$inline_1440$$.setDate($printDate$$inline_1440$$.getDate() + 1)
    }
    $calendarDomTableBody_monthNames$$1_showDate$$4$$.appendChild($calendarGridRow$$inline_1451_rowStyle$$inline_1439$$)
  }
  return $calendarDomTable_clientId$$126$$
}
function $JSCompiler_StaticMethods__buildWallCalendarGridHeader$$($firstDay_rootDOMElement$$7$$) {
  var $laf$$26$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $dayNamesMin_localeSymbols$$ = $JSCompiler_StaticMethods__getLocaleSymbols$$($firstDay_rootDOMElement$$7$$), $dayNames$$ = $dayNamesMin_localeSymbols$$.$getWeekdays$(), $dayNamesMin_localeSymbols$$ = $dayNamesMin_localeSymbols$$.$getShortWeekdays$(), $calendarGridHeaderRow$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {role:"row", "class":$laf$$26$$.getStyleClass("af|chooseDate::week-header-row")});
  $firstDay_rootDOMElement$$7$$ = $JSCompiler_StaticMethods__getFirstDayOfTheWeek$$($firstDay_rootDOMElement$$7$$);
  for(var $dow$$ = 0;7 > $dow$$;$dow$$++) {
    var $day$$7$$ = ($firstDay_rootDOMElement$$7$$ + $dow$$) % 7;
    $JSCompiler_StaticMethods__createAndAppendElement$$("th", {"class":$laf$$26$$.getStyleClass("af|chooseDate::week-header-cell"), role:"columnheader", scope:"col", "aria-label":$dayNames$$[$day$$7$$]}, $calendarGridHeaderRow$$).textContent = $dayNamesMin_localeSymbols$$[$day$$7$$]
  }
  return $calendarGridHeaderRow$$
}
function $JSCompiler_StaticMethods__buildTimeSelectionDOM$$($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$, $amPmSubID$$inline_1489_component$$501$$, $rootDOMElement$$9_showAMPMInTwoRows$$, $dateToBeSelected$$4_radioComponent$$inline_1494$$) {
  var $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $timeSelectionRow$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {}), $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$.getStyleClass("af|chooseDate::time-selectors-row")}, $timeSelectionRow$$), $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$ = 
  $JSCompiler_StaticMethods__createAndAppendElement$$("table", {cellpadding:"0", cellspacing:"0", border:"0", summary:"", role:"presentation"}, $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$), $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("tbody", {}, $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$), $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = 
  $AdfPage$$.$PAGE$.$getLookAndFeel$(), $timeSelectionTableRow$$inline_1465$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {}), $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {}, $timeSelectionTableRow$$inline_1465$$), $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ = $JSCompiler_StaticMethods__is24HourFormat$$($rootDOMElement$$9_showAMPMInTwoRows$$), 
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$;
  $AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$);
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_COUNT_ZERO_BASED$) != $JSCompiler_alias_NULL$$;
  var $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ ? 0 : 0 + ($JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ ? 0 : 1);
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ ? 23 : 11 + ($JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ ? 0 : 1);
  var $JSCompiler_temp_const$$5004_showHour$$inline_1471$$ = $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ ? $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours() : $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours() % 12;
  !$JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ && 0 == $JSCompiler_temp_const$$5004_showHour$$inline_1471$$ && ($JSCompiler_temp_const$$5004_showHour$$inline_1471$$ = 12);
  $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ = $AdfRichUIPeer$$.$CreateSubId$($amPmSubID$$inline_1489_component$$501$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_HOUR_SPIN_ID$);
  $AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$);
  var $attrValue$$inline_5273$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_NUMBER_HOUR_DIGITS$), $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_StaticMethods__buildNumberSpinboxElement$$($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$, $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$, 
  $JSCompiler_temp_const$$5004_showHour$$inline_1471$$, $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$, $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$, $attrValue$$inline_5273$$ != $JSCompiler_alias_NULL$$ ? parseInt($attrValue$$inline_5273$$) : 1, $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_HOURS"));
  $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.appendChild($JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$);
  $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$.getStyleClass("af|chooseDate::time-separator")}, $timeSelectionTableRow$$inline_1465$$).textContent = ":";
  $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {}, $timeSelectionTableRow$$inline_1465$$);
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $AdfRichUIPeer$$.$CreateSubId$($amPmSubID$$inline_1489_component$$501$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_MIN_SPIN_ID$);
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $dateToBeSelected$$4_radioComponent$$inline_1494$$.getMinutes();
  $AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$);
  $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_NUMBER_MINUTE_DIGITS$);
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_StaticMethods__buildNumberSpinboxElement$$($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$, $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$, 
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$, 0, 59, $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ != $JSCompiler_alias_NULL$$ ? parseInt($JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$) : 1, $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_MINUTES"));
  $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.appendChild($JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$);
  $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$.getStyleClass("af|chooseDate::time-separator")}, $timeSelectionTableRow$$inline_1465$$).textContent = ":";
  $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {}, $timeSelectionTableRow$$inline_1465$$);
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $AdfRichUIPeer$$.$CreateSubId$($amPmSubID$$inline_1489_component$$501$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_SEC_SPIN_ID$);
  $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $dateToBeSelected$$4_radioComponent$$inline_1494$$.getSeconds();
  $AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$);
  $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_NUMBER_SECOND_DIGITS$);
  $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = $JSCompiler_StaticMethods__buildNumberSpinboxElement$$($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$, $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$, $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$, 
  0, 59, $JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$ != $JSCompiler_alias_NULL$$ ? parseInt($JSCompiler_temp_const$$5005_attrValue$$inline_5276_attrValue$$inline_5279_is24HourFormat$$inline_1467$$) : 1, $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_SECONDS"));
  $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.appendChild($JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$);
  $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$.appendChild($timeSelectionTableRow$$inline_1465$$);
  if($JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = !$JSCompiler_StaticMethods__is24HourFormat$$($rootDOMElement$$9_showAMPMInTwoRows$$)) {
    $AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$), $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_AM_PM$) != $JSCompiler_alias_NULL$$
  }
  $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ && ($AdfAssert$$.assert($rootDOMElement$$9_showAMPMInTwoRows$$ != $JSCompiler_alias_NULL$$), $rootDOMElement$$9_showAMPMInTwoRows$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$9_showAMPMInTwoRows$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_AM_PM_IN_2_ROWS$) != $JSCompiler_alias_NULL$$, $hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), 
  $rootDOMElement$$9_showAMPMInTwoRows$$ ? ($JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {}), $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {colspan:"3"}, $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$)) : 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("td", {}), $amPmSubID$$inline_1489_component$$501$$ = $AdfRichUIPeer$$.$CreateSubId$($amPmSubID$$inline_1489_component$$501$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_AMPM_ID$), 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("div", {id:$amPmSubID$$inline_1489_component$$501$$, "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm")}, $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$), 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("div", {id:$AdfRichUIPeer$$.$CreateSubId$($amPmSubID$$inline_1489_component$$501$$, "content"), name:$amPmSubID$$inline_1489_component$$501$$, "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm-content")}, 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$), $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("span", {"class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm-content-input")}, 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$), $JSCompiler_StaticMethods__createAndAppendElement$$("input", {type:"radio", name:$amPmSubID$$inline_1489_component$$501$$, id:$amPmSubID$$inline_1489_component$$501$$ + ":_0", value:"0", "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|selectOneRadio::native-input"), 
  accesskey:"", checked:12 > $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours() ? "" : $JSCompiler_alias_VOID$$, onclick:"this.focus()"}, $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$).checked = 12 > $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours(), $JSCompiler_StaticMethods__createAndAppendElement$$("label", {"for":$amPmSubID$$inline_1489_component$$501$$ + ":_0", "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm-item-text")}, 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$).textContent = "AM", $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("span", {"class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm-content-input")}, 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$), $JSCompiler_StaticMethods__createAndAppendElement$$("input", {type:"radio", name:$amPmSubID$$inline_1489_component$$501$$, id:$amPmSubID$$inline_1489_component$$501$$ + ":_1", value:"1", "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|selectOneRadio::native-input"), 
  accesskey:"", checked:12 <= $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours() ? "" : $JSCompiler_alias_VOID$$, onclick:"this.focus()"}, $JSCompiler_temp_const$$4948_JSCompiler_temp_const$$4986_amSpan$$inline_1492_hourMax$$inline_1470_isZeroBased$$inline_1468_pmSpan$$inline_1493$$).checked = 12 <= $dateToBeSelected$$4_radioComponent$$inline_1494$$.getHours(), $JSCompiler_StaticMethods__createAndAppendElement$$("label", {"for":$amPmSubID$$inline_1489_component$$501$$ + ":_1", "class":$hourSpinboxColumn$$inline_1466_laf$$inline_1486_minuteSpinboxColumn$$inline_1473_secondsSpinboxColumn$$inline_1475$$.getStyleClass("af|chooseDate::ampm-item-text")}, 
  $JSCompiler_temp_const$$4949_JSCompiler_temp_const$$4987_amPmColumn$$inline_1488_hourMin$$inline_1469_hourSpinbox$$inline_1472_innerDiv$$inline_1491_minSpinbox$$inline_1474_outerDiv$$inline_1490$$).textContent = "PM", $dateToBeSelected$$4_radioComponent$$inline_1494$$ = new AdfRichSelectOneRadio($amPmSubID$$inline_1489_component$$501$$, {simple:$JSCompiler_alias_TRUE$$, layout:"horizontal"}, 1), $JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$.$_childComponents$.push($dateToBeSelected$$4_radioComponent$$inline_1494$$), 
  $JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$ = $JSCompiler_temp$$93_laf$$inline_1464_parentElement$$inline_1487_secSpinbox$$inline_1476$$, $rootDOMElement$$9_showAMPMInTwoRows$$ ? $laf$$28_timeSelectionColumn_timeSelectionTable_timeSelectionTableBody$$.appendChild($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$) : $timeSelectionTableRow$$inline_1465$$.appendChild($JSCompiler_StaticMethods__buildTimeSelectionDOM$self_amPmSelectionRow$$));
  return $timeSelectionRow$$
}
function $JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$$($JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$self_timeZoneSelectSpan$$, $component$$504$$, $parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$) {
  var $laf$$31$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $addTimeZone_timeZoneSelectionRow$$;
  $AdfAssert$$.assert($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$ != $JSCompiler_alias_NULL$$);
  $addTimeZone_timeZoneSelectionRow$$ = $AdfAgent$$.$AGENT$.getAttribute($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$, $AdfDhtmlChooseDatePeer$$.$_CLIENT_TIME_ZONE$);
  var $timeZoneList_timeZoneSelectionColumn$$ = $AdfPage$$.$PAGE$.$findComponent$($JSCompiler_StaticMethods__getParentID$$($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$)).getTimeZoneList(), $timeZoneNames$$ = $AdfDhtmlChooseDatePeer$$.$_getTimeZones$($timeZoneList_timeZoneSelectionColumn$$, $addTimeZone_timeZoneSelectionRow$$);
  $addTimeZone_timeZoneSelectionRow$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$("tr", {});
  $timeZoneList_timeZoneSelectionColumn$$ = $JSCompiler_StaticMethods__createAndAppendElement$$("td", {"class":$laf$$31$$.getStyleClass("af|chooseDate::timezone-selectors-row"), colspan:"0"}, $addTimeZone_timeZoneSelectionRow$$);
  $AdfAssert$$.assert($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$ != $JSCompiler_alias_NULL$$);
  $parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$ = $JSCompiler_StaticMethods__getParentID$$($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$);
  $parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$ = $AdfRichUIPeer$$.$CreateSubId$($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$, $AdfDhtmlChooseDatePeer$$.$_TIMEZONE_DISPID_ID$);
  $parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$ = $AdfAgent$$.$AGENT$.getElementById($parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$).value;
  $JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$self_timeZoneSelectSpan$$ = $JSCompiler_StaticMethods__buildSelectOneChoiceElement$$($JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$self_timeZoneSelectSpan$$, $AdfRichUIPeer$$.$CreateSubId$($component$$504$$.$getClientId$(), $AdfDhtmlChooseDatePeer$$.$_TIMEZONE_ID$), $laf$$31$$.getStyleClass("af|chooseDate::timezone-list-content"), $laf$$31$$.$getTranslatedString$("af_chooseDate.LABEL_SELECT_TIMEZONE"), $timeZoneNames$$, $parentId$$inline_1501_rootDOMElement$$12_selectedTimeZone_tzId$$inline_1502$$);
  $timeZoneList_timeZoneSelectionColumn$$.appendChild($JSCompiler_StaticMethods__buildTimeZoneSelectionDOM$self_timeZoneSelectSpan$$);
  return $addTimeZone_timeZoneSelectionRow$$
}
function $JSCompiler_StaticMethods__buildSelectOneChoiceElement$$($JSCompiler_StaticMethods__buildSelectOneChoiceElement$self$$, $selectElementID_socComponent$$, $domTemplate_styleClass$$, $componentLabelText$$, $selectItems$$2$$, $selectedValue$$) {
  for(var $laf$$32$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $selectContentId$$ = $AdfRichUIPeer$$.$CreateSubId$($selectElementID_socComponent$$, "content"), $JSCompiler_object_inline_optionsArray_5797$$ = [], $JSCompiler_object_inline_title_5798$$ = "", $i$$inline_1507$$ = 0;$i$$inline_1507$$ < $selectItems$$2$$.length;$i$$inline_1507$$++) {
    var $value$$inline_1508$$ = Object.keys($selectItems$$2$$[$i$$inline_1507$$])[0], $label$$inline_1509$$ = $selectItems$$2$$[$i$$inline_1507$$][$value$$inline_1508$$], $option$$inline_1510$$ = {node:"option", value:$value$$inline_1508$$};
    $selectedValue$$ == $value$$inline_1508$$ && ($option$$inline_1510$$.selected = "", $JSCompiler_object_inline_title_5798$$ = $label$$inline_1509$$);
    $option$$inline_1510$$.title = $label$$inline_1509$$;
    $option$$inline_1510$$["text-content"] = $label$$inline_1509$$;
    $JSCompiler_object_inline_optionsArray_5797$$[$i$$inline_1507$$] = $option$$inline_1510$$
  }
  $domTemplate_styleClass$$ = {node:"span", id:$selectElementID_socComponent$$, "class":$laf$$32$$.getStyleClass("af|chooseDate::choice-list"), children:[{node:"select", id:$selectContentId$$, name:$selectElementID_socComponent$$, "class":$domTemplate_styleClass$$, title:$JSCompiler_object_inline_title_5798$$, children:$JSCompiler_object_inline_optionsArray_5797$$}, {node:"label", "for":$selectContentId$$, "class":"p_OraHiddenLabel", "text-content":$componentLabelText$$}]};
  $selectElementID_socComponent$$ = new AdfRichSelectOneChoice($selectElementID_socComponent$$, {simple:$JSCompiler_alias_TRUE$$}, 1);
  $JSCompiler_StaticMethods__buildSelectOneChoiceElement$self$$.$_childComponents$.push($selectElementID_socComponent$$);
  return $JSCompiler_StaticMethods__buildDomFromStructure$$($JSCompiler_StaticMethods__buildSelectOneChoiceElement$self$$, $domTemplate_styleClass$$)
}
function $JSCompiler_StaticMethods__buildNumberSpinboxElement$$($JSCompiler_StaticMethods__buildNumberSpinboxElement$self$$, $spinBoxComponent_spinBoxID$$, $domTemplate$$1_value$$118$$, $minValue$$, $maxValue$$, $minDigits$$, $componentLabelText$$1$$) {
  var $laf$$33$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $incrementAnchorId$$ = $AdfRichUIPeer$$.$CreateSubId$($spinBoxComponent_spinBoxID$$, $AdfDhtmlChooseDatePeer$$.$_INCREMENT_ID$), $decrementAnchorId$$ = $AdfRichUIPeer$$.$CreateSubId$($spinBoxComponent_spinBoxID$$, $AdfDhtmlChooseDatePeer$$.$_DECREMENT_ID$), $inputContentId$$ = $AdfRichUIPeer$$.$CreateSubId$($spinBoxComponent_spinBoxID$$, "content"), $numberConverter$$ = new TrNumberConverter($JSCompiler_alias_NULL$$, "number", $JSCompiler_alias_NULL$$, 
  $JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $minDigits$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$);
  $domTemplate$$1_value$$118$$ = {node:"div", id:$spinBoxComponent_spinBoxID$$, "class":$laf$$33$$.getStyleClass("af|chooseDate::spinbox"), _adfinc:$incrementAnchorId$$, _adfdec:$decrementAnchorId$$, children:[{node:"table", cellpadding:0, cellspacing:0, border:0, summary:"", role:"presentation", children:[{node:"tbody", children:[{node:"tr", children:[{node:"td", children:[{node:"input", id:$inputContentId$$, name:$spinBoxComponent_spinBoxID$$, style:"text-align: right;width:auto;", "class":$laf$$33$$.getStyleClass("af|chooseDate::spinbox-content"), 
  size:$minDigits$$, autocomplete:"off", type:"text", value:$numberConverter$$.getAsString($domTemplate$$1_value$$118$$), role:"spinbutton", "aria-valuemax":$maxValue$$, "aria-valuemin":$minValue$$, title:$domTemplate$$1_value$$118$$}, {node:"label", "for":$inputContentId$$, "class":"p_OraHiddenLabel", "text-content":$componentLabelText$$1$$}]}, {node:"td", children:[{node:"div", "class":$laf$$33$$.getStyleClass("af|chooseDate::increment-cell"), children:[{node:"a", role:"button", tabindex:"-1", 
  "class":$laf$$33$$.getStyleClass("af|chooseDate::spinbox-incrementor-icon-style"), id:$incrementAnchorId$$, title:$laf$$33$$.$getTranslatedString$("af_inputNumberSpinbox.TIP_INCREMENT")}]}, {node:"div", "class":$laf$$33$$.getStyleClass("af|chooseDate::decrement-cell"), children:[{node:"a", role:"button", tabindex:"-1", "class":$laf$$33$$.getStyleClass("af|chooseDate::spinbox-decrementor-icon-style"), id:$decrementAnchorId$$, title:$laf$$33$$.$getTranslatedString$("af_inputNumberSpinbox.TIP_DECREMENT")}]}]}]}]}]}]};
  $spinBoxComponent_spinBoxID$$ = new AdfRichInputNumberSpinbox($spinBoxComponent_spinBoxID$$, {minimum:$minValue$$, maximum:$maxValue$$, converter:$numberConverter$$}, 1);
  $JSCompiler_StaticMethods__buildNumberSpinboxElement$self$$.$_childComponents$.push($spinBoxComponent_spinBoxID$$);
  return $JSCompiler_StaticMethods__buildDomFromStructure$$($JSCompiler_StaticMethods__buildNumberSpinboxElement$self$$, $domTemplate$$1_value$$118$$)
}
function $JSCompiler_StaticMethods__buildDomFromStructure$$($JSCompiler_StaticMethods__buildDomFromStructure$self$$, $domTemplate$$2$$) {
  var $agent$$185$$ = $AdfAgent$$.$AGENT$, $domElement$$101$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$($domTemplate$$2$$.node, {}), $key$$53$$;
  for($key$$53$$ in $domTemplate$$2$$) {
    switch($key$$53$$) {
      case "children":
        for(var $children$$16$$ = $domTemplate$$2$$[$key$$53$$], $i$$196$$ = 0;$i$$196$$ < $children$$16$$.length;$i$$196$$++) {
          $domElement$$101$$.appendChild($JSCompiler_StaticMethods__buildDomFromStructure$$($JSCompiler_StaticMethods__buildDomFromStructure$self$$, $children$$16$$[$i$$196$$]))
        }
        break;
      case "text-content":
        $domElement$$101$$.textContent = $domTemplate$$2$$[$key$$53$$];
        break;
      case "node":
        break;
      default:
        $agent$$185$$.setAttribute($domElement$$101$$, $key$$53$$, $domTemplate$$2$$[$key$$53$$])
    }
  }
  return $domElement$$101$$
}
$AdfDhtmlChooseDatePeer$$.prototype.$_isDisabled$ = function $$AdfDhtmlChooseDatePeer$$$$$_isDisabled$$($component$$506$$, $printDate$$3$$) {
  var $dateTimeConverter$$ = $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$(), $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = $JSCompiler_StaticMethods__resetTimePart$$($dateTimeConverter$$.getAsObject($component$$506$$.getMinValue()), $JSCompiler_alias_FALSE$$);
  if($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ != $JSCompiler_alias_NULL$$ && $printDate$$3$$ < $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$) {
    return $JSCompiler_alias_TRUE$$
  }
  $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = $JSCompiler_StaticMethods__resetTimePart$$($dateTimeConverter$$.getAsObject($component$$506$$.getMaxValue()), $JSCompiler_alias_TRUE$$);
  if($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ != $JSCompiler_alias_NULL$$ && $printDate$$3$$ > $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$) {
    return $JSCompiler_alias_TRUE$$
  }
  $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = $component$$506$$.getDisabledMonths();
  if($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ != $JSCompiler_alias_NULL$$) {
    for(var $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = Object.keys($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$), $d$$1_i$$197_m$$2$$ = 0;$d$$1_i$$197_m$$2$$ < $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$.length;$d$$1_i$$197_m$$2$$++) {
      if($printDate$$3$$.getMonth() == $AdfDhtmlChooseDatePeer$$.$_DISABLED_MONTHS_KEYS$[$disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$[$d$$1_i$$197_m$$2$$]]) {
        return $JSCompiler_alias_TRUE$$
      }
    }
  }
  $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = $component$$506$$.getDisabledDaysOfWeek();
  if($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ != $JSCompiler_alias_NULL$$) {
    $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = Object.keys($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$);
    for($d$$1_i$$197_m$$2$$ = 0;$d$$1_i$$197_m$$2$$ < $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$.length;$d$$1_i$$197_m$$2$$++) {
      if($printDate$$3$$.getDay() == $AdfDhtmlChooseDatePeer$$.$_DISABLED_DAYS_OF_WEEK_KEYS$[$disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$[$d$$1_i$$197_m$$2$$]]) {
        return $JSCompiler_alias_TRUE$$
      }
    }
  }
  $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ = $component$$506$$.getDisabledDays();
  if($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$ != $JSCompiler_alias_NULL$$) {
    for($d$$1_i$$197_m$$2$$ = 0;$d$$1_i$$197_m$$2$$ < $disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$.length;$d$$1_i$$197_m$$2$$++) {
      if($printDate$$3$$.getTime() == $JSCompiler_StaticMethods__resetTimePart$$($dateTimeConverter$$.getAsObject($disabledDOW_disabledDays_disabledDaysOfWeek_disabledMonths_disabledMths_maxDate_minDate$$[$d$$1_i$$197_m$$2$$]), $JSCompiler_alias_FALSE$$).getTime()) {
        return $JSCompiler_alias_TRUE$$
      }
    }
  }
  return $JSCompiler_alias_FALSE$$
};
function $JSCompiler_StaticMethods__resetTimePart$$($date$$7$$, $maxOut$$) {
  $date$$7$$ != $JSCompiler_alias_NULL$$ && ($date$$7$$.setHours($maxOut$$ ? 23 : 0), $date$$7$$.setMinutes($maxOut$$ ? 59 : 0), $date$$7$$.setSeconds($maxOut$$ ? 59 : 0), $date$$7$$.setMilliseconds($maxOut$$ ? 999 : 0));
  return $date$$7$$
}
function $JSCompiler_StaticMethods__createAndAppendElement$$($elementName$$4_newElement$$11$$, $attributesMap$$, $parentElement$$10$$) {
  $AdfAssert$$.assert($parentElement$$10$$ != $JSCompiler_alias_NULL$$);
  $elementName$$4_newElement$$11$$ = $JSCompiler_StaticMethods__createElementWithAttributes$$($elementName$$4_newElement$$11$$, $attributesMap$$);
  $parentElement$$10$$.appendChild($elementName$$4_newElement$$11$$);
  return $elementName$$4_newElement$$11$$
}
function $JSCompiler_StaticMethods__createElementWithAttributes$$($elementName$$5$$, $attributesMap$$1$$) {
  $AdfAssert$$.$assertNonEmptyString$($elementName$$5$$);
  var $newElement$$12$$ = document.createElement($elementName$$5$$);
  $AdfDomUtils$$.$writeAttributesToElement$($newElement$$12$$, $attributesMap$$1$$);
  return $newElement$$12$$
}
function $JSCompiler_StaticMethods__getParentID$$($rootDOMElement$$13$$) {
  $AdfAssert$$.assert($rootDOMElement$$13$$ != $JSCompiler_alias_NULL$$);
  return $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$13$$, $AdfDhtmlChooseDatePeer$$.$_PARENT_ID$)
}
function $JSCompiler_StaticMethods__getShowDate$$($rootDOMElement$$14$$) {
  $AdfAssert$$.assert($rootDOMElement$$14$$ != $JSCompiler_alias_NULL$$);
  var $showDate$$6$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$14$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_DATE$);
  return $showDate$$6$$ != $JSCompiler_alias_NULL$$ ? $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsObject($showDate$$6$$) : $JSCompiler_StaticMethods__getTodayDate$$($rootDOMElement$$14$$)
}
function $JSCompiler_StaticMethods__getTodayDate$$($rootDOMElement$$15_todayDate$$) {
  $AdfAssert$$.assert($rootDOMElement$$15_todayDate$$ != $JSCompiler_alias_NULL$$);
  $rootDOMElement$$15_todayDate$$ = $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$15_todayDate$$, $AdfDhtmlChooseDatePeer$$.$_TODAY_DATE$);
  return $rootDOMElement$$15_todayDate$$ != $JSCompiler_alias_NULL$$ ? $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsObject($rootDOMElement$$15_todayDate$$) : new Date
}
function $JSCompiler_StaticMethods__getClientRangeStartDate$$($attrValue$$3_rootDOMElement$$17$$) {
  $AdfAssert$$.assert($attrValue$$3_rootDOMElement$$17$$ != $JSCompiler_alias_NULL$$);
  $attrValue$$3_rootDOMElement$$17$$ = $AdfAgent$$.$AGENT$.getAttribute($attrValue$$3_rootDOMElement$$17$$, $AdfDhtmlChooseDatePeer$$.$_RANGE_START$);
  return $attrValue$$3_rootDOMElement$$17$$ != $JSCompiler_alias_NULL$$ ? $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsObject($attrValue$$3_rootDOMElement$$17$$) : $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__getClientRangeEndDate$$($attrValue$$4_rootDOMElement$$19$$) {
  $AdfAssert$$.assert($attrValue$$4_rootDOMElement$$19$$ != $JSCompiler_alias_NULL$$);
  $attrValue$$4_rootDOMElement$$19$$ = $AdfAgent$$.$AGENT$.getAttribute($attrValue$$4_rootDOMElement$$19$$, $AdfDhtmlChooseDatePeer$$.$_RANGE_END$);
  return $attrValue$$4_rootDOMElement$$19$$ != $JSCompiler_alias_NULL$$ ? $AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$().getAsObject($attrValue$$4_rootDOMElement$$19$$) : $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__getFirstDayOfTheWeek$$($attrValue$$5_rootDOMElement$$21$$) {
  $AdfAssert$$.assert($attrValue$$5_rootDOMElement$$21$$ != $JSCompiler_alias_NULL$$);
  $attrValue$$5_rootDOMElement$$21$$ = $AdfAgent$$.$AGENT$.getAttribute($attrValue$$5_rootDOMElement$$21$$, $AdfDhtmlChooseDatePeer$$.$_FIRST_DAY_OF_WEEK$);
  return $attrValue$$5_rootDOMElement$$21$$ != $JSCompiler_alias_NULL$$ ? parseInt($attrValue$$5_rootDOMElement$$21$$) - 1 : 0
}
function $JSCompiler_StaticMethods__is24HourFormat$$($rootDOMElement$$24$$) {
  $AdfAssert$$.assert($rootDOMElement$$24$$ != $JSCompiler_alias_NULL$$);
  return $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$24$$, $AdfDhtmlChooseDatePeer$$.$_SHOW_24_HOUR_FORMAT$) != $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__isThaiBuddistCalendar$$($rootDOMElement$$33$$) {
  $AdfAssert$$.assert($rootDOMElement$$33$$ != $JSCompiler_alias_NULL$$);
  return $AdfAgent$$.$AGENT$.getAttribute($rootDOMElement$$33$$, $AdfDhtmlChooseDatePeer$$.$_LOCALE$) == $AdfDhtmlChooseDatePeer$$.$THAI_BUDDHIST$
}
function $JSCompiler_StaticMethods__getLocaleSymbols$$($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$) {
  var $page$$78$$ = $AdfPage$$.$PAGE$, $localeSymbols$$1$$ = $JSCompiler_alias_NULL$$;
  if($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$ = $JSCompiler_StaticMethods__getParentID$$($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$)) {
    if(($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$ = $page$$78$$.$findComponent$($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$)) && $converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$.getConverter) {
      ($converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$ = $converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$.getConverter()) && ($localeSymbols$$1$$ = $converter$$3_parentId$$5_parentInputDate_rootDOMElement$$34$$.$getLocaleSymbols$())
    }
  }
  $localeSymbols$$1$$ || ($localeSymbols$$1$$ = getLocaleSymbols($page$$78$$.$getLocaleContext$().$getLocale$()));
  return $localeSymbols$$1$$
}
$AdfDhtmlChooseDatePeer$$.$_getTimeZones$ = function $$AdfDhtmlChooseDatePeer$$$$_getTimeZones$$($timeZones$$, $addTimeZone$$1$$) {
  if($timeZones$$) {
    for(var $addTimeZoneValue_i$$198$$ = "", $addTimeZoneOffset$$ = -1, $addTimeZoneObject$$ = {}, $added$$2$$ = $JSCompiler_alias_FALSE$$, $allTimeZones$$ = $AdfRichTimeZoneTranslations$$.$getTimeZoneTranslations$(), $allTimeZonesKeys$$ = [], $addTimeZoneValue_i$$198$$ = 0;$addTimeZoneValue_i$$198$$ < $allTimeZones$$.length;$addTimeZoneValue_i$$198$$++) {
      $allTimeZonesKeys$$[$addTimeZoneValue_i$$198$$] = Object.keys($allTimeZones$$[$addTimeZoneValue_i$$198$$])[0]
    }
    $addTimeZone$$1$$ && (-1 != $timeZones$$.indexOf($addTimeZone$$1$$) ? $added$$2$$ = $JSCompiler_alias_TRUE$$ : ($addTimeZoneValue_i$$198$$ = $allTimeZones$$[$allTimeZonesKeys$$.indexOf($addTimeZone$$1$$)][$addTimeZone$$1$$], $addTimeZoneOffset$$ = $AdfDhtmlChooseDatePeer$$.$_getMinutesFromTimeZoneValue$($addTimeZoneValue_i$$198$$), $addTimeZoneObject$$[$addTimeZone$$1$$] = $addTimeZoneValue_i$$198$$));
    for(var $givenTimeZones$$ = [], $totalTimeZones$$ = $timeZones$$.length + ($addTimeZone$$1$$ && !$added$$2$$ ? 1 : 0), $count$$12$$ = 0, $addTimeZoneValue_i$$198$$ = 0;$addTimeZoneValue_i$$198$$ < $totalTimeZones$$ && $count$$12$$ < $timeZones$$.length;$addTimeZoneValue_i$$198$$++) {
      var $TimeZoneObject$$ = {}, $key$$54$$ = $timeZones$$[$count$$12$$];
      $count$$12$$++;
      var $index$$107$$ = $allTimeZonesKeys$$.indexOf($key$$54$$);
      -1 != $index$$107$$ && ($TimeZoneObject$$[$key$$54$$] = $allTimeZones$$[$index$$107$$][$key$$54$$], $addTimeZone$$1$$ && !$added$$2$$ && $AdfDhtmlChooseDatePeer$$.$_getMinutesFromTimeZoneValue$($TimeZoneObject$$[$key$$54$$]) > $addTimeZoneOffset$$ && ($givenTimeZones$$[$addTimeZoneValue_i$$198$$] = $addTimeZoneObject$$, $addTimeZoneValue_i$$198$$++, $added$$2$$ = $JSCompiler_alias_TRUE$$), $givenTimeZones$$[$addTimeZoneValue_i$$198$$] = $TimeZoneObject$$)
    }
    $addTimeZone$$1$$ && !$added$$2$$ && ($givenTimeZones$$[$totalTimeZones$$ - 1] = $addTimeZoneObject$$);
    return $givenTimeZones$$
  }
  return $AdfDhtmlChooseDatePeer$$.$_getDefaultTimeZones$($addTimeZone$$1$$)
};
$AdfDhtmlChooseDatePeer$$.$_getDefaultTimeZones$ = function $$AdfDhtmlChooseDatePeer$$$$_getDefaultTimeZones$$($addTimeZone$$2$$) {
  var $addTimeZoneObject$$1_allTimeZones$$1$$ = $AdfRichTimeZoneTranslations$$.$getTimeZoneTranslations$(), $added$$3$$ = $JSCompiler_alias_FALSE$$, $cloneCommonTimeZones_commonTimeZones$$ = [];
  if($AdfDhtmlChooseDatePeer$$.$_CACHED_COMMON_TIMEZONES$) {
    $cloneCommonTimeZones_commonTimeZones$$ = $AdfDhtmlChooseDatePeer$$.$_CACHED_COMMON_TIMEZONES$
  }else {
    for(var $i$$199$$ = 0;$i$$199$$ < $addTimeZoneObject$$1_allTimeZones$$1$$.length && "true" == $addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$].common;$i$$199$$++) {
      delete $addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$].$common$, $cloneCommonTimeZones_commonTimeZones$$[$i$$199$$] = $addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$], $addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$][Object.keys($addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$])] == $addTimeZone$$2$$ && ($added$$3$$ = $JSCompiler_alias_TRUE$$)
    }
    $AdfDhtmlChooseDatePeer$$.$_CACHED_COMMON_TIMEZONES$ = $cloneCommonTimeZones_commonTimeZones$$
  }
  if(!$addTimeZone$$2$$) {
    return $cloneCommonTimeZones_commonTimeZones$$
  }
  $cloneCommonTimeZones_commonTimeZones$$ = $cloneCommonTimeZones_commonTimeZones$$.slice(0);
  if(!$added$$3$$) {
    for(var $addTimeZoneIndex$$ = -1, $addTimeZoneValue$$1$$, $addTimeZoneOffset$$1$$, $i$$199$$ = $cloneCommonTimeZones_commonTimeZones$$.length - 1;$i$$199$$ < $addTimeZoneObject$$1_allTimeZones$$1$$.length;$i$$199$$++) {
      if(Object.keys($addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$])[0] == $addTimeZone$$2$$) {
        $addTimeZoneValue$$1$$ = $addTimeZoneObject$$1_allTimeZones$$1$$[$i$$199$$][$addTimeZone$$2$$];
        $addTimeZoneOffset$$1$$ = $AdfDhtmlChooseDatePeer$$.$_getMinutesFromTimeZoneValue$($addTimeZoneValue$$1$$);
        break
      }
    }
    for($i$$199$$ = 0;$i$$199$$ < $cloneCommonTimeZones_commonTimeZones$$.length;$i$$199$$++) {
      if(Object.keys($cloneCommonTimeZones_commonTimeZones$$[$i$$199$$])[0] == $addTimeZone$$2$$) {
        $added$$3$$ = $JSCompiler_alias_TRUE$$;
        break
      }
      if($AdfDhtmlChooseDatePeer$$.$_getMinutesFromTimeZoneValue$($cloneCommonTimeZones_commonTimeZones$$[$i$$199$$][Object.keys($cloneCommonTimeZones_commonTimeZones$$[$i$$199$$])[0]]) > $addTimeZoneOffset$$1$$) {
        $addTimeZoneIndex$$ = $i$$199$$;
        break
      }
    }
    $added$$3$$ || (-1 == $addTimeZoneIndex$$ && ($addTimeZoneIndex$$ = $cloneCommonTimeZones_commonTimeZones$$.length), $addTimeZoneValue$$1$$ && ($addTimeZoneObject$$1_allTimeZones$$1$$ = {}, $addTimeZoneObject$$1_allTimeZones$$1$$[$addTimeZone$$2$$] = $addTimeZoneValue$$1$$, $cloneCommonTimeZones_commonTimeZones$$.splice($addTimeZoneIndex$$, 0, $addTimeZoneObject$$1_allTimeZones$$1$$)))
  }
  return $cloneCommonTimeZones_commonTimeZones$$
};
$AdfDhtmlChooseDatePeer$$.$_getMinutesFromTimeZoneValue$ = function $$AdfDhtmlChooseDatePeer$$$$_getMinutesFromTimeZoneValue$$($offset$$14_totalMinutes_value$$119$$) {
  $offset$$14_totalMinutes_value$$119$$ = $offset$$14_totalMinutes_value$$119$$.match("[+-][0-9]{2}:[0-9]{2}")[0];
  var $hours$$ = parseInt($offset$$14_totalMinutes_value$$119$$.match("[0-9]{2}")), $min$$6$$ = parseInt($offset$$14_totalMinutes_value$$119$$.match("(?![0-9]{2}:)[0-9]{2}"));
  return $offset$$14_totalMinutes_value$$119$$ = parseInt($offset$$14_totalMinutes_value$$119$$[0] + (60 * $hours$$ + $min$$6$$))
};
$AdfDhtmlChooseDatePeer$$.$_getISOStandardConverter$ = function $$AdfDhtmlChooseDatePeer$$$$_getISOStandardConverter$$() {
  $AdfDhtmlChooseDatePeer$$.$ISO_STANDARD_CONVERTER$ || ($AdfDhtmlChooseDatePeer$$.$ISO_STANDARD_CONVERTER$ = new TrDateTimeConverter("yyyy-MM-dd HH:mm:ss", $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$));
  return $AdfDhtmlChooseDatePeer$$.$ISO_STANDARD_CONVERTER$
};
