var A_O=AdfRichUIPeer.createPeerClass(A_N,"AdfDhtmlBaseResourceUtilizationGanttPeer",!1);A_a("AdfDhtmlBaseResourceUtilizationGanttPeer",A_O);A_O.InitSubclass=function(){this.ac="resId";this.kq="rbar";this.qj="_cpProp";this.Vp="_bCreateRes";(this.Qf={})[this.Vp]="createResource";(this.Nf={})[this.qj]="properties";this.Hh=!1;this.OE=25;this.qm="p_AFSelected";this.oh="p_AFFocused"};A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.InitSubclass",A_O.InitSubclass);
A_O.HM=function(a,b,c){b=A_Nc(AdfPage.PAGE.findComponent(a).getPeer(),b);if(null!=b&&null!=b.Ra)var d=A_O.Wy(b.Ra,c);null!=d&&(a=AdfPage.PAGE.findComponent(a).getPeer(),a.cc=d,A_d.ya(d,A_O.oh))};A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.selectTimeBucketByRow",A_O.HM);A_O.Wy=function(a,b){if("DIV"==a.nodeName){var c=AdfAgent.AGENT.getAttribute(a,AdfDhtmlBaseGanttPeer.v);if(null!=c&&c==b)return a}for(c=0;c<a.childNodes.length;c++){var d=A_O.Wy(a.childNodes[c],b);if(null!=d)return d}return null};
function A_od(a,b){var c=b.getNativeEventTarget();return a.qf(c)}A_O.prototype.qf=function(a){if(null!=a&&"DIV"==a.nodeName){if(null!=a.getAttribute(AdfDhtmlBaseGanttPeer.v))return a;if(null!=a.parentNode){if(null!=a.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v))return a.parentNode;if(null!=a.parentNode.parentNode&&null!=a.parentNode.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v))return a.parentNode.parentNode}}return null};
A_O.prototype.sl=function(a){null!=this.cc&&(A_d.ta(this.cc,A_O.oh)?A_d.X(this.cc,A_O.oh):A_d.ta(this.cc,A_O.qm)&&A_d.X(this.cc,A_O.qm));this.cc=a;A_d.ya(a,A_O.oh);var b=a.getAttribute(AdfDhtmlBaseGanttPeer.v),c=a.parentNode.getAttribute(A_O.ac),d=A_H(this,a),e=this.getComponent();a=null==a.getAttribute("data-tooltip")?a.parentNode.id:null;b=new A_pd(e,c,d,b,null,null,a);b.setPartial(!0);e.queueEvent(b)};A_O.prototype.selectTimeBucket=A_O.prototype.sl;
A_O.prototype.Zg=function(a){var b=A_od(this,a);null!=b&&(a={},a.bucketId=b.getAttribute(AdfDhtmlBaseGanttPeer.v),a.resourceId=b.parentNode.getAttribute(A_O.ac),b=this.getComponent(),a=new A_Fc(b,a),a.setPartial(!0),b.queueEvent(a))};A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentDblClick",A_O.prototype.Zg);A_O.prototype.ra=function(a){a=A_od(this,a);null!=a&&(this.sl(a),this.Xb(a),this.N=a)};A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentClick",A_O.prototype.ra);
A_O.prototype.jb=function(a){A_O.superclass.jb.call(this,a);var b=A_od(this,a);if(null!=b){this.sl(b);a=a.getNativeEvent();var b=this.getComponent(),c=b.getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa;this.showContextMenu(a,A_Jc(this),b,null,null,c)}};A_O.prototype.HandleComponentContextMenu=A_O.prototype.jb;A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentContextMenu",A_O.prototype.jb);
function A_qd(a){a=a.getComponent().getClientId()+"::handle";return document.getElementById(a)}A_O.prototype.HandleComponentAction=function(a){if(a.getSource().getClientId()!==this.getComponent().getClientId()){A_O.superclass.HandleComponentAction.call(this,a);var b=a.getSource();if(!b.getDisabled()){var b=b.getClientId(),c=A_O.Qf,d;for(d in c)if(0<=b.indexOf(d)){this.uf(c[d]);a.cancel();return}c=A_O.Nf;for(d in c)if(0<=b.indexOf(d)){this[c[d]].call(this,a);a.cancel();break}}}};
A_a("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentAction",A_O.prototype.HandleComponentAction);A_O.prototype.ui=function(){return!0};A_O.prototype.yf=function(a,b){if(null!=a.getAttribute(AdfDhtmlBaseGanttPeer.v)){if("down"==b||"up"==b)for(var c=this.BI.getAttribute(AdfDhtmlBaseGanttPeer.v),d=0;d<a.parentNode.childNodes.length;d++){var e=a.parentNode.childNodes[d],f=e.getAttribute(AdfDhtmlBaseGanttPeer.v);if(null!=f&&f==c){this.N=a=e;break}}this.sl(a)}};
A_O.prototype.bi=function(){this.BI=this.cc;null!=this.cc&&(A_d.ta(this.cc,A_O.oh)?A_d.X(this.cc,A_O.oh):A_d.ta(this.cc,A_O.qm)&&A_d.X(this.cc,A_O.qm))};
A_O.prototype.yi=function(a){var b="",c="";if(AdfPage.PAGE.isScreenReaderMode()&&null!=a)c=A_L(a),b=A_H(this,c.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode),c=c.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v);else if(null!=this.cc)b=A_H(this,this.cc),c=this.cc.getAttribute(AdfDhtmlBaseGanttPeer.v);else return;a={actionType:"properties"};a.bucketId=c;a.rowKey=b;b=this.getComponent();c=new A_M(b,a);c.setPartial(!0);b.queueEvent(c)};A_O.prototype.properties=A_O.prototype.yi;
A_O.prototype.Xb=function(a){if(null==this.cb||this.cb!=a){null!=this.cb&&this.cb.removeAttribute("tabIndex");this.cb=a;if(!a.getAttribute("data-mf")){var b=a.getAttribute("data-df");null==b&&(b=a.getAttribute(AdfDhtmlBaseGanttPeer.v),b=new Date(b.substr(4,4),b.substr(0,2)-1,b.substr(2,2),b.substr(8,2),b.substr(10,2),b.substr(12,2),0));var c=a.getAttribute("aria-label");null==c&&(c=A_K(this,"ndt"));var d=A_K(this,"tbs"),d=d.concat(" "),d=A_ed(this,d,A_K(this,"t"),b);null!=c&&(d=d.concat(c));a.setAttribute("aria-label",
d);a.setAttribute("data-mf",!0)}A_O.superclass.Xb.call(this,a)}};A_O.prototype.Wk=function(a){a=AdfDhtmlBaseGanttPeer.fi(a);return a.firstChild};A_O.prototype.Ss=function(a){this.sl(a);this.Xb(a);this.N=a};