text: /**
   * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
   * The Universal Permissive License (UPL), Version 1.0
   */
  "use strict";
  define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojbutton","ojs/ojmenu","ojs/ojlistview"],function(a,g){a.Id=function(a,c,e){this.C=a;this.fa=c;this.K3=e};a.Id.prototype.Oh=function(){this.fa.removeClass("oj-navigationlist-expanded oj-navigationlist-vertical")};a.Id.prototype.Tz=function(){return Promise.resolve(null)};a.Id.prototype.Rz=function(){return Promise.resolve(null)};a.Id.prototype.K5=function(){return!1};a.Id.prototype.ZS=function(){};a.Id.prototype.pT=function(a,c){a.attr("aria-selected",
  c?"true":"false")};a.Id.prototype.sS=function(){var a=this.C.element.attr("role"),c=this.fa.attr("role");a&&"presentaion"!=a&&!c&&(this.C.element.attr("role","presentation"),this.fa.attr("role",a))};a.Id.prototype.Q5=function(){};a.Id.prototype.R5=function(){};a.Id.prototype.zw=function(a,d,e){return c.O.zw.apply(this.C,arguments)};a.Id.prototype.Wz=function(a){return c.O.Wz.apply(this.C,arguments)};a.Id.prototype.Rh=function(a){return c.O.Rh.apply(this.C,arguments)};a.Id.prototype.Gw=function(a,
  d){c.O.Gw.apply(this.C,arguments)};a.Id.prototype.Init=function(){this.fa.addClass("oj-navigationlist-expanded oj-navigationlist-vertical")};a.Id.prototype.ul=function(a){return c.O.ul.apply(this.C,arguments)};a.Id.prototype.dT=function(){};a.Id.prototype.n5=function(){};a.Id.prototype.Fw=function(){};a.Id.prototype.rr=function(a){return c.O.rr.apply(this.C,arguments)};a.Id.prototype.sr=function(a){return c.O.sr.apply(this.C,arguments)};a.Id.prototype.IS=function(){return null};a.Id.prototype.KS=
  function(){return null};a.Id.prototype.rl=function(){};a.Id.prototype.b6=function(){};a.Id.prototype.z5=function(a){return c.O.Uy.apply(this.C,arguments)};a.Id.prototype.P5=function(){return!0};a.Id.prototype.c6=function(){};a.Cc=function(b,c,e){a.Cc.O.constructor.call(this,b,c,e)};a.f.xa(a.Cc,a.Id,"oj.HorizontalNavListHandler");a.Cc.prototype.Oh=function(){this.fa.removeClass("oj-navigationlist-expanded oj-navigationlist-horizontal");this.fa.find("."+this.C.ow).remove();this.C.ea._off(this.C.ea.element,
  ".overflow");this.fba();null!=this.cl&&(this.cl.remove(),this.cl=null);this.pz=[]};a.Cc.prototype.pT=function(a,c){a.attr("aria-pressed",c?"true":"false")};a.Cc.prototype.zw=function(a,d,e){a===g.ui.keyCode.LEFT?a=this.C.im()?g.ui.keyCode.DOWN:g.ui.keyCode.UP:a===g.ui.keyCode.RIGHT&&(a=this.C.im()?g.ui.keyCode.UP:g.ui.keyCode.DOWN);a=c.O.zw.call(this.C,a,d,e);"top"===this.C.Jd("edge")&&this.C.V.elem[0].scrollIntoView(!1);return a};a.Cc.prototype.Wz=function(a){return a===this.C.Cl||a===this.C.ql||
  a===this.C.Ze||a===this.C.Tf};a.Cc.prototype.ZS=function(a){a=this.C.tQ(a);a.attr("role","button");a[0].hasAttribute("aria-selected")&&(a.attr("aria-pressed","false"),a.removeAttr("aria-selected"))};a.Cc.prototype.sS=function(){var a=this;this.fa.attr("role","toolbar");this.C.element.attr("role","presentation");this.C.element.find("."+this.C.Dg()+":visible").each(function(c){0<c&&a.CL(this,c)});this.yB()};a.Cc.prototype.CL=function(a,c){var e=g(a),f=e.prev();0<c&&e.is(":visible")&&f.length&&!f.is("li."+
  this.C.ow)&&e.before('\x3cli role\x3d"separator" class\x3d"'+this.C.ow+'"\x3e\x3c/li\x3e')};a.Cc.prototype.Q5=function(a,c){this.CL(a,c.index);this.yB()};a.Cc.prototype.R5=function(a){a=g(a);var c=a.prev();c.length&&c.is("li."+this.C.ow)?c.remove():(a=a.next(),a.is("li."+this.C.ow)&&a.remove());this.yB()};a.Cc.prototype.ul=function(a){return!(this.cl&&this.cl[0]===g(a)[0])&&this.C.Kf(g(a))[0].hasAttribute("aria-pressed")};a.Cc.prototype.Init=function(){var a=this;this.fa.addClass("oj-navigationlist-expanded oj-navigationlist-horizontal");
  this.C.ea._on(this.C.ea.element,{"click .oj-navigationlist-overflow-menu-item a.oj-navigationlist-item-content":a.oO.bind(a),"keydown .oj-navigationlist-overflow-menu-item a.oj-navigationlist-item-content":function(c){c.keyCode===g.ui.keyCode.SPACE&&a.oO(c)}});this.pz=[]};a.Cc.prototype.b6=function(){this.yB()};a.Cc.prototype.rl=function(){this.yB()};a.Cc.prototype.Fw=function(a){var c=this.C.Jd("overflow");a.overflow&&c!==a.overflow&&this.yB(a.overflow)};a.Cc.prototype.z5=function(a){return"add"===
  a||"remove"===a||"update"===a?"none":c.O.Uy.apply(this.C,arguments)};a.Cc.prototype.IS=function(a){var c=null,e,f;if("oj-navigationlist-item"===a.subId&&0<this.pz.length)for(e=this.eG(),a=a.key,e=e.find(".oj-menu-item"),f=0;f<e.length;f++)if(g(e[f]).data("key")===a){c=e[f];this.oO(null);break}return c};a.Cc.prototype.KS=function(a){var c=null;a=g(a).closest(".oj-menu-item");if(null!==this.eG()&&a.closest("."+this.C.Y5)[0]!==this.eG()[0])return null;null!=a&&0<a.length&&(a=a.data("key"),null!=a&&(c=
  {subId:"oj-navigationlist-item",key:a}));return c};a.Cc.prototype.c6=function(a,c){"selection"===a&&this.ika(c)};a.Cc.prototype.P5=function(a,c){return"currentItem"===a&&this.cl&&this.cl.attr("id")===c?!1:!0};a.Cc.prototype.yB=function(a){var c=-1;a||(a=this.C.Jd("overflow"));"popup"===a&&(c=this.txa());this.Hwa(c)};a.Cc.prototype.Qfa=function(b,c,e){var f="ltr"===a.Q.Oj();e=e?e:0;return f?.1<c-b+e:.1<b-c+e};a.Cc.prototype.txa=function(){var b,c,e,f,h,k,l,m=this;b=this.C.Pj()[0];c="ltr"===a.Q.Oj()?
  "right":"left";e=this.bs();k=-1;if(0===e.length)return k;this.iC(this.to(),!0);e.each(function(a,b){m.iC(g(b),!0)});b=b.getBoundingClientRect()[c];l=this.to()[0].getBoundingClientRect().width;f=e.last()[0].getBoundingClientRect()[c];h=e.length-1;if(this.Qfa(b,f,0)){for(;this.Qfa(b,f,l)&&0<h;)h-=1,f=e[h].getBoundingClientRect()[c];k=h+1}return k};a.Cc.prototype.bs=function(){return this.fa.find("."+this.C.Dg()+":not(."+this.C.Z5+")")};a.Cc.prototype.oFa=function(){return this.fa.hasClass(this.C.$ra)};
  a.Cc.prototype.iC=function(a,c){var e;this.oFa()&&(e=a.prev("."+this.C.ow));c?(a.show(),e&&e.show()):(a.hide(),e&&e.hide())};a.Cc.prototype.Hwa=function(a){var c=this,e=this.bs(),f,h=[],k,l;0!==e.length&&(this.fa.find("."+this.C.YJ).removeClass(this.C.YJ),-1===a||a>=e.length?this.cl&&this.iC(this.cl,!1):(this.CL(this.to(),e.length),this.iC(this.to(),!0),l=!0),e.each(function(e,l){var t=g(l);-1!==a&&a<=e?(t.hasClass("oj-focus")&&c.C.om(c.to(),null),c.iC(t,!1),f={},h.push(f),f.key=c.C.og(l),f.label=
  c.SBa(t),t.hasClass("oj-disabled")&&(f.disabled=!0)):(k=t,c.iC(t,!0),c.cl&&c.cl.hasClass("oj-focus")&&c.C.og(l)===c.C.Jd("currentItem")&&c.C.om(k,null))}),l?this.to().addClass(this.C.YJ):k.addClass(this.C.YJ),this.pz=h,this.C.jw(),e=this.Pv&&this.Pv.is(":visible"),this.fba(),e&&this.oO(null))};a.Cc.prototype.fba=function(){this.Pv&&(this.Pv.ojMenu("destroy"),this.Pv.remove(),this.Pv=null)};a.Cc.prototype.to=function(){var a,c,e,f,h,k;this.cl||(f=g(document.createElement("li")),a=g(document.createElement("a")),
  c=g(document.createElement("span")),e=g(document.createElement("span")),h=this.bs(),k=h.last(),f.uniqueId().attr("role","presentation").addClass(this.C.Dg()).addClass(this.C.eg()).addClass(this.C.Z5).addClass("oj-default").append(a),a.addClass(this.C.kn()).addClass(this.C.sl),a.attr("role","button").attr("aria-haspopup","true").attr("aria-pressed","false").attr("tabindex","-1").attr("data-tabmod","-1").attr("href","#").append(e).append(c),this.fa.find("ul:first").hasClass(this.C.eU)||a.addClass(this.C.fU),
  c.text(this.C.ea.R("overflowItemLabel")).addClass(this.C.yE),e.addClass(this.C.UT).addClass("oj-fwk-icon").addClass(this.C.asa),f[0].key=f.attr("id"),k.after(f),this.CL(f,h.length),this.cl=f);return this.cl};a.Cc.prototype.eG=function(){var a=this.pz,c,e,f,h;if(0===a.length)return null;if(!this.Pv){h=g(document.createElement("ul"));h.addClass(this.C.Y5).hide();this.fa.append(h);for(f=0;f<a.length;f++)c=g(document.createElement("li")),e=g(document.createElement("a")),e.attr("href","#").text(a[f].label),
  c.data("key",a[f].key),a[f].disabled&&c.addClass("oj-disabled"),c.append(e),h.append(c);h.ojMenu({openOptions:{display:"auto"},open:this.Iva.bind(this),close:this.Hva.bind(this),select:this.Jva.bind(this)});this.Pv=h}return this.Pv};a.Cc.prototype.oO=function(a){this.eG().is(":visible")||(this.to().addClass("oj-selected").removeClass("oj-default"),this.eG().ojMenu("open",a,{launcher:this.to(),initialFocus:"firstItem",position:{my:"end bottom",at:"end top",collision:"flipfit"}}))};a.Cc.prototype.ika=
  function(a){var c,e;if(this.cl&&0<this.pz.length){if(a)for(e=0;e<this.pz.length;e++)if(this.pz[e].key===a){c=!0;break}c||this.to().addClass("oj-default").removeClass("oj-selected")}};a.Cc.prototype.Iva=function(){this.to().find("."+this.C.sl).attr("tabindex","0")};a.Cc.prototype.Hva=function(){var a=this.C.ea.option("selection");this.ika(a);this.to().find("."+this.C.sl).focus()};a.Cc.prototype.Jva=function(a,c){var e=c.item.data("key"),f;f={selection:e};e=this.C.Se(e);this.C.UJ(f);(f=f.selection)&&
  this.C.uj("selection",f,{_context:{originalEvent:a,kb:!0,Wk:{items:g(e)}},changed:!0})};a.Cc.prototype.SBa=function(a){var c=a.find("."+this.C.f8+":first");return 0<c.length?c.text():a.find("."+this.C.yE+":first").text()};a.or=function(b,c,e){a.or.O.constructor.call(this,b,c,e)};a.f.xa(a.or,a.Id,"oj.CollapsibleNavListHandler");a.or.prototype.Oh=function(){this.fa.removeClass("oj-navigationlist-collapsible oj-navigationlist-vertical")};a.or.prototype.Init=function(){this.fa.addClass("oj-navigationlist-collapsible oj-navigationlist-vertical")};
  a.or.prototype.Tz=function(a,d,e){return c.O.pS.apply(this.C,arguments)};a.or.prototype.Rz=function(a,d,e,f){return c.O.nS.apply(this.C,arguments)};a.or.prototype.K5=function(a,c,e,f){var h=0<e.children("."+this.C.fh()).length;if(c===this.C.Ze||c===this.C.Tf)return c===this.C.Ze&&!this.C.im()||c===this.C.Tf&&this.C.im()?this.C.Rh(e)===this.C.Tn&&this.C.Ct(e,a,!0,f,!0,!0):this.C.Rh(e)===this.C.Sn&&this.C.tw(e,a,!0,f,!0,!0,!0),!0;if(h&&(c===g.ui.keyCode.ENTER||c===g.ui.keyCode.SPACE)){if(0>=e.length)return;
  this.C.Rh(e)===this.C.Sn?this.C.tw(e,null,!0,f,!0,!0,!0):this.C.Rh(e)===this.C.Tn&&this.C.Ct(e,null,!0,f,!0,!0);return!0}return!1};a.le=function(b,c,e){a.le.O.constructor.call(this,b,c,e);this.Q3=[]};a.f.xa(a.le,a.or,"oj.SlidingNavListHandler");a.le.prototype.Oh=function(){this.fa.removeClass("oj-navigationlist-slider oj-navigationlist-vertical");this.Hy.remove()};a.le.prototype.Gja=function(a,c,e,f,g){var k=this,l=this.C.Pj();this.C.im();var m=this.C.Pj().hasClass("oj-focus-ancestor"),p;p=c?"sliderExpand":
  "sliderCollapse";this.C.Hw(l,p,this.C.Uy(p)).then(function(){k.J0(a,c,e,f,m);g(null)})};a.le.prototype.J0=function(a,c,e,f,g){null!==this.C.Mf&&(e&&(g&&this.C.Pj().addClass("oj-focus-ancestor"),f&&0===f.button&&this.C.i5(!0),this.C.om(e,f),this.C.i5(!1)),c?this.C.qS(a.children("."+this.C.fh())):this.C.oS(a.children("."+this.C.fh())))};a.le.prototype.Tz=function(a,c,e){var f,h=new Promise(function(a){f=a}),k=g(a).parents(".oj-navigationlist-item-element:first"),l=k.children("."+this.C.fh()),m,p=null,
  t=k.closest("."+this.C.Jt);if(0<t.length){t.removeClass(this.C.Jt);k.addClass(this.C.Jt);var p=l.find("."+this.C.Dg()+":eq(0)"),r=k.parentsUntil(t,"ul"),r=t.is(this.C.element)?r.get().concat(t.get()):r.get(),n=this,s,r=g(r.reverse());r.each(function(a,b){m=g(b).is(n.C.element)?n.C.Q2():n.C.L2(g(b).parent());s=a===r.length-1?k:g(r.get(a+1)).parent();n.bwa(n.C.og(s[0]),n.C.L2(s),m);n.Q3.push(s)})}c?this.Gja(k,!0,p,e,f):(this.J0(k,!0,p,e,!1),f(null));k.siblings().attr("aria-hidden","true");k.children("."+
  this.C.dg()).children("."+this.C.sl).attr("aria-hidden","true");l.removeAttr("aria-hidden");a.css("display","");k.addClass("oj-skipfocus");return h};a.le.prototype.Rz=function(a,c,e,f){var g;c=new Promise(function(a){g=a});var k=a.children("."+this.C.fh()),l=a.parent();a.children("."+this.C.dg()).children("."+this.C.sl).removeAttr("aria-hidden");k.attr("aria-hidden","true");a.siblings().removeAttr("aria-hidden");a.removeClass("oj-skipfocus");a.removeClass(this.C.Jt);0===a.closest("."+this.C.Jt).length&&
  (l.closest("."+this.C.Dg()).addClass(this.C.Jt),this.C.element.is(l)&&this.C.element.addClass(this.C.Jt));e?this.Gja(a,!1,k.parent(),f,g):(this.J0(a,!1,k.parent(),f,!1),g(null));this.JJa();return c};a.le.prototype.pT=function(a,c){c?a.attr("aria-describedby","selectedLabel"):a.removeAttr("aria-describedby")};a.le.prototype.Rh=function(a){a=this.C.Kf(a).attr("aria-expanded");return"true"===a?this.C.Tn:"false"===a?this.C.Sn:this.C.r6};a.le.prototype.Gw=function(a,c){c===this.C.Tn?(this.C.Kf(a).attr("aria-expanded",
  "true"),a.removeClass(this.C.k5).addClass(this.C.t5)):c===this.C.Sn&&(this.C.Kf(a).attr("aria-expanded","false"),a.removeClass(this.C.t5).addClass(this.C.k5))};a.le.prototype.ZS=function(a,c){var e=this.C.Kf(a);e.attr("role","menuitem");c.attr("id")||c.uniqueId();var f=a.children("."+this.C.fh());0<f.length&&(e.attr("aria-haspopup","true"),f.attr("role","menu"),f.css("display",""),a.removeAttr("aria-expanded"),e.attr("aria-expanded","false"))};a.le.prototype.sS=function(){this.fa.attr("role","menu");
  this.C.element.attr("role","presentation")};a.le.prototype.Init=function(a){this.fa.addClass("oj-navigationlist-slider oj-navigationlist-vertical");a.element.addClass("oj-navigationlist-current");this.fxa(a);this.cGa()};a.le.prototype.fxa=function(a){var c;this.Hy=g(document.createElement("div"));this.Hy.addClass("oj-navigationlist-toolbar");this.x_=g(document.createElement("a"));this.be=g(document.createElement("a"));this.be.addClass("oj-navigationlist-previous-button");this.be.css("visibility",
  "hidden").attr("tabindex","-1");this.x_.addClass("oj-navigationlist-previous-link").attr("tabindex","-1");this.mG=g(document.createElement("label"));this.mG.addClass("oj-navigationlist-current-header").text(this.C.Q2());this.zP=g(document.createElement("span"));this.zP.attr("role","separator").attr("aria-orientation","vertical").addClass("oj-navigationlist-toolbar-separator");this.Ki=g(document.createElement("button"));this.Ki.addClass("oj-navigationlist-hierarchical-button").attr("tabindex","-1");
  this.Yg=g(document.createElement("ul"));this.Yg.addClass("oj-navigationlist-hierarchical-menu").hide();c=g(document.createElement("label"));c.addClass("oj-helper-hidden-accessible").attr("aria-hidden","true").attr("id","selectedLabel");c.text(this.K3.R("selectedLabel"));this.x_.append(this.mG);this.Hy.append(this.be);this.Hy.append(this.x_).append(this.zP).append(this.Ki).append(this.Yg).append(c);this.fa.prepend(this.Hy);this.eP(a.hierarchyMenuDisplayThresholdLevel)};a.le.prototype.n5=function(a){var c=
  this.Q3.pop();c&&this.C.Ct(c,a,!0,null,!0,!0)};a.le.prototype.cGa=function(){var a=this,c=this.Yg.uniqueId().attr("id");this.Yg.ojMenu({openOptions:{position:{my:"end top",at:"end bottom"}},select:function(c,d){var h=d.item.nextAll(),k,l,m=a.Q3,p=d.item.data("key");for(a.C.ac();0<m.length&&(l=m.pop(),k=a.C.og(l[0]),a.C.Ct(g(l),c,!0,k,!0,!0),p!==k););h.remove();d.item.remove();a.Yg.ojMenu("refresh");a.C.Rb()}});this.Ki.ojButton({label:this.K3.R("hierMenuBtnLabel"),display:"icons",icons:{start:"oj-fwk-icon oj-hier-icon"},
  menu:"#"+c,disabled:!0,chroming:"half"});this.be.ojButton({label:this.K3.R("previousIcon"),display:"icons",icons:{start:"oj-navigationlist-previous-icon oj-component-icon oj-clickable-icon-nocontext"},chroming:"half"})};a.le.prototype.bwa=function(a,c,e){var f;if(this.Ki){var h=this.Yg.find("li").length,k=g(document.createElement("li")),l=g(document.createElement("a"));l.attr("href","#");k.append(l);if(0<h){for(f=0;f<h;f++)0<f&&l.append(g(document.createElement("span")).addClass("oj-navigationlist-hvitem-space"));
  l.append(g(document.createElement("span")).addClass("oj-menu-item-icon oj-icon oj-navigationlist-level-indicator"))}f=g(document.createElement("span")).addClass("oj-navigationlist-hierarchical-menu-label");f.text(e);l.append(f);k.data("key",a);this.Yg.append(k);this.Yg.ojMenu("refresh");this.eP(this.C.Jd("hierarchyMenuDisplayThresholdLevel"));this.Ki.ojButton("option","disabled",!1);this.be.css("visibility","visible");this.C.Pj().hasClass("oj-focus-ancestor")&&this.be.attr("tabindex","0");this.mG.text(c)}};
  a.le.prototype.Fw=function(a){void 0!==a.hierarchyMenuDisplayThresholdLevel&&this.C.Jd("hierarchyMenuDisplayThresholdLevel")!==a.hierarchyMenuDisplayThresholdLevel&&this.eP(a.hierarchyMenuDisplayThresholdLevel)};a.le.prototype.eP=function(a){var c=this.Yg.find("li").length;-1===a||c<a?(this.zP.css("visibility","hidden"),this.Ki[0]===document.activeElement&&this.fa.focusin(),this.Ki.css("visibility","hidden")):c>=a&&(this.zP.css("visibility","visible"),this.Ki.css("visibility","visible"))};a.le.prototype.JJa=
  function(){if(this.Ki){var a=this.Yg.find("li").last().remove();this.Yg.ojMenu("refresh");this.eP(this.C.Jd("hierarchyMenuDisplayThresholdLevel"));0===this.Yg.children("li").length?(this.Ki.ojButton("option","disabled",!0),this.be.css("visibility","hidden"),this.be.attr("tabindex","-1"),this.mG.text(this.C.Q2())):this.mG.text(a.children("a").text())}};a.le.prototype.dT=function(a,c){a.removeClass(this.C.Jt);c.removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-describedby").removeAttr("aria-hidden")};
  a.le.prototype.yga=function(a){a?((a=this.Yg.find("li").length)&&this.be.attr("tabindex","0"),this.Ki.attr("tabindex","0")):(this.be.attr("tabindex","-1"),this.Ki.attr("tabindex","-1"))};a.le.prototype.sr=function(a){g.contains(this.Hy.get(0),a.target)||this.Yg.get(0)===a.relatedTarget||(this.yga(!0),c.O.sr.apply(this.C,arguments))};a.le.prototype.rr=function(a){g.contains(this.Hy.get(0),a.relatedTarget)||this.Yg.get(0)===a.relatedTarget?this.C.nE():(null!=a.relatedTarget&&g.contains(this.fa.get(0),
  a.relatedTarget)||this.yga(!1),c.O.rr.apply(this.C,arguments))};a.le.prototype.IS=function(a){return"oj-navigationlist-previous-link"===a.subId?this.be?this.be[0]:null:"oj-navigationlist-hierarchical-button"===a.subId?this.Ki?this.Ki[0]:null:"oj-navigationlist-hierarchical-menu"===a.subId?this.Yg?this.Yg[0]:null:null};a.le.prototype.KS=function(a){return this.be&&this.be[0]===a?{subId:"oj-navigationlist-previous-link"}:this.Ki&&this.Ki[0]===a?{subId:"oj-navigationlist-hierarchical-button"}:this.Yg&&
  this.Yg[0]===a?{subId:"oj-navigationlist-hierarchical-menu"}:null};var c=function(b,c){function e(){}a.f.xa(e,b,"");g.extend(e.prototype,c);return e}(a.h_,{sl:"oj-navigationlist-item-content",$ra:"oj-navigationlist-item-dividers",YJ:"oj-navigationlist-item-last-child",t5:"oj-expanded",k5:"oj-collapsed",Jt:"oj-navigationlist-current",ow:"oj-navigationlist-divider",Z5:"oj-navigationlist-overflow-menu-item",Y5:"oj-navigationlist-overflow-menu",asa:"oj-navigationlist-overflow-item-icon",Gsa:"oj-navigationlist-category-divider",
  yE:"oj-navigationlist-item-label",H7:"oj-navigationlist-icon-only",UT:"oj-navigationlist-item-icon",HUa:"oj-navigationlist-horizontal",eU:"oj-navigationlist-has-icons",fU:"oj-navigationlist-item-no-icon",f8:"oj-navigationlist-item-title",g8:"oj-navigationlist",h8:"oj-navigationlist-touch",hua:"oj-navigationlist-listview-container",LK:"IsTitleAttrDueToTruncation",vT:"oj-navigationlist-app-level",nU:"oj-navigationlist-page-level",gU:"navigationListItemIconHastitle",iua:"oj-navigationlist-nofollow-link",
  L2:function(a){a=this.oQ(a);return a.is("a")?g.trim(a.text()):g.trim(a.find("."+this.f8).text())},oQ:function(a){var c=a.children("."+this.sl);0===c.length&&(c=a.children("."+this.dg()).children("."+this.sl),0===c.length&&(c=a.children("."+this.dg()).children(":not(."+this.Us()+"):not(."+this.So()+")")));return c},im:function(){return"rtl"===this.ea.rd()},bw:function(){this.Sd.sS();c.O.bw.apply(this,arguments)},doa:function(a,c){this.Sd.Q5(a,c)},z3:function(a){this.Sd.R5(a);c.O.z3.apply(this,arguments)},
  tia:function(a){var c,e,f,h=a.children();a.removeAttr("style").removeClass(this.eU).removeAttr("aria-hidden");for(a=0;a<h.length;a++)c=h[a],c=g(c),c.hasClass(this.ow)?c.remove():(e=this.oQ(c),e.removeClass(this.sl).removeClass(this.fU).removeAttr("aria-haspopup"),(f=e.children("."+this.UT))&&0<f.length&&(f.removeAttr("role"),f.removeAttr("aria-label"),this.WJa(f)),c.removeClass("oj-default").removeAttr("role").removeAttr("aria-disabled").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-pressed"),
  f=this.Kf(c),f.removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-pressed"),e.children("."+this.yE).contents().unwrap(),f.data(this.LK)&&f.removeAttr("title"),f=c.children("ul"),0<f.length?(this.Sd.dT(c,e,f),this.tia(f)):this.Sd.dT(c,e))},XJ:function(a){return a.hasClass(this.sl)||a.hasClass(this.Us())||a.hasClass(this.So())?!1:c.O.XJ.apply(this,arguments)},O5:function(a){return a.prop("nodeName").match(/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/)&&!a.hasClass(this.sl)||a.hasClass("oj-component")},
  BIa:function(a){var c=g.extend({},a);c.drillMode="none"!==a.drillMode?"collapsible":"none";c.selection=null!==a.selection?[a.selection]:[];c.selectionMode="single";c.item=g.extend({focusable:function(a){return g(a.data).is("li")?!g(a.data).hasClass("oj-disabled"):!g(a.parentElement).hasClass("oj-disabled")}},a.item);c.element=this.Pu;return c},Q2:function(){return this.ea.options.rootLabel?this.ea.options.rootLabel:this.ea.R("defaultRootLabel")},hK:function(){this.ea.element.attr("aria-multiselectable",
  !1)},sr:function(a){return this.Sd.sr(a)},rr:function(a){return this.Sd.rr(a)},kK:function(){this.ea.element.attr("tabIndex",0)},cT:function(){this.ea.element.removeAttr("tabIndex")},K6:function(){this.ea.element.removeAttr("aria-activedescendant").removeAttr("aria-multiselectable")},hA:function(){return!1},mn:function(b){var d=this,e=b.ea.element;e.addClass(this.g8);a.Q.Ne()&&e.addClass(this.h8);this.Pu=e.children("ul:first");0===this.Pu.length&&(this.Pu=g(document.createElement("ul")),e.append(this.Pu));
  e=g(document.createElement("div"));e.addClass(this.hua);this.Pu.wrap(e);b=this.BIa(b);c.O.mn.call(this,b);this.element.removeClass("oj-component-initnode");this.ea._on(this.ea.element,{mouseup:function(a){d.UV(a)},"click .oj-navigationlist-previous-link":function(a){d.pF(a)},"keydown .oj-navigationlist-previous-link":function(a){a.keyCode===g.ui.keyCode.ENTER&&d.pF(a)},"click .oj-navigationlist-previous-button":function(a){d.pF(a)},"keydown .oj-navigationlist-previous-button":function(a){a.keyCode===
  g.ui.keyCode.ENTER&&d.pF(a)},"keydown .oj-navigationlist-element":function(a){a.keyCode!==g.ui.keyCode.ESCAPE||a.isDefaultPrevented()||d.pF(a)},"mouseenter a.oj-navigationlist-item-content":function(a){a=g(a.currentTarget);var b=a.find("."+d.yE);b[0].offsetWidth<b[0].scrollWidth&&!a.attr("title")&&(a.attr("title",b.text().trim()),a.data(d.LK,"true"))},"mouseleave a.oj-navigationlist-item-content":function(a){var b=g(a.currentTarget);b.data(d.LK)&&(b.removeData(d.LK),b.removeAttr("title"));d.UV(a)}})},
  pF:function(a){this.Sd.n5(a)},gfa:function(){var b=this.ea.options.drillMode,c=this.ea.options.edge;this.Sd="sliding"===b?new a.le(this,this.ea.element,this.ea):"collapsible"===b?new a.or(this,this.ea.element,this.ea):"none"===b&&"top"===c?new a.Cc(this,this.ea.element,this.ea):new a.Id(this,this.ea.element,this.ea);this.Sd.Init(this.options);this.$ia(this.ea.options.navigationLevel)},$ia:function(a){"none"===this.ea.options.drillMode&&("application"===a?(this.ea.element.addClass(this.vT),this.ea.element.removeClass(this.nU)):
  "page"===a&&(this.ea.element.addClass(this.nU),this.ea.element.removeClass(this.vT)))},UV:function(a){a=this.On(g(a.target));null!=a&&this.bE(a,"oj-active",!1)},zC:function(){this.gfa();c.O.zC.apply(this,arguments)},Uy:function(a){return this.Sd.z5(a)},CR:function(){c.O.CR.apply(this,arguments);this.Sd.b6()},rl:function(a,d){c.O.rl.apply(this,arguments);0<a&&0<d&&null!=this.Sd&&this.Sd.rl(a,d)},TJ:function(a){c.O.TJ.apply(this,arguments);var d=this.On(g(a.target));d&&!d.hasClass("oj-disabled")&&this.bE(d,
  "oj-active",!0)},aE:function(a){this.UV(a);c.O.aE.apply(this,arguments)},B5:function(){return"oj-navigationlist-listview"},JS:function(){return"oj-navigationlist-element"},eg:function(){return"oj-navigationlist-item"},kn:function(){return"oj-navigationlist-focused-element"},Dg:function(){return"oj-navigationlist-item-element"},So:function(){return"oj-navigationlist-collapse-icon"},Us:function(){return"oj-navigationlist-expand-icon"},G2:function(a){return"oj-navigationlist-depth-"+a},dg:function(){return"oj-navigationlist-group-item"},
  fh:function(){return"oj-navigationlist-group"},OC:function(){return"oj-navigationlist-collapsible-transition"},Zy:function(){return this.OC()},pS:function(a,c,e){return this.Sd.Tz(a,c,e)},nS:function(a,c,e,f){return this.Sd.Rz(a,c,e,f)},zw:function(a,c,e){return this.Sd.zw(a,c,e)},Wz:function(a){return this.Sd.Wz(a)},Rh:function(a){return this.Sd.Rh(a)},Gw:function(a,c){this.Sd.Gw(a,c)},RS:function(a){var d=this.On(g(a.target));null!=d&&0!==d.length&&(this.vj(d)?a.preventDefault():this.XJ(g(a.target))||
  (d=this.oQ(d).attr("href"),d&&"#"!==d&&0===a.button&&(a.shiftKey||a.ctrlKey)||(c.O.RS.apply(this,arguments),a.preventDefault())))},SJ:function(a){var c,e,f;if(this.V)if(c=a.keyCode,e=this.V.elem,f=this.V.key,c===g.ui.keyCode.HOME||c===g.ui.keyCode.END){var h;h=c===g.ui.keyCode.HOME?this.element.find("."+this.sl+":visible").first().closest("."+this.Dg()):this.element.find("."+this.sl+":visible").last().closest("."+this.Dg());this.om(h,a);a.preventDefault()}else h=this.L5(a),c=this.Sd.K5(a,c,e,f),!0!==
  h&&!0!==c||a.preventDefault()},i5:function(a){this.Rwa=a},p6:function(){var a=this;return function(){return!!a.Rwa}},nsa:function(){return!0},mK:function(a,d,e){var f=this.V.elem;this.ul(f[0])&&!this.Xl(f)&&this.fX(a,f)&&(c.O.mK.apply(this,arguments),this.tZ(f))},bE:function(a,c,e){var f;a=g(a);"oj-selected"===c&&this.Sd.pT(this.Kf(a),e);f=a.children("."+this.dg());0<f.length&&(a=g(f[0]));"oj-focus"===c?e?this.jB(a):this.yx(a):e?a.addClass(c):a.removeClass(c);a.hasClass("oj-selected")||a.hasClass("oj-hover")||
  a.hasClass("oj-active")||a.hasClass("oj-disabled")?a.removeClass("oj-default"):a.addClass("oj-default")},ul:function(a){return!g(a).hasClass("oj-disabled")&&this.Sd.ul(g(a))},Bl:function(a,c,e){return"ready"!==a?this.ea._trigger(a,c,e):!0},uj:function(a,c,e){if(this.Sd.P5(a,c,e)){var f=null;if("selection"===a){var g=e._context,k=g&&g.Wk&&g.Wk.items;k&&(g.Wk.item=k,g.Wk.items=void 0);c&&0<c.length&&(f=c[0])}else f=c;this.ea.option(a,f,e);this.options[a]=c;this.Sd.c6(a,f,e)}},D6:function(a){return null!=
  a.data||null!=a.drillMode||null!=a.item||null!=a.display||null!=a.edge},Jma:function(){return"oj-navigationlist-option-defaults"},UR:function(a,d){var e={pqa:[]},f;this.Sd.Fw(a);void 0!==a.navigationLevel&&this.$ia(a.navigationLevel);void 0!==a.selection&&(f=a.selection);e.fSa=c.O.UR.call(this,a,d);void 0!==f&&void 0===a.selection&&e.pqa.push("selection");void 0!==f&&(a.selection=f);return e},UJ:function(a){var d;if(void 0!==a.selection)if(d=a.selection){var e=this.Jd("selection");e&&0!==e.length&&
  e[0]===d?delete a.selection:(e=this.Se(d))&&this.ul(e)?this.fX(null,g(e))?(a.selection=[d],this.tZ(g(e))):delete a.selection:delete a.selection}else a.selection=[];c.O.UJ.call(this,a)},Jd:function(a){var c=this.ea.option(a);return"selection"===a?c?[c]:[]:null===c?this.options[a]:c},md:function(){return a.Components.md(this.ea.element)},iE:function(a,d){!a.hasClass("oj-disabled")&&this.ul(a[0])&&(!this.Xl(a)&&this.fX(d,a)?(c.O.iE.apply(this,arguments),this.tZ(a)):this.J5(a,d))},fX:function(a,c){var e=
  this.og(c[0]);return this.Bl("beforeSelect",a,{item:c,key:e})},tZ:function(a){if(this.ea.element.hasClass(this.iua))return!1;var c=this.oQ(a);a=c.attr("href");c=c.attr("target");return a&&"#"!==a?(c&&"_self"!==c?window.open(a,c):window.location.href=a,!0):!1},Xl:function(a){var c;c=this.Jd("selection");a=this.og(a[0]);return-1<c.indexOf(a)?!0:!1},KLa:function(a,c){a.attr("title")||a.attr("title",c)},WJa:function(a){a.data(this.gU)?a.removeData(this.gU):a.removeAttr("title")},hz:function(a,d){var e=
  g(a);if(e.hasClass(this.Gsa))e.removeClass(this.Dg()),e.removeClass(this.kn()),e.removeClass(this.eg()),e.removeAttr("aria-selected"),e.children().remove(),e.attr("role","separator");else{var f=this.dg(),h=this.So(),k=this.Us(),l=this.UT,f=e.children("."+f),m;0<f.length?(f.addClass(this.eg()),m=f.children(":not(."+k+"):not(."+h+")"),k=f.children("."+k),0===k.length&&(k=f.children("."+h)),k.attr("role","presentation"),k.removeAttr("aria-labelledby"),e.hasClass("oj-disabled")&&f.addClass("oj-disabled")):
  m=e.children().first();m.addClass(this.sl);h=m.wrapInner('\x3cspan class\x3d"'+this.yE+'"\x3e\x3c/span\x3e').find("."+l);0<h.length?(h.insertBefore(h.parent()),h.attr("title")&&h.data(this.gU,h.attr("title")),"icons"===this.ea.options.display&&(this.ea.element.addClass(this.H7),l=this.L2(e),h.attr("aria-label",l),h.attr("role","img"),this.KLa(h,l)),e.closest("ul").addClass(this.eU)):m.addClass(this.fU);e.hasClass("oj-disabled")?this.Kf(e).attr("aria-disabled","true"):0<f.length?f.addClass("oj-default"):
  e.addClass("oj-default");this.Sd.ZS(e,m);c.O.hz.apply(this,arguments)}},getNodeBySubId:function(a){var c,e=null;if(null==a)return this.ea.element?this.ea.element[0]:null;e=this.Sd.IS(a);e||(c=a.subId,"oj-navigationlist-item"===c&&(a=a.key,e=this.Se(a)));return e},getSubIdByNode:function(a){var c=null;null!=a&&(c=this.Sd.KS(a),c||(a=this.On(a),null!=a&&0<a.length&&(a=this.og(a[0]),null!=a&&(c={subId:"oj-navigationlist-item",key:a}))));return c},getContextByNode:function(a){return(a=c.O.getContextByNode.call(this,
  a))&&"oj-listview-item"==a.subId?(a.subId="oj-navigationlist-item",a):null},refresh:function(){this.iia();this.gfa();c.O.refresh.apply(this,arguments)},iia:function(){this.ea.element.removeClass(this.H7);this.ea.element.removeClass(this.vT);this.ea.element.removeClass(this.nU);this.tia(this.element);this.Sd.Oh()},destroy:function(){this.iia();c.O.destroy.apply(this,arguments);this.Pu.unwrap();this.Pu.is(":empty")&&this.Pu.remove();this.ea.element.removeClass(this.g8+" "+this.h8);this.ea._off(this.element,
  "click");this.ea._off(this.element,"focus");this.ea._off(this.element,"blur");this.ea._off(this.element,"mouseover");this.ea._off(this.element,"mousein");this.ea._off(this.element,"mouseout");this.ea._off(this.element,"keydown")}});(function(){a.ab("oj.ojNavigationList",g.oj.baseComponent,{widgetEventPrefix:"oj",options:{currentItem:null,drillMode:"none",edge:"start",hierarchyMenuDisplayThresholdLevel:0,rootLabel:null,selection:null,expanded:"auto",data:null,display:"all",navigationLevel:"page",overflow:"hidden",
  item:{renderer:null,selectable:!0},beforeSelect:null,beforeCollapse:null,beforeCurrentItem:null,collapse:null,beforeExpand:null,expand:null},_ComponentCreate:function(){this._super();this.hb()},Mg:function(){this._super();this.Jh.zC()},bi:function(a,c,e){this.Jh.hpa(a,c,e)},hb:function(){for(var a in this.options)this.Hka(a,this.options[a]);this.AP(this.options.drillMode,this.options.display,this.options.edge);this.Jh=new c;a={ea:this};a=g.extend(this.options,a);this.Jh.mn(a)},getNodeBySubId:function(a){return this.Jh.getNodeBySubId(a)},
  getSubIdByNode:function(a){return this.Jh.getSubIdByNode(a)},getContextByNode:function(a){return this.Jh.getContextByNode(a)},expand:function(a,c,e){this.Jh.p2(a,c,!0,!0,e)},collapse:function(a,c,e){this.Jh.mla(a,c,!0,e)},getExpanded:function(){return this.Jh.getExpanded()},AP:function(a,c,e){if("none"!==a){if("icons"===c)throw"Icon only navigation list should have drillMode set to 'none'.";if("top"===e)throw"Horizontal navigation list should have drillMode set to 'none'.";}},Hka:function(a,c){var e=
  !0;"drillMode"===a?e="none"===c||"collapsible"===c||"sliding"===c:"display"===a?e="all"===c||"icons"===c:"edge"===a&&(e="top"===c||"start"===c);if(!e)throw"Invalid value: "+c+" for key: "+a;},_setOption:function(a,c){this.Hka(a,c);switch(a){case "drillMode":this.AP(c,this.options.display,this.options.edge);break;case "display":this.AP(this.options.drillMode,c,this.options.edge);break;case "edge":this.AP(this.options.drillMode,this.options.display,c)}return this._super(a,c)},_setOptions:function(a,
  c){var e,f=this.Jh.UR(a,c);for(e in a)0>f.pqa.indexOf(e)&&this._setOption(e,a[e],c);f.fSa&&this.Jh.refresh();return this},$n:function(){this.Jh.CR()},pk:function(){this.Jh.ipa()},Ap:function(){this.Jh.zD()},refresh:function(){this._super();this.Jh.refresh()},whenReady:function(){return this.Jh.whenReady()},_destroy:function(){this.Jh.destroy();this._super();delete this.Jh}});a.Components.gp({ojNavigationList:{hierarchyMenuDisplayThresholdLevel:a.Components.cf(function(){return(a.sc.Gd("oj-navigationlist-option-defaults")||
  {}).hierarchyMenuDisplayThresholdLevel})}})})();a.U.ob("oj-navigation-list","baseComponent",{properties:{currentItem:{type:"Object"},data:{},display:{type:"string"},drillMode:{type:"string"},edge:{type:"string"},expanded:{type:"Array|string"},hierarchyMenuDisplayThresholdLevel:{type:"number"},item:{},navigationLevel:{type:"string"},rootLabel:{type:"string"},selection:{type:"string"}},methods:{collapse:{},expand:{},getContextByNode:{},getExpanded:{},refresh:{},whenReady:{}},extension:{mb:"ojNavigationList"}});
  a.U.register("oj-navigation-list",{metadata:a.U.getMetadata("oj-navigation-list")})});