AdfDhtmlBaseGanttPeer.prototype.lz=function(a,b,c,d){AdfAssert.assertPrototype(a,AdfDnDContext);AdfAssert.assertStringOrNull(b);AdfAssert.assertNumber(c);AdfAssert.assertStringOrNull(d);c==AdfDnDContext.ACTION_NONE&&(A_k.S(A_Ec(this),AdfDhtmlBaseGanttPeer.Qi),b=A_);if(d!=b&&(d&&(a=A__c(this,d))&&A_k.S(a.oz,AdfDhtmlBaseGanttPeer.Qi),b&&(a=A__c(this,b))))A_k.sa(a.oz,AdfDhtmlBaseGanttPeer.Qi),A_k.S(A_Ec(this),AdfDhtmlBaseGanttPeer.Qi);b==A_&&c!=AdfDnDContext.ACTION_NONE&&A_k.sa(A_Ec(this),AdfDhtmlBaseGanttPeer.Qi)};
AdfDhtmlBaseGanttPeer.prototype.yo=function(a){var b=a.GetParams().JS;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=AdfAgent.AGENT.getWindowClientWidth(window)-b);var b=AdfPage.PAGE.getLocaleContext().isRightToLeft()?b-A_Jc(this.getDomElement()):b-AdfAgent.AGENT.getElementLeft(this.getDomElement()),c=A_Kc(this),b=b-c;a=a.GetParams().CU;var c=A_M(this),d={};d.ganttId=this.getComponent().getClientId();d.dropTime=c!=A_?this.Th(c)+parseInt(b):parseInt(b);a.push("jsObject/TaskInfo");a.push(d)};
A_h("AdfDhtmlBaseGanttPeer.prototype.HandleComponentDrop",AdfDhtmlBaseGanttPeer.prototype.yo);AdfDhtmlBaseGanttPeer.prototype.Th=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.bs=A_f(A_);
AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable=function(a){if(this.ua)return A_;var b=this.Gn;if(b==A_){if(this.Wy)return this.Wy=A_;this.Gn=b=A_P(this,a.getNativeEventTarget(),AdfDhtmlBaseGanttPeer.p)}else if(!this.vs)return A_;if(b==A_)return A_;var c=b.getAttribute(AdfDhtmlBaseGanttPeer.p);if(c==A_)return A_;a={};a.taskId=c;a.resourceId=this.bs(b);b=A_N(this,b);c=[];c.push(new AdfDataFlavor("jsObject/TaskInfo"));c.push(AdfDataFlavor.getRowKeyDataFlavor(this.getComponent().getDragSource().getModelName()));
return new AdfObjectTransferable([[a],[b]],c)};A_h("AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable",AdfDhtmlBaseGanttPeer.prototype.GetDragTransferable);AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback=function(){var a=this.Gn;if(a==A_)return A_;this.Zk=this.Gn=A_;return this.my(a)};A_h("AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback",AdfDhtmlBaseGanttPeer.prototype.GetDragOverFeedback);
AdfDhtmlBaseGanttPeer.prototype.hw=function(){var a=A_Ec(this).childNodes,b=a.length;return 0<b?this.oq(a[b-1]):A_};AdfDhtmlBaseGanttPeer.prototype.oq=function(a){AdfAssert.assert(a.rows!=A_&&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.W);c==A_&&a.previousSibling&&(c=b.getAttribute(a.previousSibling,AdfDhtmlBaseGanttPeer.W));return c};
AdfDhtmlBaseGanttPeer.Sh=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))){g||(d=a);for(a=a.firstChild;a;){if(1==a.nodeType&&(g=f.getComputedStyle(a),!g||"hidden"!=g.visibility&&"none"!=g.display))if(g=AdfDhtmlBaseGanttPeer.Sh(a,b,c,d,e),g!=d)return g;a=a.nextSibling}}return d};AdfDhtmlBaseGanttPeer.prototype.Hk=function(a){AdfAssert.assertDomElement(a);return a?A_b:A_c};
A_h("AdfDhtmlBaseGanttPeer.prototype.isDragAvailable",AdfDhtmlBaseGanttPeer.prototype.Hk);function A_Cc(){this.Init()}AdfObject.createSubclass(A_Cc,AdfDragRecognizer);