var $AdfDhtmlChooseColorBasePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlChooseColorBasePeer");
$goog$exportSymbol$$("AdfDhtmlChooseColorBasePeer", $AdfDhtmlChooseColorBasePeer$$);
$AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$ = "lastUsedColor";
$AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$ = "colorValue";
$AdfDhtmlChooseColorBasePeer$$.prototype.$handleUpdateFromInputComponent$ = function $$AdfDhtmlChooseColorBasePeer$$$$$handleUpdateFromInputComponent$$($chooseComponent$$, $propertyName$$40$$, $newValue$$32$$) {
  $chooseComponent$$.setProperty($propertyName$$40$$, $newValue$$32$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.handleUpdateFromInputComponent", {$handleUpdateFromInputComponent$:$AdfDhtmlChooseColorBasePeer$$.prototype.$handleUpdateFromInputComponent$});
$AdfDhtmlChooseColorBasePeer$$.$InitSubclass$ = function $$AdfDhtmlChooseColorBasePeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfRichChooseColor);
  $AdfObject$$.$ensureClassInitialization$(AdfRichInputColor);
  $AdfObject$$.$ensureClassInitialization$(AdfUIValue);
  $AdfObject$$.$ensureClassInitialization$($AdfDhtmlInputColorPeer$$);
  this.$_colorFormat$ = new TrColorConverter(["#RRGGBB"], $JSCompiler_alias_TRUE$$);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfDialogEvent$$.$EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, $AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$, AdfRichChooseColor.DEFAULT_COLOR, AdfRichChooseColor.CUSTOM_COLOR_DATA);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichChooseColor.CUSTOM_COLOR_DATA, AdfRichChooseColor.COLOR_DATA, AdfRichChooseColor.WIDTH, $AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$, AdfRichChooseColor.DEFAULT_COLOR);
  this.$_SWATCH_EXPANDO$ = "_adfSw";
  this.$_BUTTON_EXPANDO$ = "_adfSwBtn";
  this.$_COLOR_VALUE_EXPANDO$ = "_adfClr";
  this.$_LAST_USED_COLOR_BTN$ = "LucBtn";
  this.$_DEFAULT_COLOR_BTN$ = "DfcBtn";
  this.$_CUSTOM_COLOR_BTN$ = "cstcBtn";
  this.$_CUSTOM_ROW_ID$ = "ccRow";
  this.$_CUSTOM_PANEL_WRAPPER_ID$ = "ccWrap";
  this.$_CUSTOM_PANEL$ = "ccPnl";
  this.$_CUSTOM_DLG_DRAG_ID$ = "tb";
  this.$_SELECTION_UNKNOWN$ = 0;
  this.$_SELECTION_OLD_SWATCH_KNOWN$ = 1;
  this.$_SELECTION_NEW_SWATCH_KNOWN$ = 2;
  this.$_SELECTION_SWATCHES_KNOWN$ = 3;
  this.$_SELECTION_PROCESSED$ = 4;
  this.$_prevSwatchSelectionMap$ = {};
  this.$_curSwatchSelectionMap$ = {};
  this.$_selectionStateMap$ = {};
  this.$_STANDARD_SWATCH_TABLE_ID$ = "stdTbl";
  this.$_initCustomPanelHandlerClass$()
};
$goog$exportSymbol$$("AdfDhtmlChooseColorBasePeer.InitSubclass", $AdfDhtmlChooseColorBasePeer$$.$InitSubclass$);
$AdfDhtmlChooseColorBasePeer$$.$_convertToColorString$ = function $$AdfDhtmlChooseColorBasePeer$$$$_convertToColorString$$($colorObj$$) {
  return $colorObj$$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_alias_NULL$$ : this.$_colorFormat$.getAsString($colorObj$$)
};
$AdfDhtmlChooseColorBasePeer$$.$_convertToColorObj$ = function $$AdfDhtmlChooseColorBasePeer$$$$_convertToColorObj$$($colorString$$) {
  return $colorString$$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_alias_NULL$$ : this.$_colorFormat$.getAsObject($colorString$$)
};
$AdfDhtmlChooseColorBasePeer$$.$parse0To255$ = function $$AdfDhtmlChooseColorBasePeer$$$$parse0To255$$($result$$14_str$$11$$) {
  $AdfAssert$$.$assertString$($result$$14_str$$11$$);
  for(var $charCount$$ = $result$$14_str$$11$$.length, $i$$187$$ = 0;$i$$187$$ < $charCount$$;$i$$187$$++) {
    if(-1 == "0123456789".indexOf($result$$14_str$$11$$.charAt($i$$187$$))) {
      return $JSCompiler_alias_NULL$$
    }
  }
  $result$$14_str$$11$$ = parseInt($result$$14_str$$11$$);
  return!isNaN($result$$14_str$$11$$) && 0 <= $result$$14_str$$11$$ && 255 >= $result$$14_str$$11$$ ? $result$$14_str$$11$$ : $JSCompiler_alias_NULL$$
};
$goog$exportSymbol$$("AdfDhtmlChooseColorBasePeer.parse0To255", $AdfDhtmlChooseColorBasePeer$$.$parse0To255$);
$AdfDhtmlChooseColorBasePeer$$.$parseHexColor$ = function $$AdfDhtmlChooseColorBasePeer$$$$parseHexColor$$($str$$12$$) {
  $AdfAssert$$.$assertString$($str$$12$$);
  var $returnValue$$2$$ = $str$$12$$;
  if(6 != $str$$12$$.length) {
    $returnValue$$2$$ = $JSCompiler_alias_NULL$$
  }else {
    for(var $i$$188$$ = 0;6 > $i$$188$$;$i$$188$$++) {
      if(-1 == "0123456789ABCDEFabcdef".indexOf($str$$12$$.charAt($i$$188$$))) {
        $returnValue$$2$$ = $JSCompiler_alias_NULL$$;
        break
      }
    }
  }
  $returnValue$$2$$ != $JSCompiler_alias_NULL$$ && ($returnValue$$2$$ = parseInt($str$$12$$, 16));
  return $returnValue$$2$$
};
$goog$exportSymbol$$("AdfDhtmlChooseColorBasePeer.parseHexColor", $AdfDhtmlChooseColorBasePeer$$.$parseHexColor$);
$AdfDhtmlChooseColorBasePeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlChooseColorBasePeer$$$$$InitDomElement$$($component$$457$$, $domElement$$87$$) {
  $AdfDhtmlChooseColorBasePeer$$.$superclass$.$InitDomElement$.call(this, $component$$457$$, $domElement$$87$$);
  var $inputColor$$ = $AdfDhtmlInputChooseBindingUtils$$.$getInputComponent$($component$$457$$.$getClientId$());
  $inputColor$$ != $JSCompiler_alias_NULL$$ && $inputColor$$.$getPeer$().$initChooseComponentValue$($inputColor$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlChooseColorBasePeer$$.prototype.$InitDomElement$});
