(function(){function a(a,b,d){var e=b.getCollectionChange("value");if(null!=e&&e.isItemized()&&0==e.getCreatedKeys().length&&0==e.getDeletedKeys().length&&0==e.getDirtiedKeys().length&&0<e.getUpdatedKeys().length){for(var b=a.getAttribute("value"),b=adf.mf.api.amx.createIterator(b),e=e.getUpdatedKeys(),g=e.length,h=0;h<g;++h){var k=e[h];if(b.setCurrentRowKey(k)){var m=a.getChildren(null,k);if(1!=m.length)return adf.mf.api.amx.AmxNodeChangeResult.REPLACE;a.removeChild(m[0]);a.createStampedChildren(k,
[null]);if(1!=a.getChildren(null,k).length)return adf.mf.api.amx.AmxNodeChangeResult.REPLACE}else return adf.mf.api.amx.AmxNodeChangeResult.REPLACE}return d}return adf.mf.api.amx.AmxNodeChangeResult.REPLACE}function b(a,b){var d=adf.mf.api.amx.getVolatileState(a);null==d&&(d={});d.selectedRowKey=b;adf.mf.api.amx.setVolatileState(a,d)}function d(a){a=adf.mf.api.amx.getVolatileState(a);return null!=a?a.selectedRowKey:null}function e(a){adf.mf.internal.amx.addCSSClassName(a,"amx-listItem-selected")}
function g(a,b){for(var d=a.childNodes,e=d.length,g=b.length,h=[],k=0,m=0;m<e&&k<g;++m)for(var n=d[m],o=0;o<g;++o)if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(n.className,b[o])){h[o]=n;++k;break}return h}function h(a){$(a).tap(".amx-listItem",function(){if(-1==adf.mf.internal.amx.getCSSClassNameIndex(a.className,"amx-listView-editMode")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(this.className,"amx-listItem-moreRows")){var d=g(a,["amx-listItem-selected"])[0];null!=d&&adf.mf.internal.amx.removeCSSClassName(d,
"amx-listItem-selected");e(this);var d=this.getAttribute("data-listViewRk"),h=a.getAttribute("id");b(h,d);var k=adf.mf.internal.amx._getNonPrimitiveElementData(this,"amxNode"),h=adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode");amx.isValueTrue(h.getAttribute("editMode"))||amx.validate(this).done(function(){if(amx.acceptEvent()){var a=new amx.ActionEvent;amx.processAmxEvent(k,"action",void 0,void 0,a).always(function(){var a=k.getTag().getAttribute("action");null!=a&&adf.mf.api.amx.doNavigation(a)})}})}if(amx.acceptEvent()){d=
void 0;h=adf.mf.internal.amx._getNonPrimitiveElementData(this,"amxNode");null!=h&&(d=h.getStampKey());var h=adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode"),m=h.getAttribute("_oldValue"),m=new amx.SelectionEvent(m);amx.processAmxEvent(h,"selection",void 0,void 0,m);h.setAttributeResolvedValue("_oldValue",d)}})}function k(a){amx.hasTouch();var b=null,d,e,h,k,x=g(a,["amx-listItem-handle"])[0];null!=x&&$(x).drag({start:function(){window.androidHackForListViewReorder=!0;e=d=void 0;h=a.offsetHeight;
k=a.parentNode.scrollHeight+1+h/2;var g=adf.mf.internal.amx._getNonPrimitiveElementData(a,"amxNode");null!=g&&(d=g.getStampKey());adf.mf.internal.amx.addCSSClassName(a,"move");b=document.createElement("div");b.className="amx-listItem amx-listItem-drop-spacer";o(a.parentNode,a,b)},drag:function(d,e){d.preventDefault();d.stopPropagation();e.preventDefault=!0;e.stopPropagation=!0;var g=adf.mf.internal.amx.getElementTop(a),m=e.pageY,t=g+e.deltaPageY,g=a.parentNode,u=adf.mf.internal.amx.getElementTop(g);
t<u&&(t=u);t<=u+5?(g.setAttribute("data-stop",!1),n(g,-1)):t+h>=u+g.offsetHeight-5?(g.setAttribute("data-stop",!1),n(g,1)):g.setAttribute("data-stop",!0);t=h/2;m=Math.min(k,m-t-u+g.scrollTop);a.style.top=m+"px";-1==adf.mf.internal.amx.getCSSClassNameIndex(parent.className,"notSelect")&&adf.mf.internal.amx.addCSSClassName(g,"notSelect");for(var x=g.childNodes,m=[],u=0,G=x.length;u<G;++u){var L=x[u],B=L.className;-1!=adf.mf.internal.amx.getCSSClassNameIndex(B,"amx-listItem")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(B,
"amx-listItem-drop-spacer")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(B,"move")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(B,"amx-listItem-moreRows")&&m.push(L)}u=0;for(x=m.length;u<x;++u){var G=m[u],L=G.offsetTop,B=G.offsetHeight,D=a.offsetTop+t;if(L<=D&&D<=L+B){D<=L+B/2?g.insertBefore(b,G):o(g,G,b);break}}},end:function(){var g=a.cloneNode(!0),h=a.parentNode;h.appendChild(g);a.style.display="none";var k=b.nextSibling;null!=k&&(k=adf.mf.internal.amx._getNonPrimitiveElementData(k,"amxNode"),
null!=k&&(e=k.getStampKey()));var n=$(g);n.animate({opacity:0,height:0},function(){n.remove();o(h,b,a);a.style.display="";adf.mf.internal.amx.removeCSSClassName(a,"move");a.style.top=""});$(b).animate({height:32},function(){$(b).remove()});adf.mf.internal.amx.removeCSSClassName(h,"notSelect");h.setAttribute("data-stop",!0);"undefined"!==typeof d&&(g=new adf.mf.internal.amx.MoveEvent(d,e),k=m(a),null!=k&&(k=adf.mf.internal.amx._getNonPrimitiveElementData(k,"amxNode"),amx.processAmxEvent(k,"move",void 0,
void 0,g)));window.androidHackForListViewReorder=null}})}function m(a){if(void 0!==typeof a)for(a=a.parentNode;null!=a;){if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(a.className,"amx-listView"))return a;a=a.parentNode}}function n(a,b){var b=1==b?1:-1,d=amx.isValueTrue(a.getAttribute("data-stop"));a.scrollTop+=5*b;d||setTimeout(function(){n(a,b)},300)}function o(a,b,d){b=b.nextSibling;null==b?a.appendChild(d):a.insertBefore(d,b)}amx.registerRenderers("amx",{listView:{createChildrenNodes:function(a){if(!a.isAttributeDefined("value"))return!1;
var b;if(adf.mf.environment.profile.dtMode)b=[{},{},{}],a.setAttributeResolvedValue("value",b);else{b=a.getAttribute("value");if(void 0===b)return a.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),!0;if(null==b)return!0}var d=Infinity,e=null,g=a.getAttribute("fetchSize");null!=g&&adf.mf.internal.amx.isFiniteNumber(parseInt(g,10))&&(d=parseInt(g,10),0>d?d=Infinity:0==d&&(d=25));a.setAttributeResolvedValue("fetchSize",d);g=adf.mf.api.amx.getClientState(a.getId());null!=g&&(e=g.maxRows,null!=e&&a.setAttributeResolvedValue("maxRows",
e));null==e&&(!1==a.isAttributeDefined("maxRows")?(e=d,a.setAttributeResolvedValue("maxRows",d)):(e=parseInt(a.getAttribute("maxRows"),10),isNaN(e)&&(e=d,a.setAttributeResolvedValue("maxRows",d))));a.setAttributeResolvedValue("_oldMaxRows",e);d=adf.mf.api.amx.createIterator(b);if(d.getTotalCount()>d.getAvailableCount()&&d.getAvailableCount()<e)return adf.mf.api.amx.showLoadingIndicator(),b.getCurrentIndex(),adf.mf.api.amx.bulkLoadProviders(b,0,e,function(){try{var b=new adf.mf.internal.amx.AmxNodeUpdateArguments;
b.setAffectedAttribute(a,"value");adf.mf.internal.amx.markNodeForUpdate(b)}finally{adf.mf.api.amx.hideLoadingIndicator()}},function(){adf.mf.api.adf.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"createChildrenNodes","MSG_ITERATOR_FIRST_NEXT_ERROR",req,resp);adf.mf.api.amx.hideLoadingIndicator()}),a.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),!0;a.createStampedChildren(null,["header","footer"]);b=a.getAttribute("var");for(g=0;g<e&&d.hasNext();++g){var h=d.next();adf.mf.el.addVariable(b,
h);a.createStampedChildren(d.getRowKey(),[null]);adf.mf.el.removeVariable(b)}a.setState(adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER);return!0},updateChildren:function(b,d){if(d.hasChanged("value"))return a(b,d,adf.mf.api.amx.AmxNodeChangeResult.REFRESH);if(1==d.getSize()){if(d.hasChanged("maxRows")){var e=b.getAttribute("_oldMaxRows"),g=b.getAttribute("value"),g=adf.mf.api.amx.createIterator(g);g.setCurrentIndex(e-1);for(var h=b.getAttribute("var"),k=b.getAttribute("maxRows");e<k&&g.hasNext();++e){var m=
g.next();adf.mf.el.addVariable(h,m);b.createStampedChildren(g.getRowKey(),[null]);adf.mf.el.removeVariable(h)}return adf.mf.api.amx.AmxNodeChangeResult.REFRESH}if(d.hasChanged("editMode")){g=b.getAttribute("editMode");h=d.getOldValue("editMode");if(g==h)return adf.mf.api.amx.AmxNodeChangeResult.NONE;if(amx.isValueTrue(g))return adf.mf.api.amx.AmxNodeChangeResult.REFRESH}}return adf.mf.api.amx.AmxNodeChangeResult.RERENDER},visitChildren:function(a,b,d){var e=a.getAttribute("value");if(void 0===e)return a.visitStampedChildren(null,
null,null,b,d);if(a.visitStampedChildren(null,["header","footer"],null,b,d))return!0;for(var e=adf.mf.api.amx.createIterator(e),g=a.getAttribute("var");e.hasNext();){var h=e.next();adf.mf.el.addVariable(g,h);try{if(a.visitStampedChildren(e.getRowKey(),[null],null,b,d))return!0}finally{adf.mf.el.removeVariable(g)}}return!1},create:function(a){var b=document.createElement("div");b.setAttribute("role","list");b.setAttribute("class","amx-scrollable");var g=a.getId(),g=d(g),k,m=a.getAttribute("maxRows"),
n=null;k=a.getAttribute("dividerAttribute");null!=k&&""!=k&&(n="#{"+a.getAttribute("var")+"."+k+"}");this._renderHeaderFacet(a,b);h(b);k=a.getAttribute("value");if(void 0!==k){var o=adf.mf.api.amx.createIterator(k),y={currentDividerElement:null};for(k=0;k<m&&o.hasNext();++k){var z=o.next();this._renderItem(a,g,o,b,z,k,n,y)}this._addOrRemoveLoadMoreRowsDom(a,b,o.getTotalCount()>m);y.currentDividerElement&&a.getAttribute("showDividerCount")&&this._displayDividerCount(b);amx.isValueTrue(a.getAttribute("editMode"))&&
adf.mf.internal.amx.addCSSClassName(b,"amx-listView-editMode")}else{m=a.renderSubNodes();n=m.length;for(k=0;k<n;++k)o=m.get(k),y=""+k,g==y&&e(o),o.setAttribute("data-listViewRk",y),b.appendChild(o)}this._appendFooter(a,b);return b},postDisplay:function(a,b){this._restoreScrollPosition(b,a)},refresh:function(a,b){var e=document.getElementById(a.getId());if(b.hasChanged("value"))this._refreshCollectionChanges(a,b);else if(b.hasChanged("editMode")){var g=adf.mf.internal.amx._getNonPrimitiveElementData(e,
"amxNode");if(!(null==g||void 0===g.getAttribute("value"))){adf.mf.internal.amx.addCSSClassName(e,"amx-listView-editMode");for(var e=e.childNodes,g=0,h=e.length;g<h;++g){var m=e[g],n=m.className;-1!=adf.mf.internal.amx.getCSSClassNameIndex(n,"amx-listItem")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(n,"amx-listItem-moreRows")?(n=document.createElement("div"),n.className="amx-listItem-handle",m.appendChild(n),k(m)):-1!=adf.mf.internal.amx.getCSSClassNameIndex(n,"amx-listView-divider")&&($(m).remove(),
--g)}}}else if(b.hasChanged("maxRows")){this._storeClientState(a,e);g=a.getAttribute("_lastIndexRendered");null==g&&(g=-1);h=a.getAttribute("value");h=adf.mf.api.amx.createIterator(h);0<=g&&h.setCurrentIndex(g);var m=a.getAttribute("maxRows"),n=d(a.getId()),o=null,z=a.getAttribute("dividerAttribute");null!=z&&(o="#{"+a.getAttribute("var")+"."+z+"}");for(var A=null,F=e.childNodes,C=F.length,z=C-1;0<=z;--z){var E=F[z];if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(E.className,"amx-listView-divider")){A=
E;break}}for(var I=null,z=C-1;0<=z;--z)if(E=F[z],-1!=adf.mf.internal.amx.getCSSClassNameIndex(E.className,"amx-listItem")&&-1==adf.mf.internal.amx.getCSSClassNameIndex(E.className,"amx-listItem-moreRows")){I=E;break}A={currentDividerElement:null==A?null:A,lastListItem:null==I?null:I};for(z=g+1;z<m&&h.hasNext();++z)g=h.next(),this._renderItem(a,n,h,e,g,z,o,A);A.currentDividerElement&&a.getAttribute("showDividerCount")&&this._displayDividerCount(e);this._addOrRemoveLoadMoreRowsDom(a,e,h.getTotalCount()>
m)}},preDestroy:function(a,b){var d;d=a.jquery?a.get(0):a;this._storeClientState(b,d)},_refreshCollectionChanges:function(a,b){for(var d=b.getCollectionChange("value").getUpdatedKeys(),e=a.getAttribute("value"),e=adf.mf.api.amx.createIterator(e),g=0,h=d.length;g<h;++g){var k=d[g];e.setCurrentRowKey(k)&&a.getChildren(null,k)[0].rerenderNode()}},_storeClientState:function(a,b){var d=b.scrollLeft,e=b.scrollTop,g=a.getId(),h=adf.mf.api.amx.getClientState(g);null==h&&(h={});if(null!=d||null!=e)h.scrollLeft=
d,h.scrollTop=e;h.maxRows=a.getAttribute("maxRows");adf.mf.api.amx.setClientState(g,h)},_restoreScrollPosition:function(a,b){var d=adf.mf.api.amx.getClientState(a.getId());if(null!=d){var e=d.scrollLeft;null!=e&&(b.scrollLeft=e);d=d.scrollTop;null!=d&&(b.scrollTop=d)}},_renderItem:function(a,b,d,e,g,h,k,m){a.setAttributeResolvedValue("_lastIndexRendered",h);b=a.getAttribute("var");adf.mf.el.addVariable(b,g);h=d.getRowKey();null!=a.getAttribute("dividerAttribute")&&!0!==a.getAttribute("editMode")&&
(k=this._getCurrentDivider(a,k),d=a.getAttribute("_lastDivider"),k!=d&&(m.currentDividerElement=this._insertDivider(a,k,e,m.lastListItem),m.lastListItem=m.currentDividerElement,a.setAttributeResolvedValue("_lastDivider",k)));k=a.getChildren(null,h);h=0;for(d=k.length;h<d;++h){var g=k[h],n=g.getTag();if("http://xmlns.oracle.com/adf/mf/amx"==n.getNamespace()&&"listItem"==n.getName()){h=g.renderNode();if(null!=h){h=h.get(0);k=a.getAttribute("_oldValue");d=adf.mf.internal.amx._getNonPrimitiveElementData(h,
"amxNode");null==k&&null!=d&&a.setAttributeResolvedValue("_oldValue",d.getStampKey());if(null!=a.getAttribute("dividerAttribute")&&!0!==a.getAttribute("editMode")&&(a=m.currentDividerElement,null!=a)){k=a.childNodes;a=!1;d=0;for(g=k.length;d<g;++d)if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(k[d].className,"amx-listView-undisclosedIcon")){a=!0;break}k=adf.mf.internal.amx._getNonPrimitiveElementData(h,"amxNode");d=adf.mf.api.amx.getClientState(k.getId());null==d&&(d={});a?(h.style.display="none",
d.isHidden=!0):(h.style.display="",d.isHidden=!1);adf.mf.api.amx.setClientState(k.getId(),d)}this._appendToListView(e,h,m.lastListItem);m.lastListItem=h}break}}adf.mf.el.removeVariable(b)},_displayDividerCount:function(a){for(var a=a.childNodes,b=0,d=a.length;b<d;++b){var e=a[b];if(-1!=adf.mf.internal.amx.getCSSClassNameIndex(e.className,"amx-listView-divider")){var h=g(e,["amx-listView-dividerCounter"]);if(0<h.length&&(h=g(h[0],["amx-listView-dividerCounterText"]),0<h.length)){for(var k=0,e=e.nextSibling,
m=e.className;null!=e&&-1==m.indexOf("amx-listItem-moreRows")&&-1!=m.indexOf("amx-listItem")&&-1==m.indexOf("amx-listView-divider");)k+=1,e=e.nextSibling,m=null!=e?e.className:"";h[0].textContent=k}}}},_collapseDividerIfNecessary:function(a,b,d){if(a.getAttribute("collapsedDividers")&&(a=a.getAttribute("collapsedDividers"),null!=a&&-1!=a.indexOf(d))){b=b.childNodes;d=0;for(a=b.length;d<a;++d){var e=b[d];-1!=adf.mf.internal.amx.getCSSClassNameIndex(e.className,"amx-listView-disclosedIcon")&&(adf.mf.internal.amx.removeCSSClassName(e,
"amx-listView-disclosedIcon"),adf.mf.internal.amx.addCSSClassName(e,"amx-listView-undisclosedIcon"))}}},_renderHeaderFacet:function(a,b){var d=a.getRenderedChildren("header");if(d.length){var e=document.createElement("div");e.className="amx-listView-header";b.appendChild(e);var g=document.createElement("div");g.className="amx-listView-facet-header";e.appendChild(g);for(var e=0,h=d.length;e<h;++e){var k=d[e].renderNode().get(0);g.appendChild(k)}}},_appendToListView:function(a,b,d){d?o(a,d,b):a.appendChild(b)},
_appendFooter:function(a,b){var d=a.getRenderedChildren("footer");if(d.length){var e=document.createElement("div");e.className="amx-listView-footer";b.appendChild(e);var g=document.createElement("div");g.className="amx-listView-facet-footer";e.appendChild(g);for(var e=0,h=d.length;e<h;++e){var k=d[e].renderNode().get(0);g.appendChild(k)}}},_getCurrentDivider:function(a,b){var d=adf.mf.el.getLocalValue(b);return"firstLetter"===a.getAttribute("dividerMode")&&null!=d?d.charAt(0):d},_insertDivider:function(a,
b,d,e){var g=document.createElement("div");g.setAttribute("tabindex","0");if(amx.isValueTrue(a.getAttribute("collapsibleDividers"))){g.className="amx-listView-divider";var h=document.createElement("div");h.className="amx-listView-disclosedIcon";g.appendChild(h);h=document.createElement("div");h.setAttribute("role","heading");h.className="amx-listView-dividerText";h.textContent=b;g.appendChild(h);if(amx.isValueTrue(a.getAttribute("showDividerCount"))){h=document.createElement("div");h.className="amx-listView-dividerCounter";
g.appendChild(h);var k=document.createElement("div");k.className="amx-listView-dividerCounterText";h.appendChild(k)}}else g.className="amx-listView-divider amx-listView-nonCollapsibleDivider",h=document.createElement("div"),h.setAttribute("role","heading"),h.className="amx-listView-nonCollapsibleDivider amx-listView-dividerText",h.textContent=b,g.appendChild(h),amx.isValueTrue(a.getAttribute("showDividerCount"))&&(h=document.createElement("div"),h.className="amx-listView-dividerCounter",g.appendChild(h),
k=document.createElement("div"),k.className="amx-listView-dividerCounterText",h.appendChild(k));adf.mf.internal.amx._setNonPrimitiveElementData(g,"items",[]);this._appendToListView(d,g,e);amx.isValueTrue(a.getAttribute("collapsibleDividers"))&&(this._collapseDividerIfNecessary(a,g,b),$(g).tap(function(){if(amx.acceptEvent()){var a=this;setTimeout(function(){return function(){for(var b=a.nextSibling,d=b.className;null!=b&&-1==d.indexOf("amx-listItem-moreRows")&&-1!=d.indexOf("amx-listItem")&&-1==d.indexOf("amx-listView-divider");){var d=
adf.mf.internal.amx._getNonPrimitiveElementData(b,"amxNode"),e=adf.mf.api.amx.getClientState(d.getId());null==e&&(e={});"none"==b.style.display?(b.style.display="",e.isHidden=!1):(b.style.display="none",e.isHidden=!0);adf.mf.api.amx.setClientState(d.getId(),e);b=b.nextSibling;d=null!=b?b.className:""}}}());for(var b=a.childNodes,d=0,e=b.length;d<e;++d){var g=b[d],h=g.className;-1!=adf.mf.internal.amx.getCSSClassNameIndex(h,"amx-listView-disclosedIcon")?(adf.mf.internal.amx.removeCSSClassName(g,"amx-listView-disclosedIcon"),
adf.mf.internal.amx.addCSSClassName(g,"amx-listView-undisclosedIcon")):-1!=adf.mf.internal.amx.getCSSClassNameIndex(h,"amx-listView-undisclosedIcon")&&(adf.mf.internal.amx.removeCSSClassName(g,"amx-listView-undisclosedIcon"),adf.mf.internal.amx.addCSSClassName(g,"amx-listView-disclosedIcon"))}}}));return g},_createAndAppendTheMoreRowsDom:function(a,b){var d=document.createElement("div");d.setAttribute("role","button");d.setAttribute("tabindex","0");d.className="amx-listItem amx-listItem-moreRows";
var e=adf.mf.resource.getInfoString("AMXInfoBundle","amx_listView_MSG_LOAD_MORE_ROWS"),g=document.createElement("span");g.appendChild(document.createTextNode(e));g.className="amx-outputText";d.appendChild(g);b.appendChild(d);$(d).tap(function(){a.getTypeHandler()._handleMoreRowsAction(a)})},_addOrRemoveLoadMoreRowsDom:function(a,b,d){var e=g(b,["amx-listItem-moreRows"])[0];d&&null==e?this._createAndAppendTheMoreRowsDom(a,b):!d&&null!=e&&$(e).remove()},_handleMoreRowsAction:function(a){var b=a.getAttribute("fetchSize"),
d=a.getAttribute("maxRows"),e=d;adf.mf.api.amx.showLoadingIndicator();if(Infinity!=d&&0<b){a.setAttributeResolvedValue("_oldMaxRows",e);d+=b;a.setAttributeResolvedValue("maxRows",d);var b=a.getAttribute("value"),g=adf.mf.api.amx.createIterator(b);g.getTotalCount()>g.getAvailableCount()&&g.getAvailableCount()<d?adf.mf.api.amx.bulkLoadProviders(b,e,d,function(){try{var b=new adf.mf.internal.amx.AmxNodeUpdateArguments;b.setAffectedAttribute(a,"maxRows");adf.mf.internal.amx.markNodeForUpdate(b)}finally{adf.mf.api.amx.hideLoadingIndicator()}},
function(){adf.mf.api.adf.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"_handleMoreRowsAction","MSG_ITERATOR_FIRST_NEXT_ERROR",req,resp);adf.mf.api.amx.hideLoadingIndicator()}):(d=new adf.mf.internal.amx.AmxNodeUpdateArguments,d.setAffectedAttribute(a,"maxRows"),adf.mf.internal.amx.markNodeForUpdate(d),adf.mf.api.amx.hideLoadingIndicator())}}},listItem:function(a){var b=document.createElement("div");b.setAttribute("tabindex","0");if(amx.isValueFalse(a.getAttribute("showLinkIcon")))b.setAttribute("role",
"listitem"),b.className="amx-listItem-noCaret";else{b.setAttribute("role","button listitem");var g=document.createElement("div");g.className="amx-listItem-caret";b.appendChild(g)}for(var g=a.renderSubNodes(),h=0,m=g.length;h<m;++h){var n=g.get(h);b.appendChild(n)}g=$(b);amx.enableSwipe(g);amx.enableTapHold(g);g=d(a.getParent().getId());null!==g&&g==a.getStampKey()&&e(b);b.setAttribute("data-listViewRk",a.getStampKey());g=adf.mf.api.amx.getClientState(a.getId());null!=g&&!0==g.isHidden&&(b.style.display=
"none");a=a.getParent();void 0!==a.getAttribute("value")&&amx.isValueTrue(a.getAttribute("editMode"))&&(a=document.createElement("div"),a.className="amx-listItem-handle",b.appendChild(a),k(b));return b},iterator:{createChildrenNodes:function(a){if(!a.isAttributeDefined("value"))return!1;var b;if(adf.mf.environment.profile.dtMode)b=[{},{},{}],a.setAttributeResolvedValue("value",b);else{b=a.getAttribute("value");if(void 0===b)return a.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),!0;if(null==b)return!0}var d=
adf.mf.api.amx.createIterator(b);if(d.getTotalCount()>d.getAvailableCount())return adf.mf.api.amx.showLoadingIndicator(),adf.mf.api.amx.bulkLoadProviders(b,0,-1,function(){try{var b=new adf.mf.internal.amx.AmxNodeUpdateArguments;b.setAffectedAttribute(a,"value");adf.mf.internal.amx.markNodeForUpdate(b)}finally{adf.mf.api.amx.hideLoadingIndicator()}},function(a,b){adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.SEVERE,"createChildrenNodes","MSG_ITERATOR_FIRST_NEXT_ERROR",a,b);adf.mf.api.amx.hideLoadingIndicator()}),
a.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),!0;for(b=a.getAttribute("var");d.hasNext();){var e=d.next();adf.mf.el.addVariable(b,e);a.createStampedChildren(d.getRowKey(),[null]);adf.mf.el.removeVariable(b)}a.setState(adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER);return!0},updateChildren:function(b,d){return d.hasChanged("value")?a(b,d,adf.mf.api.amx.AmxNodeChangeResult.RERENDER):adf.mf.api.amx.AmxNodeChangeResult.REFRESH},visitChildren:function(a,b,d){var e=a.getAttribute("value"),e=adf.mf.api.amx.createIterator(e),
g=a.getAttribute("var");for(this._createMap(b);e.hasNext();){var h=e.next();adf.mf.el.addVariable(g,h);try{if(this._pushMapItem(b,e,g,a.getTag().getAttribute("value")),a.visitStampedChildren(e.getRowKey(),[null],null,b,d))return!0}finally{adf.mf.el.removeVariable(g),this._popMapItem(b)}}return!1},isFlattenable:function(){return!0},_createMap:function(a){void 0==a._map&&(a._map=[])},_pushMapItem:function(a,b,d,e){var e=e.trim().replace(/^#{/,"").replace(/}$/,""),g={};b.isTreeNodeIterator()||(g[d]=
e+"['"+b.getRowKey()+"']");a._map.unshift(g)},_popMapItem:function(a){a._map.shift()}}})})();