Z.ha={saved_search:"saveSrch",disclosure_icon:"_afrDscl",search_header:"_afrTtxt",addFields_button:"adFlds",match_type:"conj",deleteCriterion:"delCrtn",criterion_label:"crtnLab",criterion_operator:"oper",criterion_value:"val",saveSearch_popup:"SSPop",saveSearch_name:"SS_name",saveSearch_dialog:"SSD",personalizeSearch_popup:"PSSPop",personalizeSearch_searches:"PSS_Srchs",personalizeSearch_dialog:"PSSD",personalizeSearch_delete:"delete",personalizeSearch_duplicate:"duplicate",personalizeSearch_apply:"apply",
personalizeSearch_Name:"PSS_name",deleteWarning_popup:"DWPop",deleteWarning_dialog:"DWD",overrideWarning_popup:"OWPop",overrideWarning_dialog:"OWD",overrideError_popup:"OEPop",overrideError_dialog:"OED",saveSearchSetAsDefault:"SS_def",saveSearchAutoExecute:"SS_autoEx",saveSearchSaveLayout:"SS_SL",personalizeSearchSetAsDefault:"PSS_def",personalizeSearchAutoExecute:"PSS_autoEx",personalizeSearchShowInList:"PSS_SiL",deleteWarningMessage:"DWDMsg",overrideWarningMessage:"OWDMsg",reorderPopup:"REPop",
reorderDialog:"REDlg",reorderTree:"RETree",reorderMoveTopButton:"move-top",reorderMoveUpButton:"move-up",reorderMoveDownButton:"move-down",reorderMoveBottomButton:"move-bottom"};Z.Fga={saveSearch_dialog:"dlgSS",personalizeSearch_dialog:"dlgPSS",reorderDialog:"REDlg"};Z.zda="__afrAdFldsSep__";Z.O4a="ndStOut";
Z.prototype.L=function(a){u.Ya(a);var b=a,d,e=a.indexOf("#");-1<e&&(b=a.substring(0,e),u.Ya(b),d=a.substring(e+1));var e=this.f(),f=null,f=b.indexOf("["),g=b.lastIndexOf("["),h=b.lastIndexOf("]"),l=b.indexOf("addFields[");-1<l?(l+=9,h=b.lastIndexOf("["),f=b.indexOf("]"),f=b.substring(l+2,f-1),l!=h&&(l=b.lastIndexOf("]"),b=-1<b.indexOf("ALL_FIELDS")?b.substring(h+1,l):b.substring(h+2,l-1),f=f+Z.zda+b),(b=OC(this))?(e=e.g()+":"+b[f],f=q.b.getElementById(e)):f=null):-1<f?(l=Z.ha[b.substring(0,g)],"crtnLab"==
l?(e=e.g()+":crtn"+b.substring(f+1,h),e=q.b.getElementById(e),f=C.FH(e,"LABEL")):(e="RETree"==l?e.g()+":"+l+":"+b.substring(f+1,h)+":"+Z.O4a:e.g()+":"+l+b.substring(f+1,h),f=q.b.getElementById(e))):(l=Z.ha[b],"old"==lookAndFeel.qa("af|dialog-tr-button-type")||"saveSearch_dialog"!=b&&"personalizeSearch_dialog"!=b&&"reorderDialog"!=b?"adFlds"==l||"conj"==l||"move-top"==l||"move-bottom"==l||"move-up"==l||"move-down"==l?f=Kh.nf(e,l,!0):l?f=Kh.nf(e,l):(e=this.U8().oS[b],f=this.a7(e)):(l=Z.Fga[b],f=Kh.nf(e,
l,!0)));d&&f&&(e=f.id)&&((b=A.c.m(e))?f=b.o().sd(b,d):v.l.warning("component: ",e," doesn't exist for this subid:",a));f||v.l.warning("Sub Id doesn't exist for this component:",a);return f};r.a("AdfDhtmlQueryPeer.prototype.GetSubIdDomElement",{L:Z.prototype.L});
Z.prototype.Uba=function(a){if(!a)return null;var b=a.id,d=!1,e=I.Cf(a);!e||e instanceof AdfRichQuery||(e=e.g(),d=b!=e,b=e);if(b){var e=this.f().g(),f=b.substring(e.length);if(f){var b=-1<f.indexOf(Z.wS),g=-1<f.indexOf(Z.P4a),h=":"==f.charAt(1);":"==f.charAt(0)&&(f=f.substring(1));":"==f.charAt(0)&&(f=f.substring(1));var l="",n=!1;if(g){if(g=f.match(/\d+/))return g=g.toString(),"reorderTree["+g+"]"}else if(b){var g=f,t=":"+Z.wS,l=g.indexOf(t),l=l+t.length,g=g.substring(l,g.length),t=g.split(""),y;
for(y=0;y<g.length&&!isNaN(t[y]);y++);l=f.substring(0,l+y);l.length<f.length&&(n=!0)}g=f.indexOf(":");(t=-1<g)&&(f=f.substring(0,g));g="";g=b?PC(this,l):PC(this,f);if(t||n||d){d=e+":";h&&(d+=":");d=b?d+l:d+f;if(e=A.c.m(d))return d=e.o(),g+"#"+d.N(a);v.l.warning("component: ",clientId," doesn't exist for this subid:",d)}return g}}return null};r.a("AdfDhtmlQueryPeer.prototype.GetDomElementSubId",{Uba:Z.prototype.Uba});
function PC(a,b){var d=Z.B3a[b];d&&(b=d);if("value"==b.substring(0,5))return"criterion_value["+b.substring(5)+"]";if("val"==b.substring(0,3))return"criterion_value["+b.substring(3)+"]";if("operator"==b.substring(0,8))return"criterion_operator["+b.substring(8)+"]";if("oper"==b.substring(0,4))return"criterion_operator["+b.substring(4)+"]";if("deleteCriterion"==b.substring(0,15))return"deleteCriterion["+b.substring(15)+"]";if("delCrtn"==b.substring(0,7))return"deleteCriterion["+b.substring(7)+"]";if("fldItem"==
b.substring(0,7)||"adFldGrpMenu"==b.substring(0,12)||"adFldGrpAddAllItem"==b.substring(0,18)){var e;a:{var d=b,f=OC(a);if(f)for(e in f)if(f[e]==d){d=e.indexOf(Z.zda);if(-1<d){f=e.substring(d+Z.zda.length);e="ALL_FIELDS"==f?"addFields['"+e.substring(0,d)+"'][ALL_FIELDS]":"addFields['"+e.substring(0,d)+"']['"+f+"']";break a}e="addFields['"+e+"']";break a}e=void 0}return e}for(f in Z.ha)if(Z.ha[f]==b)return f;for(f in Z.Fga)if(Z.Fga[f]==b)return f;return-1<b.indexOf("search")?"search_button":-1<b.indexOf("reset")?
"reset_button":-1<b.indexOf("save")?"save_button":-1<b.indexOf("mode")?"mode_button":-1<b.indexOf("reorder")?"reorderButton":-1<b.indexOf("dlgSS_ok")?"saveSearch_dialog#ok_button":-1<b.indexOf("dlgSS_cancel")?"saveSearch_dialog#cancel_button":-1<b.indexOf("dlgPSS_ok")?"personalizeSearch_dialog#ok_button":-1<b.indexOf("dlgPSS_cancel")?"personalizeSearch_dialog#cancel_button":-1<b.indexOf("REDlg_ok")?"reorderDialog#ok_button":-1<b.indexOf("REDlg_cancel")?"reorderDialog#cancel_button":null}
function OC(a){a=a.f();if(a=q.b.getElementById(I.j(a.g(),"addFldExId")))if(a=a.getAttribute("data-afr-addFldSubIds"))return eval("var _SUB_ID_MAP_ADD_FIELDS \x3d"+a+";"),_SUB_ID_MAP_ADD_FIELDS;return null}Z.prototype.a7=function(a){var b=this.f();if("old"!=A.c.H().qa("af|query-tr-button-type")||"reorder"==a){var d=b.m("_"+a);null==d&&(d=b.m(a));return null!=d?(a=d.o(),a.bind(d),a.i()):null}return Kh.nf(b,a)};Z.prototype.N=function(a){return this.Uba(a)};
r.a("AdfDhtmlQueryPeer.prototype.GetBestMatchSubId",{N:Z.prototype.N});Z.oS={search_button:"search",reset_button:"reset",save_button:"save",mode_button:"mode",reorderButton:"reorder"};
Z.B3a={addFields:"adFlds",addFieldsIter:"adFldIter",conjunction:"conj",operator:"oper",value:"val",vPanel:"vPan",deleteCriterion:"delCrtn",saveSearch:"saveSrch",PSSPopup:"PSSPop",PSSDlg:"PSSD",PSSDlg_sSearches:"PSS_Srchs",PSSDlg_name:"PSS_name",PSSDlg_autoExecute:"PSS_autoEx",PSSDlg_showInList:"PSS_SiL",PSSDlg_default:"PSS_def",DWPopup:"DWPop",DWDlgMsg:"DWDMsg",SSPopup:"SSPop",SSDlg:"SSD",SSDlg_name:"SS_name",SSDlg_saveLayout:"SS_SL",SSDlg_autoExecute:"SS_autoEx",SSDlg_default:"SS_def",criterion:"crtn",
criteria:"crta",dlgSS_ok:"dlgSS_ok",dlgSS_cancel:"dlgSS_cancel"};