function $JSCompiler_StaticMethods__getColorFromSwatch$$($color$$2_swatch$$) {
  $color$$2_swatch$$ = $color$$2_swatch$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_SWATCH_EXPANDO$);
  return $color$$2_swatch$$ != $JSCompiler_alias_NULL$$ && "No Color" != $color$$2_swatch$$ ? $AdfDhtmlChooseColorBasePeer$$.$_convertToColorObj$($color$$2_swatch$$) : $JSCompiler_alias_NULL$$
}
$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentLastUsedColor$ = function $$AdfDhtmlChooseColorBasePeer$$$$$GetComponentLastUsedColor$$($buttonSwatchId_colorString$$1_component$$458_element$$195$$) {
  $buttonSwatchId_colorString$$1_component$$458_element$$195$$ = $AdfRichUIPeer$$.$CreateSubId$($buttonSwatchId_colorString$$1_component$$458_element$$195$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_LAST_USED_COLOR_BTN$);
  if($buttonSwatchId_colorString$$1_component$$458_element$$195$$ = $AdfAgent$$.$AGENT$.getElementById($buttonSwatchId_colorString$$1_component$$458_element$$195$$)) {
    return $buttonSwatchId_colorString$$1_component$$458_element$$195$$ = $buttonSwatchId_colorString$$1_component$$458_element$$195$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_COLOR_VALUE_EXPANDO$), $AdfDhtmlChooseColorBasePeer$$.$_convertToColorObj$($buttonSwatchId_colorString$$1_component$$458_element$$195$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.GetComponentLastUsedColor", {$GetComponentLastUsedColor$:$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentLastUsedColor$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentDefaultColor$ = function $$AdfDhtmlChooseColorBasePeer$$$$$GetComponentDefaultColor$$($buttonSwatchId$$1_colorString$$2_component$$459$$) {
  $buttonSwatchId$$1_colorString$$2_component$$459$$ = $AdfRichUIPeer$$.$CreateSubId$($buttonSwatchId$$1_colorString$$2_component$$459$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_DEFAULT_COLOR_BTN$);
  $buttonSwatchId$$1_colorString$$2_component$$459$$ = $AdfAgent$$.$AGENT$.getElementById($buttonSwatchId$$1_colorString$$2_component$$459$$).getAttribute($AdfDhtmlChooseColorBasePeer$$.$_COLOR_VALUE_EXPANDO$);
  return $AdfDhtmlChooseColorBasePeer$$.$_convertToColorObj$($buttonSwatchId$$1_colorString$$2_component$$459$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.GetComponentDefaultColor", {$GetComponentDefaultColor$:$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentDefaultColor$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentWidth$ = function $$AdfDhtmlChooseColorBasePeer$$$$$GetComponentWidth$$($component$$460$$) {
  return $JSCompiler_StaticMethods__getSwatchRows$$($component$$460$$).length
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.GetComponentWidth", {$GetComponentWidth$:$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentWidth$});
function $JSCompiler_StaticMethods__getSwatchRows$$($agent$$171_component$$461$$) {
  var $swatchTableId_tableElement$$4$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$171_component$$461$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_STANDARD_SWATCH_TABLE_ID$);
  $agent$$171_component$$461$$ = $AdfAgent$$.$AGENT$;
  $swatchTableId_tableElement$$4$$ = $agent$$171_component$$461$$.getElementById($swatchTableId_tableElement$$4$$);
  return $agent$$171_component$$461$$.$getTableRows$($swatchTableId_tableElement$$4$$)
}
$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentColorData$ = function $$AdfDhtmlChooseColorBasePeer$$$$$GetComponentColorData$$($component$$462_rows$$11$$) {
  $component$$462_rows$$11$$ = $JSCompiler_StaticMethods__getSwatchRows$$($component$$462_rows$$11$$);
  for(var $rowsLength$$ = $component$$462_rows$$11$$.length, $colorArray$$ = [], $rowColorArray$$ = $JSCompiler_alias_NULL$$, $i$$189$$ = 0;$i$$189$$ < $rowsLength$$;$i$$189$$++) {
    $rowColorArray$$ = $JSCompiler_StaticMethods__getColorArrayFromSwatchRow$$($component$$462_rows$$11$$[$i$$189$$]), $colorArray$$ = $colorArray$$.concat($rowColorArray$$)
  }
  return $colorArray$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.GetComponentColorData", {$GetComponentColorData$:$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentColorData$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentCustomColorData$ = function $$AdfDhtmlChooseColorBasePeer$$$$$GetComponentCustomColorData$$($component$$463_customRowId_rowElement$$) {
  $component$$463_customRowId_rowElement$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$463_customRowId_rowElement$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_ROW_ID$);
  if($component$$463_customRowId_rowElement$$ = $AdfAgent$$.$AGENT$.getElementById($component$$463_customRowId_rowElement$$)) {
    return $JSCompiler_StaticMethods__getColorArrayFromSwatchRow$$($component$$463_customRowId_rowElement$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.GetComponentCustomColorData", {$GetComponentCustomColorData$:$AdfDhtmlChooseColorBasePeer$$.prototype.$GetComponentCustomColorData$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentCustomColorDataChanged$ = function $$AdfDhtmlChooseColorBasePeer$$$$$ComponentCustomColorDataChanged$$($component$$466$$, $customColorRowId_domElement$$94_rowElement$$inline_1325$$, $newValue$$33$$) {
  $customColorRowId_domElement$$94_rowElement$$inline_1325$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$466$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_ROW_ID$);
  $customColorRowId_domElement$$94_rowElement$$inline_1325$$ = $AdfAgent$$.$AGENT$.getElementById($customColorRowId_domElement$$94_rowElement$$inline_1325$$);
  var $colorArray$$inline_1326$$ = $newValue$$33$$, $rowChildrenArray$$inline_1327$$ = $customColorRowId_domElement$$94_rowElement$$inline_1325$$.childNodes, $length$$inline_1328$$ = $rowChildrenArray$$inline_1327$$.length, $childElement$$inline_1329$$ = $JSCompiler_alias_NULL$$, $swatch$$inline_1330$$ = $JSCompiler_alias_NULL$$, $agent$$inline_1331$$ = $AdfAgent$$.$AGENT$, $color$$inline_1332$$ = $JSCompiler_alias_NULL$$, $colorIndex$$inline_1333$$ = 0;
  $agent$$inline_1331$$.$elementsRemoved$($customColorRowId_domElement$$94_rowElement$$inline_1325$$);
  $colorArray$$inline_1326$$ == $JSCompiler_alias_NULL$$ && ($colorArray$$inline_1326$$ = []);
  for(var $i$$inline_1334$$ = 0;$i$$inline_1334$$ < $length$$inline_1328$$;$i$$inline_1334$$++) {
    if($childElement$$inline_1329$$ = $rowChildrenArray$$inline_1327$$[$i$$inline_1334$$], "TD" == $agent$$inline_1331$$.$getNodeName$($childElement$$inline_1329$$)) {
      if($swatch$$inline_1330$$ = $childElement$$inline_1329$$.firstChild, $color$$inline_1332$$ = $colorArray$$inline_1326$$[$colorIndex$$inline_1333$$], $colorIndex$$inline_1333$$++, $AdfDomUtils$$.$removeCSSClassName$($swatch$$inline_1330$$, "p_AFEmpty"), $color$$inline_1332$$ != $JSCompiler_alias_NULL$$) {
        var $colorString$$inline_1335$$ = $AdfDhtmlChooseColorBasePeer$$.$_convertToColorString$($color$$inline_1332$$);
        $swatch$$inline_1330$$.setAttribute($AdfDhtmlChooseColorBasePeer$$.$_SWATCH_EXPANDO$, $colorString$$inline_1335$$);
        $swatch$$inline_1330$$.style.backgroundColor = $colorString$$inline_1335$$;
        $colorString$$inline_1335$$ != $JSCompiler_alias_NULL$$ && ($colorString$$inline_1335$$ = $colorString$$inline_1335$$.substring(1));
        $colorString$$inline_1335$$ += " / " + $color$$inline_1332$$.red + "," + $color$$inline_1332$$.green + "," + $color$$inline_1332$$.blue;
        $swatch$$inline_1330$$.setAttribute("alt", $colorString$$inline_1335$$);
        $swatch$$inline_1330$$.setAttribute("title", $colorString$$inline_1335$$);
        $AdfDomUtils$$.$removeCSSClassName$($childElement$$inline_1329$$, "p_AFDisabled")
      }else {
        $AdfDomUtils$$.$addCSSClassName$($swatch$$inline_1330$$, "p_AFEmpty")
      }
    }
  }
  $agent$$inline_1331$$.$elementsAdded$($customColorRowId_domElement$$94_rowElement$$inline_1325$$);
  $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$466$$, AdfRichChooseColor.CUSTOM_COLOR_DATA, AdfRichInputColor.CUSTOM_COLOR_DATA, $newValue$$33$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.ComponentCustomColorDataChanged", {$ComponentCustomColorDataChanged$:$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentCustomColorDataChanged$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentColorValueChanged$ = function $$AdfDhtmlChooseColorBasePeer$$$$$ComponentColorValueChanged$$($component$$467$$, $clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$, $newSelectNode$$inline_1346_newValue$$34$$, $colorCount$$inline_1342_oldValue$$26$$) {
  var $clientId$$105_newCustomColorData$$inline_1343$$ = $component$$467$$.$getClientId$(), $oldSelectNode$$inline_1347_oldSelectedSwatch$$ = $JSCompiler_alias_NULL$$, $newSelectedSwatch$$ = $JSCompiler_alias_NULL$$;
  switch($JSCompiler_StaticMethods__getSelectionState$$($clientId$$105_newCustomColorData$$inline_1343$$)) {
    case $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_OLD_SWATCH_KNOWN$:
      $oldSelectNode$$inline_1347_oldSelectedSwatch$$ = $AdfDhtmlChooseColorBasePeer$$.$_prevSwatchSelectionMap$[$clientId$$105_newCustomColorData$$inline_1343$$];
      $newSelectedSwatch$$ = $JSCompiler_StaticMethods__findSwatchByColor$$($component$$467$$, $newSelectNode$$inline_1346_newValue$$34$$, $JSCompiler_alias_FALSE$$);
      break;
    case $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_NEW_SWATCH_KNOWN$:
      $oldSelectNode$$inline_1347_oldSelectedSwatch$$ = $JSCompiler_StaticMethods__findSwatchByColor$$($component$$467$$, $colorCount$$inline_1342_oldValue$$26$$, $JSCompiler_alias_FALSE$$);
      $newSelectedSwatch$$ = this.$_getCurrentSelection$($clientId$$105_newCustomColorData$$inline_1343$$);
      break;
    case $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_UNKNOWN$:
    ;
    case $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_PROCESSED$:
      $oldSelectNode$$inline_1347_oldSelectedSwatch$$ = $JSCompiler_StaticMethods__findSwatchByColor$$($component$$467$$, $colorCount$$inline_1342_oldValue$$26$$, $JSCompiler_alias_TRUE$$);
      $newSelectedSwatch$$ = $JSCompiler_StaticMethods__findSwatchByColor$$($component$$467$$, $newSelectNode$$inline_1346_newValue$$34$$, $JSCompiler_alias_FALSE$$);
      break;
    case $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_SWATCHES_KNOWN$:
      $oldSelectNode$$inline_1347_oldSelectedSwatch$$ = $AdfDhtmlChooseColorBasePeer$$.$_prevSwatchSelectionMap$[$clientId$$105_newCustomColorData$$inline_1343$$], $newSelectedSwatch$$ = this.$_getCurrentSelection$($clientId$$105_newCustomColorData$$inline_1343$$)
  }
  if($newSelectedSwatch$$ == $JSCompiler_alias_NULL$$ && $newSelectNode$$inline_1346_newValue$$34$$ != $JSCompiler_alias_NULL$$) {
    if($clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$ = this.$GetComponentCustomColorData$($component$$467$$, $clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$)) {
      $colorCount$$inline_1342_oldValue$$26$$ = $clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$.length;
      $clientId$$105_newCustomColorData$$inline_1343$$ = $JSCompiler_alias_NULL$$;
      if($clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$[$colorCount$$inline_1342_oldValue$$26$$ - 1] != $JSCompiler_alias_NULL$$) {
        $clientId$$105_newCustomColorData$$inline_1343$$ = $clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$.slice(), $clientId$$105_newCustomColorData$$inline_1343$$.splice(0, 1), $clientId$$105_newCustomColorData$$inline_1343$$[$colorCount$$inline_1342_oldValue$$26$$ - 1] = $newSelectNode$$inline_1346_newValue$$34$$
      }else {
        $clientId$$105_newCustomColorData$$inline_1343$$ = $clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$.slice();
        for(i = 0;i < $colorCount$$inline_1342_oldValue$$26$$;i++) {
          if($clientId$$105_newCustomColorData$$inline_1343$$[i] == $JSCompiler_alias_NULL$$) {
            $clientId$$105_newCustomColorData$$inline_1343$$[i] = $newSelectNode$$inline_1346_newValue$$34$$;
            break
          }
        }
      }
      $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$467$$, AdfRichChooseColor.CUSTOM_COLOR_DATA, AdfRichInputColor.CUSTOM_COLOR_DATA, $clientId$$105_newCustomColorData$$inline_1343$$);
      $component$$467$$.setProperty(AdfRichChooseColor.CUSTOM_COLOR_DATA, $clientId$$105_newCustomColorData$$inline_1343$$)
    }
    $newSelectedSwatch$$ = $JSCompiler_StaticMethods__findSwatchByColor$$($component$$467$$, $newSelectNode$$inline_1346_newValue$$34$$, $JSCompiler_alias_FALSE$$)
  }
  $newSelectNode$$inline_1346_newValue$$34$$ = $newSelectedSwatch$$;
  $oldSelectNode$$inline_1347_oldSelectedSwatch$$ != $newSelectNode$$inline_1346_newValue$$34$$ && ($clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$ = this.$getComponent$().$getClientId$(), $oldSelectNode$$inline_1347_oldSelectedSwatch$$ != $JSCompiler_alias_NULL$$ && $oldSelectNode$$inline_1347_oldSelectedSwatch$$.parentNode != $JSCompiler_alias_NULL$$ && $AdfDomUtils$$.$removeCSSClassName$($oldSelectNode$$inline_1347_oldSelectedSwatch$$.parentNode, "p_AFSelected"), $AdfDhtmlChooseColorBasePeer$$.$_prevSwatchSelectionMap$[$clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$] = 
  $oldSelectNode$$inline_1347_oldSelectedSwatch$$, $newSelectNode$$inline_1346_newValue$$34$$ != $JSCompiler_alias_NULL$$ && $AdfDomUtils$$.$addCSSClassName$($newSelectNode$$inline_1346_newValue$$34$$.parentNode, "p_AFSelected"), $AdfDhtmlChooseColorBasePeer$$.$_curSwatchSelectionMap$[$clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$] = $newSelectNode$$inline_1346_newValue$$34$$, $AdfDhtmlChooseColorBasePeer$$.$_selectionStateMap$[$clientId$$inline_1348_customColors$$inline_1341_domElement$$95$$] = 
  $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_PROCESSED$);
  $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$467$$, $AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, AdfUIValue.VALUE)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.ComponentColorValueChanged", {$ComponentColorValueChanged$:$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentColorValueChanged$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentLastUsedColorChanged$ = function $$AdfDhtmlChooseColorBasePeer$$$$$ComponentLastUsedColorChanged$$($component$$468$$, $buttonSwatchId$$2_domElement$$96$$, $newValue$$35$$) {
  if($buttonSwatchId$$2_domElement$$96$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$468$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_LAST_USED_COLOR_BTN$)) {
    $JSCompiler_StaticMethods__updateButtonSwatch$$($buttonSwatchId$$2_domElement$$96$$, $newValue$$35$$), $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$468$$, $AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$, $AdfDhtmlInputColorPeer$$.$__LAST_USED_COLOR$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.ComponentLastUsedColorChanged", {$ComponentLastUsedColorChanged$:$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentLastUsedColorChanged$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentDefaultColorChanged$ = function $$AdfDhtmlChooseColorBasePeer$$$$$ComponentDefaultColorChanged$$($buttonSwatchId$$3_component$$469$$, $domElement$$97$$, $newValue$$36$$) {
  $buttonSwatchId$$3_component$$469$$ = $AdfRichUIPeer$$.$CreateSubId$($buttonSwatchId$$3_component$$469$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_DEFAULT_COLOR_BTN$);
  $JSCompiler_StaticMethods__updateButtonSwatch$$($buttonSwatchId$$3_component$$469$$, $newValue$$36$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.ComponentDefaultColorChanged", {$ComponentDefaultColorChanged$:$AdfDhtmlChooseColorBasePeer$$.prototype.$ComponentDefaultColorChanged$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlChooseColorBasePeer$$$$$HandleComponentClick$$($componentEvent$$73$$) {
  var $component$$470$$ = $componentEvent$$73$$.getSource(), $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $componentEvent$$73$$.$getNativeEventTarget$(), $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$ = $AdfAgent$$.$AGENT$;
  if(this.$_customPanelHandler$ != $JSCompiler_alias_NULL$$) {
    $componentEvent$$73$$.cancel()
  }else {
    var $oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$ = $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$;
    "TD" == $AdfAgent$$.$AGENT$.$getNodeName$($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$) && ($oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$ = $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$.firstChild);
    $JSCompiler_StaticMethods__isSwatch$$($oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$) ? ($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = "TD" == $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$.$getNodeName$($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$) ? $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$.firstChild : 
    $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$ = $component$$470$$.$getClientId$(), $oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$ = this.$_getCurrentSelection$($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$), $AdfDhtmlChooseColorBasePeer$$.$_prevSwatchSelectionMap$[$agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$] = 
    $oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$, $AdfDhtmlChooseColorBasePeer$$.$_curSwatchSelectionMap$[$agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$] = $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$ = $JSCompiler_StaticMethods__getSelectionState$$($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$), 
    $AdfDhtmlChooseColorBasePeer$$.$_selectionStateMap$[$agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$] = $oldSelectedSwatch$$1_selectionState_targetElement$$inline_1352$$ != $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_UNKNOWN$ ? $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_SWATCHES_KNOWN$ : $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_NEW_SWATCH_KNOWN$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $JSCompiler_StaticMethods__getColorFromSwatch$$($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$), 
    $component$$470$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$), $component$$470$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_LOCALLY$), $componentEvent$$73$$.cancel(), 
    $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$470$$, $JSCompiler_alias_TRUE$$)) : $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_BUTTON_EXPANDO$) != $JSCompiler_alias_NULL$$ && ($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_BUTTON_EXPANDO$), 
    $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ == $AdfDhtmlChooseColorBasePeer$$.$_LAST_USED_COLOR_BTN$ ? ($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $component$$470$$.$getProperty$($AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$), $component$$470$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, 
    $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$), $AdfDhtmlInputChooseBindingUtils$$.$updateInputComponentProperty$($component$$470$$, $AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, AdfUIValue.VALUE), $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$470$$)) : $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ == $AdfDhtmlChooseColorBasePeer$$.$_DEFAULT_COLOR_BTN$ ? ($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = 
    $component$$470$$.$getProperty$(AdfRichChooseColor.DEFAULT_COLOR), $component$$470$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$), $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$470$$)) : $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ == $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_COLOR_BTN$ && 
    ($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $JSCompiler_StaticMethods__getCustomPanelId$$($component$$470$$), $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$ = $component$$470$$.$getProperty$($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$), this.$_customPanelHandler$ == $JSCompiler_alias_NULL$$ && (this.$_customPanelHandler$ = new $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$, 
    $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, this)), $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$ = $JSCompiler_StaticMethods__getCustomPanelId$$($component$$470$$), $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$ = $AdfAgent$$.$AGENT$.getElementById($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$), 
    $agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$, $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_DLG_DRAG_ID$), $AdfAgent$$.$AGENT$.getElementById($agent$$172_clientId$$106_colorParam_customPanelId$$inline_1356_dragElementId$$inline_1358$$), $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$.parentNode.removeChild($buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$), 
    this.$showPopup$($component$$470$$, $buttonExpando_contentDom$$inline_1357_customPanelClientId_eventTarget$$25_newValue$$37_swatch$$1$$, $JSCompiler_alias_NULL$$, $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$), this.$_customPanelHandler$.$updateDisplay$(), this.$_customPanelHandler$.$updateOldColorSwatch$()), $componentEvent$$73$$.cancel())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentClick$});
