A_N=AdfRichUIPeer.createPeerClass(AdfDhtmlBaseGanttPeer,"AdfDhtmlGanttPeer");A_a("AdfDhtmlGanttPeer",A_N);A_N.InitSubclass=function(){AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentTouchEvent.TOUCH_START_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentTouchEvent.TOUCH_END_EVENT_TYPE);this.fu=10;this.OC=200;this.NC=350};
A_N.prototype.ResizeNotify=function(a,b,c,d){A_N.superclass.ResizeNotify.call(this,a,b,c,d);a=this.getDomElement();this.rJ||(a.addEventListener("touchmove",this.createCallback(this.Kz),!1),this.rJ=!0)};A_N.prototype.td=function(){return A_F(this)};AdfDhtmlBaseGanttPeer.prototype.C=function(a){if((a=a.touches)&&0<a.length){a=a[0].pageX;var b=AdfAgent.AGENT.getElementLeft(this.getDomElement());return Math.max(0,a-b)}};
A_N.prototype.pa=function(a){if((a=a.touches)&&0<a.length){a=a[0].pageY;var b=AdfAgent.AGENT.getElementTop(this.getDomElement());return Math.max(0,a-b)}};A_N.prototype.li=function(a){if((a=a.touches)&&0<a.length)return{x:a[0].pageX,y:a[0].pageY}};
A_N.prototype.Ql=function(a){var b=this.getTooltip();null!=b&&(b.style.display="none");var c=a.getNativeEvent();if((a=c.touches)&&1==a.length){if(b=c.target,null!=b){for(;1!=b.nodeType;)if(b=b.parentNode,null==b)return;var d=this;this.Xh=setTimeout(function(){a:{var a=c.target;if(null!=a){for(;1!=a.nodeType;)if(a=a.parentNode,null==a)break a;a=A_J(d,a,"over");null!=a&&null!=a.getAttribute("over")&&(a=a.getAttribute("over"),"sst"==a?d.Bt(c):"smc"!=a&&"src"!=a||null==d.getTooltip()||d.showTooltip(c))}}},
A_N.OC);this.Wh=setTimeout(function(){a:{var a=c.target;if(null!=a){for(;1!=a.nodeType;)if(a=a.parentNode,null==a)break a;if(d.ig){var b=d.getComponent().getClientId();d.gf={};d.gf[A_d.TYPE]=A_d.Au;d.gf[A_d.Hl]=A_d.Nt;d.gf[A_d.Xi]={x:d.hf.x,y:d.hf.y};d.gf[AdfRichPopup.HINT_LAUNCH_ID]=b+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa;a=A_J(d,a,"over");if(null!=a&&null!=a.getAttribute("over")&&"smec"==a.getAttribute("over")){a.parentNode.style.border="solid 1px #000000";var b=AdfAgent.AGENT.getComputedStyle(a.parentNode).marginTop,
e=b.indexOf("px");-1!=e&&(b=parseInt(b.substring(0,e)),a.parentNode.style.marginTop=b-1+"px");a.parentNode.style.left=parseInt(a.parentNode.style.left)-1+"px"}AdfAgent.guessOS()==AdfAgent.ANDROID_OS&&AdfAgent.AGENT.startMouseEventCapture(A_Od(d))}d.fn=!0}}},A_N.NC);b=A_J(this,b,"over");if(null!=b&&null!=b.getAttribute("over")){this.dragger=b;this.Pz=this.lf=this.dragger.style.border;var e=b.getAttribute("over");if("smc"==e||"src"==e||"smec"==e)this.hf={},this.hf.x=a[0].pageX,this.hf.y=a[0].pageY,
this.ig=!0;null!=b.parentNode&&(b=A_J(this,b.parentNode,"down"),null!=b&&null!=b.getAttribute("down")&&(e=b.getAttribute("down"),"sd"==e&&null==this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.S)&&null==this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ov)&&this.cl(c)))}}}else this.Xh&&clearTimeout(this.Xh),this.Wh&&clearTimeout(this.Wh)};A_a("AdfDhtmlGanttPeer.prototype.HandleComponentTouchStart",A_N.prototype.Ql);function A_Od(a){null==a.fw&&(a.fw=a.createCallback(a.uM));return{touchmove:a.fw}}
A_N.prototype.uM=function(a){AdfAgent.eatEventCallback(a);this.Kz(a)};
A_N.prototype.Kz=function(a){var b=a.touches;if(b&&1==b.length)if(this.ig&&this.hf&&Math.abs(b[0].pageX-this.hf.x)<A_N.fu&&Math.abs(b[0].pageY-this.hf.y)<A_N.fu)this.fn&&AdfAgent.AGENT.preventDefault(a);else if(this.Xh&&clearTimeout(this.Xh),this.Wh&&clearTimeout(this.Wh),this.ig)if(b=this.getTooltip(),null!=b&&(b.style.display="none"),this.fn&&!this.gn){if(AdfAgent.AGENT.preventDefault(a),b=a.target,null!=b){for(;1!=b.nodeType;)if(b=b.parentNode,null==b)return;var c=A_J(this,b,"over");if(null!=c&&
null!=c.getAttribute("over")){var d=c.getAttribute("over");"smc"==d||"smec"==d?(this.dragger=c,this.ga=!0,this.Ca=!1):"src"==d&&(this.dragger=c,this.ga=!1,this.Ca=!0);b=A_J(this,b.parentNode,"down");null!=b&&null!=b.getAttribute("down")&&(d=b.getAttribute("down"),"sd"==d&&(this.startDrag(a),this.gf=null,this.gn=!0,this.Hm=!1,this.ms=this.li(a)))}}}else this.gn&&(AdfAgent.AGENT.preventDefault(a),this.ai(a),this.ms=this.li(a))};
A_N.prototype.qC=function(a){a=a.getNativeEvent();var b=a.touches;if(b&&0==b.length){this.Xh&&clearTimeout(this.Xh);this.Wh&&clearTimeout(this.Wh);if(this.ig){this.hf=null;this.ig=!1;if(null!=this.gf)this.Hm&&(a=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+A_Jc(this),a=page.findComponent(a),b=this.getTooltip(),null!=b&&(b.style.display="none"),a.show(this.gf),this.Hm=!1),this.gf=null;else if(this.gn){b=a.target;if(null==b)return;for(;1!=b.nodeType;)if(b=b.parentNode,null==b)return;b=
A_J(this,b,"up");null!=b&&null!=b.getAttribute("up")?"ed"==b.getAttribute("up")&&this.Ie(a):null!=this.dragger&&this.Ca&&this.Ie(a);delete this.ms}this.fn&&AdfAgent.guessOS()==AdfAgent.ANDROID_OS&&AdfAgent.AGENT.stopMouseEventCapture(A_Od(this))}this.fn=this.gn=!1}};A_a("AdfDhtmlGanttPeer.prototype.HandleComponentTouchEnd",A_N.prototype.qC);
A_N.prototype.$g=function(a){A_N.superclass.$g.call(this,a);var b=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+A_Jc(this);this.ig&&a.getSource().getClientId()==b?(a.cancel(),this.Hm=!0):a.getSource().getClientId()==b&&(a=this.getTooltip(),null!=a&&(a.style.display="none"))};A_a("AdfDhtmlGanttPeer.prototype.HandleComponentPopupOpening",A_N.prototype.$g);