function P(){this.Init()}v("AdfMessageUtils",P);z.l(P);P.O=function(){P.Qi==n&&(P.Qi=new P);return P.Qi};v("AdfMessageUtils.getInstance",P.O);P.Hp=function(a,b,d){return 0==a.Yr().length&&0==b||d&&0==b?p:l};v("AdfMessageUtils.hasMessages",P.Hp);
P.U0=function(a,b,d){var e=a.Yr(),f=e.length,g=0;b!=n&&(g=b.length);if(0<g)return l;if(d)return p;b=a.Jk();d=a.am();g=0;if(0!=f)for(f=0;f<e.length;f++){var h=e[f];if(h!=n){var m=p;if(b[h]!=n){if(d.Xu()){var q=a.j(h);if(h=q.k()){var s=h.d();h.bind(q);(q=h.h())&&!d.hs(q)&&(m=l);s&&h.bind(s)}else m=l}}else m=l;if(!m&&(g++,1<g))return l}}return p};v("AdfMessageUtils.isPageLevelBoxNeeded",P.U0);
P.Efa=function(a,b,d){P.VVa=d;var e=F.c,f=e.am(),g=e.Jk(),h=g[a],m=e.Yr(),q=p;1==m.length?1>=e.Bp(m[0]).length&&(q=l):d&&(q=1>=h.length);var m=e.mc,s;h!=n&&(s=m.createElement("table"),s.cellSpacing=0,s.cellPadding=0,s.summary="",s.setAttribute("role","presentation"),P.Fsa(m,s,n,h,n,q));var y;if(!d)for(var A in g){d=p;if(A!=a){var C=g[A];if(C!=n){if(f.Xu()){var G=e.j(A);if(h=G.k()){var K=h.d();h.bind(G);(G=h.h())&&!f.hs(G)&&(d=l);K&&h.bind(K)}else d=l}}else d=l}else d=l;d||(y==n&&(y=m.createElement("table"),
y.summary="",y.setAttribute("role","presentation")),P.Fsa(m,y,A,C,C.title))}a=e.u();e=m.createElement("div");H.n(e,a.getStyleClass(P.DLa));b==n?q||(e.appendChild(m.createTextNode(a.V(P.cIa))),H.n(e,a.getStyleClass(P.gpa))):(e.appendChild(m.createTextNode(b)),H.n(e,a.getStyleClass(P.gpa)));b=m.createElement("div");b.appendChild(e);s!=n&&b.appendChild(s);s!=n&&(H.n(s,a.getStyleClass(P.hpa)),H.n(s,a.getStyleClass(P.GL)));s!=n&&y!=n&&(s=m.createElement("hr"),H.n(s,a.getStyleClass(P.HLa)),b.appendChild(s));
y!=n&&(H.n(y,a.getStyleClass(P.nIa)),b.appendChild(y));return b};v("AdfMessageUtils.getCombinedMessagesDom",P.Efa);
P.Hea=function(a,b){if(b!=n){var d=a,e=b.length,f=1<e,g=F.c,h=g.u();if(f){var m=g.mc,q=g.R(),s=w.b,q=q.gj&&s instanceof ee,m=m.createElement("table");m.summary="";m.style.width="100%";m.style.tableLayout=q?"auto":"fixed";H.n(m,h.getStyleClass(P.GL));m.setAttribute("role","presentation");H.n(m,h.getStyleClass(P.GL));a.appendChild(m);for(var q=m.insertRow(-1),d=q.insertCell(-1),y=n,A=0;A<e;A++){var C=Ea.yR(b[A]);if(y==n||C>y)y=C}e=P.getIcon(y,p);d.appendChild(e);H.n(d,h.getStyleClass(P.l6));d=q.insertCell(-1);
H.n(d,h.getStyleClass(P.ura));e=P.ds(y,p);s.yb(d,e);q=m.insertRow(-1);d=q.insertCell(-1);d.colSpan=2;H.n(d,h.getStyleClass(P.KKa));e=h.V(P.pIa);s.yb(d,e);q=m.insertRow(-1);d=q.insertCell(-1);s.yb(d," ");d=q.insertCell(-1);H.n(d,h.getStyleClass(P.hpa))}for(e=Ea.kk;e>=Ea.Mi;e--)if(y=b.pS[e]){A=y.length;for(C=0;C<A;C++)m=P.DVa(y[C],f),q=g.R(),s=w.b,q=q.gj&&s instanceof ee,m.style.width="100%",m.style.tableLayout=q?"auto":"fixed",H.n(m,h.getStyleClass(P.GL)),f&&H.n(m,h.getStyleClass(P.ILa)),d.appendChild(m)}}};
v("AdfMessageUtils.appendComponentMessageInlineDom",P.Hea);P.Uga=function(a){a=F.c.Bp(a);return a!=n&&a.overridden!=l?l:p};v("AdfMessageUtils.hasMessagePopupContent",P.Uga);P.RBa=function(a){var b=F.c;a=b.Bp(a);var d=b.mc,b=d.createElement("div"),e=d.createElement("div");e.style.overflow="hidden";H.n(e,P.HL);b.appendChild(e);d=d.createElement("div");e.appendChild(d);P.Hea(d,a);return b};v("AdfMessageUtils.getComponentMessagePopupDom",P.RBa);
P.SBa=function(a){var b=F.c,d=b.mc,e=w.b,f=b.u(),g=n,h=b.Pk(),m=b.j(h),q=m.k();q.bind(m);var s=q.EJ();P.VVa==l&&(s=p);var y=b.Jk(),m=[],q=-1,A;for(A in y){var C=y[A];C!=n&&C.x_!=n&&(A==a&&(q=m.length),A!=h&&(C=b.Bp(A),C!=n&&C.overridden!=l&&m.push(A)))}b=m.length;if(s||1<b)g=d.createElement("div"),h=d.createElement("div"),H.n(h,P.dKa),g.appendChild(h),table=d.createElement("table"),table.summary="",table.setAttribute("role","presentation"),h.appendChild(table),table.cellPadding=0,table.cellSpacing=
0,table.style.width="100%",row=table.insertRow(-1),cell=row.insertCell(-1),H.n(cell,P.bKa),cell=row.insertCell(-1),H.n(cell,P.$Ja),h=d.createElement("table"),h.summary="",h.setAttribute("role","presentation"),cell.appendChild(h),h.cellPadding=0,h.cellSpacing=0,H.n(h,P.sMa),row=h.insertRow(-1),1<b&&(cell=row.insertCell(-1),h=d.createElement("a"),h.title=f.V(P.fNa),A=q-1,-1==A&&(A=b-1),h.name=m[A],H.n(h,P.eNa),0==q?H.n(h,P.ok):(h.href="javascript:;",e.S(h,"click",P.O().hba),H.F(h,P.ok)),cell.appendChild(h)),
cell=row.insertCell(-1),h=d.createElement("a"),H.n(h,P.HGa),h.title=f.V(P.mOa),h.href="javascript:;",h.name=a,e.S(h,"click",P.O().tYa),h.appendChild(d.createTextNode(f.V(P.lOa))),cell.appendChild(h),1<b&&(cell=row.insertCell(-1),a=d.createElement("a"),a.title=f.V(P.vMa),f=q+1,f==b&&(f=0),a.name=m[f],H.n(a,P.uMa),q+1==b?H.n(a,P.ok):(a.href="javascript:;",e.S(a,"click",P.O().hba),H.F(a,P.ok)),cell.appendChild(a));return g};v("AdfMessageUtils.getComponentMessagePopupFooterDom",P.SBa);
P.F=function(a,b){B.assert(a!=n);B.assert(b!=n);var d=P.Hva(b);d!=n&&H.F(a,d)};v("AdfMessageUtils.removeCSSClassName",P.F);P.n=function(a,b){B.assert(a!=n);B.assert(b!=n);var d=P.Hva(b);d!=n&&H.n(a,d)};v("AdfMessageUtils.addCSSClassName",P.n);P.JEa=function(a,b,d){B.assert(a!=n);b!=n&&P.F(a,b);d!=n&&P.n(a,d)};v("AdfMessageUtils.switchCSSClassName",P.JEa);P.z5a=function(a,b,d){H.Av(a,P.tva(b,d))};v("AdfMessageUtils.switchIcon",P.z5a);P.getIcon=function(a,b){var d=P.tva(a,b);return F.c.u().getIcon(d)};
v("AdfMessageUtils.getIcon",P.getIcon);P.s3a=function(a,b,d){a=this.getIcon(a,b);P.aFa(a,d);return a};v("AdfMessageUtils.getIconForComponent",P.s3a);P.aFa=function(a,b){if(b.getLabel){var d;try{d=b.getLabel()}catch(e){}d&&""!=d&&(d=":"+d,a.title&&(a.title+=d),a.alt&&(a.alt+=d))}};v("AdfMessageUtils.updateIconForComponent",P.aFa);P.ds=function(a,b){return F.c.u().V(b?P.rF[a]:P.FF[a])};v("AdfMessageUtils.getString",P.ds);P.NR=function(a){var b=F.c;a=b.j(a);a!=n&&(a.focus(),P.wE(),b.Tn(a.e()))};
v("AdfMessageUtils.messageGroupFocus",P.NR);P.wE=function(){var a=F.c,b=a.Pk();if(a=a.j(b))b=a.k(),b.bind(a),b.Yy(p)};v("AdfMessageUtils.HideMessagesDialog",P.wE);P.prototype.Init=function(){P.f.Init.call(this);this.hba=this.o(this.vYa);this.tYa=this.o(this.sYa);this.K8a=this.o(this.zxa)};z.a("AdfMessageUtils.prototype.Init",{Init:P.prototype.Init});P.prototype.vYa=function(a){var b=w.b;b.preventDefault(a);a=b.T(a).name;P.NR(a)};P.prototype.sYa=function(a){w.b.preventDefault(a);P.O().zxa(a);F.c.Tn()};
P.prototype.zxa=function(a){a=w.b.T(a).name;a=F.c.j(a);var b=a.k();b.bind(a);b.sm!=n&&b.sm()};
P.Fsa=function(a,b,d,e,f,g){b=b.insertRow(-1);for(var h=b.insertCell(-1),m=a.createElement("table"),q=F.c,s=q.u(),q=Ea.kk;q>=Ea.Mi;q--){var y=e.pS[q];if(y)for(var A=y.length,C=0;C<A;C++)P.Esa(m,y[C],l,l,g)}if(d!=n){H.n(h,s.getStyleClass(P.GLa));q=F.c;e=q.j(d);if(f==n){if(e!=n&&(e.getLabel!=n?f=e.getLabel():e.getText!=n&&(f=e.getText()),f==n||0==f.length)){q=n;for(y=e;y&&!q;)(y=y.getParent())&&y instanceof AdfRichDocument&&(q=y);q&&(f={},f.id=d,q.lg(P.GSa,f,p),f=f.label)}if(f==n||0==f.length)f=s.V(P.oIa)}y=
q=a.createTextNode(f);e!=n&&(y=a.createElement("a"),H.n(y,s.getStyleClass(P.qIa)),a=s.V(P.gOa,f),y.title=a,y.href="javascript:;",y.name=d,w.b.S(y,"click",P.O().hba),y.appendChild(q));h.appendChild(y);h=b.insertCell(-1)}g&&(m.cellSpacing=0,m.cellPadding=0);m.summary="";m.setAttribute("role","presentation");h.appendChild(m);H.n(h,s.getStyleClass(P.FLa))};
P.GSa=function(a){if(a.getFor!=n&&!(a instanceof AdfRichMessage)){var b=a.getFor();if(b!=n&&b==this.id)return a.getLabel?this.label=a.getLabel():a.getValue&&(b=a.getValue(),a.getConverter&&(a=a.getConverter())&&(b=a.getAsString(b)),this.label=b),2}};P.QVa=function(a){var b=F.c.mc,d;0==a.indexOf("\x3chtml\x3e")&&a.lastIndexOf("\x3c/html\x3e")==a.length-7?(d=b.createElement("div"),d.appendChild(H.u_(b,a.substring(6,a.length-7)))):(d=b.createElement("div"),w.b.yb(d,a));return d};P.Hva=function(a){return P.CF[a]};
P.tva=function(a,b){var d=b?P.oA[a]:P.pA[a];d==n&&(d=b?P.oA[Ea.Mi]:P.pA[Ea.Mi]);return d};P.DVa=function(a,b){var d=F.c,e=w.b,f=d.mc,d=d.R().gj&&e instanceof ee,f=f.createElement("table");f.summary="";f.setAttribute("role","presentation");f.style.width="100%";f.style.tableLayout=d?"auto":"fixed";P.Esa(f,a,b);return f};
P.Esa=function(a,b,d,e,f){var g=F.c.u(),h=w.b,m=Ea.yR(b);B.p(a,"TABLE");H.n(a,g.getStyleClass(P.GL));var q;d?(q=a.insertRow(-1),d=q.insertCell(-1),d.vAlign="top",f?d.style.width="0px":(H.n(d,g.getStyleClass(P.l6)),f=P.getIcon(m,e),d.appendChild(f))):(q=a.insertRow(-1),d=q.insertCell(-1),f=P.getIcon(m,e),H.n(d,g.getStyleClass(P.l6)),d.appendChild(f),d=q.insertCell(-1),H.n(d,g.getStyleClass(P.ura)),m=P.ds(m,e),f=b.getSummary(),f!=n&&(q=g.V(P.mIa),m=TrFastMessageFormatUtils.format(q,m,f)),h.yb(d,m),
q=a.insertRow(-1),d=q.insertCell(-1),h.yb(d," "));d=q.insertCell(-1);a=b.getDetail();a!=n&&(a=P.QVa(a),H.n(a,g.getStyleClass(e?P.CLa:P.nJa)),d.appendChild(a),H.n(d,g.getStyleClass(P.lJa)))};P.CF=[];P.CF[Ea.kk]="p_AFFatal";P.CF[Ea.Ef]="p_AFError";P.CF[Ea.Am]="p_AFWarning";P.CF[Ea.$E]="p_AFConfirmation";P.CF[Ea.Mi]="p_AFInfo";P.FF=[];P.FF[Ea.kk]="af_message.TIP_FATAL";P.FF[Ea.Ef]="af_message.TIP_ERROR";P.FF[Ea.Am]="af_message.TIP_WARNING";P.FF[Ea.$E]="af_message.TIP_CONFIRMATION";P.FF[Ea.Mi]="af_message.TIP_INFO";
P.l6="af|message::icon-cell";P.lJa="af|message::detail-cell";P.pIa="af_message.LABEL_COMPONENT_MESSAGES_INTRO";P.mIa="af_message.LABEL_COMPACT_TYPE_SUMMARY";P.pA=[];P.pA[Ea.kk]="af|message::fatal-icon";P.pA[Ea.Ef]="af|message::error-icon";P.pA[Ea.Am]="af|message::warning-icon";P.pA[Ea.$E]="af|message::confirmation-icon";P.pA[Ea.Mi]="af|message::info-icon";P.oA=[];P.oA[Ea.kk]="af|messages::fatal-icon";P.oA[Ea.Ef]="af|messages::error-icon";P.oA[Ea.Am]="af|messages::warning-icon";P.oA[Ea.$E]="af|messages::confirmation-icon";
P.oA[Ea.Mi]="af|messages::info-icon";P.j7a="af|message::summary";P.nJa="af|message::detail";P.ura="af|message::type";P.KKa="af|message::intro";P.GL="af|message::container";P.nIa="af|message::component-messages-list-container";P.ILa="af|message::message-list-component";P.G6a="af|messages::summary";P.CLa="af|messages::detail";P.cIa="af_messages.LABEL_COMBINED_MESSAGES_INTRO";P.oIa="af_messages.LABEL_COMPONENT_LEVEL_MESSAGE";P.gOa="af_messages.LABEL_SET_FOCUS_ON_COMPONENT";P.rF=[];P.rF[Ea.kk]="af_messages.TIP_FATAL";
P.rF[Ea.Ef]="af_messages.TIP_ERROR";P.rF[Ea.Am]="af_messages.TIP_WARNING";P.rF[Ea.$E]="af_messages.TIP_CONFIRMATION";P.rF[Ea.Mi]="af_messages.TIP_INFO";P.DLa="af|messages::intro";P.gpa="af|messages::intro-separator";P.GLa="af|messages::message-group-title";P.FLa="af|messages::message-group-list";P.HLa="af|messages::message-group-type-separator";P.qIa="af|messages::component-link";P.hpa="af|messages::message-list-page";P.mOa="af_message.TIP_SHOW_ALL_MESSAGES";P.lOa="af_message.LABEL_SHOW_ALL_MESSAGES";
P.fNa="af_message.TIP_PREVIOUS_MESSAGE";P.vMa="af_message.TIP_NEXT_MESSAGE";P.HL="AFNoteWindowContent";P.dKa="AFNoteWindowFooter";P.bKa="AFNoteWindowFooterStart";P.$Ja="AFNoteWindowFooterEnd";P.sMa="AFNoteWindowNavigator";P.eNa="AFNoteWindowPreviousLink";P.uMa="AFNoteWindowNextLink";P.ok="p_AFDisabled";P.HGa="AFNoteWindowAllButton";