function $JSCompiler_StaticMethods__getCustomPanelId$$($component$$471$$) {
  return"old" == $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|dialog-tr-button-type") ? $AdfRichUIPeer$$.$CreateSubId$($component$$471$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$) : "AdfRichPopup" == $component$$471$$.getParent().$getTypeName$() ? $component$$471$$.getParent().getParent().$getClientId$() + "_" + $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$ : $component$$471$$.$getClientId$() + "_" + $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$
}
function $JSCompiler_StaticMethods__isSwatch$$($element$$198$$) {
  return $element$$198$$ && $element$$198$$.attributes && $element$$198$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_SWATCH_EXPANDO$) != $JSCompiler_alias_NULL$$
}
$AdfDhtmlChooseColorBasePeer$$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlChooseColorBasePeer$$$$$_handleArrowKeys$$($element$$199$$, $key$$52$$) {
  var $targetElement$$21$$, $nexRow_pos$$18_prevRow$$1$$;
  switch($key$$52$$) {
    case $AdfKeyStroke$$.$ARROWUP_KEY$:
    ;
    case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      if($targetElement$$21$$ = $key$$52$$ == $AdfKeyStroke$$.$ARROWUP_KEY$ ? $AdfDomUtils$$.$getPreviousElement$($element$$199$$.parentNode) : $AdfDomUtils$$.$getNextElement$($element$$199$$.parentNode)) {
        $nexRow_pos$$18_prevRow$$1$$ = $AdfDomUtils$$.$getElementPosition$($element$$199$$), $targetElement$$21$$ = $AdfDomUtils$$.$getChildElementByPosition$($targetElement$$21$$, $element$$199$$.nodeType, $nexRow_pos$$18_prevRow$$1$$)
      }
      break;
    case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
      $targetElement$$21$$ = $AdfDomUtils$$.$getNextElement$($element$$199$$);
      !$targetElement$$21$$ && $element$$199$$.parentNode != $JSCompiler_alias_NULL$$ && ($nexRow_pos$$18_prevRow$$1$$ = $AdfDomUtils$$.$getNextElement$($element$$199$$.parentNode)) && ($targetElement$$21$$ = $AdfDomUtils$$.$getFirstChildElement$($nexRow_pos$$18_prevRow$$1$$));
      $targetElement$$21$$ && $AdfDomUtils$$.$containsCSSClassName$($targetElement$$21$$, "p_AFDisabled") && ($targetElement$$21$$ = $JSCompiler_alias_NULL$$);
      break;
    case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
      $targetElement$$21$$ = $AdfDomUtils$$.$getPreviousElement$($element$$199$$), !$targetElement$$21$$ && $element$$199$$.parentNode != $JSCompiler_alias_NULL$$ && ($nexRow_pos$$18_prevRow$$1$$ = $AdfDomUtils$$.$getPreviousElement$($element$$199$$.parentNode)) && ($targetElement$$21$$ = $AdfDomUtils$$.$getLastChildElement$($nexRow_pos$$18_prevRow$$1$$))
  }
  $targetElement$$21$$ && ($element$$199$$ && $element$$199$$.setAttribute("tabIndex", "-1"), $targetElement$$21$$.setAttribute("tabIndex", "0"), $AdfFocusUtils$$.$focusElement$($targetElement$$21$$))
};
$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlChooseColorBasePeer$$$$$HandleComponentKeyDown$$($componentEvent$$74$$) {
  this.$getComponent$();
  var $agent$$174_keyCode$$31$$ = $AdfAgent$$.$AGENT$, $eventTarget$$26_evt$$79$$ = $componentEvent$$74$$.$getNativeEvent$(), $agent$$174_keyCode$$31$$ = $agent$$174_keyCode$$31$$.$getKeyCode$($eventTarget$$26_evt$$79$$);
  if(!$eventTarget$$26_evt$$79$$.ctrlKey) {
    switch($agent$$174_keyCode$$31$$) {
      case $AdfKeyStroke$$.$ARROWUP_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
        return $eventTarget$$26_evt$$79$$ = $componentEvent$$74$$.$getNativeEventTarget$(), this.$_customPanelHandler$ != $JSCompiler_alias_NULL$$ ? this.$_customPanelHandler$.$_handleArrowKeys$($eventTarget$$26_evt$$79$$, $agent$$174_keyCode$$31$$) : $JSCompiler_StaticMethods__isSwatch$$($eventTarget$$26_evt$$79$$.firstChild) && this.$_handleArrowKeys$($eventTarget$$26_evt$$79$$, $agent$$174_keyCode$$31$$), $componentEvent$$74$$.cancel(), $JSCompiler_alias_FALSE$$
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlChooseColorBasePeer$$$$$HandleComponentKeyUp$$($componentEvent$$75$$) {
  var $component$$473$$ = this.$getComponent$(), $agent$$175_keyCode$$32$$ = $AdfAgent$$.$AGENT$, $element$$200_evt$$80_newValue$$38$$ = $componentEvent$$75$$.$getNativeEvent$(), $agent$$175_keyCode$$32$$ = $agent$$175_keyCode$$32$$.$getKeyCode$($element$$200_evt$$80_newValue$$38$$);
  if(!$element$$200_evt$$80_newValue$$38$$.ctrlKey) {
    switch($agent$$175_keyCode$$32$$) {
      case $AdfKeyStroke$$.$ENTER_KEY$:
      ;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        $element$$200_evt$$80_newValue$$38$$ = $componentEvent$$75$$.$getNativeEventTarget$().firstChild;
        $JSCompiler_StaticMethods__isSwatch$$($element$$200_evt$$80_newValue$$38$$) && ($AdfDomUtils$$.$addCSSClassName$($element$$200_evt$$80_newValue$$38$$, "p_AFSelected"), $element$$200_evt$$80_newValue$$38$$ = $JSCompiler_StaticMethods__getColorFromSwatch$$($element$$200_evt$$80_newValue$$38$$), $component$$473$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $element$$200_evt$$80_newValue$$38$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$), $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$473$$, 
        $JSCompiler_alias_TRUE$$), $componentEvent$$75$$.cancel());
        break;
      case $AdfKeyStroke$$.$ESC_KEY$:
        $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$473$$, $JSCompiler_alias_TRUE$$), $componentEvent$$75$$.cancel()
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlChooseColorBasePeer$$$$$PopupClosed$$($component$$474_parentId$$2$$, $contentDom$$6_customPanelId$$, $popupId$$33$$) {
  $AdfDhtmlChooseColorBasePeer$$.$superclass$.$PopupClosed$.call(this, $component$$474_parentId$$2$$, $contentDom$$6_customPanelId$$);
  $popupId$$33$$ == $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$ && ($contentDom$$6_customPanelId$$ = $JSCompiler_StaticMethods__getCustomPanelId$$($component$$474_parentId$$2$$), $contentDom$$6_customPanelId$$ = $AdfAgent$$.$AGENT$.getElementById($contentDom$$6_customPanelId$$), $component$$474_parentId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$474_parentId$$2$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL_WRAPPER_ID$), $AdfAgent$$.$AGENT$.getElementById($component$$474_parentId$$2$$).appendChild($contentDom$$6_customPanelId$$), 
  this.$_customPanelHandler$ = $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlChooseColorBasePeer$$.prototype.$PopupClosed$});
$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentDialog$ = function $$AdfDhtmlChooseColorBasePeer$$$$$HandleComponentDialog$$($componentEvent$$76$$) {
  var $component$$475$$ = this.$getComponent$();
  if($componentEvent$$76$$.$getOutcome$() == $AdfDialogEvent$$.$OUTCOME_OK$) {
    var $newColor$$1$$ = this.$_customPanelHandler$.$getCurrentColorObj$(), $clientId$$107$$ = $component$$475$$.$getClientId$(), $oldSelectedSwatch$$2$$ = this.$_getCurrentSelection$($clientId$$107$$);
    $AdfDhtmlChooseColorBasePeer$$.$_prevSwatchSelectionMap$[$clientId$$107$$] = $oldSelectedSwatch$$2$$;
    $AdfDhtmlChooseColorBasePeer$$.$_selectionStateMap$[$clientId$$107$$] = $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_OLD_SWATCH_KNOWN$;
    $component$$475$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__COLOR_VALUE$, $newColor$$1$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$);
    $component$$475$$.setProperty($AdfDhtmlChooseColorBasePeer$$.$__LAST_USED_COLOR$, $newColor$$1$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_LOCALLY$)
  }
  $componentEvent$$76$$.cancel();
  this.$hidePopup$(this.$getComponent$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_PANEL$);
  $AdfDhtmlInputChooseBindingUtils$$.$returnToInputComponent$($component$$475$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentDialog", {$HandleComponentDialog$:$AdfDhtmlChooseColorBasePeer$$.prototype.$HandleComponentDialog$});
function $JSCompiler_StaticMethods__findSwatchByColor$$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$, $colorToMatch$$2_colorToMatchStr$$, $selected$$5_swatch$$inline_1377$$) {
  $colorToMatch$$2_colorToMatchStr$$ = $AdfDhtmlChooseColorBasePeer$$.$_convertToColorString$($colorToMatch$$2_colorToMatchStr$$);
  var $rows$$inline_1364_swatch$$4$$ = $JSCompiler_alias_NULL$$;
  a: {
    for(var $rows$$inline_1364_swatch$$4$$ = $JSCompiler_StaticMethods__getSwatchRows$$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$), $rowsLength$$inline_1365$$ = $rows$$inline_1364_swatch$$4$$.length, $i$$inline_1366$$ = 0;$i$$inline_1366$$ < $rowsLength$$inline_1365$$;$i$$inline_1366$$++) {
      for(var $element$$inline_1367$$ = $AdfDomUtils$$.$getFirstChildElement$($rows$$inline_1364_swatch$$4$$[$i$$inline_1366$$]);$element$$inline_1367$$;) {
        if(!$selected$$5_swatch$$inline_1377$$ || $AdfDomUtils$$.$containsCSSClassName$($element$$inline_1367$$, "p_AFSelected")) {
          var $swatch$$inline_1368$$ = $AdfDomUtils$$.$getFirstChildElement$($element$$inline_1367$$), $color$$inline_1369$$ = $swatch$$inline_1368$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_SWATCH_EXPANDO$);
          "No Color" == $color$$inline_1369$$ && ($color$$inline_1369$$ = $JSCompiler_alias_NULL$$);
          if($color$$inline_1369$$ == $colorToMatch$$2_colorToMatchStr$$) {
            $rows$$inline_1364_swatch$$4$$ = $swatch$$inline_1368$$;
            break a
          }
        }
        $element$$inline_1367$$ = $AdfDomUtils$$.$getNextElement$($element$$inline_1367$$)
      }
    }
    $rows$$inline_1364_swatch$$4$$ = $JSCompiler_alias_NULL$$
  }
  if(!$rows$$inline_1364_swatch$$4$$) {
    a: {
      $component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$.$getClientId$(), $AdfDhtmlChooseColorBasePeer$$.$_CUSTOM_ROW_ID$);
      if($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$ = $AdfAgent$$.$AGENT$.getElementById($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$)) {
        for($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$ = $AdfDomUtils$$.$getFirstChildElement$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$);$component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$;) {
          if(!$AdfDomUtils$$.$containsCSSClassName$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$, "p_AFDisabled") && ($selected$$5_swatch$$inline_1377$$ = $AdfDomUtils$$.$getFirstChildElement$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$), $selected$$5_swatch$$inline_1377$$.getAttribute($AdfDhtmlChooseColorBasePeer$$.$_SWATCH_EXPANDO$) == $colorToMatch$$2_colorToMatchStr$$)) {
            $rows$$inline_1364_swatch$$4$$ = $selected$$5_swatch$$inline_1377$$;
            break a
          }
          $component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$ = $AdfDomUtils$$.$getNextElement$($component$$478_customRowId$$inline_1374_element$$inline_1376_rowElement$$inline_1375$$)
        }
      }
      $rows$$inline_1364_swatch$$4$$ = $JSCompiler_alias_NULL$$
    }
  }
  return $rows$$inline_1364_swatch$$4$$
}
function $JSCompiler_StaticMethods__updateButtonSwatch$$($buttonSwatchId$$4$$, $newColor$$2$$) {
  var $swatchElement$$ = $AdfAgent$$.$AGENT$.getElementById($buttonSwatchId$$4$$);
  if($swatchElement$$) {
    if($AdfDomUtils$$.$removeCSSClassName$($swatchElement$$, "p_AFEmpty"), $newColor$$2$$ != $JSCompiler_alias_NULL$$) {
      var $colorString$$4$$ = $AdfDhtmlChooseColorBasePeer$$.$_convertToColorString$($newColor$$2$$);
      $swatchElement$$.style.backgroundColor = $colorString$$4$$;
      $swatchElement$$.setAttribute($AdfDhtmlChooseColorBasePeer$$.$_COLOR_VALUE_EXPANDO$, $colorString$$4$$)
    }else {
      $AdfDomUtils$$.$addCSSClassName$($swatchElement$$, "p_AFEmpty"), $swatchElement$$.removeAttribute($AdfDhtmlChooseColorBasePeer$$.$_COLOR_VALUE_EXPANDO$)
    }
  }
}
function $JSCompiler_StaticMethods__getColorArrayFromSwatchRow$$($rowChildrenArray$$1_rowElement$$3$$) {
  var $colorArray$$2$$ = [];
  $rowChildrenArray$$1_rowElement$$3$$ = $rowChildrenArray$$1_rowElement$$3$$.childNodes;
  for(var $length$$33$$ = $rowChildrenArray$$1_rowElement$$3$$.length, $childElement$$6_swatch$$6$$ = $JSCompiler_alias_NULL$$, $agent$$177$$ = $AdfAgent$$.$AGENT$, $childElement$$6_swatch$$6$$ = $JSCompiler_alias_NULL$$, $colorIndex$$1$$ = 0, $i$$192$$ = 0;$i$$192$$ < $length$$33$$;$i$$192$$++) {
    $childElement$$6_swatch$$6$$ = $rowChildrenArray$$1_rowElement$$3$$[$i$$192$$], "TD" == $agent$$177$$.$getNodeName$($childElement$$6_swatch$$6$$) && ($childElement$$6_swatch$$6$$ = $childElement$$6_swatch$$6$$.firstChild, $JSCompiler_StaticMethods__isSwatch$$($childElement$$6_swatch$$6$$) ? $colorArray$$2$$[$colorIndex$$1$$] = $JSCompiler_StaticMethods__getColorFromSwatch$$($childElement$$6_swatch$$6$$) : $colorArray$$2$$[$colorIndex$$1$$] = $JSCompiler_alias_NULL$$, $colorIndex$$1$$++)
  }
  return $colorArray$$2$$
}
$AdfDhtmlChooseColorBasePeer$$.prototype.$_getCurrentSelection$ = function $$AdfDhtmlChooseColorBasePeer$$$$$_getCurrentSelection$$($clientId$$113$$) {
  return $AdfDhtmlChooseColorBasePeer$$.$_curSwatchSelectionMap$[$clientId$$113$$]
};
function $JSCompiler_StaticMethods__getSelectionState$$($clientId$$114$$) {
  var $state$$30$$ = $AdfDhtmlChooseColorBasePeer$$.$_selectionStateMap$[$clientId$$114$$];
  $state$$30$$ || ($AdfDhtmlChooseColorBasePeer$$.$_selectionStateMap$[$clientId$$114$$] = $state$$30$$ = $AdfDhtmlChooseColorBasePeer$$.$_SELECTION_UNKNOWN$);
  return $state$$30$$
}
$AdfDhtmlChooseColorBasePeer$$.$_initSwatchSelectionHandlerClass$ = function $$AdfDhtmlChooseColorBasePeer$$$$_initSwatchSelectionHandlerClass$$() {
  $AdfDhtmlChooseColorBasePeer$$.$_SwatchSelectionHandler$ = function $$AdfDhtmlChooseColorBasePeer$$$$_SwatchSelectionHandler$$() {
    this.Init()
  };
  $AdfObject$$.$createSubclass$($AdfDhtmlChooseColorBasePeer$$.$_SwatchSelectionHandler$, $AdfObject$$, "AdfDhtmlChooseColorBasePeer._SwatchSelectionHandler");
  $AdfDhtmlChooseColorBasePeer$$.$_SwatchSelectionHandler$.prototype.Init = function $$AdfDhtmlChooseColorBasePeer$$$$_SwatchSelectionHandler$$$Init$() {
    $AdfDhtmlChooseColorBasePeer$$.$_SwatchSelectionHandler$.$superclass$.Init.call(this);
    this.$_prevSwatchSelectionMap$ = {};
    this.$_curSwatchSelectionMap$ = {};
    this.$_selectionStateMap$ = {}
  }
};
$AdfDhtmlChooseColorBasePeer$$.$_initCustomPanelHandlerClass$ = function $$AdfDhtmlChooseColorBasePeer$$$$_initCustomPanelHandlerClass$$() {
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$($rgbOriginalColor$$, $clientId$$121$$, $callPeer$$) {
    this.Init($rgbOriginalColor$$, $clientId$$121$$, $callPeer$$)
  };
  $AdfObject$$.$createSubclass$($AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$, $AdfObject$$, "AdfDhtmlChooseColorBasePeer._CustomPanelHandler");
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.Init = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$Init$($rgbOriginalColor$$1$$, $clientId$$122$$) {
    $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$superclass$.Init.call(this);
    this.$_clientId$ = $clientId$$122$$;
    var $colorString$$5_parsedRgbTotal$$ = $AdfDhtmlChooseColorBasePeer$$.$_convertToColorString$($rgbOriginalColor$$1$$), $colorString$$5_parsedRgbTotal$$ = $colorString$$5_parsedRgbTotal$$ != $JSCompiler_alias_NULL$$ && 0 != $rgbOriginalColor$$1$$.alpha ? $colorString$$5_parsedRgbTotal$$.substring(1) : "3F7B7B", $thisClass$$ = $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$;
    this.$_hueSaturationMapId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_HUE_SATUR_MAP_ID$);
    this.$_crossHairImgId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_CROSSHAIR_ID$);
    this.$_luminosityMapId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_LUM_MAP_ID$);
    this.$_luminosityImgId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_LUM_IMG_ID$);
    this.$_sliderThumbId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_THUMB_ID$);
    this.$_currentColorSwatchId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_CUR_SWATCH_ID$);
    this.$_oldColorSwatchId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_PREV_SWATCH_ID$);
    this.$_hexFieldId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_H_EDIT_ID$);
    this.$_rFieldId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_R_EDIT_ID$);
    this.$_gFieldId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_G_EDIT_ID$);
    this.$_bFieldId$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$122$$, $thisClass$$.$_B_EDIT_ID$);
    this.$_sliderBackgroundColor$ = $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.$createInstanceFromRgbTotal$(16777215);
    $colorString$$5_parsedRgbTotal$$ = $AdfDhtmlChooseColorBasePeer$$.$parseHexColor$($colorString$$5_parsedRgbTotal$$);
    this.$_currentColor$ = this.$_oldColor$ = $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.$createInstanceFromRgbTotal$($colorString$$5_parsedRgbTotal$$);
    this.$_initElementDimensions$();
    this.$_bindToCustomEditDOM$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_initElementDimensions$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_initElementDimensions$$() {
    var $agent$$178$$ = $AdfAgent$$.$AGENT$, $crossHair_hueSaturationMap_slider_thumb$$ = $agent$$178$$.getElementById(this.$_crossHairImgId$);
    this.$_CROSSHAIR_IMG_WIDTH$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "width");
    this.$_CROSSHAIR_IMG_HEIGHT$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "height");
    this.$_CROSSHAIR_IMG_MID_WIDTH$ = Math.floor(this.$_CROSSHAIR_IMG_WIDTH$ / 2);
    this.$_CROSSHAIR_IMG_MID_HEIGHT$ = Math.floor(this.$_CROSSHAIR_IMG_HEIGHT$ / 2);
    $crossHair_hueSaturationMap_slider_thumb$$ = $agent$$178$$.getElementById(this.$_sliderThumbId$);
    this.$_SLIDERTHUMB_IMG_HEIGHT$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "height");
    $crossHair_hueSaturationMap_slider_thumb$$ = $agent$$178$$.getElementById(this.$_luminosityMapId$);
    this.$_SLIDERDIV_ELEMENT_HEIGHT$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "height");
    $crossHair_hueSaturationMap_slider_thumb$$ = $agent$$178$$.getElementById(this.$_hueSaturationMapId$);
    this.$_HUESATURATIONMAP_WIDTH$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "width");
    this.$_HUESATURATIONMAP_HEIGHT$ = this.$_getStyleCSSLength$($agent$$178$$, $crossHair_hueSaturationMap_slider_thumb$$, "height")
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$InitClass$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$InitClass$$() {
    this.$_CROSSHAIR_WIDTH$ = "_afrCrossHairWidth";
    this.$_CROSSHAIR_HEIGHT$ = "_afrCrossHairHeight";
    this.$_SLIDERTHUMB_HEIGHT$ = "_afrThumbHeight";
    this.$_SLIDER_HEIGHT$ = "_afrSliderHeight";
    this.$_COLOR_IMG_WIDTH$ = "_afrColorImgWidth";
    this.$_COLOR_IMG__HEIGHT$ = "_afrColorImgHeight";
    this.$_HUE_SATUR_MAP_ID$ = "hueSatMap";
    this.$_HUE_SATUR_IMG_ID$ = "hueSatImg";
    this.$_CROSSHAIR_ID$ = "crossHair";
    this.$_LUM_MAP_ID$ = "lumMap";
    this.$_LUM_IMG_ID$ = "lumImg";
    this.$_THUMB_ID$ = "thumb";
    this.$_H_EDIT_ID$ = "hEdit";
    this.$_R_EDIT_ID$ = "rEdit";
    this.$_G_EDIT_ID$ = "gEdit";
    this.$_B_EDIT_ID$ = "bEdit";
    this.$_PREV_SWATCH_ID$ = "cstPrevSwtch";
    this.$_CUR_SWATCH_ID$ = "cstCurSwtch";
    $AdfPage$$.$PAGE$.$getLookAndFeel$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_getStyleCSSLength$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_getStyleCSSLength$$($agent$$179_widthString$$, $element$$203_style$$15$$, $styleName$$1$$) {
    var $length$$34$$ = 0;
    $element$$203_style$$15$$ = $agent$$179_widthString$$.getComputedStyle($element$$203_style$$15$$);
    $agent$$179_widthString$$ = $agent$$179_widthString$$.$getStyleProperty$($element$$203_style$$15$$, $styleName$$1$$);
    $agent$$179_widthString$$ != $JSCompiler_alias_NULL$$ && ($length$$34$$ = $AdfAgent$$.$getCSSLengthAsInt$($agent$$179_widthString$$));
    return $length$$34$$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_bindToCustomEditDOM$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_bindToCustomEditDOM$$() {
    var $bFieldId_clientId$$123$$ = this.$_clientId$;
    customHandlerClass = $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$;
    var $agent$$180$$ = $AdfAgent$$.$AGENT$, $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $AdfRichUIPeer$$.$CreateSubId$($bFieldId_clientId$$123$$, customHandlerClass.$_H_EDIT_ID$), $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $agent$$180$$.getElementById($domNode$$21_gFieldId_hexFieldId_rFieldId$$), $domChangeLister$$ = this.$createCallback$(this.$_handleDomChange$);
    $agent$$180$$.$addBubbleEventListener$($domNode$$21_gFieldId_hexFieldId_rFieldId$$, "change", $domChangeLister$$);
    $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $AdfRichUIPeer$$.$CreateSubId$($bFieldId_clientId$$123$$, customHandlerClass.$_R_EDIT_ID$);
    $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $agent$$180$$.getElementById($domNode$$21_gFieldId_hexFieldId_rFieldId$$);
    $domChangeLister$$ = this.$createCallback$(this.$_handleDomChange$);
    $agent$$180$$.$addBubbleEventListener$($domNode$$21_gFieldId_hexFieldId_rFieldId$$, "change", $domChangeLister$$);
    $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $AdfRichUIPeer$$.$CreateSubId$($bFieldId_clientId$$123$$, customHandlerClass.$_G_EDIT_ID$);
    $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $AdfAgent$$.$AGENT$.getElementById($domNode$$21_gFieldId_hexFieldId_rFieldId$$);
    $domChangeLister$$ = this.$createCallback$(this.$_handleDomChange$);
    $agent$$180$$.$addBubbleEventListener$($domNode$$21_gFieldId_hexFieldId_rFieldId$$, "change", $domChangeLister$$);
    $bFieldId_clientId$$123$$ = $AdfRichUIPeer$$.$CreateSubId$($bFieldId_clientId$$123$$, customHandlerClass.$_B_EDIT_ID$);
    $domNode$$21_gFieldId_hexFieldId_rFieldId$$ = $AdfAgent$$.$AGENT$.getElementById($bFieldId_clientId$$123$$);
    $domChangeLister$$ = this.$createCallback$(this.$_handleDomChange$);
    $agent$$180$$.$addBubbleEventListener$($domNode$$21_gFieldId_hexFieldId_rFieldId$$, "change", $domChangeLister$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$getCurrentColorObj$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$getCurrentColorObj$$() {
    return $AdfDhtmlChooseColorBasePeer$$.$_convertToColorObj$("#" + this.$_currentColor$.$getRgbHex$())
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_handleDomChange$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_handleDomChange$$($domEvent$$25$$) {
    targetElementId = $AdfAgent$$.$AGENT$.$getEventTarget$($domEvent$$25$$).getAttribute("id");
    targetElementId == this.$_hexFieldId$ ? this.$_onHexFieldChange$($domEvent$$25$$) : targetElementId == this.$_rFieldId$ ? this.$_onRFieldChange$($domEvent$$25$$) : targetElementId == this.$_gFieldId$ ? this.$_onGFieldChange$($domEvent$$25$$) : targetElementId == this.$_bFieldId$ && this.$_onBFieldChange$($domEvent$$25$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$updateOldColorSwatch$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$updateOldColorSwatch$$() {
    this.$_updateSwatch$(this.$_oldColorSwatchId$, this.$_oldColor$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$updateNewColorSwatch$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$updateNewColorSwatch$$() {
    this.$_updateSwatch$(this.$_currentColorSwatchId$, this.$_currentColor$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateSwatch$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateSwatch$$($swatchId$$, $advancedColor$$) {
    $AdfAgent$$.$AGENT$.getElementById($swatchId$$).style.backgroundColor = "#" + $advancedColor$$.$getRgbHex$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$updateDisplay$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$updateDisplay$$($skipElementId$$) {
    this.$updateNewColorSwatch$();
    $skipElementId$$ != this.$_hueSaturationMapId$ && $skipElementId$$ != this.$_luminosityMapId$ && (this.$_updateHueSaturationMap$(), this.$_updateLuminosityMapThumb$());
    $skipElementId$$ != this.$_luminosityMapId$ && this.$_updateLuminosityMapBackground$();
    $skipElementId$$ != this.$_hexFieldId$ && this.$_updateHexField$();
    $skipElementId$$ != this.$_rFieldId$ && ($skipElementId$$ != this.$_gFieldId$ && $skipElementId$$ != this.$_bFieldId$) && (this.$_updateRField$(), this.$_updateGField$(), this.$_updateBField$())
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$handleComponentMouseDown$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$handleComponentMouseDown$$($componentEvent$$77$$) {
    var $eventTarget$$29$$ = $componentEvent$$77$$.$getNativeEventTarget$(), $nativeEvent$$28$$ = $componentEvent$$77$$.$getNativeEvent$();
    targetElementId = $eventTarget$$29$$.getAttribute("id");
    if(targetElementId == this.$_hueSaturationMapId$ || targetElementId == this.$_crossHairImgId$) {
      this.$_onHueImageMouseDown$($nativeEvent$$28$$), $componentEvent$$77$$.cancel()
    }else {
      if(targetElementId == this.$_luminosityMapId$ || targetElementId == this.$_luminosityImgId$ || targetElementId == this.$_sliderThumbId$) {
        this.$_onBSliderMouseDown$($nativeEvent$$28$$), $componentEvent$$77$$.cancel()
      }
    }
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateHueSaturationMap$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateHueSaturationMap$$() {
    var $color$$6$$ = this.$_currentColor$, $crossHairImg$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_crossHairImgId$), $mapWidth$$ = this.$_HUESATURATIONMAP_WIDTH$;
    $crossHairImg$$.style.top = (1 - $color$$6$$.$_saturation$) * this.$_HUESATURATIONMAP_HEIGHT$ - this.$_CROSSHAIR_IMG_MID_HEIGHT$ + "px";
    $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$() ? $crossHairImg$$.style.left = $mapWidth$$ - $color$$6$$.$_hue$ * $mapWidth$$ / 360 - this.$_CROSSHAIR_IMG_MID_WIDTH$ + "px" : $crossHairImg$$.style.left = $color$$6$$.$_hue$ * $mapWidth$$ / 360 - this.$_CROSSHAIR_IMG_MID_WIDTH$ + "px"
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_handleArrowKeys$$($eventTarget$$30$$, $keyCode$$33$$) {
    switch($keyCode$$33$$) {
      case $AdfKeyStroke$$.$ARROWUP_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
      ;
      case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
        var $targetElementId$$1$$ = $eventTarget$$30$$.getAttribute("id"), $targetElement$$24$$ = $AdfAgent$$.$AGENT$.getElementById($targetElementId$$1$$), $deltaX$$14$$ = $keyCode$$33$$ == $AdfKeyStroke$$.$ARROWRIGHT_KEY$ ? 1 : $keyCode$$33$$ == $AdfKeyStroke$$.$ARROWLEFT_KEY$ ? -1 : 0, $deltaY$$15$$ = $keyCode$$33$$ == $AdfKeyStroke$$.$ARROWDOWN_KEY$ ? 1 : $keyCode$$33$$ == $AdfKeyStroke$$.$ARROWUP_KEY$ ? -1 : 0;
        if($targetElementId$$1$$ == this.$_hueSaturationMapId$ || $targetElementId$$1$$ == this.$_crossHairImgId$) {
          this.$_moveCrossHairByArrow$($deltaX$$14$$, $deltaY$$15$$), $AdfFocusUtils$$.$focusElement$($targetElement$$24$$)
        }else {
          if($targetElementId$$1$$ == this.$_luminosityMapId$ || $targetElementId$$1$$ == this.$_luminosityImgId$ || $targetElementId$$1$$ == this.$_sliderThumbId$) {
            ($keyCode$$33$$ == $AdfKeyStroke$$.$ARROWUP_KEY$ || $keyCode$$33$$ == $AdfKeyStroke$$.$ARROWDOWN_KEY$) && this.$_moveBThumbByArrow$($deltaY$$15$$), $AdfFocusUtils$$.$focusElement$($targetElement$$24$$)
          }
        }
    }
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateLuminosityMapBackground$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateLuminosityMapBackground$$() {
    var $color$$7$$ = this.$_currentColor$, $luminosityImgElement$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_luminosityImgId$);
    this.$_sliderBackgroundColor$.$setHsb$($color$$7$$.$_hue$, $color$$7$$.$_saturation$, 0.5);
    $luminosityImgElement$$.style.backgroundColor = "#" + this.$_sliderBackgroundColor$.$getRgbHex$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateLuminosityMapThumb$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateLuminosityMapThumb$$() {
    var $color$$8$$ = this.$_currentColor$;
    $AdfAgent$$.$AGENT$.getElementById(this.$_sliderThumbId$).style.top = (1 - $color$$8$$.$_luminosity$) * this.$_SLIDERDIV_ELEMENT_HEIGHT$ - this.$_SLIDERTHUMB_IMG_HEIGHT$ / 2 + "px"
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateHexField$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateHexField$$() {
    $AdfAgent$$.$AGENT$.getElementById(this.$_hexFieldId$).value = this.$_currentColor$.$getRgbHex$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateRField$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateRField$$() {
    $AdfAgent$$.$AGENT$.getElementById(this.$_rFieldId$).value = this.$_currentColor$.$_red$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateGField$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateGField$$() {
    $AdfAgent$$.$AGENT$.getElementById(this.$_gFieldId$).value = this.$_currentColor$.$_green$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_updateBField$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_updateBField$$() {
    $AdfAgent$$.$AGENT$.getElementById(this.$_bFieldId$).value = this.$_currentColor$.$_blue$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onHexFieldChange$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onHexFieldChange$$($domEvent$$26$$) {
    var $inputElememt$$4$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_hexFieldId$), $parsedValue$$ = $AdfDhtmlChooseColorBasePeer$$.$parseHexColor$($inputElememt$$4$$.value);
    $parsedValue$$ == $JSCompiler_alias_NULL$$ ? ($AdfAgent$$.$AGENT$.$eatEvent$($domEvent$$26$$), this.$_showHexValidationError$($inputElememt$$4$$.value), $AdfFocusUtils$$.$focusElement$($inputElememt$$4$$), this.$_updateHexField$()) : (this.$_currentColor$.$setRgbByTotal$($parsedValue$$), this.$updateDisplay$())
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_showRGBValidationError$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_showRGBValidationError$$($errorMessage$$2_inputString$$) {
    var $laf$$21$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
    $errorMessage$$2_inputString$$ = TrFastMessageFormatUtils.format($laf$$21$$.$getTranslatedString$("af_chooseColor.MSG_RGB_INVALID"), $errorMessage$$2_inputString$$);
    alert($errorMessage$$2_inputString$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_showHexValidationError$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_showHexValidationError$$($errorMessage$$3_inputString$$1$$) {
    var $laf$$22$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
    $errorMessage$$3_inputString$$1$$ = TrFastMessageFormatUtils.format($laf$$22$$.$getTranslatedString$("af_chooseColor.MSG_HEX_INVALID"), $errorMessage$$3_inputString$$1$$);
    alert($errorMessage$$3_inputString$$1$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onRFieldChange$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onRFieldChange$$($event$$127$$) {
    var $fieldElement$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_rFieldId$), $parsedValue$$1$$ = $AdfDhtmlChooseColorBasePeer$$.$parse0To255$($fieldElement$$.value);
    $parsedValue$$1$$ == $JSCompiler_alias_NULL$$ ? ($AdfAgent$$.$AGENT$.$eatEvent$($event$$127$$), this.$_showRGBValidationError$($fieldElement$$.value), $AdfFocusUtils$$.$focusElement$($fieldElement$$), this.$_updateRField$()) : (this.$_currentColor$.$setRed$($parsedValue$$1$$), this.$updateDisplay$(this.$_rFieldId$))
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onGFieldChange$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onGFieldChange$$($event$$128$$) {
    var $fieldElement$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_gFieldId$), $parsedValue$$2$$ = $AdfDhtmlChooseColorBasePeer$$.$parse0To255$($fieldElement$$1$$.value);
    $parsedValue$$2$$ == $JSCompiler_alias_NULL$$ ? ($AdfAgent$$.$AGENT$.$eatEvent$($event$$128$$), this.$_showRGBValidationError$($fieldElement$$1$$.value), $AdfFocusUtils$$.$focusElement$($fieldElement$$1$$), this.$_updateGField$()) : (this.$_currentColor$.$setGreen$($parsedValue$$2$$), this.$updateDisplay$(this.$_gFieldId$))
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onBFieldChange$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onBFieldChange$$($event$$129$$) {
    var $fieldElement$$2$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_bFieldId$), $parsedValue$$3$$ = $AdfDhtmlChooseColorBasePeer$$.$parse0To255$($fieldElement$$2$$.value);
    $parsedValue$$3$$ == $JSCompiler_alias_NULL$$ ? ($AdfAgent$$.$AGENT$.$eatEvent$($event$$129$$), this.$_showRGBValidationError$($fieldElement$$2$$.value), $AdfFocusUtils$$.$focusElement$($fieldElement$$2$$), this.$_updateBField$()) : (this.$_currentColor$.$setBlue$($parsedValue$$3$$), this.$updateDisplay$(this.$_bFieldId$))
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onHueImageMouseDown$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onHueImageMouseDown$$($event$$130$$) {
    this.$_moveCrossHairToMousePosition$($event$$130$$);
    $AdfPage$$.$PAGE$.$startDrag$($event$$130$$, this.$createCallback$(this.$_onHueImageDrag$));
    $AdfAgent$$.$getAgent$().$eatEvent$($event$$130$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onBSliderMouseDown$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onBSliderMouseDown$$($event$$131$$) {
    this.$_moveBThumbToMousePosition$($event$$131$$);
    $AdfPage$$.$PAGE$.$startDrag$($event$$131$$, this.$createCallback$(this.$_onBThumbDrag$));
    $AdfAgent$$.$getAgent$().$eatEvent$($event$$131$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_moveCrossHairToMousePosition$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_moveCrossHairToMousePosition$$($event$$132_hueMapElement$$) {
    var $agent$$181_hue_relativeX$$ = $AdfAgent$$.$getAgent$(), $mousePosition$$4_relativeY$$ = $agent$$181_hue_relativeX$$.$getMousePosition$($event$$132_hueMapElement$$);
    $event$$132_hueMapElement$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_hueSaturationMapId$);
    var $hueSaturationMapHeight_mapElementPosition$$ = $agent$$181_hue_relativeX$$.$getElementPosition$($event$$132_hueMapElement$$), $agent$$181_hue_relativeX$$ = $mousePosition$$4_relativeY$$.x - $hueSaturationMapHeight_mapElementPosition$$.x, $mousePosition$$4_relativeY$$ = $mousePosition$$4_relativeY$$.y - $hueSaturationMapHeight_mapElementPosition$$.y, $hueSaturationMapWidth$$ = this.$_HUESATURATIONMAP_WIDTH$, $hueSaturationMapHeight_mapElementPosition$$ = this.$_HUESATURATIONMAP_HEIGHT$, $agent$$181_hue_relativeX$$ = 
    Math.min($agent$$181_hue_relativeX$$, $hueSaturationMapWidth$$), $agent$$181_hue_relativeX$$ = Math.max(0, $agent$$181_hue_relativeX$$), $mousePosition$$4_relativeY$$ = Math.min($mousePosition$$4_relativeY$$, this.$_HUESATURATIONMAP_HEIGHT$), $mousePosition$$4_relativeY$$ = Math.max(0, $mousePosition$$4_relativeY$$), $crossHairImg$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_crossHairImgId$), $newLeft$$2_newTop$$2$$ = $mousePosition$$4_relativeY$$ - this.$_CROSSHAIR_IMG_MID_HEIGHT$;
    0 == $mousePosition$$4_relativeY$$ && $newLeft$$2_newTop$$2$$++;
    $crossHairImg$$1$$.style.top = $newLeft$$2_newTop$$2$$ + "px";
    $newLeft$$2_newTop$$2$$ = $agent$$181_hue_relativeX$$ - this.$_CROSSHAIR_IMG_MID_WIDTH$;
    0 == $agent$$181_hue_relativeX$$ && $newLeft$$2_newTop$$2$$++;
    $crossHairImg$$1$$.style.left = $newLeft$$2_newTop$$2$$ + "px";
    $agent$$181_hue_relativeX$$ = Math.round(360 * $agent$$181_hue_relativeX$$ / $hueSaturationMapWidth$$);
    360 == $agent$$181_hue_relativeX$$ && ($agent$$181_hue_relativeX$$ = 0);
    this.$_currentColor$.$setHsb$($agent$$181_hue_relativeX$$, 1 - $mousePosition$$4_relativeY$$ / $hueSaturationMapHeight_mapElementPosition$$, this.$_currentColor$.$_luminosity$);
    this.$updateDisplay$($event$$132_hueMapElement$$.id)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_moveCrossHairByArrow$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_moveCrossHairByArrow$$($deltaX$$15$$, $deltaY$$16$$) {
    var $hueMapElement$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_hueSaturationMapId$), $crossHairImg$$2_hue$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_crossHairImgId$), $centerX$$ = $crossHairImg$$2_hue$$1$$.offsetLeft + this.$_CROSSHAIR_IMG_MID_WIDTH$ + $deltaX$$15$$, $centerY$$ = $crossHairImg$$2_hue$$1$$.offsetTop + this.$_CROSSHAIR_IMG_MID_HEIGHT$ + $deltaY$$16$$, $hueSaturationMapWidth$$1$$ = this.$_HUESATURATIONMAP_WIDTH$, $hueSaturationMapHeight$$1$$ = this.$_HUESATURATIONMAP_HEIGHT$, 
    $centerX$$ = Math.min($centerX$$, $hueSaturationMapWidth$$1$$), $centerX$$ = Math.max(0, $centerX$$), $centerY$$ = Math.min($centerY$$, $hueSaturationMapHeight$$1$$), $centerY$$ = Math.max(0, $centerY$$);
    $crossHairImg$$2_hue$$1$$.style.top = $centerY$$ - this.$_CROSSHAIR_IMG_MID_HEIGHT$ + "px";
    $crossHairImg$$2_hue$$1$$.style.left = $centerX$$ - this.$_CROSSHAIR_IMG_MID_WIDTH$ + "px";
    $crossHairImg$$2_hue$$1$$ = Math.round(360 * $centerX$$ / $hueSaturationMapWidth$$1$$);
    360 == $crossHairImg$$2_hue$$1$$ && ($crossHairImg$$2_hue$$1$$ = 0);
    this.$_currentColor$.$setHsb$($crossHairImg$$2_hue$$1$$, 1 - $centerY$$ / $hueSaturationMapHeight$$1$$, this.$_currentColor$.$_luminosity$);
    this.$updateDisplay$($hueMapElement$$1$$.id)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_moveBThumbToMousePosition$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_moveBThumbToMousePosition$$($event$$133_sliderElement$$) {
    var $agent$$182_relativeY$$1_sliderElementPosition$$ = $AdfAgent$$.$getAgent$(), $mousePosition$$5_sliderDivElementHeight$$ = $agent$$182_relativeY$$1_sliderElementPosition$$.$getMousePosition$($event$$133_sliderElement$$);
    $event$$133_sliderElement$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_luminosityMapId$);
    $agent$$182_relativeY$$1_sliderElementPosition$$ = $agent$$182_relativeY$$1_sliderElementPosition$$.$getElementPosition$($event$$133_sliderElement$$);
    $agent$$182_relativeY$$1_sliderElementPosition$$ = $mousePosition$$5_sliderDivElementHeight$$.y - $agent$$182_relativeY$$1_sliderElementPosition$$.y;
    $mousePosition$$5_sliderDivElementHeight$$ = this.$_SLIDERDIV_ELEMENT_HEIGHT$;
    $agent$$182_relativeY$$1_sliderElementPosition$$ = Math.min($agent$$182_relativeY$$1_sliderElementPosition$$, $mousePosition$$5_sliderDivElementHeight$$);
    $agent$$182_relativeY$$1_sliderElementPosition$$ = Math.max(0, $agent$$182_relativeY$$1_sliderElementPosition$$);
    $AdfAgent$$.$AGENT$.getElementById(this.$_sliderThumbId$).style.top = $agent$$182_relativeY$$1_sliderElementPosition$$ - Math.floor(this.$_SLIDERTHUMB_IMG_HEIGHT$ / 2) + "px";
    this.$_currentColor$.$setHsb$(this.$_currentColor$.$_hue$, this.$_currentColor$.$_saturation$, 1 - $agent$$182_relativeY$$1_sliderElementPosition$$ / $mousePosition$$5_sliderDivElementHeight$$);
    this.$updateDisplay$($event$$133_sliderElement$$.id)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_moveBThumbByArrow$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_moveBThumbByArrow$$($deltaY$$17_newTop$$5$$) {
    var $sliderElement$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_luminosityMapId$), $thumbImg$$1$$ = $AdfAgent$$.$AGENT$.getElementById(this.$_sliderThumbId$), $sliderDivElementHeight$$1$$ = this.$_SLIDERDIV_ELEMENT_HEIGHT$, $sliderThumbImgHeight$$2$$ = this.$_SLIDERTHUMB_IMG_HEIGHT$, $relativeY$$2$$ = $thumbImg$$1$$.offsetTop + Math.floor($sliderThumbImgHeight$$2$$ / 2) + $deltaY$$17_newTop$$5$$, $relativeY$$2$$ = Math.min($relativeY$$2$$, $sliderDivElementHeight$$1$$), $relativeY$$2$$ = 
    Math.max(0, $relativeY$$2$$);
    $deltaY$$17_newTop$$5$$ = Math.min($thumbImg$$1$$.offsetTop + $deltaY$$17_newTop$$5$$, $sliderDivElementHeight$$1$$ - Math.floor($sliderThumbImgHeight$$2$$ / 2));
    $deltaY$$17_newTop$$5$$ = Math.max(-Math.floor($sliderThumbImgHeight$$2$$ / 2), $deltaY$$17_newTop$$5$$);
    $thumbImg$$1$$.style.top = $deltaY$$17_newTop$$5$$ + "px";
    this.$_currentColor$.$setHsb$(this.$_currentColor$.$_hue$, this.$_currentColor$.$_saturation$, 1 - $relativeY$$2$$ / $sliderDivElementHeight$$1$$);
    this.$updateDisplay$($sliderElement$$1$$.id)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onBThumbDrag$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onBThumbDrag$$($event$$134$$) {
    this.$_moveBThumbToMousePosition$($event$$134$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.prototype.$_onHueImageDrag$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$$_onHueImageDrag$$($event$$135$$) {
    this.$_moveCrossHairToMousePosition$($event$$135$$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$ = $JSCompiler_emptyFn$$();
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.$createInstanceFromRgbTotal$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$createInstanceFromRgbTotal$$($validRGBTotal$$) {
    $AdfAssert$$.$assertNumber$($validRGBTotal$$, "createInstanceFromRgbTotal: input must be number.");
    var $advancedColor$$1$$ = new $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$;
    $advancedColor$$1$$.$setRgbByTotal$($validRGBTotal$$);
    return $advancedColor$$1$$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$setRgbByTotal$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$setRgbByTotal$$($validRGBTotal$$1$$) {
    var $rg$$ = Math.floor($validRGBTotal$$1$$ / 256);
    this.$_red$ = Math.floor($rg$$ / 256);
    this.$_green$ = $rg$$ % 256;
    this.$_blue$ = $validRGBTotal$$1$$ % 256;
    this.$_populateHsb$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$setHsb$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$setHsb$$($hue$$4$$, $saturation$$2$$, $luminosity$$4$$) {
    this.$_hue$ = $hue$$4$$;
    this.$_saturation$ = $saturation$$2$$;
    this.$_luminosity$ = $luminosity$$4$$;
    this.$_populateRgb$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$setRed$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$setRed$$($red$$3$$) {
    this.$_red$ = $red$$3$$;
    this.$_populateHsb$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$setGreen$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$setGreen$$($green$$3$$) {
    this.$_green$ = $green$$3$$;
    this.$_populateHsb$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$setBlue$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$setBlue$$($blue$$3$$) {
    this.$_blue$ = $blue$$3$$;
    this.$_populateHsb$()
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$getRgbHex$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$getRgbHex$$() {
    return this.$_getHex$(this.$_red$) + this.$_getHex$(this.$_green$) + this.$_getHex$(this.$_blue$)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$_getHex$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$_getHex$$($dec$$) {
    return"0123456789ABCDEF".charAt(Math.floor($dec$$ / 16)) + "0123456789ABCDEF".charAt($dec$$ % 16)
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$_populateHsb$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$_populateHsb$$() {
    var $red$$4$$ = this.$_red$ / 255, $green$$4$$ = this.$_green$ / 255, $blue$$4$$ = this.$_blue$ / 255, $min$$1$$ = Math.min(Math.min($red$$4$$, $green$$4$$), $blue$$4$$), $max$$ = Math.max(Math.max($red$$4$$, $green$$4$$), $blue$$4$$), $delta$$4$$ = $max$$ - $min$$1$$, $hue$$5$$ = $JSCompiler_alias_NULL$$, $saturation$$3$$ = $JSCompiler_alias_NULL$$, $luminosity$$5$$ = ($max$$ + $min$$1$$) / 2;
    0 != $max$$ ? ($saturation$$3$$ = 0 == $delta$$4$$ ? 0 : 0.5 >= $luminosity$$5$$ ? $delta$$4$$ / ($max$$ + $min$$1$$) : $delta$$4$$ / (2 - $max$$ - $min$$1$$), 0 == $delta$$4$$ ? $hue$$5$$ = 0 : ($hue$$5$$ = 60 * ($red$$4$$ == $max$$ ? ($green$$4$$ - $blue$$4$$) / $delta$$4$$ : $green$$4$$ == $max$$ ? 2 + ($blue$$4$$ - $red$$4$$) / $delta$$4$$ : 4 + ($red$$4$$ - $green$$4$$) / $delta$$4$$), 0 > $hue$$5$$ && ($hue$$5$$ += 360))) : $hue$$5$$ = $saturation$$3$$ = 0;
    this.$_hue$ = $hue$$5$$;
    this.$_saturation$ = $saturation$$3$$;
    this.$_luminosity$ = $luminosity$$5$$
  };
  $AdfDhtmlChooseColorBasePeer$$.$_CustomPanelHandler$.$_AdvancedColor$.prototype.$_populateRgb$ = function $$AdfDhtmlChooseColorBasePeer$$$$_CustomPanelHandler$$$_AdvancedColor$$$$_populateRgb$$() {
    var $hue$$6$$ = this.$_hue$, $saturation$$4_sectorIndex$$ = this.$_saturation$, $delta$$5_luminosity$$6$$ = this.$_luminosity$, $red$$5$$ = $JSCompiler_alias_NULL$$, $green$$5$$ = $JSCompiler_alias_NULL$$, $blue$$5$$ = $JSCompiler_alias_NULL$$;
    if(0 == $saturation$$4_sectorIndex$$) {
      $red$$5$$ = $green$$5$$ = $blue$$5$$ = $delta$$5_luminosity$$6$$
    }else {
      var $max$$1$$ = $JSCompiler_alias_NULL$$, $factor$$2_min$$2$$ = $JSCompiler_alias_NULL$$, $mid$$ = $JSCompiler_alias_NULL$$, $factor$$2_min$$2$$ = $JSCompiler_alias_NULL$$, $factor$$2_min$$2$$ = 0.5 <= $delta$$5_luminosity$$6$$ ? (1 - $delta$$5_luminosity$$6$$) * $saturation$$4_sectorIndex$$ : $delta$$5_luminosity$$6$$ * $saturation$$4_sectorIndex$$, $max$$1$$ = $factor$$2_min$$2$$ + $delta$$5_luminosity$$6$$, $factor$$2_min$$2$$ = $delta$$5_luminosity$$6$$ - $factor$$2_min$$2$$, $saturation$$4_sectorIndex$$ = 
      Math.floor($hue$$6$$ / 60), $delta$$5_luminosity$$6$$ = $max$$1$$ - $factor$$2_min$$2$$;
      switch($saturation$$4_sectorIndex$$) {
        case 0:
        ;
        case 2:
        ;
        case 4:
          $mid$$ = ($hue$$6$$ / 60 - $saturation$$4_sectorIndex$$) * $delta$$5_luminosity$$6$$ + $factor$$2_min$$2$$;
          break;
        case 1:
        ;
        case 3:
        ;
        case 5:
          $mid$$ = ($saturation$$4_sectorIndex$$ + 1 - $hue$$6$$ / 60) * $delta$$5_luminosity$$6$$ + $factor$$2_min$$2$$
      }
      switch($saturation$$4_sectorIndex$$) {
        case 0:
          $red$$5$$ = $max$$1$$;
          $green$$5$$ = $mid$$;
          $blue$$5$$ = $factor$$2_min$$2$$;
          break;
        case 1:
          $red$$5$$ = $mid$$;
          $green$$5$$ = $max$$1$$;
          $blue$$5$$ = $factor$$2_min$$2$$;
          break;
        case 2:
          $red$$5$$ = $factor$$2_min$$2$$;
          $green$$5$$ = $max$$1$$;
          $blue$$5$$ = $mid$$;
          break;
        case 3:
          $red$$5$$ = $factor$$2_min$$2$$;
          $green$$5$$ = $mid$$;
          $blue$$5$$ = $max$$1$$;
          break;
        case 4:
          $red$$5$$ = $mid$$;
          $green$$5$$ = $factor$$2_min$$2$$;
          $blue$$5$$ = $max$$1$$;
          break;
        case 5:
          $red$$5$$ = $max$$1$$, $green$$5$$ = $factor$$2_min$$2$$, $blue$$5$$ = $mid$$
      }
    }
    this.$_red$ = Math.round(255 * $red$$5$$);
    this.$_green$ = Math.round(255 * $green$$5$$);
    this.$_blue$ = Math.round(255 * $blue$$5$$)
  }
};
