function og(a){this.Init(a)}m("AdfSequencedSections",og);r.v(og);og.ga=function(){};m("AdfSequencedSections.InitClass",og.ga);og.prototype.Init=function(a){og.h.Init.call(this);var b=a.length;this.Nr=Array(b);for(var d=0;d<b;d++)this.Nr[d]=new ug(a[d],d)};r.a("AdfSequencedSections.prototype.Init",{Init:og.prototype.Init});function ug(a,b){this.SZ=a;this.data=null;this.wTa=!0;this.options=null;this.index=b;this.A$=!1}m("AdfSectionalData",ug);
og.aQ=function(a,b){var d=a.getFilter();if(d){var e=qg(d);if(e&&e instanceof Function){for(var d=[],f=0,g=b.length;f<g;f++){var h=b[f];e.call(a,h,f)&&d.push(h)}return d}v.l.severe("Couldn't locate filter function ",d," for component ",a.g())}return b};m("AdfSequencedSections.prefilter",og.aQ);
og.HRa=function(a,b){var d=pg(a),e=d.getDataUrl(),f={};f[$a.Pm]=a.g();f[$a.Zi]=!1;f[$a.iK]=og.gdb;f[$a.hJ]=og.hdb;var g={};g.Cpb=[a.getValueAttribute()];g.ppb=AdfRichInputSearch.lwa;g.xua=b;f[$a.pt]=vg.Mqa(d,g);d=A.c;d.Cc(!1,!1,!0,"inputSearch: fetch row objects: id\x3d",a.g(),", url\x3d",e,", for values\x3d",b);d.nP().KZ(e,f)};m("AdfSequencedSections.fetchSpecificSuggestions",og.HRa);
og.gdb=function(a,b){var d=A.c.m(b[$a.Pm]);if(d){var e=og.A6(a),e=og.Y7(e.items,d.getValueAttribute());d.o().hha(d,new $f(e))}};og.hdb=function(a,b,d){v.l.severe("A REST call made for fetching selected row objects for inputSearch component '",d[$a.Pm],"' failed")};og.Tqa=function(a,b,d,e){var f=b.getDataUrl(),g=b.getType()==R.hr;u.assert(d||g);f?(e=g?og.teb(a,b,d,e):og.Zeb(a),b=A.c,b.Cc(!1,!1,!0,"inputSearch: fetch data: id\x3d",a.g(),", url\x3d",f,", prefetch\x3d",d),b.nP().KZ(f,e)):!d&&g&&v.l.severe("dataUrl attribute isn't set")};
m("AdfSequencedSections.fetchSection",og.Tqa);og.teb=function(a,b,d,e){e||(e={});e[$a.Pm]=a.g();e[$a.Zi]=!d;e[$a.iK]=og.Pbb;e[$a.hJ]=og.Qbb;d||(e=a.o().S2(a,b,e,!0));return e};og.Zeb=function(a){var b={};b[$a.Pm]=a.g();b[$a.Zi]=!1;og.Kmb(a)&&(b[$a.iK]=og.Wkb,b[$a.hJ]=og.Xkb);return b};
og.Pbb=function(a,b){var d=A.c.m(b[$a.Pm]);if(d){var e=og.A6(a),f=og.Y7(e.items,d.getValueAttribute()),g=d.o(),e=!e.S9;if(b[$a.Zi]){var h=new $f(f);og.oHa(d,h,e,b)&&(f=og.aQ(d,f));f=new $f(f,h);g.Q2(d,f,e,b)}else f=new $f(f),R.J$(d,f),g.fE(d,f,e)}};og.Wkb=function(a,b){var d=A.c.m(b[$a.Pm]);if(d){var e=og.A6(a),e=og.Y7(e.items,d.getValueAttribute()),e=new $f(e);R.J$(d,e);d.o().sL(d,e)}};
og.Qbb=function(a,b,d){var e=d[$a.Pm];v.l.severe("A REST call made by inputSearch component '",e,"' failed");(e=A.c.m(e))&&(d[$a.Zi]?e.o().R2(e,a,b,d):e.o().Bha(e,a,b))};og.Xkb=function(a,b,d){v.l.severe("A REST call made by inputSearch component '",d[$a.Pm],"' failed")};og.prototype.yua=function(){this.Nr.forEach(this.AX,this)};r.a("AdfSequencedSections.prototype.sendRequests",{yua:og.prototype.yua});
og.prototype.AX=function(a){var b=a.SZ,d=b.getParent(),e=b.getDataUrl();if(e){var f=A.c;f.Cc(!1,!1,!0,"inputSearch: fetch data: id\x3d",d.g(),", url\x3d",e);f.nP().KZ(e,xg(this,d,b,a.index))}};function xg(a,b,d,e){var f={};f[$a.Pm]=b.g();f[$a.Zi]=!0;f[$a.iK]=a.D(a.AJa);f[$a.hJ]=a.D(a.fdb);f.zg=e;d.getType()==R.hr&&(f=b.o().S2(b,d,f,!1));return f}
og.prototype.AJa=function(a,b){var d=A.c.m(b[$a.Pm]);if(d){var e=b.zg,f=this.Nr[e],g=og.A6(a);f.data=og.Y7(g.items,d.getValueAttribute());if(f.SZ.getType()==R.hr){f.options=b;f.wTa=!g.S9;og.oHa(d,new $f(f.data),!g.S9,b)&&(f.data=og.aQ(d,f.data));for(var f=f.data,g=0,h=this.Nr.length;g<h;g++){var l=this.Nr[g].SZ;l.getFilter()&&(this.Nr[g].data=og.aQ(l,f),this.LW(g,d))}}else f.data=og.aQ(d,f.data);this.LW(e,d)}};
og.prototype.fdb=function(a,b,d){var e=d[$a.Pm];v.l.severe("The REST call made by inputSearch component '",e,"' failed");(e=A.c.m(e))&&(this.Nr[d.zg].SZ.getType()==R.hr?e.o().R2(e,a,b,d):this.AJa([],d))};og.prototype.LW=function(a,b){if(0===a||this.Nr[a-1].A$){var d;for(d=0;d<=a&&this.Nr[d].A$;d++);for(var e=this.Nr.length;d<e;d++){var f=this.Nr[d];u.assert(!f.A$);if(!f.data)break;var g=f.SZ;f.A$=!0;g.getParent().o().Jha(b,g,new $f(f.data),f.wTa,f.options,f.index)}}};
og.oHa=function(a,b,d,e){e=R.gGa(e);mg.update(a,e&&d,b);return e};og.Kmb=function(a){return a.getSelectionMode()==R.h8a?!!pg(a).getFilterParameters():!1};og.Hob=function(a,b){var d={};d.data=a;d.index=b;d.key=a[this];return d};og.Y7=function(a,b){return a.map(og.Hob,b)};
og.A6=function(a){var b=null;if("string"==typeof a)try{b=JSON.parse(a)}catch(e){v.l.severe("Failed to parse the response as JSON object.",e);return}else b=a;if(b){a={};a.S9=!!b.S9;if(b instanceof Array)return a.items=b,a;if(b.items)return a.items=b.items,a;for(var d in b)if(b.hasOwnProperty(d)&&b[d]instanceof Array)return a.items=b[d],a;v.l.severe("Couldn't locate the collection property")}else v.l.severe("Failed to parse the response as JSON object.")};