AdfDhtmlBaseGanttPeer.prototype.Zz=function(a,b,c,d){AdfAssert.assertPrototype(a,AdfDnDContext);AdfAssert.assertStringOrNull(b);AdfAssert.assertNumber(c);AdfAssert.assertStringOrNull(d);c==AdfDnDContext.ACTION_NONE&&(A_d.X(A_F(this),AdfDhtmlBaseGanttPeer.kj),b=null);d!=b&&(d&&(a=A_Xc(this,d))&&A_d.X(a.dA,AdfDhtmlBaseGanttPeer.kj),b&&(a=A_Xc(this,b)))&&(A_d.ya(a.dA,AdfDhtmlBaseGanttPeer.kj),A_d.X(A_F(this),AdfDhtmlBaseGanttPeer.kj));null==b&&c!=AdfDnDContext.ACTION_NONE&&A_d.ya(A_F(this),AdfDhtmlBaseGanttPeer.kj)};
AdfDhtmlBaseGanttPeer.prototype.ep=function(a){var b=a.GetParams().VS;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=AdfAgent.AGENT.getWindowClientWidth(window)-b);var b=AdfPage.PAGE.getLocaleContext().isRightToLeft()?b-A_Gc(this.getDomElement()):b-AdfAgent.AGENT.getElementLeft(this.getDomElement()),c=A_Hc(this),b=b-c;a=a.GetParams().IU;var c=A_G(this),d={};d.ganttId=this.getComponent().getClientId();d.dropTime=null!=c?this.ki(c)+parseInt(b):parseInt(b);a.push("jsObject/TaskInfo");a.push(d)};
A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentDrop",AdfDhtmlBaseGanttPeer.prototype.ep);AdfDhtmlBaseGanttPeer.prototype.ki=function(a){var b,c;if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){b=AdfAgent.AGENT.getPlatform();if(b==AdfAgent.GECKO_PLATFORM||b==AdfAgent.IE_PLATFORM)return Math.abs(a.scrollLeft);b=a.scrollWidth;c=parseInt(a.style.width,10);return Math.max(0,b-c-a.scrollLeft)}return a.scrollLeft};AdfDhtmlBaseGanttPeer.prototype.Ns=function(){return null};
AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable=function(a){if(this.Ca)return null;var b=this.ll;if(null==b){if(this.Jz)return this.Jz=null;this.ll=b=A_J(this,a.getNativeEventTarget(),AdfDhtmlBaseGanttPeer.v)}else if(!this.gt)return null;if(null==b)return null;var c=b.getAttribute(AdfDhtmlBaseGanttPeer.v);if(null==c)return null;a={};a.taskId=c;a.resourceId=this.Ns(b);b=A_H(this,b);c=[];c.push(new AdfDataFlavor("jsObject/TaskInfo"));c.push(AdfDataFlavor.getRowKeyDataFlavor(this.getComponent().getDragSource().getModelName()));
return new AdfObjectTransferable([[a],[b]],c)};AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable=AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable;AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback=function(){var a=this.ll;if(null==a)return null;this.Al=this.ll=null;return this.az(a)};AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback=AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback;
AdfDhtmlBaseGanttPeer.prototype.Vw=function(){var a=A_F(this).childNodes,b=a.length;return 0<b?this.Wq(a[b-1]):null};AdfDhtmlBaseGanttPeer.prototype.Wq=function(a){AdfAssert.assert(null!=a.rows&&0<a.rows.length,"Unable to get row key by index when the block contains no rows!");var b=AdfAgent.AGENT;a=a.rows[a.rows.length-1];var c=b.getAttribute(a,AdfDhtmlBaseGanttPeer.ca);null==c&&a.previousSibling&&(c=b.getAttribute(a.previousSibling,AdfDhtmlBaseGanttPeer.ca));return c};
AdfDhtmlBaseGanttPeer.ji=function(a,b,c,d,e){var f=AdfAgent.AGENT,g=0==a.offsetHeight;if(!(e&&e[a.localName]||!g&&!f.pointInElementBounds(a,b,c)))for(g||(d=a),a=a.firstChild;a;){if(1==a.nodeType&&(g=f.getComputedStyle(a),!g||"hidden"!=g.visibility&&"none"!=g.display)&&(g=AdfDhtmlBaseGanttPeer.ji(a,b,c,d,e),g!=d))return g;a=a.nextSibling}return d};AdfDhtmlBaseGanttPeer.prototype.hl=function(a){AdfAssert.assertDomElement(a);return a?!0:!1};AdfDhtmlBaseGanttPeer.prototype.isDragAvailable=AdfDhtmlBaseGanttPeer.prototype.hl;
AdfDhtmlBaseGanttPeer.prototype.getDefaultDragRecognizer=function(){return AdfDhtmlBaseGanttPeer.uE};function A_Ac(){this.Init()}AdfObject.createSubclass(A_Ac,AdfDragRecognizer);A_Ac.prototype.prepDrag=function(a,b,c){a=b.getComponent();AdfAssert.assertObject(a,"Unexpected null component.");b=a.getPeer();AdfAssert.assert(b,"Unexpected null peer.");b.bind(a);if(null==b.ll)return null;a={};a.zN=c.clone();a.rN=c.getPageX();a.sN=c.getPageY();return a};