A_g=AdfDhtmlBaseGanttPeer.prototype;
A_g.startDrag=function(a){if(this.dragger!=A_)if(this.Ek(a),(A_5c(this,"edit")||!this.se())&&!A_7c(a))this.$&&this.getComponent().getDragSource()!=A_&&(a=A_4c(this),a!=A_&&(a.style.display="none"),this.vs=A_b);else if(!A_5c(this,"linking")||!A_7c(a))if(AdfAgent.AGENT.isLeftButton(a)){for(var b=this.Ra().firstChild;b.firstChild;)b.removeChild(b.firstChild);this.$?(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_?(this.Pn(a),this.Ld="split"):this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Bu)!=A_?
(this.Ts(a),this.Ld="entire"):this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_?(this.Pn(a),this.Ld="recurring"):(this.ni(a),this.Ld="normal"),this.getComponent().getDragSource()!=A_&&(this.Zk=AdfAgent.AGENT.getMousePosition(a))):(this.Ld="normal",this.ni(a));AdfAgent.AGENT.disableUserSelect(this.getDomElement());AdfPage.PAGE.startDrag(a,this.createCallback(this.Jh),this.createCallback(this.ve))}else this.dragger=A_,this.G=-1};A_g.Pn=function(a){this.ni(a)};
A_g.Ts=function(a){if(!this.ca&&this.dragger!=A_&&(a.cancelBubble=A_b,this.Dc=this.t(a),this.ca=A_b,this.nc=new Date(parseInt(this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.vd))),this.ue=new Date(parseInt(this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.Af))),a=this.getTooltip(),a!=A_&&(a.style.display="none"),this.dragger!=A_&&this.$)){a=this.Ra();this.dragger.parentNode.style.border="";var b=AdfAgent.AGENT.getComputedStyle(this.dragger.parentNode).marginTop,c=b.indexOf("px");
-1!=c&&(b=parseInt(b.substring(0,c))+1,this.dragger.parentNode.style.marginTop=b+"px",a.style.marginTop=0-b+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()?(this.dragger.parentNode.style.right=parseInt(this.dragger.parentNode.style.right)+1+"px",b=this.dragger.parentNode.cloneNode(A_b),b.style.right="0px"):(this.dragger.parentNode.style.left=parseInt(this.dragger.parentNode.style.left)+1+"px",b=this.dragger.parentNode.cloneNode(A_b),b.style.left="0px");a.firstChild.appendChild(b);a.style.width=
parseInt(this.dragger.parentNode.style.width)+5+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=parseInt(A_jd(this,this.dragger.parentNode))-parseInt(A_Jc(this.getDomElement()))+"px":a.style.left=parseInt(AdfAgent.AGENT.getElementLeft(this.dragger.parentNode))-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+"px";a.style.top=parseInt(AdfAgent.AGENT.getElementTop(this.dragger.parentNode))-parseInt(AdfAgent.AGENT.getElementTop(this.getDomElement()))+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?
this.G=a.style.right:this.G=a.style.left}};A_g.Ar=function(a,b,c){this.ca&&(a.cancelBubble=A_b,this.mergeWith=A_,this.$&&(A_3c(a).style.cursor="move",this.ug(a,b,c)),A_8c(this,a))};
A_g.Ir=function(a){a.cancelBubble=A_b;this.Dc=0;this.ca=A_c;a=A_Gc(this);a!=A_&&(a.style.display="none");a=this.getComponent();if(this.dragger!=A_){var b={},c=A_M(this);c!=A_&&(b.scrollLeft=parseInt(c.scrollLeft),b.scrollTop=parseInt(c.scrollTop));if(this.$){this.$=A_c;this.dragger.style.cursor="default";c=this.Ra();c.style.display="none";c.firstChild.removeChild(c.firstChild.firstChild);if(AdfPage.PAGE.getLocaleContext().isRightToLeft())var c=c.style.right,d=this.dragger.parentNode.style.right;else c=
c.style.left,d=this.dragger.parentNode.style.left;if(c!=this.G){var e=this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p);b.actionType="move";""!=e&&(b.taskId=e);b.oldx=parseInt(d);b.newx=parseInt(d)+(parseInt(c)-parseInt(this.G));this.Qr(b);b=new A_R(a,b);b.setPartial(A_b);a.queueEvent(b)}}}this.Xa=this.G=0;this.dragger=A_};
A_g.Yh=function(a,b){var c=this.getDomElement().offsetWidth,d=A_Kc(this),e=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la,f=this.md(),g=0;f.scrollHeight!=f.clientHeight&&(g=22);var h=AdfDhtmlBaseGanttPeer.sd;if(0<b)if(c<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb+g){if(c<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb/2+g&&(h*=2),this.ii==A_||!this.ob||this.ob&&this.nk!=h)this.ob&&this.Na(),AdfDhtmlBaseGanttPeer.pk(this.getComponent().getClientId(),e,this.t(a),this.ha(a),h,0),this.nk=
h,this.ob=A_b}else this.lg(b,0);else if(this.t(a)<=d+AdfDhtmlBaseGanttPeer.Gb&&0<f.scrollLeft){if(!(0>=this.resizeGhostWidth)&&(c<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb/2+g&&(h*=2),this.ii==A_||!this.ob||this.ob&&this.nk!=h))this.ob&&this.Na(),AdfDhtmlBaseGanttPeer.pk(this.getComponent().getClientId(),e,this.t(a),this.ha(a),-h,0),this.nk=h,this.ob=A_b}else this.ob&&this.Na(),this.lg(b,0)};A_h("AdfDhtmlBaseGanttPeer.prototype.handleAutoScrollResize",AdfDhtmlBaseGanttPeer.prototype.Yh);
AdfDhtmlBaseGanttPeer.prototype.ug=A_d();