var $AdfDhtmlSelectManyPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlEditableValuePeer$$, "AdfDhtmlSelectManyPeer");
$goog$exportSymbol$$("AdfDhtmlSelectManyPeer", $AdfDhtmlSelectManyPeer$$);
$AdfDhtmlSelectManyPeer$$.$InitSubclass$ = function $$AdfDhtmlSelectManyPeer$$$$InitSubclass$$() {
  $AdfAgent$$.$AGENT$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] == $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ && $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$);
  this.$_SELECT_ALL_ID$ = "saId";
  this.$_ITEM_VALUE_EXPANDO$ = "_adfIV"
};
$goog$exportSymbol$$("AdfDhtmlSelectManyPeer.InitSubclass", $AdfDhtmlSelectManyPeer$$.$InitSubclass$);
$AdfDhtmlSelectManyPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlSelectManyPeer$$$$$HandleComponentMouseOver$$($componentEvent$$371$$) {
  this.$ShowNoteWindowMouseOver$($componentEvent$$371$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlSelectManyPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetComponentLabel$ = function $$AdfDhtmlSelectManyPeer$$$$$GetComponentLabel$$($component$$1513$$, $domElement$$403$$) {
  var $labelElement$$10_labelElements$$5$$ = $domElement$$403$$.getElementsByTagName("LABEL"), $labelElement$$10_labelElements$$5$$ = $labelElement$$10_labelElements$$5$$.length ? $labelElement$$10_labelElements$$5$$[0] : $JSCompiler_alias_NULL$$;
  if($labelElement$$10_labelElements$$5$$ != $JSCompiler_alias_NULL$$) {
    for(var $contentElement$$21$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1513$$, $domElement$$403$$), $parentElement$$13$$ = $labelElement$$10_labelElements$$5$$.parentNode;$parentElement$$13$$ && $parentElement$$13$$ != $domElement$$403$$;) {
      if($parentElement$$13$$ == $contentElement$$21$$) {
        return $JSCompiler_alias_NULL$$
      }
      $parentElement$$13$$ = $parentElement$$13$$.parentNode
    }
    return $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$10_labelElements$$5$$)
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetComponentLabel", {$GetComponentLabel$:$AdfDhtmlSelectManyPeer$$.prototype.$GetComponentLabel$});
$AdfDhtmlSelectManyPeer$$.prototype.$getConvertedValue$ = function $$AdfDhtmlSelectManyPeer$$$$$getConvertedValue$$($component$$1514$$, $submittedValue$$23$$) {
  var $newValue$$122$$ = $submittedValue$$23$$;
  if($component$$1514$$.getConverter != $JSCompiler_alias_VOID$$) {
    var $converter$$15$$ = $component$$1514$$.getConverter();
    if($converter$$15$$ != $JSCompiler_alias_NULL$$ && ($newValue$$122$$ = [], $submittedValue$$23$$ != $JSCompiler_alias_NULL$$)) {
      for(var $i$$424$$ = 0;$i$$424$$ < $submittedValue$$23$$.length;$i$$424$$++) {
        if($newValue$$122$$[$i$$424$$] = $converter$$15$$.getAsObject($submittedValue$$23$$[$i$$424$$], $component$$1514$$.$getProperty$("label")), $newValue$$122$$[$i$$424$$] === $JSCompiler_alias_VOID$$) {
          return
        }
      }
    }
  }
  return $newValue$$122$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.getConvertedValue", {$getConvertedValue$:$AdfDhtmlSelectManyPeer$$.prototype.$getConvertedValue$});
$AdfDhtmlSelectManyPeer$$.prototype.$getConvertedObject$ = function $$AdfDhtmlSelectManyPeer$$$$$getConvertedObject$$($component$$1515$$, $value$$184$$) {
  if($value$$184$$ != $JSCompiler_alias_NULL$$) {
    var $valueAsString$$ = $value$$184$$;
    $component$$1515$$ == $JSCompiler_alias_NULL$$ && ($component$$1515$$ = this.$getComponent$());
    var $converter$$16$$ = $component$$1515$$.getConverter();
    if($converter$$16$$ != $JSCompiler_alias_NULL$$) {
      for(var $valueAsString$$ = [], $i$$425$$ = 0;$i$$425$$ < $value$$184$$.length;$i$$425$$++) {
        if($valueAsString$$[$i$$425$$] = $converter$$16$$.getAsString($value$$184$$[$i$$425$$], $component$$1515$$.$getProperty$("label")), $valueAsString$$[$i$$425$$] === $JSCompiler_alias_VOID$$) {
          return
        }
      }
    }
    return $valueAsString$$
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.getConvertedObject", {$getConvertedObject$:$AdfDhtmlSelectManyPeer$$.prototype.$getConvertedObject$});
$AdfDhtmlSelectManyPeer$$.prototype.$IsCheckbox$ = function $$AdfDhtmlSelectManyPeer$$$$$IsCheckbox$$($element$$264$$) {
  return $element$$264$$ != $JSCompiler_alias_NULL$$ ? "INPUT" == $AdfAgent$$.$AGENT$.$getNodeName$($element$$264$$) && "checkbox" == $element$$264$$.type : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.IsCheckbox", {$IsCheckbox$:$AdfDhtmlSelectManyPeer$$.prototype.$IsCheckbox$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetCheckboxByEventTarget$ = function $$AdfDhtmlSelectManyPeer$$$$$GetCheckboxByEventTarget$$($element$$265$$, $componentEvent$$372$$) {
  var $agent$$499$$ = $AdfAgent$$.$AGENT$;
  if($element$$265$$ && "INPUT" != $agent$$499$$.$getNodeName$($element$$265$$)) {
    var $checkbox$$8_checkboxes$$ = $element$$265$$.getElementsByTagName("input");
    if(1 < $checkbox$$8_checkboxes$$.length) {
      return $JSCompiler_alias_NULL$$
    }
    if(($checkbox$$8_checkboxes$$ = $checkbox$$8_checkboxes$$[0]) && this.$IsCheckbox$($checkbox$$8_checkboxes$$)) {
      if(!$checkbox$$8_checkboxes$$.disabled) {
        var $checkboxStyle$$ = $agent$$499$$.getComputedStyle($checkbox$$8_checkboxes$$), $agentIsIE$$8$$ = $agent$$499$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $agentIsGecko$$ = $agent$$499$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$, $nativeEvent$$55$$ = $componentEvent$$372$$.$getNativeEvent$();
        if("LABEL" != $agent$$499$$.$getNodeName$($element$$265$$) || $agentIsIE$$8$$ && "none" == $checkboxStyle$$.display || $agentIsGecko$$ && $nativeEvent$$55$$.ctrlKey) {
          "none" != $checkboxStyle$$.display && $checkbox$$8_checkboxes$$.focus(), $checkbox$$8_checkboxes$$.checked = !$checkbox$$8_checkboxes$$.checked
        }
      }
      return $checkbox$$8_checkboxes$$
    }
  }
  return $element$$265$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetCheckboxByEventTarget", {$GetCheckboxByEventTarget$:$AdfDhtmlSelectManyPeer$$.prototype.$GetCheckboxByEventTarget$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetNullDefault$ = function $$AdfDhtmlSelectManyPeer$$$$$GetNullDefault$$() {
  return $AdfCollections$$.$EMPTY_ARRAY$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetNullDefault", {$GetNullDefault$:$AdfDhtmlSelectManyPeer$$.prototype.$GetNullDefault$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetSubmittedValue$ = function $$AdfDhtmlSelectManyPeer$$$$$GetSubmittedValue$$($component$$1516$$, $domElement$$404$$) {
  $AdfAssert$$.$assertDomElement$($domElement$$404$$);
  if($component$$1516$$.getReadOnly()) {
    var $boxes$$8_itemValues$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1516$$, $domElement$$404$$).getAttribute($AdfDhtmlSelectManyPeer$$.$_ITEM_VALUE_EXPANDO$);
    return eval($boxes$$8_itemValues$$)
  }
  var $boxes$$8_itemValues$$ = this.$GetCheckboxes$($component$$1516$$, $domElement$$404$$), $values$$6$$ = [];
  if($boxes$$8_itemValues$$) {
    for(var $i$$426$$ = 0;$i$$426$$ < $boxes$$8_itemValues$$.length;$i$$426$$++) {
      var $cb$$6$$ = $boxes$$8_itemValues$$[$i$$426$$];
      $cb$$6$$.checked && $values$$6$$.push($cb$$6$$.value)
    }
  }
  return $values$$6$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetSubmittedValue", {$GetSubmittedValue$:$AdfDhtmlSelectManyPeer$$.prototype.$GetSubmittedValue$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetCheckboxes$ = function $$AdfDhtmlSelectManyPeer$$$$$GetCheckboxes$$($component$$1517$$, $domElement$$405$$) {
  $AdfAssert$$.$assertDomElement$($domElement$$405$$);
  var $boxes$$9_form$$17$$ = $AdfDomUtils$$.$getFormElement$($domElement$$405$$), $cbName_list$$6$$ = $component$$1517$$.$getClientId$();
  if($boxes$$9_form$$17$$ = $boxes$$9_form$$17$$.elements[$cbName_list$$6$$]) {
    if($boxes$$9_form$$17$$.length) {
      return $boxes$$9_form$$17$$
    }
    $cbName_list$$6$$ = [];
    $cbName_list$$6$$.push($boxes$$9_form$$17$$);
    return $cbName_list$$6$$
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetCheckboxes", {$GetCheckboxes$:$AdfDhtmlSelectManyPeer$$.prototype.$GetCheckboxes$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetComponentSelectItems$ = function $$AdfDhtmlSelectManyPeer$$$$$GetComponentSelectItems$$($component$$1518$$, $domElement$$406$$) {
  $AdfAssert$$.$assertDomElement$($domElement$$406$$);
  var $selectItems$$5$$ = [], $boxes$$10$$ = this.$GetCheckboxes$($component$$1518$$, $domElement$$406$$);
  if($boxes$$10$$) {
    for(i = 0;i < $boxes$$10$$.length;i++) {
      $selectItems$$5$$[i] = new $AdfSelectItem$$;
      $selectItems$$5$$[i].setValue($boxes$$10$$[i].value);
      var $label$$21$$ = this.$GetLabelValue$($boxes$$10$$[i]);
      $label$$21$$ && $selectItems$$5$$[i].setLabel($label$$21$$);
      $selectItems$$5$$[i].$setDisabled$($boxes$$10$$[i].disabled)
    }
  }
  return $selectItems$$5$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetComponentSelectItems", {$GetComponentSelectItems$:$AdfDhtmlSelectManyPeer$$.prototype.$GetComponentSelectItems$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetLabelValue$ = function $$AdfDhtmlSelectManyPeer$$$$$GetLabelValue$$($node$$101$$) {
  return $node$$101$$.nextSibling ? $node$$101$$.nextSibling.nodeValue : $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetLabelValue", {$GetLabelValue$:$AdfDhtmlSelectManyPeer$$.prototype.$GetLabelValue$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetSelectAllCheckbox$ = function $$AdfDhtmlSelectManyPeer$$$$$GetSelectAllCheckbox$$($component$$1519_selectAllID$$) {
  $component$$1519_selectAllID$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1519_selectAllID$$.$getClientId$(), $AdfDhtmlSelectManyPeer$$.$_SELECT_ALL_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($component$$1519_selectAllID$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetSelectAllCheckbox", {$GetSelectAllCheckbox$:$AdfDhtmlSelectManyPeer$$.prototype.$GetSelectAllCheckbox$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetPreviousItem$ = function $$AdfDhtmlSelectManyPeer$$$$$GetPreviousItem$$($component$$1520_i$$427$$, $boxes$$11_domElement$$407$$, $item$$41$$, $cb$$7_ignoreAllCheckbox$$, $containerName$$3_prevItem$$) {
  $AdfAssert$$.$assertDomElement$($boxes$$11_domElement$$407$$);
  if($boxes$$11_domElement$$407$$ = this.$GetCheckboxes$($component$$1520_i$$427$$, $boxes$$11_domElement$$407$$, $containerName$$3_prevItem$$)) {
    if($containerName$$3_prevItem$$ = $JSCompiler_alias_NULL$$, $cb$$7_ignoreAllCheckbox$$ || ($containerName$$3_prevItem$$ = this.$GetSelectAllCheckbox$($component$$1520_i$$427$$)), $cb$$7_ignoreAllCheckbox$$ || $item$$41$$ != $containerName$$3_prevItem$$) {
      for($component$$1520_i$$427$$ = 0;$component$$1520_i$$427$$ < $boxes$$11_domElement$$407$$.length;$component$$1520_i$$427$$++) {
        $cb$$7_ignoreAllCheckbox$$ = $boxes$$11_domElement$$407$$[$component$$1520_i$$427$$];
        if($cb$$7_ignoreAllCheckbox$$ == $item$$41$$) {
          break
        }
        $cb$$7_ignoreAllCheckbox$$.disabled || ($containerName$$3_prevItem$$ = $cb$$7_ignoreAllCheckbox$$)
      }
      $containerName$$3_prevItem$$ && ($item$$41$$ = $containerName$$3_prevItem$$)
    }
  }
  return $item$$41$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetPreviousItem", {$GetPreviousItem$:$AdfDhtmlSelectManyPeer$$.prototype.$GetPreviousItem$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetNextItem$ = function $$AdfDhtmlSelectManyPeer$$$$$GetNextItem$$($boxes$$12_component$$1521$$, $domElement$$408_nextItem$$3$$, $item$$42$$, $containerName$$4_i$$428$$) {
  $AdfAssert$$.$assertDomElement$($domElement$$408_nextItem$$3$$);
  if($boxes$$12_component$$1521$$ = this.$GetCheckboxes$($boxes$$12_component$$1521$$, $domElement$$408_nextItem$$3$$, $containerName$$4_i$$428$$)) {
    $domElement$$408_nextItem$$3$$ = $JSCompiler_alias_NULL$$;
    for($containerName$$4_i$$428$$ = $boxes$$12_component$$1521$$.length - 1;0 <= $containerName$$4_i$$428$$;$containerName$$4_i$$428$$--) {
      var $cb$$8$$ = $boxes$$12_component$$1521$$[$containerName$$4_i$$428$$];
      if($cb$$8$$ == $item$$42$$) {
        break
      }
      $cb$$8$$.disabled || ($domElement$$408_nextItem$$3$$ = $cb$$8$$)
    }
    $domElement$$408_nextItem$$3$$ && ($item$$42$$ = $domElement$$408_nextItem$$3$$)
  }
  return $item$$42$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetNextItem", {$GetNextItem$:$AdfDhtmlSelectManyPeer$$.prototype.$GetNextItem$});
$AdfDhtmlSelectManyPeer$$.prototype.$SelectRange$ = function $$AdfDhtmlSelectManyPeer$$$$$SelectRange$$($component$$1522_started$$, $boxes$$13_domElement$$409$$, $newItem$$4$$, $oldItem$$3$$, $containerName$$5_i$$429_selectAllItem$$1$$) {
  if($boxes$$13_domElement$$409$$ = this.$GetCheckboxes$($component$$1522_started$$, $boxes$$13_domElement$$409$$, $containerName$$5_i$$429_selectAllItem$$1$$)) {
    $containerName$$5_i$$429_selectAllItem$$1$$ = this.$GetSelectAllCheckbox$($component$$1522_started$$);
    $component$$1522_started$$ = $JSCompiler_alias_FALSE$$;
    var $endItem$$2$$;
    $newItem$$4$$ == $containerName$$5_i$$429_selectAllItem$$1$$ ? ($component$$1522_started$$ = $JSCompiler_alias_TRUE$$, $endItem$$2$$ = $oldItem$$3$$) : $oldItem$$3$$ == $containerName$$5_i$$429_selectAllItem$$1$$ && ($component$$1522_started$$ = $JSCompiler_alias_TRUE$$, $endItem$$2$$ = $newItem$$4$$);
    for($containerName$$5_i$$429_selectAllItem$$1$$ = 0;$containerName$$5_i$$429_selectAllItem$$1$$ < $boxes$$13_domElement$$409$$.length;$containerName$$5_i$$429_selectAllItem$$1$$++) {
      var $cb$$9$$ = $boxes$$13_domElement$$409$$[$containerName$$5_i$$429_selectAllItem$$1$$];
      $component$$1522_started$$ || ($cb$$9$$ == $newItem$$4$$ ? ($component$$1522_started$$ = $JSCompiler_alias_TRUE$$, $endItem$$2$$ = $oldItem$$3$$) : $cb$$9$$ == $oldItem$$3$$ && ($component$$1522_started$$ = $JSCompiler_alias_TRUE$$, $endItem$$2$$ = $newItem$$4$$));
      if($component$$1522_started$$ && ($cb$$9$$.disabled || ($cb$$9$$.checked = $JSCompiler_alias_TRUE$$, this.$UpdateSelectedStyle$($cb$$9$$)), $cb$$9$$ == $endItem$$2$$)) {
        break
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.SelectRange", {$SelectRange$:$AdfDhtmlSelectManyPeer$$.prototype.$SelectRange$});
$AdfDhtmlSelectManyPeer$$.prototype.$UpdateAll$ = function $$AdfDhtmlSelectManyPeer$$$$$UpdateAll$$($component$$1523$$, $domElement$$410_value$$185$$, $isChecked$$, $validate$$) {
  var $boxes$$14$$ = this.$GetCheckboxes$($component$$1523$$, $domElement$$410_value$$185$$);
  if($boxes$$14$$) {
    for(var $i$$430$$ = 0;$i$$430$$ < $boxes$$14$$.length;$i$$430$$++) {
      var $box$$16$$ = $boxes$$14$$[$i$$430$$];
      $box$$16$$.disabled || ($box$$16$$.checked = $isChecked$$)
    }
    $validate$$ && ($domElement$$410_value$$185$$ = this.$GetSubmittedValue$($component$$1523$$, $domElement$$410_value$$185$$), this.$Validate$($component$$1523$$, $domElement$$410_value$$185$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.UpdateAll", {$UpdateAll$:$AdfDhtmlSelectManyPeer$$.prototype.$UpdateAll$});
$AdfDhtmlSelectManyPeer$$.prototype.$UpdateSelectedStyle$ = function $$AdfDhtmlSelectManyPeer$$$$$UpdateSelectedStyle$$($checkbox$$9$$) {
  var $parentElement$$14$$ = $checkbox$$9$$.parentNode.parentNode;
  $checkbox$$9$$ && ($checkbox$$9$$.checked ? $AdfDomUtils$$.$containsCSSClassName$($parentElement$$14$$, $AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$) || ($AdfDomUtils$$.$addCSSClassName$($parentElement$$14$$, $AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$), "option" == $parentElement$$14$$.getAttribute("role") && $parentElement$$14$$.setAttribute("aria-selected", "true")) : $AdfDomUtils$$.$containsCSSClassName$($parentElement$$14$$, $AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$) && ($AdfDomUtils$$.$removeCSSClassName$($parentElement$$14$$, 
  $AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$), $parentElement$$14$$.getAttribute("aria-selected") && $parentElement$$14$$.removeAttribute("aria-selected")))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.UpdateSelectedStyle", {$UpdateSelectedStyle$:$AdfDhtmlSelectManyPeer$$.prototype.$UpdateSelectedStyle$});
$AdfDhtmlSelectManyPeer$$.prototype.$GetSelectItemsParentDomElement$ = function $$AdfDhtmlSelectManyPeer$$$$$GetSelectItemsParentDomElement$$($component$$1524$$) {
  return $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1524$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectManyPeer.prototype.GetSelectItemsParentDomElement", {$GetSelectItemsParentDomElement$:$AdfDhtmlSelectManyPeer$$.prototype.$GetSelectItemsParentDomElement$});
$AdfDhtmlSelectManyPeer$$.$HIGHLIGHTED_STYLE$ = "p_AFHighlighted";
$goog$exportSymbol$$("AdfDhtmlSelectManyPeer.HIGHLIGHTED_STYLE", $AdfDhtmlSelectManyPeer$$.$HIGHLIGHTED_STYLE$);
$AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$ = "p_AFSelected";
$goog$exportSymbol$$("AdfDhtmlSelectManyPeer.SELECTED_STYLE", $AdfDhtmlSelectManyPeer$$.$SELECTED_STYLE$);
