A_=AdfDhtmlBaseGanttPeer.prototype;
A_.startDrag=function(a){if(null!=this.dragger)if(this.cl(a),(A_1c(this,"edit")||!this.Fe())&&!A_3c(a))this.ga&&null!=this.getComponent().getDragSource()&&(a=A_0c(this),null!=a&&(a.style.display="none"),this.gt=!0);else if(!A_1c(this,"linking")||!A_3c(a))if(AdfAgent.AGENT.isLeftButton(a)){for(var b=this.Za().firstChild;b.firstChild;)b.removeChild(b.firstChild);this.ga?(null!=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.S)?(this.yo(a),this.Ud="split"):null!=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ov)?(this.Et(a),
this.Ud="entire"):null!=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Z)?(this.yo(a),this.Ud="recurring"):(this.Fi(a),this.Ud="normal"),null!=this.getComponent().getDragSource()&&(this.Al=AdfAgent.AGENT.getMousePosition(a))):(this.Ud="normal",this.Fi(a));AdfAgent.AGENT.disableUserSelect(this.getDomElement());AdfPage.PAGE.startDrag(a,this.createCallback(this.ai),this.createCallback(this.Ie))}else this.dragger=null,this.P=-1};A_.yo=function(a){this.Fi(a)};
A_.Et=function(a){if(!this.ja&&null!=this.dragger&&(a.cancelBubble=!0,this.Lc=this.C(a),this.ja=!0,this.vc=new Date(parseInt(this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.Dd))),this.He=new Date(parseInt(this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.Pf))),a=this.getTooltip(),null!=a&&(a.style.display="none"),null!=this.dragger&&this.ga)){a=this.Za();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(!0),b.style.right="0px"):(this.dragger.parentNode.style.left=parseInt(this.dragger.parentNode.style.left)+1+"px",b=this.dragger.parentNode.cloneNode(!0),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_fd(this,this.dragger.parentNode))-parseInt(A_Gc(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.P=a.style.right:this.P=a.style.left}};A_.ks=function(a,b,c){this.ja&&(a.cancelBubble=!0,this.mergeWith=null,this.ga&&(A_L(a).style.cursor="move",this.Kg(a,b,c)),A_4c(this,a))};
A_.ts=function(a){a.cancelBubble=!0;this.Lc=0;this.ja=!1;a=A_Dc(this);null!=a&&(a.style.display="none");a=this.getComponent();if(null!=this.dragger){var b={},c=A_G(this);null!=c&&(b.scrollLeft=parseInt(c.scrollLeft),b.scrollTop=parseInt(c.scrollTop));if(this.ga){this.ga=!1;this.dragger.style.cursor="default";c=this.Za();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.P){var e=this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v);b.actionType="move";""!=e&&(b.taskId=e);b.oldx=parseInt(d);b.newx=parseInt(d)+(parseInt(c)-parseInt(this.P));this.Bs(b);b=new A_M(a,b);b.setPartial(!0);a.queueEvent(b)}}}this.fb=this.P=0;this.dragger=null};
A_.oi=function(a,b){var c=this.getDomElement().offsetWidth,d=A_Hc(this),e=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa,f=this.td(),g=0;f.scrollHeight!=f.clientHeight&&(g=22);var h=AdfDhtmlBaseGanttPeer.zd;if(0<b)if(c<=this.C(a)+AdfDhtmlBaseGanttPeer.Ob+g){if(c<=this.C(a)+AdfDhtmlBaseGanttPeer.Ob/2+g&&(h*=2),null==this.Ai||!this.xb||this.xb&&this.Mk!=h)this.xb&&this.Va(),AdfDhtmlBaseGanttPeer.Ok(this.getComponent().getClientId(),e,this.C(a),this.pa(a),h,0),this.Mk=
h,this.xb=!0}else this.Ag(b,0);else this.C(a)<=d+AdfDhtmlBaseGanttPeer.Ob&&0<f.scrollLeft?0>=this.resizeGhostWidth||(c<=this.C(a)+AdfDhtmlBaseGanttPeer.Ob/2+g&&(h*=2),null!=this.Ai&&this.xb&&(!this.xb||this.Mk==h))||(this.xb&&this.Va(),AdfDhtmlBaseGanttPeer.Ok(this.getComponent().getClientId(),e,this.C(a),this.pa(a),-h,0),this.Mk=h,this.xb=!0):(this.xb&&this.Va(),this.Ag(b,0))};AdfDhtmlBaseGanttPeer.prototype.handleAutoScrollResize=AdfDhtmlBaseGanttPeer.prototype.oi;
AdfDhtmlBaseGanttPeer.prototype.Kg=function(){};