var $AdfDhtmlMasonryLayoutPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMasonryLayoutPeer", !1);
$goog$exportSymbol$$("AdfDhtmlMasonryLayoutPeer", $AdfDhtmlMasonryLayoutPeer$$);
$AdfDhtmlMasonryLayoutPeer$$.$InitSubclass$ = function $$AdfDhtmlMasonryLayoutPeer$$$$InitSubclass$$() {
  this.$_MASONRY_LAYOUT_CLASS$ = "af|masonryLayout";
  this.$_MASONRY_LAYOUT_DROP_TARGET_CLASS$ = this.$_MASONRY_LAYOUT_CLASS$ + "::drop-target";
  this.$_MASONRY_LAYOUT_TRANSITION_RESIZE_TO_CLASS$ = "AFMasonryLayoutTransitionResizeTo";
  this.$_MASONRY_LAYOUT_TRANSITION_RESIZE_TO_FAST_CLASS$ = "AFMasonryLayoutTransitionResizeToFast";
  this.$_MAX_TILE_ROW_SPAN$ = this.$_MAX_TILE_COL_SPAN$ = 10;
  this.$_MASONRY_TILE_SIZE_CLASS_STEM$ = "AFMasonryTileSize";
  var $widthCount$$ = this.$_MAX_TILE_COL_SPAN$ + 1, $heightCount$$ = this.$_MAX_TILE_ROW_SPAN$ + 1, $sizeColumns$$ = [null];
  this.$_UNCOMPRESSED_MASONRY_TILE_SIZE_CLASSES$ = $sizeColumns$$;
  for (var $col$$1$$ = 1;$col$$1$$ < $widthCount$$;$col$$1$$++) {
    var $sizeColumn$$ = [null];
    $sizeColumns$$.push($sizeColumn$$);
    for (var $row$$49$$ = 1;$row$$49$$ < $heightCount$$;$row$$49$$++) {
      $sizeColumn$$.push(this.$_MASONRY_TILE_SIZE_CLASS_STEM$ + $col$$1$$ + "x" + $row$$49$$);
    }
  }
  this.$_MASONRY_TRANSITION_MOVE_TO_CLASS$ = "AFMasonryTileTransitionMoveTo";
  this.$_MASONRY_TRANSITION_MOVE_TO_FAST_CLASS$ = "AFMasonryTileTransitionMoveToFast";
  this.$_MASONRY_TRANSITION_RESIZE_TO_CLASS$ = "AFMasonryTileTransitionResizeTo";
  this.$_MASONRY_TRANSITION_HIDE_FROM_CLASS$ = "AFMasonryTileTransitionHideFrom";
  this.$_MASONRY_TRANSITION_HIDE_TO_CLASS$ = "AFMasonryTileTransitionHideTo";
  this.$_MASONRY_TRANSITION_SHOW_FROM_CLASS$ = "AFMasonryTileTransitionShowFrom";
  this.$_MASONRY_TRANSITION_SHOW_TO_CLASS$ = "AFMasonryTileTransitionShowTo";
  this.$_HAS_DELETE_LISTENER_KEY$ = "hasDeleteListener";
  this.$_HAS_REORDER_LISTENER_KEY$ = "hasReorderListener";
};
$goog$exportSymbol$$("AdfDhtmlMasonryLayoutPeer.InitSubclass", $AdfDhtmlMasonryLayoutPeer$$.$InitSubclass$);
$AdfDhtmlMasonryLayoutPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$InitDomElement$$($component$$1537$$, $domElement$$333$$) {
  $AdfDhtmlMasonryLayoutPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1537$$, $domElement$$333$$);
  var $adfPage$$1_callbackInfo$$2_laf$$88$$ = $AdfPage$$.$PAGE$, $mlCommon_rtl$$4$$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.$getLocaleContext$().$isRightToLeft$();
  this.$_rtl$ = $mlCommon_rtl$$4$$;
  var $automationEnabled$$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.$isAutomationEnabled$(), $adfPage$$1_callbackInfo$$2_laf$$88$$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.$getLookAndFeel$(), $tileSelectors_uncompressedSizeColumns$$ = $AdfDhtmlMasonryLayoutPeer$$.$_UNCOMPRESSED_MASONRY_TILE_SIZE_CLASSES$, $selectors$$11_widthCount$$1$$ = $AdfDhtmlMasonryLayoutPeer$$.$_MAX_TILE_COL_SPAN$ + 1, $heightCount$$1_styles$$2$$ = $AdfDhtmlMasonryLayoutPeer$$.$_MAX_TILE_ROW_SPAN$ + 1, $arTiles$$inline_2298_compressedSizeColumns$$ = 
  [null];
  this.$_compressedMasonryTileSizeClasses$ = $arTiles$$inline_2298_compressedSizeColumns$$;
  for (var $col$$2_i$$inline_2299$$ = 1;$col$$2_i$$inline_2299$$ < $selectors$$11_widthCount$$1$$;$col$$2_i$$inline_2299$$++) {
    var $uncompressedSizeColumn$$ = $tileSelectors_uncompressedSizeColumns$$[$col$$2_i$$inline_2299$$], $compressedSizeColumn$$ = [null];
    $arTiles$$inline_2298_compressedSizeColumns$$.push($compressedSizeColumn$$);
    for (var $row$$50$$ = 1;$row$$50$$ < $heightCount$$1_styles$$2$$;$row$$50$$++) {
      var $compressedName$$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($uncompressedSizeColumn$$[$row$$50$$]);
      $compressedSizeColumn$$.push($compressedName$$);
    }
  }
  $tileSelectors_uncompressedSizeColumns$$ = "";
  for ($col$$2_i$$inline_2299$$ = 1;$col$$2_i$$inline_2299$$ < $selectors$$11_widthCount$$1$$;$col$$2_i$$inline_2299$$++) {
    for ($compressedSizeColumn$$ = $arTiles$$inline_2298_compressedSizeColumns$$[$col$$2_i$$inline_2299$$], $row$$50$$ = 1;$row$$50$$ < $heightCount$$1_styles$$2$$;$row$$50$$++) {
      if ($compressedName$$ = $compressedSizeColumn$$[$row$$50$$]) {
        0 < $tileSelectors_uncompressedSizeColumns$$.length && ($tileSelectors_uncompressedSizeColumns$$ += ", "), $tileSelectors_uncompressedSizeColumns$$ += "." + $compressedName$$;
      }
    }
  }
  $selectors$$11_widthCount$$1$$ = {};
  $selectors$$11_widthCount$$1$$.$tiles$ = $tileSelectors_uncompressedSizeColumns$$;
  $heightCount$$1_styles$$2$$ = {};
  $heightCount$$1_styles$$2$$.$transitionComponentResizeToStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_LAYOUT_TRANSITION_RESIZE_TO_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionComponentResizeToFastStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_LAYOUT_TRANSITION_RESIZE_TO_FAST_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionMoveToStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_MOVE_TO_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionMoveToFastStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_MOVE_TO_FAST_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionResizeToStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_RESIZE_TO_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionHideFromStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_HIDE_FROM_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionHideToStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_HIDE_TO_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionShowFromStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_SHOW_FROM_CLASS$);
  $heightCount$$1_styles$$2$$.$transitionShowToStyleClass$ = $adfPage$$1_callbackInfo$$2_laf$$88$$.getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_SHOW_TO_CLASS$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$ = {};
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$addStyleClassName$ = $AdfDomUtils$$.$addCSSClassName$;
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$removeStyleClassName$ = $AdfDomUtils$$.$removeCSSClassName$;
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$getSizeStyleClassName$ = this.$createCallback$(this.$_getSizeStyleClassName$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$getTileSpan$ = this.$createCallback$(this.$_getTileSpan$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$hideTileOnEndFunc$ = this.$createCallback$(this.$_hideTileOnEndFunc$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$layoutOnEndFunc$ = this.$createCallback$(this.$_layoutOnEndFunc$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$layoutCycleOnStartFunc$ = this.$createCallback$(this.$_layoutCycleOnStartFunc$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$layoutCycleOnEndFunc$ = this.$createCallback$(this.$_layoutCycleOnEndFunc$);
  $adfPage$$1_callbackInfo$$2_laf$$88$$.$sortTilesOriginalOrderFunc$ = $AdfDhtmlMasonryLayoutPeer$$.$_sortTilesOriginalOrder$;
  if ($arTiles$$inline_2298_compressedSizeColumns$$ = this.$_getChildElements$($domElement$$333$$)) {
    for ($col$$2_i$$inline_2299$$ = 0;$col$$2_i$$inline_2299$$ < $arTiles$$inline_2298_compressedSizeColumns$$.length;$col$$2_i$$inline_2299$$++) {
      $arTiles$$inline_2298_compressedSizeColumns$$[$col$$2_i$$inline_2299$$].$_afrMasonryOriginalOrder$ = $col$$2_i$$inline_2299$$ + 1;
    }
  }
  this.$_mlCommon$ = $mlCommon_rtl$$4$$ = new window.adf.$shared$.$impl$.$masonryLayout$.$MasonryLayoutCommon$($domElement$$333$$, $mlCommon_rtl$$4$$, $automationEnabled$$, $selectors$$11_widthCount$$1$$, $heightCount$$1_styles$$2$$, $adfPage$$1_callbackInfo$$2_laf$$88$$);
  $mlCommon_rtl$$4$$.$setup$(!0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$InitDomElement$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$ResizeNotify$$($component$$1539_mlCommon$$1_oldWidth$$14$$, $dropTarget$$12_oldHeight$$17$$, $newWidth$$19$$, $newHeight$$20$$) {
  $AdfDhtmlMasonryLayoutPeer$$.$superclass$.$ResizeNotify$.call(this, $component$$1539_mlCommon$$1_oldWidth$$14$$, $dropTarget$$12_oldHeight$$17$$, $newWidth$$19$$, $newHeight$$20$$);
  this.$_dropTargetInitialized$ || (this.$_dropTargetInitialized$ = !0, $component$$1539_mlCommon$$1_oldWidth$$14$$ = this.$getComponent$(), ($dropTarget$$12_oldHeight$$17$$ = $component$$1539_mlCommon$$1_oldWidth$$14$$.$getDropTarget$()) && $component$$1539_mlCommon$$1_oldWidth$$14$$.$setDropTarget$(new $AdfMasonryLayoutDropTarget$$($dropTarget$$12_oldHeight$$17$$)));
  if ($component$$1539_mlCommon$$1_oldWidth$$14$$ = this.$_mlCommon$) {
    this.$_handledFirstResize$ ? $component$$1539_mlCommon$$1_oldWidth$$14$$.$resizeNotify$() : (this.$_handledFirstResize$ = !0, $component$$1539_mlCommon$$1_oldWidth$$14$$.$setup$(!0), this.$getDomElement$().style.visibility = "");
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$ReplaceDomElement$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$ReplaceDomElement$$($newElement$$17$$, $oldElement$$8$$) {
  if (0 <= $newElement$$17$$.id.indexOf("optRnd")) {
    for (var $arChildren$$ = $oldElement$$8$$.childNodes, $i$$366$$ = $arChildren$$.length - 1;0 <= $i$$366$$;$i$$366$$--) {
      var $child$$19$$ = $arChildren$$[$i$$366$$];
      if (1 == $child$$19$$.nodeType) {
        var $childId$$3$$ = $child$$19$$.id;
        $childId$$3$$ && 0 < $childId$$3$$.length && ($newElement$$17$$.querySelector("#" + $AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$($childId$$3$$)) || $newElement$$17$$.appendChild($child$$19$$));
      }
    }
  }
  $AdfDhtmlMasonryLayoutPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$17$$, $oldElement$$8$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$DomReplaceNotify$$($domNode$$53$$) {
  if (0 <= $domNode$$53$$.id.indexOf("optRnd")) {
    for (var $agent$$inline_2303_arChildren$$1$$ = $domNode$$53$$.childNodes, $i$$367_transitionShowFromStyleClass$$inline_2304$$ = 0;$i$$367_transitionShowFromStyleClass$$inline_2304$$ < $agent$$inline_2303_arChildren$$1$$.length;$i$$367_transitionShowFromStyleClass$$inline_2304$$++) {
      var $arChildren$$inline_2305_child$$20$$ = $agent$$inline_2303_arChildren$$1$$[$i$$367_transitionShowFromStyleClass$$inline_2304$$];
      8 == $arChildren$$inline_2305_child$$20$$.nodeType && ($domNode$$53$$.removeChild($arChildren$$inline_2305_child$$20$$), $i$$367_transitionShowFromStyleClass$$inline_2304$$--);
    }
    if (this.$_mlCommon$.$isAnimationEnabled$()) {
      for (var $agent$$inline_2303_arChildren$$1$$ = $AdfAgent$$.$AGENT$, $i$$367_transitionShowFromStyleClass$$inline_2304$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TRANSITION_SHOW_FROM_CLASS$), $arChildren$$inline_2305_child$$20$$ = $domNode$$53$$.childNodes, $i$$inline_2306$$ = 0;$i$$inline_2306$$ < $arChildren$$inline_2305_child$$20$$.length;$i$$inline_2306$$++) {
        var $child$$inline_2307$$ = $arChildren$$inline_2305_child$$20$$[$i$$inline_2306$$];
        1 == $child$$inline_2307$$.nodeType && $agent$$inline_2303_arChildren$$1$$.getAttribute($child$$inline_2307$$, "data-insert") && $AdfDomUtils$$.$addCSSClassName$($child$$inline_2307$$.firstChild, $i$$367_transitionShowFromStyleClass$$inline_2304$$);
      }
    }
    this.$_processOptimizedRenderTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_processOptimizedRender$, $domNode$$53$$, 0);
  } else {
    return $domNode$$53$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$ComponentRemoved$$() {
  this.$_processOptimizedRenderTimer$ && ($AdfPage$$.$PAGE$.$cancelTimer$(this.$_processOptimizedRenderTimer$), this.$_processOptimizedRenderTimer$ = null);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$resizeTile$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$resizeTile$$($tileClientId$$3$$, $styleClass$$12$$) {
  var $mlCommon$$2$$ = this.$_mlCommon$;
  $mlCommon$$2$$.$isInLayoutCycle$() && $mlCommon$$2$$.$finishLayoutCycle$();
  var $laf$$89_newStyleClass$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $evt$$106_infolet$$ = document.getElementById($tileClientId$$3$$), $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$ = $JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$$(this, $evt$$106_infolet$$), $cloneInfolet_oldCompressedSizeStyleClass$$ = $laf$$89_newStyleClass$$.getStyleClass($agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$);
  if ($styleClass$$12$$ == $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$ || $styleClass$$12$$ == $cloneInfolet_oldCompressedSizeStyleClass$$) {
    $AdfLogger$$.$LOGGER$.warning("Unable to resize masonryLayout child ", $tileClientId$$3$$, " to style class ", $styleClass$$12$$, " because ", $styleClass$$12$$, " is already applied.");
  } else {
    this.$_arResizeClientIds$ || (this.$_arResizeClientIds$ = []);
    this.$_arResizeClientIds$.push($tileClientId$$3$$);
    $AdfFocusUtils$$.$containsFocus$($evt$$106_infolet$$) && (this.$_resizingTileWithFocusId$ = $evt$$106_infolet$$.id);
    var $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$ = $AdfAgent$$.$AGENT$, $component$$1541$$ = this.$getComponent$(), $clientId$$257$$ = $component$$1541$$.$getClientId$(), $cloneInfolet_oldCompressedSizeStyleClass$$ = $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$.cloneNode($evt$$106_infolet$$);
    1 == $cloneInfolet_oldCompressedSizeStyleClass$$.nodeType && $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$.$clearSubtreeIds$($cloneInfolet_oldCompressedSizeStyleClass$$);
    $cloneInfolet_oldCompressedSizeStyleClass$$.id = $AdfRichUIPeer$$.$createSubId$($clientId$$257$$, $tileClientId$$3$$ + "_resizePlaceholder");
    $cloneInfolet_oldCompressedSizeStyleClass$$.$_afrMasonryOriginalOrder$ = $evt$$106_infolet$$.$_afrMasonryOriginalOrder$;
    this.$getDomElement$().replaceChild($cloneInfolet_oldCompressedSizeStyleClass$$, $evt$$106_infolet$$);
    $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$257$$, "optRnd");
    document.getElementById($agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$).appendChild($evt$$106_infolet$$);
    this.$_arResizeEventsToFire$ || (this.$_arResizeEventsToFire$ = []);
    $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$ = $JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$$(this, $evt$$106_infolet$$);
    $evt$$106_infolet$$ = new $AdfMasonryResizeEvent$$($component$$1541$$, $tileClientId$$3$$, $agent$$382_oldSizeStyleClass$$3_optRndSubId$$1$$, $styleClass$$12$$);
    this.$_arResizeEventsToFire$.push($evt$$106_infolet$$);
    $laf$$89_newStyleClass$$ = $laf$$89_newStyleClass$$.getStyleClass($styleClass$$12$$);
    $mlCommon$$2$$.$resizeTile$("#" + $AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$($cloneInfolet_oldCompressedSizeStyleClass$$.id), $laf$$89_newStyleClass$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.resizeTile", {$resizeTile$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$resizeTile$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$insertTile$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$insertTile$$($sizeStyleClass$$6$$, $index$$142$$) {
  var $mlCommon$$3$$ = this.$_mlCommon$;
  $mlCommon$$3$$.$isInLayoutCycle$() && $mlCommon$$3$$.$finishLayoutCycle$();
  var $style$$26_styleClass$$13$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().getStyleClass($sizeStyleClass$$6$$);
  isNaN($index$$142$$) && ($index$$142$$ = -1);
  var $placeholderDiv$$ = document.createElement("div"), $component$$1542_evt$$107$$ = this.$getComponent$(), $clientId$$258_subId$$22$$ = $component$$1542_evt$$107$$.$getClientId$(), $clientId$$258_subId$$22$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$258_subId$$22$$, "placeholder" + $index$$142$$);
  $placeholderDiv$$.id = $clientId$$258_subId$$22$$;
  $AdfDomUtils$$.$addCSSClassName$($placeholderDiv$$, $style$$26_styleClass$$13$$);
  $style$$26_styleClass$$13$$ = $placeholderDiv$$.style;
  $style$$26_styleClass$$13$$.top = "-1px";
  this.$_rtl$ ? $style$$26_styleClass$$13$$.right = "-1px" : $style$$26_styleClass$$13$$.left = "-1px";
  this.$_arInsertEventsToFire$ || (this.$_arInsertEventsToFire$ = []);
  $component$$1542_evt$$107$$ = new $AdfMasonryInsertEvent$$($component$$1542_evt$$107$$, $index$$142$$, $sizeStyleClass$$6$$);
  this.$_arInsertEventsToFire$.push($component$$1542_evt$$107$$);
  $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, $placeholderDiv$$, $index$$142$$);
  $mlCommon$$3$$.$insertTileDomElem$($placeholderDiv$$, $index$$142$$);
  this.$_inserting$ = !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.insertTile", {$insertTile$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$insertTile$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$deleteTile$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$deleteTile$$($tileClientId$$4$$) {
  var $mlCommon$$4$$ = this.$_mlCommon$;
  $mlCommon$$4$$.$isInLayoutCycle$() && $mlCommon$$4$$.$finishLayoutCycle$();
  var $index$$143_infolet$$1$$ = document.getElementById($tileClientId$$4$$);
  if ($AdfFocusUtils$$.$containsFocus$($index$$143_infolet$$1$$)) {
    var $children$$18_evt$$108$$ = this.$_getChildElements$(this.$getDomElement$(), !0), $index$$143_infolet$$1$$ = $AdfCollections$$.indexOf($children$$18_evt$$108$$, $index$$143_infolet$$1$$);
    0 < $index$$143_infolet$$1$$ && (this.$_deletingTileWithFocusPrevId$ = $children$$18_evt$$108$$[$index$$143_infolet$$1$$ - 1].id);
  }
  this.$_arDeleteEventsToFire$ || (this.$_arDeleteEventsToFire$ = []);
  $children$$18_evt$$108$$ = new $AdfMasonryDeleteEvent$$(this.$getComponent$(), $tileClientId$$4$$);
  $children$$18_evt$$108$$.$setPropagatesToServer$(null != this.$getComponent$().$getProperty$($AdfDhtmlMasonryLayoutPeer$$.$_HAS_DELETE_LISTENER_KEY$));
  this.$_arDeleteEventsToFire$.push($children$$18_evt$$108$$);
  $mlCommon$$4$$.$hideTile$("#" + $AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$($tileClientId$$4$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.deleteTile", {$deleteTile$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$deleteTile$});
$AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$ = function $$AdfDhtmlMasonryLayoutPeer$$$$_encodeSelector$$($encodedSelector_selector$$6$$) {
  $encodedSelector_selector$$6$$ = $encodedSelector_selector$$6$$.concat("");
  return $encodedSelector_selector$$6$$ = $encodedSelector_selector$$6$$.replace(/:/g, "\\:");
};
$AdfDhtmlMasonryLayoutPeer$$.$_sortTilesOriginalOrder$ = function $$AdfDhtmlMasonryLayoutPeer$$$$_sortTilesOriginalOrder$$($arTiles$$) {
  $arTiles$$ && $arTiles$$.sort($AdfDhtmlMasonryLayoutPeer$$.$_compareTilesOriginalOrder$);
  return $arTiles$$;
};
$AdfDhtmlMasonryLayoutPeer$$.$_compareTilesOriginalOrder$ = function $$AdfDhtmlMasonryLayoutPeer$$$$_compareTilesOriginalOrder$$($tile1$$, $tile2$$) {
  return $tile2$$.$_afrMasonryOriginalOrder$ < $tile1$$.$_afrMasonryOriginalOrder$ ? 1 : $tile1$$.$_afrMasonryOriginalOrder$ < $tile2$$.$_afrMasonryOriginalOrder$ ? -1 : 0;
};
function $JSCompiler_StaticMethods__deferFunction$$($JSCompiler_StaticMethods__deferFunction$self$$, $deferredFunc$$) {
  $JSCompiler_StaticMethods__deferFunction$self$$.$_deferredFunctions$ || ($JSCompiler_StaticMethods__deferFunction$self$$.$_deferredFunctions$ = []);
  $JSCompiler_StaticMethods__deferFunction$self$$.$_deferredFunctions$.push($deferredFunc$$);
}
function $JSCompiler_StaticMethods__fireEvents$$($arEvents$$) {
  if ($arEvents$$) {
    for (var $i$$368$$ = 0;$i$$368$$ < $arEvents$$.length;$i$$368$$++) {
      $arEvents$$[$i$$368$$].$queue$();
    }
  }
}
function $JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$$($JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$self$$, $elem$$25$$) {
  for (var $str$$15$$, $compressedSizeColumns$$1$$ = $JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$self$$.$_compressedMasonryTileSizeClasses$, $col$$3$$ = 1;$col$$3$$ < $compressedSizeColumns$$1$$.length;$col$$3$$++) {
    for (var $compressedSizeColumn$$1$$ = $compressedSizeColumns$$1$$[$col$$3$$], $row$$51$$ = 1;$row$$51$$ < $compressedSizeColumn$$1$$.length;$row$$51$$++) {
      if ($AdfDomUtils$$.$containsCSSClassName$($elem$$25$$, $compressedSizeColumn$$1$$[$row$$51$$])) {
        $str$$15$$ = $AdfDhtmlMasonryLayoutPeer$$.$_UNCOMPRESSED_MASONRY_TILE_SIZE_CLASSES$[$col$$3$$][$row$$51$$];
        break;
      }
    }
  }
  return $str$$15$$;
}
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMasonryLayoutPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_getSizeStyleClassName$ = function $$JSCompiler_prototypeAlias$$$$_getSizeStyleClassName$$($elem$$26$$) {
  for (var $str$$16$$, $compressedSizeColumns$$2$$ = this.$_compressedMasonryTileSizeClasses$, $col$$4$$ = 1;$col$$4$$ < $compressedSizeColumns$$2$$.length;$col$$4$$++) {
    for (var $compressedSizeColumn$$2$$ = $compressedSizeColumns$$2$$[$col$$4$$], $row$$52$$ = 1;$row$$52$$ < $compressedSizeColumn$$2$$.length;$row$$52$$++) {
      var $compressedName$$2$$ = $compressedSizeColumn$$2$$[$row$$52$$];
      if ($AdfDomUtils$$.$containsCSSClassName$($elem$$26$$, $compressedName$$2$$)) {
        $str$$16$$ = $compressedName$$2$$;
        break;
      }
    }
  }
  return $str$$16$$;
};
$JSCompiler_prototypeAlias$$.$_getTileSpan$ = function $$JSCompiler_prototypeAlias$$$$_getTileSpan$$($elem$$27_sizeSubstring$$) {
  var $stem_xIndex$$ = $AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_TILE_SIZE_CLASS_STEM$;
  $elem$$27_sizeSubstring$$ = $JSCompiler_StaticMethods__getUncompressedSizeStyleClassName$$(this, $elem$$27_sizeSubstring$$).substring($stem_xIndex$$.length);
  $stem_xIndex$$ = $elem$$27_sizeSubstring$$.indexOf("x");
  return {colSpan:parseInt($elem$$27_sizeSubstring$$.substring(0, $stem_xIndex$$), 10), rowSpan:parseInt($elem$$27_sizeSubstring$$.substring($stem_xIndex$$ + 1), 10)};
};
$JSCompiler_prototypeAlias$$.$_processOptimizedRender$ = function $$JSCompiler_prototypeAlias$$$$_processOptimizedRender$$($domNode$$55$$) {
  var $agent$$384$$ = $AdfAgent$$.$AGENT$;
  this.$_processOptimizedRenderTimer$ = null;
  for (var $arChildren$$3$$ = $domNode$$55$$.childNodes, $numChildren$$ = $arChildren$$3$$.length, $arChildrenToRemove$$ = [], $i$$371$$ = 0;$i$$371$$ < $numChildren$$;$i$$371$$++) {
    var $child$$22$$ = $arChildren$$3$$[$i$$371$$];
    1 == $child$$22$$.nodeType && ($agent$$384$$.getAttribute($child$$22$$, "data-insert") ? ($JSCompiler_StaticMethods__processInsertTile$$(this, $child$$22$$), $arChildrenToRemove$$.push($child$$22$$)) : $agent$$384$$.getAttribute($child$$22$$, "data-resize") && ($JSCompiler_StaticMethods__processResizeTile$$(this, $child$$22$$), $arChildrenToRemove$$.push($child$$22$$)));
  }
  for (;0 < $arChildrenToRemove$$.length;) {
    $child$$22$$ = $arChildrenToRemove$$.pop(), $domNode$$55$$.removeChild($child$$22$$);
  }
  return -1;
};
function $JSCompiler_StaticMethods__processInsertTile$$($JSCompiler_StaticMethods__processInsertTile$self$$, $domNode$$56$$) {
  if ($JSCompiler_StaticMethods__processInsertTile$self$$.$_mlCommon$.$isInLayoutCycle$()) {
    $JSCompiler_StaticMethods__deferFunction$$($JSCompiler_StaticMethods__processInsertTile$self$$, function() {
      $JSCompiler_StaticMethods__processInsertTile$$($JSCompiler_StaticMethods__processInsertTile$self$$, $domNode$$56$$);
    });
  } else {
    var $infolet$$3$$ = $domNode$$56$$.firstChild;
    $JSCompiler_StaticMethods__processInsertTile$self$$.$_inserting$ ? ($JSCompiler_StaticMethods__processInsertTile$self$$.$_mapReadyToInsert$ || ($JSCompiler_StaticMethods__processInsertTile$self$$.$_mapReadyToInsert$ = {}), $JSCompiler_StaticMethods__processInsertTile$self$$.$_mapReadyToInsert$[$infolet$$3$$.id] = $domNode$$56$$) : $JSCompiler_StaticMethods__finishInsertTile$$($JSCompiler_StaticMethods__processInsertTile$self$$, $domNode$$56$$);
  }
}
function $JSCompiler_StaticMethods__processResizeTile$$($JSCompiler_StaticMethods__processResizeTile$self$$, $domNode$$57$$) {
  if ($JSCompiler_StaticMethods__processResizeTile$self$$.$_mlCommon$.$isInLayoutCycle$()) {
    $JSCompiler_StaticMethods__deferFunction$$($JSCompiler_StaticMethods__processResizeTile$self$$, function() {
      $JSCompiler_StaticMethods__processResizeTile$$($JSCompiler_StaticMethods__processResizeTile$self$$, $domNode$$57$$);
    });
  } else {
    var $clientId$$259$$ = $domNode$$57$$.firstChild.id, $arResizeClientIds$$1$$ = $JSCompiler_StaticMethods__processResizeTile$self$$.$_arResizeClientIds$;
    $arResizeClientIds$$1$$ && -1 < $AdfCollections$$.indexOf($arResizeClientIds$$1$$, $clientId$$259$$) ? ($JSCompiler_StaticMethods__processResizeTile$self$$.$_mapReadyToResize$ || ($JSCompiler_StaticMethods__processResizeTile$self$$.$_mapReadyToResize$ = {}), $JSCompiler_StaticMethods__processResizeTile$self$$.$_mapReadyToResize$[$clientId$$259$$] = $domNode$$57$$) : $JSCompiler_StaticMethods__replaceResizedTile$$($JSCompiler_StaticMethods__processResizeTile$self$$, $domNode$$57$$);
  }
}
function $JSCompiler_StaticMethods__finishInsertTile$$($JSCompiler_StaticMethods__finishInsertTile$self$$, $domNode$$58$$) {
  var $infolet$$5$$ = $domNode$$58$$.firstChild, $clientId$$260_rootDomElem$$5$$ = $JSCompiler_StaticMethods__finishInsertTile$self$$.$getComponent$().$getClientId$(), $mlCommon$$8_sizeStyleClass$$7$$ = $JSCompiler_StaticMethods__finishInsertTile$self$$.$_mlCommon$, $sInsertIndex_style$$27$$ = $AdfAgent$$.$AGENT$.getAttribute($domNode$$58$$, "data-insert"), $placeholderStyle$$1_placeholders_subId$$23$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$260_rootDomElem$$5$$, "placeholder" + $sInsertIndex_style$$27$$), 
  $clientId$$260_rootDomElem$$5$$ = $JSCompiler_StaticMethods__finishInsertTile$self$$.$getDomElement$(), $placeholder$$1$$ = null;
  "-1" == $sInsertIndex_style$$27$$ ? $placeholder$$1$$ = document.getElementById($placeholderStyle$$1_placeholders_subId$$23$$) : ($placeholderStyle$$1_placeholders_subId$$23$$ = $clientId$$260_rootDomElem$$5$$.querySelectorAll("#" + $AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$($placeholderStyle$$1_placeholders_subId$$23$$))) && 0 < $placeholderStyle$$1_placeholders_subId$$23$$.length && ($placeholder$$1$$ = $placeholderStyle$$1_placeholders_subId$$23$$[$placeholderStyle$$1_placeholders_subId$$23$$.length - 
  1]);
  $placeholder$$1$$ ? ($sInsertIndex_style$$27$$ = $infolet$$5$$.style, $placeholderStyle$$1_placeholders_subId$$23$$ = $placeholder$$1$$.style, $sInsertIndex_style$$27$$.top = $placeholderStyle$$1_placeholders_subId$$23$$.top, $JSCompiler_StaticMethods__finishInsertTile$self$$.$_rtl$ ? $sInsertIndex_style$$27$$.right = $placeholderStyle$$1_placeholders_subId$$23$$.right : $sInsertIndex_style$$27$$.left = $placeholderStyle$$1_placeholders_subId$$23$$.left, $infolet$$5$$.$_afrMasonryOriginalOrder$ = 
  $placeholder$$1$$.$_afrMasonryOriginalOrder$, $clientId$$260_rootDomElem$$5$$.replaceChild($infolet$$5$$, $placeholder$$1$$), $AdfPage$$.$PAGE$.$doResizeNotifyDom$($infolet$$5$$, !0), $mlCommon$$8_sizeStyleClass$$7$$.$showTile$("#" + $AdfDhtmlMasonryLayoutPeer$$.$_encodeSelector$($infolet$$5$$.id))) : ($mlCommon$$8_sizeStyleClass$$7$$ = $JSCompiler_StaticMethods__finishInsertTile$self$$.$_getSizeStyleClassName$($infolet$$5$$), $JSCompiler_StaticMethods__finishInsertTile$self$$.$insertTile$($mlCommon$$8_sizeStyleClass$$7$$, 
  parseInt($sInsertIndex_style$$27$$, 10)), $JSCompiler_StaticMethods__finishInsertTile$self$$.$_mapReadyToInsert$ || ($JSCompiler_StaticMethods__finishInsertTile$self$$.$_mapReadyToInsert$ = {}), $JSCompiler_StaticMethods__finishInsertTile$self$$.$_mapReadyToInsert$[$infolet$$5$$.id] = $domNode$$58$$);
}
function $JSCompiler_StaticMethods__replaceResizedTile$$($JSCompiler_StaticMethods__replaceResizedTile$self$$, $newNode$$4$$) {
  var $infolet$$6$$ = $newNode$$4$$.firstChild, $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ = $infolet$$6$$.id, $clientId$$261_oldStyle$$ = $JSCompiler_StaticMethods__replaceResizedTile$self$$.$getComponent$().$getClientId$(), $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$261_oldStyle$$, $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ + "_resizePlaceholder"), $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ = 
  document.getElementById($cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$), $clientId$$261_oldStyle$$ = $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$.style, $newStyle$$ = $infolet$$6$$.style;
  $newStyle$$.top = $clientId$$261_oldStyle$$.top;
  $JSCompiler_StaticMethods__replaceResizedTile$self$$.$_rtl$ ? $newStyle$$.right = $clientId$$261_oldStyle$$.right : $newStyle$$.left = $clientId$$261_oldStyle$$.left;
  $infolet$$6$$.$_afrMasonryOriginalOrder$ = $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$.$_afrMasonryOriginalOrder$;
  $JSCompiler_StaticMethods__replaceResizedTile$self$$.$getDomElement$().replaceChild($infolet$$6$$, $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$);
  $AdfPage$$.$PAGE$.$doResizeNotifyDom$($infolet$$6$$, !0);
  $JSCompiler_StaticMethods__replaceResizedTile$self$$.$_resizingTileWithFocusId$ && ($cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ = document.getElementById($JSCompiler_StaticMethods__replaceResizedTile$self$$.$_resizingTileWithFocusId$), $cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$ == $infolet$$6$$ && ($AdfFocusUtils$$.$focusFirstTabStop$($cloneSubId_oldNode_resizingTileWithFocus_tileClientId$$5$$), $JSCompiler_StaticMethods__replaceResizedTile$self$$.$_resizingTileWithFocusId$ = 
  null));
}
$JSCompiler_prototypeAlias$$.$_hideTileOnEndFunc$ = function $$JSCompiler_prototypeAlias$$$$_hideTileOnEndFunc$$($elem$$28$$) {
  var $agent$$386$$ = $AdfAgent$$.$AGENT$;
  $AdfPage$$.$PAGE$.$removeComponentsInSubtree$($elem$$28$$);
  $agent$$386$$.$elementsRemoved$($elem$$28$$);
  $elem$$28$$.parentNode.removeChild($elem$$28$$);
  $JSCompiler_StaticMethods__deleteTileOriginalOrder$$(this, $elem$$28$$);
  $JSCompiler_StaticMethods__fireEvents$$(this.$_arDeleteEventsToFire$);
  this.$_arDeleteEventsToFire$ = null;
};
$JSCompiler_prototypeAlias$$.$_layoutOnEndFunc$ = function $$JSCompiler_prototypeAlias$$$$_layoutOnEndFunc$$() {
  var $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$ = this.$_arResizeClientIds$;
  if ($arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$ && 0 < $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$.length) {
    for (;0 < $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$.length;) {
      var $clientId$$262_domNode$$59_lastEvent$$inline_2313$$ = $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$.pop(), $i$$inline_2314_mapReadyToResize$$1$$ = this.$_mapReadyToResize$;
      if ($i$$inline_2314_mapReadyToResize$$1$$) {
        var $event$$inline_2315_newElem$$ = $i$$inline_2314_mapReadyToResize$$1$$[$clientId$$262_domNode$$59_lastEvent$$inline_2313$$];
        $event$$inline_2315_newElem$$ && (delete $i$$inline_2314_mapReadyToResize$$1$$[$clientId$$262_domNode$$59_lastEvent$$inline_2313$$], $JSCompiler_StaticMethods__replaceResizedTile$$(this, $event$$inline_2315_newElem$$));
      }
    }
    if (this.$_arResizeEventsToFire$) {
      for ($arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$ = this.$_arResizeEventsToFire$, $clientId$$262_domNode$$59_lastEvent$$inline_2313$$ = $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$[$arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$.length - 1], $i$$inline_2314_mapReadyToResize$$1$$ = 0;$i$$inline_2314_mapReadyToResize$$1$$ < $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$.length - 1;$i$$inline_2314_mapReadyToResize$$1$$++) {
        $event$$inline_2315_newElem$$ = $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$[$i$$inline_2314_mapReadyToResize$$1$$], $clientId$$262_domNode$$59_lastEvent$$inline_2313$$.$addPriorResizeEvent$($event$$inline_2315_newElem$$.$getChildClientId$(), $event$$inline_2315_newElem$$.$getOldSizeStyleClass$(), $event$$inline_2315_newElem$$.$getNewSizeStyleClass$());
      }
    }
    $JSCompiler_StaticMethods__fireEvents$$(this.$_arResizeEventsToFire$);
    this.$_arResizeEventsToFire$ = null;
  }
  if (this.$_inserting$) {
    this.$_inserting$ = !1;
    if ($arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$ = this.$_mapReadyToInsert$) {
      for (var $key$$77$$ in $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$) {
        $clientId$$262_domNode$$59_lastEvent$$inline_2313$$ = $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$[$key$$77$$], delete $arResizeClientIds$$2_mapReadyToInsert$$2_resizeEvents$$inline_2312$$[$key$$77$$], $JSCompiler_StaticMethods__finishInsertTile$$(this, $clientId$$262_domNode$$59_lastEvent$$inline_2313$$);
      }
    }
    $JSCompiler_StaticMethods__fireEvents$$(this.$_arInsertEventsToFire$);
    this.$_arInsertEventsToFire$ = null;
  }
};
$JSCompiler_prototypeAlias$$.$_layoutCycleOnStartFunc$ = function $$JSCompiler_prototypeAlias$$$$_layoutCycleOnStartFunc$$() {
  this.$_layoutStartActiveDomElem$ = null;
  var $activeDomElem$$ = $AdfPage$$.$PAGE$.$_activeDomNode$;
  if ($activeDomElem$$) {
    var $domElem$$3$$ = this.$getDomElement$();
    $domElem$$3$$ && $AdfDomUtils$$.$isAncestor$($domElem$$3$$, $activeDomElem$$) && (this.$_layoutStartActiveDomElem$ = $activeDomElem$$);
  }
};
$JSCompiler_prototypeAlias$$.$_layoutCycleOnEndFunc$ = function $$JSCompiler_prototypeAlias$$$$_layoutCycleOnEndFunc$$() {
  var $children$$19_deferredFunctions$$1_domElem$$4$$ = this.$getDomElement$();
  if ($children$$19_deferredFunctions$$1_domElem$$4$$ && this.$_layoutStartActiveDomElem$) {
    var $i$$372_layoutStartActiveDomElem_tile$$ = this.$_layoutStartActiveDomElem$;
    this.$_layoutStartActiveDomElem$ = null;
    var $activeDomElem$$1_deferredOp_index$$145$$ = $AdfPage$$.$PAGE$.$_activeDomNode$;
    this.$_deletingTileWithFocusPrevId$ ? ($i$$372_layoutStartActiveDomElem_tile$$ = document.getElementById(this.$_deletingTileWithFocusPrevId$), this.$_deletingTileWithFocusPrevId$ = null, $i$$372_layoutStartActiveDomElem_tile$$ && $AdfDomUtils$$.$isAncestor$($children$$19_deferredFunctions$$1_domElem$$4$$, $i$$372_layoutStartActiveDomElem_tile$$) && ($children$$19_deferredFunctions$$1_domElem$$4$$ = this.$_getChildElements$($children$$19_deferredFunctions$$1_domElem$$4$$, !0), $activeDomElem$$1_deferredOp_index$$145$$ = 
    $AdfCollections$$.indexOf($children$$19_deferredFunctions$$1_domElem$$4$$, $i$$372_layoutStartActiveDomElem_tile$$), 0 <= $activeDomElem$$1_deferredOp_index$$145$$ && $activeDomElem$$1_deferredOp_index$$145$$ < $children$$19_deferredFunctions$$1_domElem$$4$$.length - 1 ? $AdfFocusUtils$$.$focusFirstTabStop$($children$$19_deferredFunctions$$1_domElem$$4$$[$activeDomElem$$1_deferredOp_index$$145$$ + 1]) : $AdfFocusUtils$$.$focusFirstTabStop$($i$$372_layoutStartActiveDomElem_tile$$))) : $activeDomElem$$1_deferredOp_index$$145$$ ? 
    $AdfDomUtils$$.$isAncestor$($children$$19_deferredFunctions$$1_domElem$$4$$, $activeDomElem$$1_deferredOp_index$$145$$) && $AdfFocusUtils$$.$focusElement$($activeDomElem$$1_deferredOp_index$$145$$) : $AdfDomUtils$$.$isAncestor$($children$$19_deferredFunctions$$1_domElem$$4$$, $i$$372_layoutStartActiveDomElem_tile$$) ? $AdfFocusUtils$$.$focusElement$($i$$372_layoutStartActiveDomElem_tile$$) : $AdfFocusUtils$$.$focusFirstTabStop$($children$$19_deferredFunctions$$1_domElem$$4$$);
  }
  if (this.$_deferredFunctions$) {
    for ($children$$19_deferredFunctions$$1_domElem$$4$$ = this.$_deferredFunctions$, this.$_deferredFunctions$ = null, $i$$372_layoutStartActiveDomElem_tile$$ = 0;$i$$372_layoutStartActiveDomElem_tile$$ < $children$$19_deferredFunctions$$1_domElem$$4$$.length;$i$$372_layoutStartActiveDomElem_tile$$++) {
      $activeDomElem$$1_deferredOp_index$$145$$ = $children$$19_deferredFunctions$$1_domElem$$4$$[$i$$372_layoutStartActiveDomElem_tile$$], $children$$19_deferredFunctions$$1_domElem$$4$$[$i$$372_layoutStartActiveDomElem_tile$$] = null, $activeDomElem$$1_deferredOp_index$$145$$();
    }
  }
};
$JSCompiler_prototypeAlias$$.$_getChildElements$ = function $$JSCompiler_prototypeAlias$$$$_getChildElements$$($parentElem$$2$$, $excludeDropSite$$) {
  for (var $children$$20$$ = $AdfDomUtils$$.$getChildElements$($parentElem$$2$$), $numChildren$$1$$ = $children$$20$$.length, $arChildren$$4$$ = [], $i$$373$$ = 0;$i$$373$$ < $numChildren$$1$$;$i$$373$$++) {
    var $child$$23$$ = $children$$20$$[$i$$373$$];
    if (!$excludeDropSite$$ || $excludeDropSite$$ && $child$$23$$ !== this.$_dropSite$) {
      var $style$$28$$ = $child$$23$$.style;
      "hidden" !== $style$$28$$.visibility && "none" !== $style$$28$$.display && $arChildren$$4$$.push($child$$23$$);
    }
  }
  return $arChildren$$4$$;
};
function $JSCompiler_StaticMethods__insertTileOriginalOrder$$($JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$, $insertedTile$$, $index$$146$$) {
  $JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$ = $JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$.$_getChildElements$($JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$.$getDomElement$());
  0 > $index$$146$$ && ($index$$146$$ = $JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$.length);
  if ($JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$) {
    for (var $i$$375$$ = 0;$i$$375$$ < $JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$.length;$i$$375$$++) {
      var $tile$$2$$ = $JSCompiler_StaticMethods__insertTileOriginalOrder$self_arTiles$$2$$[$i$$375$$];
      $tile$$2$$.$_afrMasonryOriginalOrder$ && $tile$$2$$.$_afrMasonryOriginalOrder$ >= $index$$146$$ + 1 && $tile$$2$$.$_afrMasonryOriginalOrder$++;
    }
  }
  $insertedTile$$.$_afrMasonryOriginalOrder$ = $index$$146$$ + 1;
}
function $JSCompiler_StaticMethods__deleteTileOriginalOrder$$($JSCompiler_StaticMethods__deleteTileOriginalOrder$self$$, $deletedTile$$) {
  if ($deletedTile$$.$_afrMasonryOriginalOrder$) {
    var $arTiles$$3$$ = $JSCompiler_StaticMethods__deleteTileOriginalOrder$self$$.$_getChildElements$($JSCompiler_StaticMethods__deleteTileOriginalOrder$self$$.$getDomElement$());
    if ($arTiles$$3$$) {
      for (var $i$$376$$ = 0;$i$$376$$ < $arTiles$$3$$.length;$i$$376$$++) {
        var $tile$$3$$ = $arTiles$$3$$[$i$$376$$];
        $tile$$3$$.$_afrMasonryOriginalOrder$ && $tile$$3$$.$_afrMasonryOriginalOrder$ > $deletedTile$$.$_afrMasonryOriginalOrder$ && $tile$$3$$.$_afrMasonryOriginalOrder$--;
      }
    }
    delete $deletedTile$$.$_afrMasonryOriginalOrder$;
  }
}
$JSCompiler_prototypeAlias$$.$dropOnRowKey$ = function $$JSCompiler_prototypeAlias$$$$dropOnRowKey$$($dndContext$$78_dropsiteStyle_fromIndex$$4$$) {
  var $isExternalDragSource_toIndex$$4$$ = !0, $dragSourceClientId_dragSourceComponent$$4$$ = null, $component$$1545_evt$$110$$ = this.$getComponent$();
  $dndContext$$78_dropsiteStyle_fromIndex$$4$$ && ($dragSourceClientId_dragSourceComponent$$4$$ = $dndContext$$78_dropsiteStyle_fromIndex$$4$$.$getDragSource$().$getComponent$(), $isExternalDragSource_toIndex$$4$$ = $JSCompiler_StaticMethods__isExternalDragSource$$(this, $dragSourceClientId_dragSourceComponent$$4$$));
  var $domElem$$5$$ = this.$getDomElement$();
  $dndContext$$78_dropsiteStyle_fromIndex$$4$$ = -1;
  var $dragSourceElem$$ = null;
  if (!$isExternalDragSource_toIndex$$4$$ && $dragSourceClientId_dragSourceComponent$$4$$) {
    var $dragSourceElem$$ = $dragSourceClientId_dragSourceComponent$$4$$.$getPeer$().$getDomElement$(), $dragSourceStyle$$ = $dragSourceElem$$.style;
    $dragSourceStyle$$.display = "";
    if (this.$_dropSite$) {
      var $dropSite$$8$$ = this.$_dropSite$;
      $dndContext$$78_dropsiteStyle_fromIndex$$4$$ = $dropSite$$8$$.style;
      this.$_rtl$ ? $dragSourceStyle$$.right = $dndContext$$78_dropsiteStyle_fromIndex$$4$$.right : $dragSourceStyle$$.left = $dndContext$$78_dropsiteStyle_fromIndex$$4$$.left;
      $dragSourceStyle$$.top = $dndContext$$78_dropsiteStyle_fromIndex$$4$$.top;
      $domElem$$5$$.insertBefore($dragSourceElem$$, $dropSite$$8$$);
      $dndContext$$78_dropsiteStyle_fromIndex$$4$$ = $dropSite$$8$$.$_afrMasonryDragSourceIndex$;
      $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, $dragSourceElem$$, $dropSite$$8$$.$_afrMasonryOriginalOrder$ - 1);
    }
  }
  this.$_dropSite$ && ($JSCompiler_StaticMethods__deleteTileOriginalOrder$$(this, this.$_dropSite$), $domElem$$5$$.removeChild(this.$_dropSite$), this.$_dropSite$ = null);
  !$isExternalDragSource_toIndex$$4$$ && $dragSourceClientId_dragSourceComponent$$4$$ && ($isExternalDragSource_toIndex$$4$$ = $JSCompiler_StaticMethods__getChildIndex$$(this, $domElem$$5$$, $dragSourceElem$$), $dndContext$$78_dropsiteStyle_fromIndex$$4$$ != $isExternalDragSource_toIndex$$4$$ && ($dragSourceClientId_dragSourceComponent$$4$$ = $dragSourceClientId_dragSourceComponent$$4$$.$getClientId$(), $component$$1545_evt$$110$$ = new $AdfMasonryReorderEvent$$($component$$1545_evt$$110$$, $dragSourceClientId_dragSourceComponent$$4$$, 
  $dndContext$$78_dropsiteStyle_fromIndex$$4$$, $isExternalDragSource_toIndex$$4$$), $component$$1545_evt$$110$$.$setPropagatesToServer$(null != this.$getComponent$().$getProperty$($AdfDhtmlMasonryLayoutPeer$$.$_HAS_REORDER_LISTENER_KEY$)), $component$$1545_evt$$110$$.$queue$()));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.dropOnRowKey", {$dropOnRowKey$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$dropOnRowKey$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$showDragFeedback$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$showDragFeedback$$($dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$, $desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$, $dragSourceComponent$$5_userAction$$8$$, $lastDesiredDropIndexString$$, $pageX$$50$$, $pageY$$50$$, $dragExit$$4$$) {
  $AdfAssert$$.$assertPrototype$($dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$, $AdfDnDContext$$);
  $AdfAssert$$.$assertStringOrNull$($desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$);
  $AdfAssert$$.$assertNumber$($dragSourceComponent$$5_userAction$$8$$);
  $AdfAssert$$.$assertStringOrNull$($lastDesiredDropIndexString$$);
  $dragExit$$4$$ && ($desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$ = !0, $dragSourceComponent$$5_userAction$$8$$ = null, $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ && ($dragSourceComponent$$5_userAction$$8$$ = $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$.$getDragSource$().$getComponent$(), $desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$ = $JSCompiler_StaticMethods__isExternalDragSource$$(this, $dragSourceComponent$$5_userAction$$8$$)), 
  $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ = !1, this.$_dropSite$ && ($dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ = this.$getDomElement$(), $JSCompiler_StaticMethods__deleteTileOriginalOrder$$(this, this.$_dropSite$), $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$.removeChild(this.$_dropSite$), this.$_dropSite$ = null, $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ = !0), !$desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$ && $dragSourceComponent$$5_userAction$$8$$ && 
  ($dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ = $dragSourceComponent$$5_userAction$$8$$.$getPeer$().$getDomElement$(), $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$.style.display = "", $desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$ = $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$.$_afrMasonryOriginalOrder$, delete $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$.$_afrMasonryOriginalOrder$, $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, 
  $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$, $desiredDropIndexString$$3_isExternalDragSource$$1_origOrder$$ - 1), $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ = !0), $dndContext$$79_domElem$$6_dragSourceElem$$1_needsLayout$$ && this.$_mlCommon$.$setup$(!1, !0));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.showDragFeedback", {$showDragFeedback$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$showDragFeedback$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$getRowKeyBounds$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$getRowKeyBounds$$($desiredDropIndexString$$4_domElem$$7$$) {
  if (!$desiredDropIndexString$$4_domElem$$7$$) {
    return null;
  }
  $desiredDropIndexString$$4_domElem$$7$$ = this.$getDomElement$();
  var $span$$7$$ = this.$_getTileSpan$(this.$_dropSite$), $cellSize$$ = this.$_mlCommon$.$_cellSize$, $dropSiteStyle_offsetY$$1$$ = this.$_dropSite$.style, $tileWidth$$ = $span$$7$$.colSpan * $cellSize$$.$w$, $agent$$387_pageBounds$$ = $AdfAgent$$.$AGENT$, $offsetX$$1$$ = 0, $offsetX$$1$$ = this.$_rtl$ ? $desiredDropIndexString$$4_domElem$$7$$.offsetWidth - parseInt($dropSiteStyle_offsetY$$1$$.right, 10) - $tileWidth$$ : parseInt($dropSiteStyle_offsetY$$1$$.left, 10), $dropSiteStyle_offsetY$$1$$ = 
  parseInt($dropSiteStyle_offsetY$$1$$.top, 10), $agent$$387_pageBounds$$ = $agent$$387_pageBounds$$.$getElementPageBounds$($desiredDropIndexString$$4_domElem$$7$$);
  $agent$$387_pageBounds$$.left += $offsetX$$1$$ - $desiredDropIndexString$$4_domElem$$7$$.scrollLeft;
  $agent$$387_pageBounds$$.right = $agent$$387_pageBounds$$.left + $tileWidth$$;
  $agent$$387_pageBounds$$.top += $dropSiteStyle_offsetY$$1$$ - $desiredDropIndexString$$4_domElem$$7$$.scrollTop;
  $agent$$387_pageBounds$$.bottom = $agent$$387_pageBounds$$.top + $span$$7$$.rowSpan * $cellSize$$.$h$;
  return $agent$$387_pageBounds$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.getRowKeyBounds", {$getRowKeyBounds$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$getRowKeyBounds$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$getDraggedSourceChildIndex$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$getDraggedSourceChildIndex$$($dragSourceComponent$$6$$, $ignoreCachedValue$$) {
  var $draggedSourceClientId$$ = $dragSourceComponent$$6$$.$getClientId$();
  if (!$ignoreCachedValue$$ && this.$_draggedSourceClientId$ == $draggedSourceClientId$$) {
    return this.$_draggedSourceIndex$;
  }
  this.$_draggedSourceClientId$ = $draggedSourceClientId$$;
  return this.$_draggedSourceIndex$ = this.$_dropSite$.$_afrMasonryDragSourceIndex$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.getDraggedSourceChildIndex", {$getDraggedSourceChildIndex$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$getDraggedSourceChildIndex$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$getRowKeyAndOrientationFromHints$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$getRowKeyAndOrientationFromHints$$($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$, $pageY$$51$$, $domElem$$8_hints$$78$$) {
  $AdfAssert$$.$assertNumber$($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$);
  $AdfAssert$$.$assertNumber$($pageY$$51$$);
  $AdfAssert$$.assert(null != $domElem$$8_hints$$78$$);
  var $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ = $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$HINT_LAST_ROWKEY$], $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$HINT_LAST_ROWKEY_BOUNDS$], $dropsiteStyleClass_hintDropOrientation$$1$$ = $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$HINT_LAST_DROP_ORIENTATION$];
  if ($dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ && $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ && ($AdfAssert$$.$assertString$($dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$), $AdfAssert$$.$assertObject$($children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$), $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ >= $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.left && 
  $pageY$$51$$ >= $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.top && $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ <= $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.right && $pageY$$51$$ <= $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.bottom)) {
    $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$ROW_KEY$] = $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$;
    $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$DROP_ORIENTATION$] = $dropsiteStyleClass_hintDropOrientation$$1$$;
    return;
  }
  var $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = !0, $adfPage$$7_sizeStyleClass$$8$$ = $AdfPage$$.$PAGE$, $dndContext$$80$$ = $adfPage$$7_sizeStyleClass$$8$$.$getDnDContext$(), $dragSourceComponent$$7_dropSite$$11$$ = null;
  $dndContext$$80$$ && ($dragSourceComponent$$7_dropSite$$11$$ = $dndContext$$80$$.$getDragSource$().$getComponent$(), $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = $JSCompiler_StaticMethods__isExternalDragSource$$(this, $dragSourceComponent$$7_dropSite$$11$$));
  this.$_getRowKeyAndOrientationForPosition$($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$, $pageY$$51$$, $domElem$$8_hints$$78$$, $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$, $dragSourceComponent$$7_dropSite$$11$$);
  $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ = $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$ROW_KEY$];
  !$dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ || $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ && $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ !== $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ ? ($domElem$$8_hints$$78$$ = this.$getDomElement$(), !this.$_dropSite$ && $dragSourceComponent$$7_dropSite$$11$$ ? $dragSourceComponent$$7_dropSite$$11$$ && ($dropsiteStyleClass_hintDropOrientation$$1$$ = 
  $adfPage$$7_sizeStyleClass$$8$$.$getLookAndFeel$().getStyleClass($AdfDhtmlMasonryLayoutPeer$$.$_MASONRY_LAYOUT_DROP_TARGET_CLASS$), $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ = $dragSourceComponent$$7_dropSite$$11$$.$getPeer$().$getDomElement$(), this.$_draggedSourceIndex$ = this.$_draggedSourceClientId$ = null, $dragSourceComponent$$7_dropSite$$11$$ = this.$_dropSite$ = document.createElement("div"), $adfPage$$7_sizeStyleClass$$8$$ = this.$_getSizeStyleClassName$($dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$), 
  $AdfDomUtils$$.$addCSSClassName$($dragSourceComponent$$7_dropSite$$11$$, $dropsiteStyleClass_hintDropOrientation$$1$$), $adfPage$$7_sizeStyleClass$$8$$ || ($adfPage$$7_sizeStyleClass$$8$$ = this.$_masonryTile1x1Class$), $AdfDomUtils$$.$addCSSClassName$($dragSourceComponent$$7_dropSite$$11$$, $adfPage$$7_sizeStyleClass$$8$$), $AdfDomUtils$$.$addCSSClassName$($dragSourceComponent$$7_dropSite$$11$$, "p_AFDropTarget"), $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ ? 
  $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, $dragSourceComponent$$7_dropSite$$11$$, parseInt($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$, 10)) : ($children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = $JSCompiler_StaticMethods__getChildIndex$$(this, $domElem$$8_hints$$78$$, $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$), $dragSourceComponent$$7_dropSite$$11$$.$_afrMasonryDragSourceIndex$ = 
  $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$, $dragSourceComponent$$7_dropSite$$11$$.$_afrMasonryOriginalOrder$ = $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$.$_afrMasonryOriginalOrder$, $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = $dragSourceComponent$$7_dropSite$$11$$.style, $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ = 
  $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$.style, this.$_rtl$ ? $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.right = $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$.right : $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.left = $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$.left, 
  $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.top = $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$.top, $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$.display = "none"), $domElem$$8_hints$$78$$.insertBefore($dragSourceComponent$$7_dropSite$$11$$, $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$)) : ($dragSourceComponent$$7_dropSite$$11$$ = 
  this.$_dropSite$, $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ ? ($children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = parseInt($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$, 10), $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ = this.$_getChildElements$($domElem$$8_hints$$78$$, !0), $AdfDhtmlMasonryLayoutPeer$$.$_sortTilesOriginalOrder$($child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$), 
  $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ = $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$.length, $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$ = 0 <= $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ && $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ < $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$ ? 
  $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$[$children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$] : null, $JSCompiler_StaticMethods__deleteTileOriginalOrder$$(this, $dragSourceComponent$$7_dropSite$$11$$), $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, $dragSourceComponent$$7_dropSite$$11$$, $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$), 
  $domElem$$8_hints$$78$$.insertBefore($dragSourceComponent$$7_dropSite$$11$$, $child$$24_children$$inline_2322_desiredDropIndexString$$5_dragSourceStyle$$2_pageX$$51$$)) : ($children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$ = this.$_getChildElements$($domElem$$8_hints$$78$$, !0), $JSCompiler_StaticMethods__deleteTileOriginalOrder$$(this, $dragSourceComponent$$7_dropSite$$11$$), $JSCompiler_StaticMethods__insertTileOriginalOrder$$(this, $dragSourceComponent$$7_dropSite$$11$$, 
  $children$$21_draggedSourceIndex_dropIndex_dropsiteStyle$$1_hintRowKeyBounds$$1_isExternalDragSource$$2$$.length), $domElem$$8_hints$$78$$.appendChild($dragSourceComponent$$7_dropSite$$11$$))), this.$_mlCommon$.$setup$(!1, !0)) : ($domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$ROW_KEY$] = $dragSourceElem$$2_hintRowKey$$1_numChildren$$inline_2323$$, $domElem$$8_hints$$78$$[$AdfStampedDropTarget$$.$DROP_ORIENTATION$] = $dropsiteStyleClass_hintDropOrientation$$1$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMasonryLayoutPeer.prototype.getRowKeyAndOrientationFromHints", {$getRowKeyAndOrientationFromHints$:$AdfDhtmlMasonryLayoutPeer$$.prototype.$getRowKeyAndOrientationFromHints$});
$AdfDhtmlMasonryLayoutPeer$$.prototype.$_getRowKeyAndOrientationForPosition$ = function $$AdfDhtmlMasonryLayoutPeer$$$$$_getRowKeyAndOrientationForPosition$$($pageX$$52_rightSide$$inline_2333$$, $infoletUnderPoint$$inline_2332_pageY$$52$$, $hints$$79$$, $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$, $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$) {
  $AdfAssert$$.$assertNumber$($pageX$$52_rightSide$$inline_2333$$);
  $AdfAssert$$.$assertNumber$($infoletUnderPoint$$inline_2332_pageY$$52$$);
  a: {
    this.$getComponent$();
    $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$ = this.$getDomElement$();
    var $agent$$inline_2331_rtl$$inline_2334$$ = $AdfAgent$$.$AGENT$;
    if ($agent$$inline_2331_rtl$$inline_2334$$.$pointInElementBounds$($desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$, $pageX$$52_rightSide$$inline_2333$$, $infoletUnderPoint$$inline_2332_pageY$$52$$)) {
      b: {
        for (var $children$$inline_5859$$ = this.$_getChildElements$($desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$, !0), $numChildren$$inline_5860$$ = $children$$inline_5859$$.length, $agent$$inline_5861$$ = $AdfAgent$$.$AGENT$, $i$$inline_5862$$ = 0;$i$$inline_5862$$ < $numChildren$$inline_5860$$;$i$$inline_5862$$++) {
          var $child$$inline_5863$$ = $children$$inline_5859$$[$i$$inline_5862$$];
          if ($agent$$inline_5861$$.$pointInElementBounds$($child$$inline_5863$$, $pageX$$52_rightSide$$inline_2333$$, $infoletUnderPoint$$inline_2332_pageY$$52$$)) {
            $infoletUnderPoint$$inline_2332_pageY$$52$$ = $child$$inline_5863$$;
            break b;
          }
        }
        $infoletUnderPoint$$inline_2332_pageY$$52$$ = null;
      }
      if ($infoletUnderPoint$$inline_2332_pageY$$52$$) {
        $pageX$$52_rightSide$$inline_2333$$ = $pageX$$52_rightSide$$inline_2333$$ - document.documentElement.scrollLeft - $agent$$inline_2331_rtl$$inline_2334$$.$getElementLeft$($desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$) + $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$.scrollLeft >= $infoletUnderPoint$$inline_2332_pageY$$52$$.offsetLeft + .5 * $infoletUnderPoint$$inline_2332_pageY$$52$$.offsetWidth;
        $agent$$inline_2331_rtl$$inline_2334$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
        $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$ = $JSCompiler_StaticMethods__getChildIndex$$(this, $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$, $infoletUnderPoint$$inline_2332_pageY$$52$$);
        $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ = $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$.$getPeer$().$getDomElement$();
        $infoletUnderPoint$$inline_2332_pageY$$52$$ !== $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ && $infoletUnderPoint$$inline_2332_pageY$$52$$ !== this.$_dropSite$ && ($pageX$$52_rightSide$$inline_2333$$ && !$agent$$inline_2331_rtl$$inline_2334$$ || !$pageX$$52_rightSide$$inline_2333$$ && $agent$$inline_2331_rtl$$inline_2334$$) && $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$++;
        $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ = "" + $desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$;
        break a;
      }
      if (!this.$_dropSite$) {
        $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ = ($children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ = this.$_getChildElements$($desiredDropIndex$$inline_2335_domElem$$inline_2327_isExternalDragSource$$3$$, !0)) && 0 < $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$.length ? "" + $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$.length : 
        "0";
        break a;
      }
    }
    $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ = null;
  }
  $hints$$79$$[$AdfStampedDropTarget$$.$ROW_KEY$] = $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ ? $children$$inline_2337_desiredDropIndex_dragSourceComponent$$8_dragSourceElem$$inline_2336$$ : null;
  $hints$$79$$[$AdfStampedDropTarget$$.$DROP_ORIENTATION$] = $AdfDropEvent$$.$DROP_ORIENTATION_INSIDE$;
};
function $JSCompiler_StaticMethods__getChildIndex$$($JSCompiler_StaticMethods__getChildIndex$self_children$$24$$, $numChildren$$3_parentElem$$4$$, $childElem$$) {
  $JSCompiler_StaticMethods__getChildIndex$self_children$$24$$ = $JSCompiler_StaticMethods__getChildIndex$self_children$$24$$.$_getChildElements$($numChildren$$3_parentElem$$4$$, !0);
  $AdfDhtmlMasonryLayoutPeer$$.$_sortTilesOriginalOrder$($JSCompiler_StaticMethods__getChildIndex$self_children$$24$$);
  $numChildren$$3_parentElem$$4$$ = $JSCompiler_StaticMethods__getChildIndex$self_children$$24$$.length;
  for (var $i$$378$$ = 0;$i$$378$$ < $numChildren$$3_parentElem$$4$$;$i$$378$$++) {
    if ($JSCompiler_StaticMethods__getChildIndex$self_children$$24$$[$i$$378$$] === $childElem$$) {
      return $i$$378$$;
    }
  }
  return -1;
}
function $JSCompiler_StaticMethods__isExternalDragSource$$($JSCompiler_StaticMethods__isExternalDragSource$self$$, $dragSourceComponent$$10$$) {
  return $dragSourceComponent$$10$$.$getPeer$().$getDomElement$().parentNode == $JSCompiler_StaticMethods__isExternalDragSource$self$$.$getDomElement$() ? !1 : !0;
}
;