function AdfSuggestionsPanel(a){AdfAssert.failedInAbstractFunction()}AdfObject.createSubclass(AdfSuggestionsPanel);
AdfSuggestionsPanel.InitClass=function(){this._VALUE_ATTRIBUTE_EXPANDO="data-afr-value";this._NO_SUGGESTIONS_MESSAGE_STYLE_CLASS="af|inputSearch::no-suggestions-message";this._SERVER_FILTERING_STYLE_CLASS="af|inputSearch::server-filtering-indicator";this._LIST_ITEMS_CONTAINER_STYLE_CLASS="af|inputSearch::list-items-container";this._ROW_ITEMS_CONTAINER_STYLE_CLASS="af|inputSearch::row-items-container";this._SUGGESTION_LIST_ITEM_STYLE_CLASS="af|inputSearch::suggestion-list-item";this._SUGGESTION_ROW_HEADER_STYLE_CLASS=
"af|inputSearch::suggestion-row-header";this._SUGGESTION_ROW_ITEM_STYLE_CLASS="af|inputSearch::suggestion-row-item";this._SUGGESTION_ITEM_MATCHING_TEXT_STYLE_CLASS="af|inputSearch::suggestion-item-matching-text";this._ACTIVE_CELL_ID="afr-active";this._CONTENT_STAMP_SUB_ID="cntStmp";this._CONTENT_HEADER_SUB_ID="cntHdr";this._SERVER_FILTERING_INDICATOR_SUB_ID="serverFilteringIndicator";this._SUGGEST_ITEM_SUB_ID="item";this._SUGGESTIONS_BODY_SUB_ID="sgstnBdy";this._LABEL_FETCHING="af_inputSearch.LABEL_FETCHING";
this._LABEL_NO_DATA="af_inputSearch.LABEL_NO_DATA";this._LABEL_NO_MATCHES="af_inputSearch.LABEL_NO_MATCHES";this._SUGGESTIONS_COUNT_MSG="af_inputSearch.SUGGESTIONS_COUNT_MSG";this._SUGGESTIONS_MERGED_MSG="af_inputSearch.SUGGESTIONS_MERGED_MSG";this._POPUP_RESIZE_TIME=151;this.__SUGGESTIONS_RENDERING_CHUNK_SIZE=300;this._HIGHLIGHT_MARKER=AdfInputSearchUtils.UNIQUE_MARKER+"$1"+AdfInputSearchUtils.UNIQUE_MARKER;this._HIGHLIGHT_MARKER_REPLACE_REGEX=new RegExp(AdfInputSearchUtils.UNIQUE_MARKER+"(.+?)"+
AdfInputSearchUtils.UNIQUE_MARKER,"g")};AdfSuggestionsPanel.prototype.Init=function(a){AdfSuggestionsPanel.superclass.Init.call(this);this._peer=a;a=a.getComponent();AdfInputSearchUtils.isReadOnlyOrDisabled(a)||this._prepareTemplates(a)};AdfSuggestionsPanel.appendHeader=function(a,b,d,e,f){var g=document.createElement(a?"tr":"li");f&&g.setAttribute("id",f);AdfDomUtils.addCSSClassName(g,AdfPage.PAGE.getLookAndFeel().getStyleClass(e));a||g.setAttribute("role","presentation");g.innerHTML=b;d.appendChild(g)};
AdfSuggestionsPanel.getSuggestItemIdPrefix=function(a){return AdfRichUIPeer.createSubId(a,AdfSuggestionsPanel._SUGGEST_ITEM_SUB_ID)};AdfSuggestionsPanel.getSuggestionElement=function(a,b){for(;a!=document.body&&!AdfSuggestionsPanel.IsSuggestItem(a)&&a!=b;)a=a.parentNode;return AdfSuggestionsPanel.IsSuggestItem(a)?a:null};AdfSuggestionsPanel.hasPartialDisplayedList=function(a){return null!=AdfSuggestionsPanel._getPartialSuggestionsLoadingIndicator(a)};
AdfSuggestionsPanel.prototype.clear=function(a,b){a&&a.removeAttribute("aria-activedescendant");b||this._setDisplayedSuggestions(null);this._scrollManager&&(this._scrollManager.release(),this._scrollManager=null)};AdfSuggestionsPanel.getSuggestionsBodyId=function(a){return AdfRichUIPeer.createSubId(a.getClientId(),AdfSuggestionsPanel._SUGGESTIONS_BODY_SUB_ID)};
AdfSuggestionsPanel.removePartialSuggestionsLoadingIndicator=function(a,b){var d=AdfSuggestionsPanel._getPartialSuggestionsLoadingIndicator(a);if(!d)return!1;if(b)return!0;AdfSuggestionsPanel._getSuggestionsBody(a).removeChild(d);return!0};AdfSuggestionsPanel.prototype.getDisplayedSuggestions=function(){return this._displayedSuggestions};AdfSuggestionsPanel.prototype._setDisplayedSuggestions=function(a){this._displayedSuggestions=a};
AdfSuggestionsPanel.prototype.render=function(a,b,d){d||(d={});if(this._renderPartialSuggestionsList(a,b,d))AdfPage.PAGE.__perfTimings(!1,!1,!0,"inputSearch: suggestions popup update done: id\x3d",a.getClientId());else{var e=!!d.shouldHighlight,f=!!d.isPartialList,g=new AdfChainSuggestionsMap;g.addSuggestionMap(b,d.source);this._setDisplayedSuggestions(g);if(0===g.length)f||AdfSuggestionsPanel._renderNoSuggestionsMessage(a,e),AdfPage.PAGE.__perfTimings(!1,!1,!0,"inputSearch: suggestions popup update done: id\x3d",
a.getClientId());else{b=AdfPage.PAGE;b.announceToAssistiveTechnology(b.getLookAndFeel().getTranslatedString(AdfSuggestionsPanel._SUGGESTIONS_COUNT_MSG,g.length));d={};d.suggestions=g;d.shouldHighlight=e;var h=this._createSuggestionsDomFragment(g,d,!0,0),e=AdfSuggestionsPanel._getSuggestionsBody(a);a.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE&&e.setAttribute("aria-rowcount",g.length);e.appendChild(h);f&&AdfSuggestionsPanel._renderServerLoadingIndicator(a,e);f=AdfSuggestionsContainer.getElement(a);
AdfSuggestionsContainer.showSuggestions(a,e,f);b.scheduleTimer(this,this._adjustPopupDimensions,g,AdfSuggestionsPanel._POPUP_RESIZE_TIME,{isSynchronized:!0});b.__perfTimings(!1,!1,!0,"inputSearch: suggestions popup update done: id\x3d",a.getClientId());this._scrollManager&&this._scrollManager.release();d.headerHeight=AdfSuggestionsPanel._getContentHeaderHeight(e);this._scrollManager=new AdfInputSearchScrollManager(a.getClientId(),g,f,e,this.createCallback(this._createSuggestionsDomFragment),d)}}};
AdfSuggestionsPanel.prototype.update=function(a,b,d){for(var e=this._getTemplateAttributes(),f=this._getContentStampTemplate(),g=this.GetSelectedItemTemplate(f),h=AdfSuggestionsPanel._getSuggestionsBody(a),k=h.firstElementChild;!AdfSuggestionsPanel.IsSuggestItem(k);)k=k.nextElementSibling;for(var l=a.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE?"aria-rowindex":"aria-posinset",m=AdfSuggestionsPanel.getSuggestItemIdPrefix(a.getClientId()),n=this._displayedSuggestions.getSuggestionMap(0).getArray(),
q=0,r=0,t=!1,u=n.length;q<u&&k;q++){var v=AdfSuggestionsPanel.GetValueFromItem(a,k),w=b.get(v);!w&&d?(h.removeChild(k),n.splice(r,1),t=!0):(w&&(v=this.IsSelected(v)?g:f,n[r]=w,w=AdfSuggestionsPanel._getListItemContent(w.data,null,null,v,e),k.innerHTML!=w&&(k.innerHTML=w)),t&&(k.setAttribute("id",m+this._displayedSuggestions.getInclusiveHeaderIndex(r)),k.setAttribute(l,r+1)),r++);k=k.nextElementSibling}a=new AdfSuggestionMap(n);this._displayedSuggestions.updateSuggestionMap(0,a);this._adjustPopupDimensions(this._displayedSuggestions)};
AdfSuggestionsPanel.prototype.handleClick=function(a){var b=this._peer.getComponent(),d=this._peer.getDomElement();if(a=AdfSuggestionsPanel.getSuggestionElement(a,d))d=AdfSuggestionsPanel.GetValueFromItem(b,a),this.SelectSuggestItem(b,d,a),b.focus()};
AdfSuggestionsPanel.prototype.handleKeyDown=function(a,b){var d=this._peer.getComponent();d.getClientId();var e=a.getNativeEventTarget(),f=a.getKeyCode();if(e==b)switch(f){case AdfKeyStroke.ARROWRIGHT_KEY:AdfSuggestionsPanel._speakUpNewCell(d,b,!0);break;case AdfKeyStroke.ARROWLEFT_KEY:AdfSuggestionsPanel._speakUpNewCell(d,b,!1);break;case AdfKeyStroke.ARROWUP_KEY:this._selectNewItem(d,b,!1);break;case AdfKeyStroke.ARROWDOWN_KEY:this._selectNewItem(d,b,!0);break;case AdfKeyStroke.ENTER_KEY:this._handleEnterKey(d,
b)}};AdfSuggestionsPanel.prototype._handleEnterKey=function(a,b){var d=AdfSuggestionsPanel._getCurrentSelectedItem(b);if(d){var e=AdfSuggestionsPanel.GetValueFromItem(a,d);this.SelectSuggestItem(a,e,d)}else this._peer.RunValidation(a,b,!0)};
AdfSuggestionsPanel.prototype._renderPartialSuggestionsList=function(a,b,d){if(!AdfSuggestionsPanel.removePartialSuggestionsLoadingIndicator(a,d.isPartialList))return!1;if(!AdfSuggestionsPanel._deDuplicateSuggestions(a,this._displayedSuggestions,b,d.source))return!0;this._scrollManager.updateCollection(this._displayedSuggestions);this._adjustPopupDimensions(this._displayedSuggestions);b=AdfPage.PAGE;b.announceToAssistiveTechnology(b.getLookAndFeel().getTranslatedString(AdfSuggestionsPanel._SUGGESTIONS_MERGED_MSG,
this._displayedSuggestions.length));a.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE&&AdfSuggestionsPanel._getSuggestionsBody(a).setAttribute("aria-rowcount",this._displayedSuggestions.length);return!0};
AdfSuggestionsPanel._renderNoSuggestionsMessage=function(a,b){var d=AdfPage.PAGE,e=d.getLookAndFeel(),f=e.getTranslatedString(b?AdfSuggestionsPanel._LABEL_NO_MATCHES:AdfSuggestionsPanel._LABEL_NO_DATA),g=document.createElement("div");AdfDomUtils.addCSSClassName(g,e.getStyleClass(AdfSuggestionsPanel._NO_SUGGESTIONS_MESSAGE_STYLE_CLASS));g.textContent=f;AdfSuggestionsContainer.showSuggestions(a,g);d.announceToAssistiveTechnology(f)};
AdfSuggestionsPanel._renderServerLoadingIndicator=function(a,b){var d=a.getClientId(),e=AdfPage.PAGE.getLookAndFeel(),f=document.createElement("div"),d=AdfRichUIPeer.createSubId(d,AdfSuggestionsPanel._SERVER_FILTERING_INDICATOR_SUB_ID);f.setAttribute("id",d);f.setAttribute("role","presentation");f.setAttribute("title",e.getTranslatedString(AdfSuggestionsPanel._LABEL_FETCHING));e=e.getStyleClass(AdfSuggestionsPanel._SERVER_FILTERING_STYLE_CLASS);AdfDomUtils.addCSSClassName(f,e);b.appendChild(f)};
AdfSuggestionsPanel.prototype.CreateSampleListItem=function(a,b){var d=AdfPage.PAGE.getLookAndFeel(),e;a?(e=document.createElement("tr"),AdfDomUtils.addCSSClassName(e,d.getStyleClass(AdfSuggestionsPanel._SUGGESTION_ROW_ITEM_STYLE_CLASS))):(e=document.createElement("li"),AdfDomUtils.addCSSClassName(e,d.getStyleClass(AdfSuggestionsPanel._SUGGESTION_LIST_ITEM_STYLE_CLASS)),e.setAttribute("role","option"),e.setAttribute("aria-setsize",b));return e};
AdfSuggestionsPanel.prototype.GetSelectedSampleListItem=function(a){AdfAssert.failedInAbstractFunction()};
AdfSuggestionsPanel._getListItemContent=function(a,b,d,e,f){if(!b)return Mustache.render(e,a);a=AdfInputSearchUtils.cloneSimpleObject(a);for(var g=0,h=f.length;g<h;g++){var k=f[g],l=a[k];null!=l&&(l=l.toString().replace(b,AdfSuggestionsPanel._HIGHLIGHT_MARKER),l=Mustache.escape(l),l=l.replace(AdfSuggestionsPanel._HIGHLIGHT_MARKER_REPLACE_REGEX,d),a[k+AdfInputSearchUtils.UNIQUE_MARKER]=l)}return Mustache.render(e,a)};
AdfSuggestionsPanel.prototype._appendSuggestions=function(a,b,d,e,f){var g=this._peer.getComponent(),h=g.getClientId(),k=b?AdfSuggestionsPanel._getHighlightRegex(g):null,l=b?AdfSuggestionsPanel._getHighlightTextWrapperHtml(g):null,m=this._getContentStampTemplate(b),n=this.GetSelectedItemTemplate(m),q=this._getTemplateAttributes();b=g.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE;var r=this.CreateSampleListItem(b,a.length),t=this.GetSelectedSampleListItem(r),u=AdfSuggestionsPanel.getSuggestItemIdPrefix(h),
v=b?"aria-rowindex":"aria-posinset",w=document.createDocumentFragment();d&&AdfSuggestionsPanel._appendContentHeader(g,w);var y=this;a.inclusiveHeaderForEach(e,f,function(a,b,d){if(a instanceof AdfUIComponent)AdfDhtmlSuggestionsSectionPeer.appendHeader(a,w,u+b);else{var e=a.data;a=a.key;var f=y.IsSelected(a),g=f?n:m,f=f?t.cloneNode(!1):r.cloneNode(!1);f.setAttribute("id",u+b);f.setAttribute(v,d+1);f.setAttribute(AdfSuggestionsPanel._VALUE_ATTRIBUTE_EXPANDO,a);f.innerHTML=AdfSuggestionsPanel._getListItemContent(e,
k,l,g,q);w.appendChild(f)}});return w};AdfSuggestionsPanel.prototype._createSuggestionsDomFragment=function(a,b,d,e,f){AdfAssert.assert(null!=e);0>e&&(e=0);null==f&&(f=AdfSuggestionsPanel.__SUGGESTIONS_RENDERING_CHUNK_SIZE);f=e+f;f=f>a.length?a.inclusiveHeaderLength:f;return this._appendSuggestions(a,b.shouldHighlight,d,e,f)};
AdfSuggestionsPanel._appendContentHeader=function(a,b){var d=a.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE;if(d){var e=AdfSuggestionsPanel._getContentHeaderFacet(a);e&&AdfSuggestionsPanel.appendHeader(d,e,b,AdfSuggestionsPanel._SUGGESTION_ROW_HEADER_STYLE_CLASS)}};AdfSuggestionsPanel._getContentHeaderHeight=function(a){a=a.firstElementChild;if(!a.hasAttribute("id"))return a.offsetHeight};AdfSuggestionsPanel._getContentHeaderFacet=function(a){if(a=AdfSuggestionsPanel._getContentHeaderFacetElement(a))return a.innerHTML};
AdfSuggestionsPanel._getContentHeaderFacetElement=function(a){a=a.getClientId();a=AdfRichUIPeer.createSubId(a,AdfSuggestionsPanel._CONTENT_HEADER_SUB_ID);return AdfAgent.AGENT.getElementById(a)};AdfSuggestionsPanel._getContentStampContainer=function(a){a=a.getClientId();a=AdfRichUIPeer.createSubId(a,AdfSuggestionsPanel._CONTENT_STAMP_SUB_ID);return AdfAgent.AGENT.getElementById(a)};AdfSuggestionsPanel.prototype._getContentStampTemplate=function(a){return a?this._filterTemplate:this._contentStampTemplate};
AdfSuggestionsPanel.prototype._getTemplateAttributes=function(){return this._templateAttributes};
AdfSuggestionsPanel.prototype._initContentStampTemplate=function(a){var b=AdfSuggestionsPanel._getContentStampContainer(a);this._contentStampTemplate=b=this.WrapContentStampTemplate(a,AdfInputSearchUtils.parseTemplate(b.innerHTML));var d=[],e=a.getFilterAttributes();this._filterTemplate=b=b.replace(new RegExp(Mustache.tags[0]+"(\\s*\\w+\\s*)"+Mustache.tags[1]+"(?!"+Mustache.tags[1][0]+")(?![^\x3c]*?\x3e)","g"),function(a,b,h,k){return-1!=e.indexOf(b)?(-1==d.indexOf(b)&&d.push(b),b+=AdfInputSearchUtils.UNIQUE_MARKER,
Mustache.tags[0]+"\x26"+b+Mustache.tags[1]):a});this._templateAttributes=d};AdfSuggestionsPanel.prototype._prepareTemplates=function(a){var b=AdfSuggestionsPanel._getContentHeaderFacetElement(a);b&&(b.innerHTML=this.WrapContentHeaderTemplate(AdfInputSearchUtils.parseTemplate(b.innerHTML)));this._initContentStampTemplate(a)};
AdfSuggestionsPanel._adjustHeightToRowCount=function(a,b){var d=AdfSuggestionsPanel._getXthElement(b,a.getRowCount());AdfSuggestionsContainer.setHeight(a,d.offsetTop+d.offsetHeight+2+"px")};AdfSuggestionsPanel.prototype._manageSuggestionsPopupHeight=function(a){var b=this._peer,d=b.getComponent();this._isSuggestionsPopupUpdated(a)||(a=AdfSuggestionsPanel._getSuggestionsBody(d).children)&&0!=a.length&&(AdfSuggestionsPanel._adjustHeightToRowCount(d,a[0]),b.__getSuggestionPopupWindow(d).autoSize())};
AdfSuggestionsPanel.prototype._adjustPopupDimensions=function(a){if(!this._isSuggestionsPopupUpdated(a)){var b=this._peer,d=b.getComponent();b.__getSuggestionPopupWindow(d).autoSize();AdfPage.PAGE.scheduleTimer(this,this._manageSuggestionsPopupHeight,a,0,{isSynchronized:!0})}};AdfSuggestionsPanel._deDuplicateSuggestions=function(a,b,d,e){a=[];for(var f=0,g=d.length;f<g;f++){var h=d.at(f);b.get(h.key)||a.push(h)}if(0===a.length)return!1;b.addSuggestionMap(new AdfSuggestionMap(a),e);return!0};
AdfSuggestionsPanel.prototype._isSuggestionsPopupUpdated=function(a){return this._displayedSuggestions!=a};
AdfSuggestionsPanel._getHighlightRegex=function(a){var b=AdfDhtmlEditableValuePeer.getContentNode(a).value.trim();if(b){var b=AdfInputSearchUtils.escapeRegexChars(b),d=AdfInputSearchUtils.splitAndSort(b);switch(a.getCriteria()){case AdfRichInputSearch.CRITERIA_ATTRIBUTE_STARTS_WITH:b="^("+AdfSuggestionsPanel._getWhitespacePreservedMatcher(b);break;case AdfRichInputSearch.CRITERIA_STARTS_WITH:for(a=0,b=d.length;a<b;a++){var e=d[a];e.match(/^\w/)?d[a]="\\b"+e:d[a]=e}default:b="("}a=0;for(e=d.length;b+=
d[a],++a!=e;)b+="|";return new RegExp(b+")","gi")}};AdfSuggestionsPanel._getHighlightTextWrapperHtml=function(a){return"\x3cspan class\x3d'"+AdfPage.PAGE.getLookAndFeel().getStyleClass(AdfSuggestionsPanel._SUGGESTION_ITEM_MATCHING_TEXT_STYLE_CLASS)+"'\x3e$1\x3c/span\x3e"};AdfSuggestionsPanel._getWhitespacePreservedMatcher=function(a){a=a.split(" ");for(var b="",d=0,e=a.length;d<e-1;d++){for(var b=b+(a[d]+" "),f=d+1;f<e;f++)b+=" "==b.charAt(b.length-1)?"(?:":"(?: ",b+=a[f]+")?";b+="|"}return b};
AdfSuggestionsPanel.GetValueFromItem=function(a,b){var d=b.getAttribute(AdfSuggestionsPanel._VALUE_ATTRIBUTE_EXPANDO);"Number"==AdfDhtmlInputSearchPeer.getValueAttributeType(a)&&(d=Number(d));return d};
AdfSuggestionsPanel._getCurrentSelectedItem=function(a){var b=a.getAttribute("aria-activedescendant");if(b){var d=document.getElementById(b);b==AdfSuggestionsPanel._ACTIVE_CELL_ID&&(d.removeAttribute("id"),d=AdfSuggestionsPanel.getSuggestionElement(d),a.setAttribute("aria-activedescendant",d.getAttribute("id")));return d}};
AdfSuggestionsPanel._speakUpNewCell=function(a,b,d){if(a.getContentMode()===AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE){var e=b.getAttribute("aria-activedescendant");e&&(a=document.getElementById(e),e==AdfSuggestionsPanel._ACTIVE_CELL_ID?(b=a,(a=d?a.nextElementSibling:a.previousElementSibling)&&!a.hasAttribute(AdfMultiSelectPanel.CHECKBOX_EXPANDO)&&(b.removeAttribute("id"),a.setAttribute("id",AdfSuggestionsPanel._ACTIVE_CELL_ID))):(a=a.firstElementChild,a.hasAttribute(AdfMultiSelectPanel.CHECKBOX_EXPANDO)&&
(a=a.nextElementSibling),a.setAttribute("id",AdfSuggestionsPanel._ACTIVE_CELL_ID),b.setAttribute("aria-activedescendant",AdfSuggestionsPanel._ACTIVE_CELL_ID)))}};AdfSuggestionsPanel.GetNextItem=function(a,b,d){if(d){a=d;do a=b?a.nextElementSibling:a.previousElementSibling;while(a&&!AdfSuggestionsPanel.IsSuggestItem(a));return a}if(b)return AdfSuggestionsPanel._getSuggestionsBody(a).querySelector("["+AdfSuggestionsPanel._VALUE_ATTRIBUTE_EXPANDO+"]")};
AdfSuggestionsPanel._getXthElement=function(a,b){for(var d;a&&0!=b;)d=a,AdfSuggestionsPanel.IsSuggestItem(a)&&b--,a=a.nextElementSibling;return d};AdfSuggestionsPanel.IsSuggestItem=function(a){return a.hasAttribute(AdfSuggestionsPanel._VALUE_ATTRIBUTE_EXPANDO)};
AdfSuggestionsPanel.prototype._selectNewItem=function(a,b,d){var e=AdfSuggestionsPanel._getCurrentSelectedItem(b);if(a=AdfSuggestionsPanel.GetNextItem(a,d,e))e&&AdfDomUtils.removeCSSClassName(e,AdfRichUIPeer.SELECTED_STYLECLASS),AdfDomUtils.addCSSClassName(a,AdfRichUIPeer.SELECTED_STYLECLASS),b.setAttribute("aria-activedescendant",a.id),this._scrollManager.isElementHidden(a)&&this._scrollManager.scrollIntoView(a,!d)};
AdfSuggestionsPanel._getPartialSuggestionsLoadingIndicator=function(a){a=a.getClientId();a=AdfRichUIPeer.createSubId(a,AdfSuggestionsPanel._SERVER_FILTERING_INDICATOR_SUB_ID);return document.getElementById(a)};AdfSuggestionsPanel.prototype.GetPeer=function(){return this._peer};AdfSuggestionsPanel.prototype.IsSelected=function(a){AdfAssert.failedInAbstractFunction()};AdfSuggestionsPanel.prototype.SelectSuggestItem=function(a,b,d){AdfAssert.failedInAbstractFunction()};
AdfSuggestionsPanel.prototype.GetSelectedItemTemplate=function(a){AdfAssert.failedInAbstractFunction()};AdfSuggestionsPanel.prototype.WrapContentHeaderTemplate=function(a){AdfAssert.failedInAbstractFunction()};AdfSuggestionsPanel.prototype.WrapContentStampTemplate=function(a,b){AdfAssert.failedInAbstractFunction()};AdfSuggestionsPanel.prototype.WrapSectionHeaderTemplate=function(a,b,d){AdfAssert.failedInAbstractFunction()};
AdfSuggestionsPanel._getSuggestionsBody=function(a){var b=AdfSuggestionsPanel.getSuggestionsBodyId(a),d=document.getElementById(b);if(d)return d;var e=a.getContentMode()==AdfDhtmlInputSearchPeer.__CONTENT_MODE_TABLE,f=AdfPage.PAGE.getLookAndFeel();e?(d="table",e="grid",f=f.getStyleClass(AdfSuggestionsPanel._ROW_ITEMS_CONTAINER_STYLE_CLASS)):(d="ul",e="listbox",f=f.getStyleClass(AdfSuggestionsPanel._LIST_ITEMS_CONTAINER_STYLE_CLASS));d=document.createElement(d);d.setAttribute("id",b);d.setAttribute("role",
e);d.setAttribute("aria-labelledby",AdfInputSearchUtils.getLabelId(a));a.getSelectionMode()==AdfDhtmlInputSearchPeer.__SELECTION_MODE_SINGLE&&d.setAttribute("aria-multiselectable","true");AdfDomUtils.addCSSClassName(d,f);return d};