var AdfDhtmlBaseProjectGanttPeer=AdfRichUIPeer.createPeerClass(A_S,"AdfDhtmlBaseProjectGanttPeer",A_c);A_h("AdfDhtmlBaseProjectGanttPeer",AdfDhtmlBaseProjectGanttPeer);
AdfDhtmlBaseProjectGanttPeer.InitSubclass=function(){AdfRichUIPeer.addComponentEventHandlers(this,AdfSelectionEvent.SELECTION_EVENT_TYPE);this.wE="_cpSplit";this.SD="_cpMerge";this.Cu="_bSplit";this.Du="_split";this.lu="_merge";this.Vi="_cpProp";this.Qu="_tpVs";this.Vt="_dpLn";this.sp="_dpdLn";this.uD="_dpAsLn";this.vD="_dpAsMn";this.wD="_dpNone";this.lp="rPopup";this.jp="_rcp";this.kp="_rpp";this.kD="ct_conv";var a=this.Bf={};a[this.uD]="dependency_lines";a[this.vD]="dependency_menu";a[this.wD]=
"dependency_none";a=this.yf={};a[this.Cu]="split";a[this.Du]="split";a[this.lu]="merge";a[this.wE]="splitPopup";a[this.SD]="merge";a[this.Vi]="properties";a[this.Qu]="viewSelected";a[this.sp]="gotoDependentTask";a[this.jp]="create";a[this.kp]="paste";this.dragger=this.Sk=A_;this.ca=A_c;this.Ye=A_;this.$=this.ua=A_c;this.G=this.qg=this.Xa=0;this.ue=this.nc=A_;this.Rs=0;this.kc=A_c;this.ji=this.ki=this.Rd=this.Sa=A_};A_h("AdfDhtmlBaseProjectGanttPeer.InitSubclass",AdfDhtmlBaseProjectGanttPeer.InitSubclass);
AdfDhtmlBaseProjectGanttPeer.prototype.InitDomElement=function(a,b){AdfDhtmlBaseProjectGanttPeer.superclass.InitDomElement.call(this,a,b);this.Rd=a.getProperty("selectedIds");this.Rd!=A_&&0<this.Rd.length&&(this.Sa=this.Rd.split(","))};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.InitDomElement",AdfDhtmlBaseProjectGanttPeer.prototype.InitDomElement);
AdfDhtmlBaseProjectGanttPeer.prototype.yB=function(a){if(a.getSource().getClientId()==A_Dc(this)){var b=a.getSource().getSelectedRowKeys(),c=0,d;for(d in b)c++;this.Sa==A_&&(this.Sa=[]);1>=c&&(this.Sa.length=0);c=a.getAddedSet();b=0;for(d in c)b++;for(d in c){c=A_c;if(1<b)for(var e=0;e<this.Sa.length;e++){var f=this.Sa[e];if(f==d){c=A_b;break}}c||this.Sa.push(d)}a=a.getRemovedSet();for(d in a)for(e=0;e<this.Sa.length;e++)f=this.Sa[e],f==d&&(this.Sa[e]=A_);A_nd(this)}};
A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentSelection",AdfDhtmlBaseProjectGanttPeer.prototype.yB);
function A_nd(a){if(0<a.Sa.length){var b=A_b;for(i=0;i<a.Sa.length;i++){var c=a.Sa[i];c!=A_&&(b=A_c)}if(!b){b="";for(i=0;i<a.Sa.length;i++)c=a.Sa[i],c!=A_&&(""!=b&&(b+=","),b+=c);a.Rd=b;if(a.ki!=A_&&a.ji!=A_){for(var c=[],b=a.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.Zb,b=document.getElementById(b).childNodes[1].childNodes,d=A_c,e=A_c,f=A_,g=A_c,h=0;h<b.length&&!g;h++){var l;l="DIV"!=b[h].nodeName?AdfAgent.AGENT.getPlatform()!=AdfAgent.WEBKIT_PLATFORM?b[h].childNodes[0].childNodes:
b[h].childNodes[1].childNodes:b[h].childNodes[0].childNodes[0].childNodes;for(var m=0;m<l.length&&!g;m++){var n=l[m].getAttribute("_afrrk");if(!d){if(n==a.ki||n==a.ji)d=A_b;f=n==a.ki?a.ji:a.ki;n==a.ji&&(e=A_b)}d&&c.push(n);n==f&&(g=A_b)}}e&&c.reverse();a.Rd=c.toString();a.Sa=a.Rd.split(",")}a.getComponent().setProperty("selectedIds",a.Rd,A_c,AdfUIComponent.PROPAGATE_ALWAYS)}}}
AdfDhtmlBaseProjectGanttPeer.prototype.bb=function(a){AdfDhtmlBaseProjectGanttPeer.superclass.bb.call(this,a);a=a.getNativeEvent();var b=A_N(this,A_3c(a));b!=A_&&(a.ctrlKey==A_b||a.shiftKey==A_c||this.ki==A_?(this.ki=b,this.ji=A_):this.ji=b)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentMouseDown",AdfDhtmlBaseProjectGanttPeer.prototype.bb);
AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentAction=function(a){AdfDhtmlBaseProjectGanttPeer.superclass.HandleComponentAction.call(this,a);var b=a.getSource();if(!b.getDisabled()){var b=b.getClientId(),c=AdfDhtmlBaseProjectGanttPeer.Bf,d;for(d in c)if(0<=b.indexOf(d)){this.ff(c[d]);a.cancel();return}c=AdfDhtmlBaseProjectGanttPeer.yf;for(d in c)if(0<=b.indexOf(d)){this[c[d]].call(this,a);a.cancel();return}this.Eb!=A_&&(a=A_Ic(this,this.Eb),a=new A_od(this.getComponent(),a),AdfPage.PAGE.queueEventToServer(a),
this.Eb=A_)}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentAction",AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentAction);AdfDhtmlBaseProjectGanttPeer.prototype.Pr=function(){var a=this.getDomElement().getAttribute("rcrcm");return a!=A_?a:AdfDhtmlBaseProjectGanttPeer.lp};
AdfDhtmlBaseProjectGanttPeer.prototype.ab=function(a){AdfDhtmlBaseProjectGanttPeer.superclass.ab.call(this,a);a=a.getNativeEvent();var b=A_3c(a),c=A_L(this),d=A_P(this,b,AdfDhtmlBaseGanttPeer.p);d!=A_&&d.getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_?(this.Br=A_N(this,d),b=this.getComponent(),this.showContextMenu(a,A_Mc(this),b,A_,A_,c)):this.yj(AdfPage.PAGE.findComponent(c).getPeer().getDomElement(),b)&&A_N(this,b)!=A_&&(b=this.getComponent(),this.showContextMenu(a,this.Pr(),b,A_,A_,c),this.Eb=a)};
A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentContextMenu",AdfDhtmlBaseProjectGanttPeer.prototype.ab);A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentContextMenu",AdfDhtmlBaseProjectGanttPeer.prototype.ab);AdfDhtmlBaseProjectGanttPeer.prototype.rd=function(a){AdfDhtmlBaseProjectGanttPeer.superclass.qf.call(this,a);var b=this;setTimeout(function(){b.Eb=A_;console.log("cleared")},0)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentPopupClosed",AdfDhtmlBaseProjectGanttPeer.prototype.rd);
A_h("AdfDhtmlBaseProjectGanttPeer.prototype.HandleComponentPopupClosed",AdfDhtmlBaseProjectGanttPeer.prototype.rd);AdfDhtmlBaseProjectGanttPeer.prototype.ci=A_f(A_c);AdfDhtmlBaseProjectGanttPeer.prototype.KM=function(){this.ff("viewSelectedTask")};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.viewSelected",AdfDhtmlBaseProjectGanttPeer.prototype.KM);AdfDhtmlBaseProjectGanttPeer.prototype.create=function(){this.uj(this.Eb,"cmCreate");this.Eb=A_};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.create",AdfDhtmlBaseProjectGanttPeer.prototype.create);
AdfDhtmlBaseProjectGanttPeer.prototype.As=function(){this.uj(this.Eb,"cmPaste");this.Eb=A_};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.paste",AdfDhtmlBaseProjectGanttPeer.prototype.As);AdfDhtmlBaseProjectGanttPeer.prototype.uj=function(a,b){var c={};c.actionType=b;c.rowKey=A_N(this,A_3c(a));c.location=A_Ic(this,a);var d=this.getComponent(),c=new A_R(d,c);c.setPartial(A_b);d.queueEvent(c)};
AdfDhtmlBaseProjectGanttPeer.prototype.gi=function(a){var b={actionType:"properties",taskId:""};this.Br!=A_?(b.rowKey=this.Br,this.Br=A_):a!=A_&&(a=A_3c(a),a!=A_&&(b.rowKey=A_N(this,a)));a=this.getComponent();b=new A_R(a,b);b.setPartial(A_b);a.queueEvent(b)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.properties",AdfDhtmlBaseProjectGanttPeer.prototype.gi);
AdfDhtmlBaseProjectGanttPeer.prototype.link=function(){var a={actionType:"link"};a.rowKeys=this.Rd;var b=this.getComponent(),a=new A_R(b,a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.link",AdfDhtmlBaseProjectGanttPeer.prototype.link);AdfDhtmlBaseProjectGanttPeer.prototype.Ys=function(){var a={actionType:"unlink"};a.rowKeys=this.Rd;var b=this.getComponent(),a=new A_R(b,a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.unlink",AdfDhtmlBaseProjectGanttPeer.prototype.Ys);
AdfDhtmlBaseProjectGanttPeer.prototype.split=function(){var a={actionType:"split"};this.nd()!=A_&&(a.taskId=this.nd());var b=this.getComponent(),a=new A_R(b,a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.split",AdfDhtmlBaseProjectGanttPeer.prototype.split);
AdfDhtmlBaseProjectGanttPeer.prototype.xM=function(){var a={actionType:"split"};this.nd()!=A_&&(a.taskId=this.nd());this.On!=A_&&(a.splitId=this.On);a.splitLoc=this.Rs;a.splitterStart=this.Rs+10;var b=this.getComponent(),a=new A_R(b,a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.splitPopup",AdfDhtmlBaseProjectGanttPeer.prototype.xM);
AdfDhtmlBaseProjectGanttPeer.prototype.Vy=function(){var a={actionType:"merge"};this.nd()!=A_&&(a.taskId=this.nd());this.On!=A_&&(a.splitId=this.On);var b=this.getComponent(),a=new A_R(b,a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.merge",AdfDhtmlBaseProjectGanttPeer.prototype.Vy);
AdfDhtmlBaseProjectGanttPeer.prototype.LK=function(a){a=a.getSource().getClientId();var b=a.substring(a.lastIndexOf(AdfDhtmlBaseProjectGanttPeer.sp)+AdfDhtmlBaseProjectGanttPeer.sp.length,a.length);a={};a.taskId=b;b=this.getComponent();a=new A_O(b,"gotoDepTask",a);a.setPartial(A_b);b.queueEvent(a)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.gotoDependentTask",AdfDhtmlBaseProjectGanttPeer.prototype.LK);
AdfDhtmlBaseProjectGanttPeer.prototype.Nn=function(a){!this.kc&&!this.ca&&(this.dragger=A_3c(a),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_?A_5c(this,"percentComplete")||(AdfAgent.getAgent().getPlatform()==AdfAgent.WEBKIT_PLATFORM?this.dragger.style.cursor="url("+A_6c(this)+"/bi/cursors/percentComplete.cur) 18 15, w-resize":this.dragger.style.cursor="url("+A_6c(this)+"/bi/cursors/percentComplete.cur), w-resize"):!A_5c(this,"edit")&&this.se()&&(this.dragger.style.cursor="w-resize"),this.ua=
A_b,this.$=A_c,this.getTooltip()!=A_&&this.showTooltip(a))};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.showResizeCursor",AdfDhtmlBaseProjectGanttPeer.prototype.Nn);AdfDhtmlBaseProjectGanttPeer.prototype.Qs=function(a){!this.ca&&!this.kc&&(this.dragger=A_3c(a),this.getTooltip()!=A_&&this.showTooltip(a))};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.showSummaryTooltip",AdfDhtmlBaseProjectGanttPeer.prototype.Qs);
AdfDhtmlBaseProjectGanttPeer.prototype.Jy=function(){if(!this.ca&&!this.kc){var a=this.getTooltip();a!=A_&&(a.style.display="none");this.dragger=A_}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.hideSummaryTooltip",AdfDhtmlBaseProjectGanttPeer.prototype.Jy);
AdfDhtmlBaseProjectGanttPeer.prototype.qz=function(a,b,c,d,e){c=A_4c(this);0<parseInt(a.style.left)+parseInt(a.offsetWidth)+10-(e.right-e.left+d)?a.style.top=parseInt(c.style.top)-parseInt(a.offsetHeight)+"px":a.style.left=parseInt(b)-parseInt(a.offsetWidth)-10+"px"};
AdfDhtmlBaseProjectGanttPeer.prototype.Mn=function(a){if(this.kc)a=A_3c(a),a=A_P(this,a,AdfDhtmlBaseGanttPeer.p),this.ib==A_&&(this.ib=document.createElement("div")),this.ib.setAttribute(AdfDhtmlBaseGanttPeer.p,a.getAttribute(AdfDhtmlBaseGanttPeer.p)),this.ib.index=0,this.ib.style.position="absolute",this.ib.style.border="solid 2px #FF6600",AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.ib.style.right=parseInt(a.style.right)-2+"px":this.ib.style.left=parseInt(a.style.left)-2+"px",this.ib.style.width=
parseInt(a.style.width)+5+"px",this.ib.style.top="50%",this.ib.style.marginTop="-10px",this.ib.style.height="15px",this.ib.style.display="block",a.parentNode.appendChild(this.ib);else if(!this.ca){this.dragger=A_3c(a);!A_5c(this,"edit")&&this.se()&&(this.dragger.style.cursor="move");this.Sk=this.dragger=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.p);this.On=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J);for(var b=0,c=this.dragger.parentNode;c;)b+=c.offsetLeft,c=c.offsetParent;this.Rs=a.clientX-
b;this.$=A_b;this.ua=A_c;this.getTooltip()!=A_&&this.showTooltip(a);this.hi(a);this.Ps=A_b}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.showMoveCursor",AdfDhtmlBaseProjectGanttPeer.prototype.Mn);AdfDhtmlBaseProjectGanttPeer.prototype.Pk=function(a){this.kc?this.ib!=A_&&(this.ib.removeAttribute(AdfDhtmlBaseGanttPeer.p),this.ib.style.display="none"):this.dragger!=A_&&this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_||AdfDhtmlBaseProjectGanttPeer.superclass.Pk.call(this,a)};
A_h("AdfDhtmlBaseProjectGanttPeer.prototype.resetCursor",AdfDhtmlBaseProjectGanttPeer.prototype.Pk);
AdfDhtmlBaseProjectGanttPeer.prototype.kz=function(a){var b=A_4c(this),c=a.target.parentNode;a.target.src=a.target.getAttribute("src_ovr");c=c.getAttribute("tooltip");if(b!=A_){b.style.display="block";AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(this.t(a))+3+"px":b.style.left=parseInt(this.t(a))+3+"px";b.style.top=parseInt(this.ha(a))-30+"px";var d="\x3cdiv style\x3d'position:relative;padding-bottom:3px;padding-right:3px'\x3e";AdfPage.PAGE.getLocaleContext().isRightToLeft()&&
(d="\x3cdiv style\x3d'position:relative;padding-bottom:3px;padding-right:3px'\x3e");d=d+c+"\x3c/div\x3e";A_bd(this,b,this.t(a));b.childNodes[0].childNodes[1].childNodes[1].innerHTML=d}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.showDepTooltip",AdfDhtmlBaseProjectGanttPeer.prototype.kz);AdfDhtmlBaseProjectGanttPeer.prototype.Iy=function(a){var b=A_4c(this);a.target.src=a.target.getAttribute("src_ena");b!=A_&&(b.style.display="none")};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.hideDepTooltip",AdfDhtmlBaseProjectGanttPeer.prototype.Iy);
AdfDhtmlBaseProjectGanttPeer.prototype.hi=function(a){if(!this.ai&&!A_5c(this,"split")&&!(this.qk||this.bl==A_b)){var b=this.getComponent().getClientId(),b=AdfPage.PAGE.findComponent(b+AdfDhtmlBaseGanttPeer.u+A_Mc(this));if(!(b!=A_&&b.isPopupVisible())&&(b=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.j),b!=A_&&("bar"==b||"split"==b))){var c=new Date(parseInt(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.vd))),b=new Date;b.setTime(c.getTime());var d=parseInt(this.Dr);if(0<d){var e=parseInt(AdfAgent.AGENT.getDomWindow().document.documentElement.scrollLeft),
e=parseInt(this.t(a))-e-(parseInt(AdfAgent.AGENT.getElementLeft(this.dragger))+e)+parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement())),d=Math.round(e/d);if(0!=d){var f=this.ok;"hour"==f?b.setMinutes(c.getMinutes()+d):b.setDate(c.getDate()+d)}}c=A_$c(this,AdfDhtmlBaseGanttPeer.Gp);c!=A_?b=c.getAsString(b):(b=A_ad(this,b),"hour"==f&&(b+="\x3c/b\x3e"));f=A_4c(this);f!=A_&&(f.style.display="block",AdfPage.PAGE.getLocaleContext().isRightToLeft()?f.style.right=parseInt(this.t(a))+3+"px":f.style.left=
parseInt(this.t(a))+3+"px",f.style.top=parseInt(this.ha(a))-30+"px",c="\x3cdiv style\x3d'position:relative;padding-bottom:3px;padding-right:3px'\x3e",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(c="\x3cdiv style\x3d'position:relative;padding-bottom:3px;padding-right:3px'\x3e"),c=c+b+"\x3c/div\x3e",A_bd(this,f,this.t(a)),f.childNodes[0].childNodes[1].childNodes[1].innerHTML=c)}}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.renderSplitTooltip",AdfDhtmlBaseProjectGanttPeer.prototype.hi);
function A_pd(a,b){var c=new Date(parseInt(a.dragger.parentNode.getAttribute("ctt"))),d=a.ok,e=new Date;e.setTime(c.getTime());var f=parseInt(a.Dr);if(0<f){var g=a.t(b)-a.Dc,f=Math.round(g/f);"hour"==d?e.setMinutes(c.getMinutes()+f):e.setDate(c.getDate()+f)}c=A_Gc(a);c!=A_&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.style.right=a.t(b)+"px":c.style.left=a.t(b)+"px",c.style.display="block",f="",f=a.getDomElement(),c.style.top=parseInt(a.ha(b))-30+"px",g=A_$c(a,AdfDhtmlBaseProjectGanttPeer.kD),
g!=A_?e=g.getAsString(e):(e=A_ad(a,e),"hour"==d&&(e+="\x3c/b\x3e")),f="\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' style\x3d'padding-bottom:3px;padding-right:3px'\x3e\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+f.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3eComplete Through\x3c/td\x3e\x3ctd  style\x3d'text-align:left;'\x3e"+e+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",A_bd(a,c,a.t(b)),c.childNodes[0].childNodes[1].childNodes[1].innerHTML=
f,AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.style.right=parseInt(c.style.right)-parseInt(c.offsetWidth)-10+"px":c.style.left=parseInt(c.style.left)-parseInt(c.offsetWidth)-10+"px")}
AdfDhtmlBaseProjectGanttPeer.prototype.ni=function(a){if(!this.ca&&this.dragger!=A_)if(a.cancelBubble=A_b,A_7c(a)){this.dragger!=A_&&(this.yb==A_&&(this.yb=document.createElement("div")),this.yb.setAttribute(AdfDhtmlBaseGanttPeer.p,this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.p)),this.yb.index=0,this.yb.style.position="absolute",this.yb.style.border="solid 2px #FF6600",AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.yb.style.right=parseInt(this.dragger.style.right)-2+"px":this.yb.style.left=
parseInt(this.dragger.style.left)-2+"px",this.yb.style.width=parseInt(this.dragger.style.width)+5+"px",this.yb.style.top="50%",this.yb.style.marginTop="-10px",this.yb.style.height="15px",this.yb.style.display="block",this.dragger.parentNode.appendChild(this.yb),this.Ye=this.dragger.style.border);this.Cn=this.t(a);this.rs=this.ha(a);var b=this.getComponent(),c=document.getElementById(b.getClientId()+"::hline"),d=document.getElementById(b.getClientId()+"::vline"),b=document.getElementById(b.getClientId()+
"::connector");c!=A_&&(d!=A_&&b!=A_)&&(c.display="block",d.display="block",AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.style.right=this.t(a)+"px":c.style.left=this.t(a)+"px",c.style.top=this.ha(a)+"px",c.style.display="block",AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=this.t(a)+"px":d.style.left=this.t(a)+"px",d.style.top=this.ha(a)+"px",d.style.display="block",AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(this.t(a))-6+"px":b.style.left=parseInt(this.t(a))-
6+"px",b.style.top=parseInt(this.ha(a))-13+"px",b.style.display="block",a=this.getTooltip(),a!=A_&&(a.style.display="none"),a=A_4c(this),a!=A_&&(a.style.display="none"),this.kc=A_b)}else{this.Dc=this.t(a);this.ca=A_b;c=this.getTooltip();c!=A_&&(c.style.display="none");c=A_4c(this);c!=A_&&(c.style.display="none");if(this.ua){if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_){this.Xa=this.dragger.style.width;AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.qg=this.dragger.style.right:this.qg=
this.dragger.style.left;return}this.G=AdfAgent.AGENT.getElementLeft(this.dragger.previousSibling);this.resizeGhostRight=this.resizeGhostBar=A_;for(var b=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),e=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q),c=0;c<this.dragger.parentNode.childNodes.length;c++)if(d=this.dragger.parentNode.childNodes[c],b==A_&&e==A_||b!=A_&&b==d.getAttribute(AdfDhtmlBaseGanttPeer.J)||e!=A_&&e==d.getAttribute(AdfDhtmlBaseGanttPeer.Q))d.getAttribute("part")==AdfDhtmlBaseGanttPeer.pc&&
this.resizeGhostBar==A_&&(this.resizeGhostBar=d.cloneNode(A_b)),d.getAttribute("part")==AdfDhtmlBaseGanttPeer.ud&&this.resizeGhostBar==A_?this.resizeGhostBar=d.cloneNode(A_b):d.getAttribute("part")==AdfDhtmlBaseGanttPeer.He&&this.resizeGhostRight==A_&&(this.resizeGhostRight=d.cloneNode(A_b));if(b!=A_||e!=A_)d="0",AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.dragger.parentNode.style.right&&(d=this.dragger.parentNode.style.right):this.dragger.parentNode.style.left&&(d=this.dragger.parentNode.style.left),
c=AdfAgent.AGENT.getComputedStyle(this.dragger.parentNode).marginTop,this.resizeGhostBar.style.marginTop=c,AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.resizeGhostBar.style.right=parseInt(this.resizeGhostBar.style.right)+parseInt(d)+"px":this.resizeGhostBar.style.left=parseInt(this.resizeGhostBar.style.left)+parseInt(d)+"px",this.resizeGhostBar.style.top="50%",this.resizeGhostRight.style.marginTop=c,AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.resizeGhostRight.style.right=parseInt(this.resizeGhostRight.style.right)+
parseInt(d)+"px":this.resizeGhostRight.style.left=parseInt(this.resizeGhostRight.style.left)+parseInt(d)+"px",this.resizeGhostRight.style.top="50%";AdfAgent.AGENT.setOpacity(this.resizeGhostBar,70);this.resizeGhostBar.style.Yy="absolute";this.resizeGhostBar.style.width=parseInt(this.resizeGhostBar.style.width)+5+"px";this.resizeGhostBar.style.cursor="w-resize";this.resizeGhostRight.style.Yy="absolute";this.resizeGhostRight.style.cursor="w-resize";c=this.dragger.parentNode;if(b!=A_||e!=A_)c=c.parentNode;
c.appendChild(this.resizeGhostBar);c.appendChild(this.resizeGhostRight);this.Xa=this.resizeGhostBar.style.width;this.resizeGhostWidth=parseInt(this.Xa)}else if(this.$){b=this.Ra();b.style.height="18px";for(var e=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),f=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q),c=0;c<this.dragger.parentNode.childNodes.length;c++)if(d=this.dragger.parentNode.childNodes[c],!(e!=A_&&e!=d.getAttribute(AdfDhtmlBaseGanttPeer.J))&&!(f!=A_&&f!=d.getAttribute(AdfDhtmlBaseGanttPeer.Q))){var g=
d.cloneNode(A_b);g.onmouseover=A_;g.onmouseout=A_;g.onmousedown=A_;g.style.cursor="move";if(d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ap||d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc||d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud)AdfPage.PAGE.getLocaleContext().isRightToLeft()?g.style.right="0px":g.style.left="0px";else if(d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Fl)AdfPage.PAGE.getLocaleContext().isRightToLeft()?
g.style.right=parseInt(this.dragger.style.width)+"px":g.style.left=parseInt(this.dragger.style.width)+"px";else if(d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He)AdfDhtmlBaseGanttPeer.F()?AdfPage.PAGE.getLocaleContext().isRightToLeft()?g.style.right=parseInt(this.dragger.style.width)+"px":g.style.left=parseInt(this.dragger.style.width)+"px":AdfPage.PAGE.getLocaleContext().isRightToLeft()?g.style.right=parseInt(this.dragger.style.width)+5+"px":g.style.left=parseInt(this.dragger.style.width)+
5+"px";else continue;b.firstChild.appendChild(g)}AdfAgent.AGENT.setOpacity(b,70);c=AdfAgent.AGENT.getComputedStyle(this.dragger).marginTop;d=c.indexOf("px");-1!=d&&(c=parseInt(c.substring(0,d)),b.style.marginTop=0-c+"px");b.style.width=parseInt(this.dragger.style.width)+6+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(A_jd(this,this.dragger))-parseInt(A_Jc(this.getDomElement()))+"px":b.style.left=parseInt(AdfAgent.AGENT.getElementLeft(this.dragger))-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+
"px";b.style.top=parseInt(AdfAgent.AGENT.getElementTop(this.dragger))-parseInt(AdfAgent.AGENT.getElementTop(this.getDomElement()))+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.G=parseInt(b.style.right)-A_Kc(this)+"px":this.G=parseInt(b.style.left)-A_Kc(this)+"px"}if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_){A_pd(this,a);this.dragger.parentNode.style.width=parseInt(this.dragger.parentNode.style.width)+5+"px";for(c=0;c<this.dragger.parentNode.parentNode.childNodes.length;c++)if(d=
this.dragger.parentNode.parentNode.childNodes[c],d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Fl&&d.getAttribute(AdfDhtmlBaseGanttPeer.p)==this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p)){d.style.width="0px";break}}else this.nc=new Date(parseInt(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.vd))),this.ue=new Date(parseInt(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Af))),A_8c(this,a)}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.startNormalDrag",AdfDhtmlBaseProjectGanttPeer.prototype.ni);
AdfDhtmlBaseProjectGanttPeer.prototype.Rx=function(a,b){if(this.ua&&1>=parseInt(this.resizeGhostBar.style.width))return A_b;this.lg(a,b);return A_c};
AdfDhtmlBaseProjectGanttPeer.prototype.lg=function(a){this.dragger==A_&&this.Na();if(this.ua){this.mergeWith=A_;var b=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),c=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q);if(b!=A_||c!=A_)for(i=0;i<this.dragger.parentNode.childNodes.length;i++){var d=this.dragger.parentNode.childNodes[i];if(b!=A_&&d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud){if(b!=d.getAttribute(AdfDhtmlBaseGanttPeer.J))if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){if(parseInt(this.dragger.style.right)+
parseInt(this.dragger.parentNode.style.right)<parseInt(d.style.right)+parseInt(this.dragger.parentNode.style.right)&&parseInt(this.resizeGhostBar.style.right)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.right)+parseInt(this.dragger.parentNode.style.right)){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);break}}else if(parseInt(this.dragger.style.left)+parseInt(this.dragger.parentNode.style.left)<parseInt(d.style.left)+parseInt(this.dragger.parentNode.style.left)&&parseInt(this.resizeGhostBar.style.left)+
parseInt(this.resizeGhostWidth)+a>parseInt(d.style.left)+parseInt(this.dragger.parentNode.style.left)){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);break}}else if(c!=A_&&d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc&&c!=d.getAttribute(AdfDhtmlBaseGanttPeer.Q))if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){if(parseInt(this.dragger.style.right)<parseInt(d.style.right)&&parseInt(this.resizeGhostBar.style.right)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.right)){this.mergeWith=
d.getAttribute(AdfDhtmlBaseGanttPeer.Q);break}}else if(parseInt(this.dragger.style.left)<parseInt(d.style.left)&&parseInt(this.resizeGhostBar.style.left)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.left)){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.Q);break}}this.resizeGhostWidth+=a;this.mergeWith==A_&&(0<this.resizeGhostWidth?(this.resizeGhostBar.style.width=this.resizeGhostWidth+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.resizeGhostRight.style.right=parseInt(this.resizeGhostBar.style.right)+
parseInt(this.resizeGhostBar.style.width)+"px":this.resizeGhostRight.style.left=parseInt(this.resizeGhostBar.style.left)+parseInt(this.resizeGhostBar.style.width)+"px"):this.resizeGhostBar.style.width="0px")}else if(this.$){this.mergeWith=A_;var e=this.Ra(),f=AdfPage.PAGE.getLocaleContext().isRightToLeft()?A_jd(this,e):AdfAgent.AGENT.getElementLeft(e),b=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),c=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q);if(b!=A_||c!=A_)for(i=0;i<this.dragger.parentNode.childNodes.length;i++)if(d=
this.dragger.parentNode.childNodes[i],b!=A_&&d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud){if(b!=d.getAttribute(AdfDhtmlBaseGanttPeer.J))if(AdfPage.PAGE.getLocaleContext().isRightToLeft())if(parseInt(this.dragger.style.right)<parseInt(d.style.right)){if(0<a&&parseInt(f)+parseInt(e.style.width)>parseInt(A_jd(this,d))){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);break}}else{if(0>a&&parseInt(f)<parseInt(A_jd(this,d))+parseInt(d.style.width)+5){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);
break}}else if(parseInt(this.dragger.style.left)<parseInt(d.style.left)){if(0<a&&parseInt(f)+parseInt(e.style.width)>parseInt(AdfAgent.AGENT.getElementLeft(d))){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);break}}else if(0>a&&parseInt(f)<parseInt(AdfAgent.AGENT.getElementLeft(d))+parseInt(d.style.width)+5){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.J);break}}else if(c!=A_&&d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc&&c!=d.getAttribute(AdfDhtmlBaseGanttPeer.Q)&&
(AdfPage.PAGE.getLocaleContext().isRightToLeft()&&parseInt(this.dragger.style.right)<parseInt(d.style.right)&&parseInt(f)>parseInt(A_jd(this,d))||!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&parseInt(this.dragger.style.left)<parseInt(d.style.left)&&parseInt(f)>parseInt(AdfAgent.AGENT.getElementLeft(d)))){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.Q);break}this.mergeWith==A_&&!this.ob&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right=parseInt(e.style.right)+a+"px":e.style.left=
parseInt(e.style.left)+a+"px")}};
AdfDhtmlBaseProjectGanttPeer.prototype.ug=function(a,b){this.Ra().style.display="block";var c=this.getDomElement().offsetWidth,d=A_Kc(this),e=A_L(this),f=this.md(),g=0;f.scrollHeight!=f.clientHeight&&(g=22);var h=AdfDhtmlBaseGanttPeer.sd;if(0<b&&c<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb+g||0>b&&this.t(a)<=d+AdfDhtmlBaseGanttPeer.Gb&&(!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&0<f.scrollLeft||AdfPage.PAGE.getLocaleContext().isRightToLeft())){if(0<b&&c<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb/2+g||0>
b&&this.t(a)<=d+AdfDhtmlBaseGanttPeer.Gb/2&&(!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&0<f.scrollLeft||AdfPage.PAGE.getLocaleContext().isRightToLeft()))h*=2;if(this.ii==A_||!this.ob||this.ob&&this.nk!=h)this.ob&&this.Na(),0<b?AdfDhtmlBaseGanttPeer.pk(this.getComponent().getClientId(),e,this.t(a),this.ha(a),h,0):AdfDhtmlBaseGanttPeer.pk(this.getComponent().getClientId(),e,this.t(a),this.ha(a),0-h,0),this.ob=A_b,this.nk=h}else this.ob&&this.Na();this.lg(b)};
A_h("AdfDhtmlBaseProjectGanttPeer.prototype.handleAutoScrollMove",AdfDhtmlBaseProjectGanttPeer.prototype.ug);
AdfDhtmlBaseProjectGanttPeer.prototype.Yh=function(a,b,c){if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_){if(0<b)if(this.t(a)<this.Dc){AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.dragger.style.right=parseInt(this.dragger.style.right)+b+"px":this.dragger.style.left=parseInt(this.dragger.style.left)+b+"px";for(i=0;i<this.dragger.parentNode.childNodes.length;i++)_child=this.dragger.parentNode.childNodes[i],_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb?_child.style.width=
parseInt(_child.style.width)+b+"px":_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?_child.style.right=parseInt(_child.style.right)+b+"px":_child.style.left=parseInt(_child.style.left)+b+"px")}else{if(c=AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(this.dragger.style.width)+parseInt(this.dragger.style.right)+b:parseInt(this.dragger.style.width)+parseInt(this.dragger.style.left)+b,AdfDhtmlBaseGanttPeer.F()&&(c+=5),
c<parseInt(this.dragger.parentNode.style.width)){for(i=0;i<this.dragger.parentNode.childNodes.length;i++)_child=this.dragger.parentNode.childNodes[i],_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?_child.style.right=parseInt(_child.style.right)+b+"px":_child.style.left=parseInt(_child.style.left)+b+"px"),AdfDhtmlBaseGanttPeer.F()&&_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&(_child.style.width=parseInt(_child.style.width)+
b+"px");this.dragger.style.width=parseInt(this.dragger.style.width)+b+"px"}}else if(5<parseInt(this.dragger.style.width)){for(i=0;i<this.dragger.parentNode.childNodes.length;i++)_child=this.dragger.parentNode.childNodes[i],_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?_child.style.right=parseInt(_child.style.right)+b+"px":_child.style.left=parseInt(_child.style.left)+b+"px"),AdfDhtmlBaseGanttPeer.F()&&_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==
AdfDhtmlBaseGanttPeer.Rb&&(_child.style.width=parseInt(_child.style.width)+b+"px");this.dragger.style.width=parseInt(this.dragger.style.width)+b+"px"}else for(i=0;i<this.dragger.parentNode.childNodes.length;i++)_child=this.dragger.parentNode.childNodes[i],_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&_child.style.width?(1>parseInt(_child.style.width)&&0<parseInt(this.dragger.style.width)&&(this.dragger.style.width=parseInt(this.dragger.style.width)+b+"px"),_child.style.width=
parseInt(_child.style.width)+b+"px"):_child.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He?AdfPage.PAGE.getLocaleContext().isRightToLeft()?0<parseInt(_child.style.right)+b&&(_child.style.right=parseInt(_child.style.right)+b+"px"):0<parseInt(_child.style.left)+b&&(_child.style.left=parseInt(_child.style.left)+b+"px"):_child.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?0<parseInt(_child.style.right)+b&&(_child.style.right=parseInt(_child.style.right)+
b+"px"):0<parseInt(_child.style.left)+b&&(_child.style.left=parseInt(_child.style.left)+b+"px"));A_pd(this,a)}else AdfDhtmlBaseProjectGanttPeer.superclass.Yh.call(this,a,b,c)};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.handleAutoScrollResize",AdfDhtmlBaseProjectGanttPeer.prototype.Yh);
AdfDhtmlBaseProjectGanttPeer.prototype.mk=function(a,b,c){this.kc||(!this.ca&&(this.dragger!=A_&&this.$&&this.Ps)&&this.hi(a),this.ca&&this.dragger!=A_&&(a.cancelBubble=A_b,this.ua?this.Yh(a,b,c):this.$&&this.ug(a,b,c),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)==A_&&A_8c(this,a)))};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.contNormalDrag",AdfDhtmlBaseProjectGanttPeer.prototype.mk);
AdfDhtmlBaseProjectGanttPeer.prototype.Nh=function(a){a.cancelBubble=A_b;this.Dc=0;this.ca=A_c;var b=A_Gc(this);b!=A_&&(b.style.display="none");b=A_4c(this);b!=A_&&(b.style.display="none");if(this.kc){if(this.Ih(a),!(this.yb==A_||this.ib==A_)){var b=this.yb.getAttribute(AdfDhtmlBaseGanttPeer.p),c=this.ib.getAttribute(AdfDhtmlBaseGanttPeer.p);b==A_||c==A_||(b!=c&&(a={actionType:"link"},a.taskIds=b+","+c,b=this.md(),b!=A_&&(a.scrollLeft=b.scrollLeft,a.scrollTop=b.scrollTop),b=this.getComponent(),a=
new A_R(b,a),a.setPartial(A_b),b.queueEvent(a)),this.yb.removeAttribute(AdfDhtmlBaseGanttPeer.p),this.ib.removeAttribute(AdfDhtmlBaseGanttPeer.p))}}else{a=this.getComponent();if(this.dragger!=A_){var b={},d=a.getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la,c=this.md();c!=A_&&(b.scrollLeft=parseInt(c.scrollLeft),b.scrollTop=parseInt(c.scrollTop));if(this.ua)if(this.ua=A_c,this.dragger.style.cursor="default",this.resizeGhostBar!=A_&&this.resizeGhostRight!=A_&&(this.resizeGhostBar.style.display=
"none",this.resizeGhostRight.style.display="none"),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)==A_){if(this.resizeGhostBar!=A_&&this.resizeGhostBar.style.width!=this.Xa){b.actionType=this.mergeWith!=A_?"merge":"resize";b.taskId=this.nd();for(var c=A_,d=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),e=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q),f=0;f<this.dragger.parentNode.childNodes.length;f++)if(e!=A_){if(this.dragger.parentNode.childNodes[f].getAttribute(AdfDhtmlBaseGanttPeer.j)==
AdfDhtmlBaseGanttPeer.pc&&e==this.dragger.parentNode.childNodes[f].getAttribute(AdfDhtmlBaseGanttPeer.Q)){c=this.dragger.parentNode.childNodes[f];break}}else if(this.dragger.parentNode.childNodes[f].getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc||d!=A_&&d==this.dragger.parentNode.childNodes[f].getAttribute(AdfDhtmlBaseGanttPeer.J)){c=this.dragger.parentNode.childNodes[f];break}d!=A_?AdfPage.PAGE.getLocaleContext().isRightToLeft()?(b.oldwidth=parseInt(this.dragger.parentNode.style.right)+
parseInt(c.style.right)+parseInt(this.Xa),b.newwidth=parseInt(this.dragger.parentNode.style.right)+parseInt(c.style.right)+parseInt(this.resizeGhostBar.style.width),b.newx=parseInt(this.dragger.parentNode.style.right),b.oldx=parseInt(this.dragger.parentNode.style.right)):(b.oldwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(c.style.left)+parseInt(this.Xa),b.newwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(c.style.left)+parseInt(this.resizeGhostBar.style.width),b.newx=parseInt(this.dragger.parentNode.style.left),
b.oldx=parseInt(this.dragger.parentNode.style.left)):(AdfPage.PAGE.getLocaleContext().isRightToLeft()?(b.oldwidth=parseInt(c.style.right)+parseInt(this.Xa),b.newwidth=parseInt(c.style.right)+parseInt(this.resizeGhostBar.style.width),b.newx=parseInt(c.style.right),b.oldx=parseInt(c.style.right)):(b.oldwidth=parseInt(c.style.left)+parseInt(this.Xa),b.newwidth=parseInt(c.style.left)+parseInt(this.resizeGhostBar.style.width),b.newx=parseInt(c.style.left),b.oldx=parseInt(c.style.left)),b.st=parseInt(c.getAttribute("st")));
this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_&&(b.splitId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J));this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_&&(b.recurId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q));this.mergeWith!=A_&&(b.mergeWith=this.mergeWith);b=new A_R(a,b);b.setPartial(A_b);a.queueEvent(b)}}else{if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()&&this.dragger.style.right!=this.qg||!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&
this.dragger.style.left!=this.qg||this.dragger.style.width!=this.Xa))b.actionType="pcResize",b.taskId=this.nd(),AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.left=parseInt(this.dragger.parentNode.style.right):b.left=parseInt(this.dragger.parentNode.style.left),b.fullwidth=parseInt(this.dragger.parentNode.style.width)-1,b.oldpc=parseInt(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)),b.oldwidth=parseInt(this.Xa)+parseInt(this.qg),AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.newwidth=
parseInt(this.dragger.style.width)+parseInt(this.dragger.style.right):b.newwidth=parseInt(this.dragger.style.width)+parseInt(this.dragger.style.left),b=new A_R(a,b),b.setPartial(A_b),a.queueEvent(b)}else if(this.$){this.$=A_c;c=this.Ra();for(d=c.firstChild;d.firstChild;)d.removeChild(d.firstChild);c.style.display="none";d=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la;d=AdfPage.PAGE.findComponent(d);f=0;f=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_||
this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_?parseInt(this.dragger.parentNode.parentNode.style.width):parseInt(this.dragger.parentNode.style.width);if(AdfPage.PAGE.getLocaleContext().isRightToLeft())var e=parseInt(c.style.right)-A_Kc(this)+"px",g=""!=this.dragger.style.width?parseInt(e)+parseInt(this.dragger.style.width):A_;else e=parseInt(c.style.left)-A_Kc(this)+"px",g=""!=this.dragger.style.width?parseInt(e)+parseInt(this.dragger.style.width):A_;if(e!=this.G&&(g==A_||0<g)&&parseInt(e)<=
f)b.actionType=this.mergeWith!=A_?"merge":"move",b.taskId=this.nd(),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_?(f=AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(this.dragger.parentNode.style.right):parseInt(this.dragger.parentNode.style.left),b.oldx=parseInt(this.G)+f,b.newx=parseInt(e)+d.getScrollLeft()-2,b.oldwidth=parseInt(c.style.width)+parseInt(this.G)+f,b.newwidth=parseInt(c.style.width)+parseInt(e)):(b.oldx=parseInt(this.G),AdfPage.PAGE.getLocaleContext().isRightToLeft()?
(b.newx=parseInt(e)-d.getScrollLeft()+2,b.oldwidth=parseInt(c.style.width)+parseInt(this.G),b.newwidth=parseInt(c.style.width)):(b.newx=parseInt(e)+d.getScrollLeft()-2,b.oldwidth=parseInt(c.style.width)+parseInt(this.G),b.newwidth=parseInt(c.style.width)+parseInt(e)+d.getScrollLeft())),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_&&(b.splitId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_&&(b.recurId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)),
this.mergeWith!=A_&&(b.mergeWith=this.mergeWith),b=new A_R(a,b),b.setPartial(A_b),a.queueEvent(b)}}this.qg=this.Xa=this.G=0;this.mergeWith=this.dragger=A_}};A_h("AdfDhtmlBaseProjectGanttPeer.prototype.endNormalDrag",AdfDhtmlBaseProjectGanttPeer.prototype.Nh);A_g=AdfDhtmlBaseProjectGanttPeer.prototype;A_g.nd=function(){if(this.dragger!=A_){var a=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.p);a==A_&&(a=this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p));return a}return A_};
A_g.pg=function(a){if(this.ca){this.Na();a.cancelBubble=A_b;var b=A_Gc(this);b!=A_&&(b.style.display="none");b=A_4c(this);b!=A_&&(b.style.display="none");this.dragger!=A_&&this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.ec)!=A_||(this.resizeGhostBar!=A_&&this.resizeGhostRight!=A_&&(this.resizeGhostBar.style.display="none",this.resizeGhostRight.style.display="none",this.resizeGhostBar.parentNode!=A_&&this.resizeGhostRight.parentNode!=A_&&(this.resizeGhostBar.parentNode.removeChild(this.resizeGhostBar),
this.resizeGhostRight.parentNode.removeChild(this.resizeGhostRight)),this.resizeGhostRight=this.resizeGhostBar=A_),this.Ra().style.display="none",this.dragger.style.cursor="default",this.Dc=0,this.ca=A_c,this.qg=this.Xa=this.G=0,this.mergeWith=this.dragger=A_,this.mU=0,this.$=this.ua=A_c,AdfDhtmlBaseProjectGanttPeer.superclass.pg.call(this,a))}};
A_g.Ih=function(a){this.kc=A_c;var b=this.getComponent(),c=document.getElementById(b.getClientId()+"::hline"),d=document.getElementById(b.getClientId()+"::vline"),b=document.getElementById(b.getClientId()+"::connector");this.yb!=A_&&(this.yb.style.display="none");this.ib!=A_&&(this.ib.style.display="none");c!=A_&&(d!=A_&&b!=A_)&&(c.style.width="0px",c.style.height="1px",c.style.display="none",d.style.width="1px",d.style.height="0px",d.style.display="none",b.style.display="none");AdfDhtmlBaseProjectGanttPeer.superclass.Ih.call(this,
a)};
A_g.my=function(a){var b=document.createElement("div");a.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&(a=a.parentNode);var c=Math.max(0,parseInt(a.style.left));AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(c=Math.max(0,parseInt(a.style.right)));for(var d=0;d<a.parentNode.childNodes.length;d++){var e=a.parentNode.childNodes[d];if("split"==e.getAttribute(AdfDhtmlBaseGanttPeer.j)){a.parentNode.style.left="0px";AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a.parentNode.style.right="0px");
e=a.parentNode.cloneNode(A_b);for(a=0;a<e.childNodes.length;a++)d=e.childNodes[a],d.style.position="absolute",AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=parseInt(d.style.right)-c+"px":d.style.left=parseInt(d.style.left)-c+"px",d.onmouseover="",d.onmouseout="";e.style.position="absolute";e.style.top="0px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right="0px":e.style.left="0px";b.appendChild(e);break}else if(e.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc||
e.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Fl||e.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ap||e.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He)e=e.cloneNode(A_b),e.style.top="0px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right=parseInt(e.style.right)-c+"px":e.style.left=parseInt(e.style.left)-c+"px",e.onmouseover="",e.onmouseout="",b.appendChild(e)}return b};
A_g.ks=function(a){AdfDhtmlBaseProjectGanttPeer.superclass.ks.call(this,a);a=AdfPage.PAGE.findComponent(a+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.Zb).getSelectedRowKeys();var b=A_c;this.Sa==A_&&(this.Sa=[]);for(var c=0;c<this.Sa.length;c++){var d=A_c,e;for(e in a)if(e==this.Sa[c]){d=A_b;break}d||(b=A_b,this.Sa[c]=A_)}for(e in a)-1==this.Sa.indexOf(e)&&(b=A_b,this.Sa.push(e));b&&A_nd(this)};
A_g.cs=function(){return[AdfDhtmlBaseGanttPeer.Gl,AdfDhtmlBaseGanttPeer.Il,AdfDhtmlBaseGanttPeer.Hl,AdfDhtmlBaseGanttPeer.Jl,AdfDhtmlBaseGanttPeer.tp,AdfDhtmlBaseGanttPeer.pp,AdfDhtmlBaseGanttPeer.mp,AdfDhtmlBaseGanttPeer.El,AdfDhtmlBaseGanttPeer.qp,AdfDhtmlBaseGanttPeer.np,AdfDhtmlBaseGanttPeer.rp,AdfDhtmlBaseProjectGanttPeer.Cu,AdfDhtmlBaseProjectGanttPeer.Du,AdfDhtmlBaseGanttPeer.Dp]};
A_g.Fg=function(a){var b=AdfDhtmlBaseProjectGanttPeer.superclass.Fg.call(this,a);if(!(0>b)){var c=[AdfDhtmlBaseGanttPeer.hu,AdfDhtmlBaseGanttPeer.Mu,AdfDhtmlBaseGanttPeer.iu,AdfDhtmlBaseGanttPeer.Nu];1<b?A_Zc(this,c,A_c):A_Zc(this,c,A_b);if(a=AdfPage.PAGE.findComponent(a+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseProjectGanttPeer.lu)){if(b=1==b)a:{b=AdfPage.PAGE.findComponent(A_L(this));if(b!=A_&&(c=b.getSelectedRowKeys(),c!=A_))for(var d in c){b=b.getClientId();d=document.getElementById(b+":"+d+":tsb");
if(d!=A_){d=d.childNodes;for(b=0;b<d.length;b++)if(d[b].getAttribute("tid")!=A_)for(var c=d[b].childNodes,e=0;e<c.length;e++){var f=c[e].getAttribute("part");if("split"==f||"linker"==f){b=A_b;break a}}}break}b=A_c}b?a.setProperty("disabled",A_c):a.setProperty("disabled",A_b)}}};
A_g.Ry=function(a){if("DIV"!=a.nodeName)return A_c;var b=AdfAgent.AGENT,c=b.getAttribute(a,AdfDhtmlBaseGanttPeer.p),d=b.getAttribute(a,AdfDhtmlBaseGanttPeer.vd);a=b.getAttribute(a,AdfDhtmlBaseGanttPeer.j);return c!=A_&&d!=A_&&("bar"==a||"splitbar"==a)};
A_g.Kd=function(a,b){var c=b.keyCode;(c==AdfKeyStroke.ARROWUP_KEY||c==AdfKeyStroke.ARROWDOWN_KEY)&&this.Va!=A_&&this.Va.removeAttribute("tabIndex");AdfDhtmlBaseProjectGanttPeer.superclass.Kd.call(this,a,b);if(c==AdfKeyStroke.ARROWUP_KEY||c==AdfKeyStroke.ARROWDOWN_KEY)c=a.getPeer().getDomElement().getAttribute("aria-activedescendant"),c!=A_&&(c=AdfAgent.AGENT.getElementById(c),c=A_Pc(this,c),c!=A_&&this.Ob(c))};A_g.xk=function(a){return(a=AdfDhtmlBaseGanttPeer.Oh(a))?this.bf(a):A_};
A_g.bf=function(a){var b=A_Pc(this,a);return b!=A_?b:A_P(this,a,AdfDhtmlBaseGanttPeer.p)};
A_g.Ob=function(a){this.Va!=A_&&(this.Va.removeAttribute("aria-label"),this.Va.removeAttribute("tabIndex"));this.Va=a;if(a!=A_){var b=A_Q(this,"ts"),b=b.concat(" "),c=a.getAttribute("data-n");c!=A_&&(b=A_id(this,b,A_Q(this,"tn"),c));c=a.getAttribute("data-tt");c!=A_&&(b=A_id(this,b,A_Q(this,"tt"),c));c=a.getAttribute(AdfDhtmlBaseGanttPeer.vd);if(c!=A_){var d=a.getAttribute("data-fst");d==A_&&(d=new Date(+c));b=A_id(this,b,A_Q(this,"start_time"),d)}c=a.getAttribute(AdfDhtmlBaseGanttPeer.Af);c!=A_&&
(d=a.getAttribute("data-fet"),d==A_&&(d=new Date(+c)),b=A_id(this,b,A_Q(this,"end_time"),d));c=a.getAttribute("ctt");c!=A_&&(d=a.getAttribute("data-fctt"),d==A_&&(d=new Date(+c)),b=A_id(this,b,A_Q(this,"ct"),d));c=a.getAttribute("ast");c!=A_&&(d=a.getAttribute("data-fast"),d==A_&&(d=new Date(+c)),b=A_id(this,b,A_Q(this,"ast"),d));c=a.getAttribute("aet");c!=A_&&(d=a.getAttribute("data-fest"),d==A_&&(d=new Date(+c)),b=A_id(this,b,A_Q(this,"aet"),d));c=this.Jr(a);c!=A_&&(b=A_id(this,b,A_Q(this,"lbl"),
c));d=a.getAttribute("data-pre");if(d!=A_){d=d.split(" ");c=A_Q(this,"ps").replace("{0}",d.length);b=b.concat(c);b=b.concat(" ");c=A_qd(this,d);for(d=0;d<c.length;d++){0<d&&(b=b.concat(", "));var e=c[d].getAttribute("data-n");e==A_&&(e=c[d].getAttribute(AdfDhtmlBaseGanttPeer.p));b=b.concat(e)}b=b.concat(". ")}d=a.getAttribute("data-suc");if(d!=A_){d=d.split(" ");c=A_Q(this,"ss").replace("{0}",d.length);b=b.concat(c);b=b.concat(" ");c=A_qd(this,d);for(d=0;d<c.length;d++)0<d&&(b=b.concat(", ")),e=c[d].getAttribute("data-n"),
e==A_&&(e=c[d].getAttribute(AdfDhtmlBaseGanttPeer.p)),b=b.concat(e);b=b.concat(". ")}b=b.concat(A_rd(this,a));a.setAttribute("aria-label",b);AdfDhtmlBaseProjectGanttPeer.superclass.Ob.call(this,a)}};A_g.Jr=function(a){a=a.parentNode.childNodes;for(var b=0;b<a.length;b++)if(a[b].getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ti)return a[b].textContent;return A_};
function A_rd(a,b){for(var c=[],d=b.childNodes,e=0;e<d.length;e++){var f=d[e],g=f.getAttribute(AdfDhtmlBaseGanttPeer.j);g!=A_&&g==AdfDhtmlBaseGanttPeer.ud&&c.push(f)}d="";if(0<c.length){d=A_Q(a,"sps").replace("{0}",c.length);for(e=0;e<c.length;e++)d=d.concat(" "),d=d.concat(A_Q(a,"sp").replace("{0}",e+1)),f=c[e].getAttribute(AdfDhtmlBaseGanttPeer.vd),d=A_id(a,d,A_Q(a,"start_time"),new Date(+f)),f=c[e].getAttribute(AdfDhtmlBaseGanttPeer.Af),d=A_id(a,d,A_Q(a,"end_time"),new Date(+f))}return d}
function A_qd(a,b){for(var c=A_Ec(a).childNodes,d=c.length,e=[],f=A_c,g=0;g<d&&!f;++g){var h=c[g].rows,l=0;h!=A_&&(l=h.length);for(var m=0;m<l;++m){var n=a.xk(h[m]);if(n!=A_)for(var p=n.getAttribute(AdfDhtmlBaseGanttPeer.p),q=0;q<b.length;q++)if(b[q]==p){e.push(n);break}if(e.length==b.length){f=A_b;break}}}return e};