var A_U=AdfRichUIPeer.createPeerClass(A_S,"AdfDhtmlBaseSchedulingGanttPeer");A_h("AdfDhtmlBaseSchedulingGanttPeer",A_U);
A_U.InitSubclass=function(){this.Sb="resId";this.Nl="resName";this.Ql="travel";this.pD="_createRes";this.op="_bCreateRes";this.Pu="_updateRes";this.wu="_snapTo";this.El="_bDelete";this.tE="_cpSnapTo";this.Vi="_cpProp";this.Vt="_dpLn";this.lp="rPopup";this.jp="_rcp";this.kp="_rpp";var a=this.Bf={};a[this.pD]="createResource";a[this.op]="createResource";a[this.Pu]="updateResource";a[this.Vt]="dependency";a=this.yf={};a[this.tE]="snapTo";a[this.wu]="snapTo";a[this.Vi]="properties";a[this.jp]="create";
a[this.kp]="paste";this.IS=this.Ye=this.dragger=this.li=A_;this.$=this.ua=this.ca=A_c;this.G=this.Xa=0;this.ue=this.nc=A_;this.Jk=A_c};A_h("AdfDhtmlBaseSchedulingGanttPeer.InitSubclass",A_U.InitSubclass);function A_vd(a){a.li==A_&&(a.li=[]);return a.li}A_U.prototype.ci=A_f(A_b);
A_U.prototype.HandleComponentAction=function(a){A_U.superclass.HandleComponentAction.call(this,a);var b=a.getSource();if(!b.getDisabled()){var b=b.getClientId(),c=A_U.Bf,d;for(d in c)if(0<=b.indexOf(d)){this.ff(c[d]);a.cancel();return}c=A_U.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("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentAction",A_U.prototype.HandleComponentAction);A_U.prototype.Pr=function(){var a=this.getDomElement().getAttribute("rcrcm");return a!=A_?a:A_U.lp};
A_U.prototype.ab=function(a){A_U.superclass.ab.call(this,a);var b=A_L(this);if(this.Jk){if(0<A_vd(this).length){a=a.getNativeEvent();var c=this.getComponent();this.showContextMenu(a,A_Mc(this),c,A_,A_,b)}this.Jk=A_c}else c=a.getNativeEventTarget(),this.yj(AdfPage.PAGE.findComponent(b).getPeer().getDomElement(),c)&&A_N(this,c)!=A_&&(a=a.getNativeEvent(),c=this.getComponent(),this.showContextMenu(a,this.Pr(),c,A_,A_,b),this.Eb=a)};
A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentContextMenu",A_U.prototype.ab);A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentContextMenu",A_U.prototype.ab);A_U.prototype.qf=function(a){A_U.superclass.qf.call(this,a);a=A_vd(this);for(var b=0;b<a.length;b++)a[b].style.border="solid 1px #000000"};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentPopupOpened",A_U.prototype.qf);A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentPopupOpened",A_U.prototype.qf);
A_U.prototype.rd=function(a){A_U.superclass.qf.call(this,a);var b=this;setTimeout(function(){b.Eb=A_},0)};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentPopupClosed",A_U.prototype.rd);A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentPopupClosed",A_U.prototype.rd);A_U.prototype.jz=function(a){this.Jk=!AdfAgent.AGENT.isLeftButton(a)};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.setRightClickOnTask",A_U.prototype.jz);
A_U.prototype.ff=function(a){var b=AdfPage.PAGE,c=this.getComponent(),d=A_;if("legend"!=a){var d={},e=A_vd(this);e.reverse();for(var f=e.pop(),g="",h="";f!=A_;)""!=g&&(g+=" "),""!=h&&(h+=" "),g+=f.getAttribute(AdfDhtmlBaseGanttPeer.p),h+=A_N(this,f),f.style.border=this.Ye,f=e.pop();d.taskId=g;d.rowKeys=h}a=new A_O(c,a,d);b.queueEventToServer(a)};
A_U.prototype.Pn=function(a){var b=this.ca;A_U.superclass.Pn.call(this,a);if(!b&&this.dragger!=A_&&this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_){b=this.Ra();b.style.height="12px";var c=b.childNodes;c[0].style.height="12px";c[1].style.height="7px";c[2].style.width=Math.max(0,parseInt(this.dragger.parentNode.style.width)-5)+"px";for(c=0;c<this.dragger.parentNode.childNodes.length;c++){var d=this.dragger.parentNode.childNodes[c],d=d.cloneNode(A_b);d.onmouseover=A_;d.onmouseout=A_;d.onmousedown=
A_;b.firstChild.appendChild(d)}for(c=0;c<this.dragger.childNodes.length;c++)d=this.dragger.childNodes[c],d.style.display="none";b.style.width=parseInt(this.dragger.parentNode.style.width)+"px";this.G=AdfAgent.AGENT.getElementLeft(this.dragger.parentNode);AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(this.G)-parseInt(A_Jc(this.getDomElement()))+"px":b.style.left=parseInt(this.G)-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+"px";b.style.top=parseInt(this.ha(a))-
10+"px"}};A_U.prototype.create=function(){this.uj(this.Eb,"cmCreate");this.Eb=A_};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.create",A_U.prototype.create);A_U.prototype.As=function(){this.uj(this.Eb,"cmPaste");this.Eb=A_};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.paste",A_U.prototype.As);A_U.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)};
A_U.prototype.gi=function(){var a="",b="";if(this.C!=A_){var a=A_N(this,this.C),b=this.C.getAttribute(AdfDhtmlBaseGanttPeer.p),c={actionType:"properties"};c.taskId=b;c.rowKey=a;a=this.getComponent();c=new A_R(a,c);c.setPartial(A_b);a.queueEvent(c)}};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.properties",A_U.prototype.gi);A_U.prototype.kf=function(a){this.Ye=a.style.border;A_wd(this,a)};A_U.prototype.Kh=function(a){this.In();a.style.border=this.Ye};
function A_xd(a,b){var c=b.getAttribute(AdfDhtmlBaseGanttPeer.p),d=b.getAttribute(AdfDhtmlBaseGanttPeer.Q);if(c==A_)return-1;for(var e=A_vd(a),f=e.length-1;0<=f;f--)if(e[f].getAttribute(AdfDhtmlBaseGanttPeer.p)==c&&(d==A_||e[f].getAttribute(AdfDhtmlBaseGanttPeer.Q)==A_||e[f].getAttribute(AdfDhtmlBaseGanttPeer.Q)==d))return f;return-1}
function A_wd(a,b){b=A_yd(a,b);var c="add",d=A_xd(a,b);if(-1<d){if(a.Jk){c={};c.taskId=b.getAttribute(AdfDhtmlBaseGanttPeer.p);d=a.getComponent();c=new A_O(d,"setCurrent",c);AdfPage.PAGE.queueEventToServer(c);return}A_zd(a,b);c=a.li.slice(0,d);d=a.li.slice(d+1);a.li=c.concat(d);c={};c.taskId=b.getAttribute(AdfDhtmlBaseGanttPeer.p);d=a.getComponent();c=new A_O(d,"deselect",c);AdfPage.PAGE.queueEventToServer(c);c="remove"}else{if("1px"!=AdfAgent.AGENT.getComputedStyle(b).borderTopWidth){var d=AdfAgent.AGENT.getComputedStyle(b).marginTop,
e=d.indexOf("px");-1!=e&&(d=parseInt(d.substring(0,e)),b.style.marginTop=d-1+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(b.style.right)-1+"px":b.style.left=parseInt(b.style.left)-1+"px"}b.style.border="solid 1px #000000";b.style.zIndex=3;e=A_vd(a);e.push(b);a.C=b}for(var e=A_vd(a),d="",f=e.length-1;0<=f;f--)""!=d&&(d+=" "),d+=e[f].getAttribute(AdfDhtmlBaseGanttPeer.p);e=b.parentNode.getAttribute(A_U.Sb);if(e==A_)for(f=b.parentNode.parentNode;f!=A_;){if(f.getAttribute(A_U.Sb)!=
A_){e=f.getAttribute(A_U.Sb);break}f=f.parentNode}var g=A_N(a,b),h=b.getAttribute(AdfDhtmlBaseGanttPeer.p),f=a.getComponent(),l=b.getAttribute("data-tooltip")==A_?b.parentNode.id:A_,c=new A_td(f,e,g,h,d,c,l);c.setPartial(A_b);f.queueEvent(c)}
function A_zd(a,b){b.style.border=a.Ye;var c=AdfAgent.AGENT.getComputedStyle(b).marginTop,d=c.indexOf("px");-1!=d&&(c=parseInt(c.substring(0,d)),b.style.marginTop=c+1+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(b.style.right)+1+"px":b.style.left=parseInt(b.style.left)+1+"px";b.style.zIndex=2}
function A_Ad(a,b){for(var c=b.getNativeEvent(),d=b.getNativeEventTarget(),e=d.getAttribute("resid");e==A_&&d!=A_&&d!=a.getDomElement();)d=d.parentElement,d!=A_&&(e=d.getAttribute("resid"));if(e!=A_){var d=A_Ic(a,c),f={};f.rid=e;f.location=d;a.En=f;a.Dn=a.Uh(c)}}
A_U.prototype.ia=function(a){if(this.En!=A_&&this.Dn!=A_){var b=this.getComponent(),c=a.getNativeEvent(),c=this.Uh(c),c=this.Dn.x==c.x&&this.Dn.y==c.y?new A_Bd(b,this.En):new A_Bd(b);c.setPartial(A_b);b.queueEvent(c)}this.Dn=this.En=A_;A_U.superclass.ia.call(this,a)};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.HandleComponentClick",A_U.prototype.ia);
A_U.prototype.DispatchComponentEvent=function(a){a.getType()==AdfSelectionEvent.SELECTION_EVENT_TYPE&&!(a instanceof A_Cd)&&this.En!=A_&&(a.cancel(),(new A_Cd(a)).queue());A_U.superclass.DispatchComponentEvent.call(this,a)};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.DispatchComponentEvent",A_U.prototype.DispatchComponentEvent);A_U.prototype.In=function(){for(var a=A_vd(this);0<a.length;){var b=a.pop();A_zd(this,b)}};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.removeSelectedTasks",A_U.prototype.In);
A_U.iM=function(a,b){for(var c=AdfPage.PAGE.findComponent(a).getPeer(),d=A_vd(c),e=d.length=0;e<b.length;e++){var f=A_Qc(c,b[e]);if(f!=A_&&f.Ia!=A_){var g=A_U.fy(f.Ia.firstChild.firstChild,b[e+1]);if(g!=A_){g.style.border="solid 1px #000000";var f=AdfAgent.AGENT.getComputedStyle(g).marginTop,h=f.indexOf("px");-1!=h&&(f=parseInt(f.substring(0,h)),g.style.marginTop=f-1+"px");g.style.zIndex=3;d.push(g)}e++}}g!=A_&&(this.C=g)};A_h("AdfDhtmlBaseSchedulingGanttPeer.setSelectedTasks",A_U.iM);
A_U.fy=function(a,b){if("DIV"==a.nodeName){var c=AdfAgent.AGENT.getAttribute(a,AdfDhtmlBaseGanttPeer.p);if(c!=A_&&c==b)return a}for(c=0;c<a.childNodes.length;c++){var d=A_U.fy(a.childNodes[c],b);if(d!=A_)return d}return A_};A_U.prototype.Nn=function(a){this.ca||(this.dragger=A_3c(a),A_7c(a)||(!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("AdfDhtmlBaseSchedulingGanttPeer.prototype.showResizeCursor",A_U.prototype.Nn);
A_U.prototype.Mn=function(a){if(!this.ca){this.dragger=A_3c(a);!A_5c(this,"edit")&&this.se()&&(this.dragger.style.cursor="move");if("IMG"==this.dragger.nodeName||this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb)this.dragger=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.p).firstChild;this.bz=this.Ye=this.dragger.style.border;this.Sk=this.dragger.parentNode;A_7c(a)||(this.$=A_b,this.ua=A_c,this.getTooltip()!=A_&&this.showTooltip(a))}};
A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.showMoveCursor",A_U.prototype.Mn);
A_U.prototype.Ts=function(a){if(!this.ca){this.ld=this.dragger.parentNode.parentNode.getAttribute(A_U.Sb);this.Ph=this.dragger.parentNode.parentNode.getAttribute(A_U.Nl);this.sk=A_N(this,this.dragger.parentNode.parentNode);this.Ph==A_&&(this.Ph=this.ld);this.al=this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p);a.cancelBubble=A_b;this.Dc=this.t(a);this.Ck=this.ha(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)));
var b=this.getTooltip();b!=A_&&(b.style.display="none");if(this.dragger!=A_&&this.$){b=this.Ra();b.style.height="15px";var c=b.childNodes;c[0].style.height="15px";c[1].style.height="10px";c[2].style.width=Math.max(0,parseInt(this.dragger.parentNode.style.width)-5)+"px";for(c=0;c<this.dragger.parentNode.childNodes.length;c++){var d=this.dragger.parentNode.childNodes[c].cloneNode(A_c);b.firstChild.appendChild(d)}this.G=AdfAgent.AGENT.getElementLeft(this.dragger.parentNode);b.style.width=this.dragger.parentNode.style.width;
AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(this.G)-parseInt(A_Jc(this.getDomElement()))+"px":b.style.left=parseInt(this.G)-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+"px";b.style.top=parseInt(this.ha(a))-10+"px";b.style.opacity=0.75;b.style.filter="alpha(opacity\x3d75)";this.G=this.dragger.parentNode.style.left;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(this.G=this.dragger.parentNode.style.right)}}};
A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.startNormalEntireDrag",A_U.prototype.Ts);A_U.prototype.Ar=function(a,b,c){this.ca&&(a.cancelBubble=A_b,this.$&&(this.ms(0,b,c),this.ug(a,b,c)),A_8c(this,a))};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.contNormalEntireDrag",A_U.prototype.Ar);
A_U.prototype.Ir=function(a){a.cancelBubble=A_b;this.Ck=this.Dc=0;this.ca=A_c;var b=A_Gc(this);b!=A_&&(b.style.display="none");b=this.getComponent();if(this.dragger!=A_){var c={},d=this.md();d!=A_&&(c.scrollLeft=parseInt(d.scrollLeft),c.scrollTop=parseInt(d.scrollTop));if(this.$){for(var e=this.Ra(),d=e.firstChild;d.firstChild;)d.removeChild(d.firstChild);e.style.display="none";this.$=A_c;this.dragger.style.cursor="default";var f=AdfAgent.AGENT.getElementLeft(this.getDomElement()),d=parseInt(e.style.left)+
(parseInt(this.dragger.parentNode.style.left)-parseInt(this.G))+parseInt(f)+this.Hc;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(d=parseInt(e.style.right)+(parseInt(this.dragger.parentNode.style.right)-parseInt(this.G))+parseInt(A_Jc(this.getDomElement()))+this.Hc);if(d!=A_&&this.G!=A_&&(parseInt(this.G)!=parseInt(e.style.left)+parseInt(f)&&!AdfPage.PAGE.getLocaleContext().isRightToLeft()||parseInt(this.G)!=parseInt(e.style.right)+parseInt(A_Jc(this.getDomElement()))&&AdfPage.PAGE.getLocaleContext().isRightToLeft()))a=
A_Dd(this,a),e=A_,e=a==A_?this.ld:a.id,c.actionType="move",c.taskId=this.al,c.fromResourceId=this.ld,c.toResourceId=e,AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.oldx=parseInt(this.dragger.parentNode.style.right):c.oldx=parseInt(this.dragger.parentNode.style.left),c.newx=d,c.rowKeys=this.sk+" "+a.P,c=new A_R(b,c),c.setPartial(A_b),b.queueEvent(c)}this.dragger=A_;this.G=-1;this.Hc=0}};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.endNormalEntireDrag",A_U.prototype.Ir);
A_U.prototype.se=function(){var a=A_;if(this.dragger!=A_){var b=A_yd(this,this.dragger);b!=A_&&(a=b.getAttribute("ea"))}return a==A_?A_b:A_c};A_U.prototype.Ek=function(a){var b=A_yd(this,this.dragger.parentNode);if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)==A_||!this.ua)A_7c(a)?AdfAgent.AGENT.disableUserSelect(this.getDomElement()):-1==A_xd(this,b)&&!AdfDhtmlBaseGanttPeer.F()&&this.In(),A_wd(this,b)};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.handleSelectTask",A_U.prototype.Ek);
function A_yd(a,b){var c=A_P(a,b,AdfDhtmlBaseGanttPeer.p);if(c==A_)return A_;c.getAttribute(AdfDhtmlBaseGanttPeer.j)!=A_&&(c=A_P(a,c.parentNode,AdfDhtmlBaseGanttPeer.p));return c}
A_U.prototype.ni=function(a){if(this.dragger!=A_&&!this.ca){a.cancelBubble=A_b;var b=A_yd(this,this.dragger.parentNode);this.ld=b.parentNode.getAttribute(A_U.Sb);this.Ph=b.parentNode.getAttribute(A_U.Nl);this.sk=A_N(this,b.parentNode);this.Ph==A_&&(this.Ph=this.ld);this.al=b.getAttribute(AdfDhtmlBaseGanttPeer.p);this.Dc=this.t(a);this.Ck=this.ha(a);this.ca=A_b;this.nc=new Date(parseInt(b.getAttribute(AdfDhtmlBaseGanttPeer.vd)));this.ue=new Date(parseInt(b.getAttribute(AdfDhtmlBaseGanttPeer.Af)));
var c=this.getTooltip();c!=A_&&(c.style.display="none");if(this.dragger!=A_)if(this.ua){this.In();var d=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J),e=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q);a=A_;for(var f=0;f<b.childNodes.length;f++)if(c=b.childNodes[f],"DIV"==c.nodeName&&("travel"==c.getAttribute("part")&&(a=c),d==A_&&e==A_||d!=A_&&d==c.getAttribute(AdfDhtmlBaseGanttPeer.J)||e!=A_&&e==c.getAttribute(AdfDhtmlBaseGanttPeer.Q)))if(c.getAttribute("part")==AdfDhtmlBaseGanttPeer.pc||
c.getAttribute("part")==AdfDhtmlBaseGanttPeer.ud)this.resizeGhost=c.cloneNode(A_b);AdfAgent.AGENT.setOpacity(this.resizeGhost,70);this.resizeGhost.style.Yy="absolute";this.resizeGhost.style.top=AdfAgent.AGENT.getComputedStyle(b).top;this.resizeGhost.style.marginTop=AdfAgent.AGENT.getComputedStyle(b).marginTop;d!=A_?(AdfPage.PAGE.getLocaleContext().isRightToLeft()?a!=A_&&parseInt(a.style.right)+parseInt(a.style.width)==parseInt(this.resizeGhost.style.right)&&(this.resizeGhost.style.right=a.style.right):
a!=A_&&parseInt(a.style.left)+parseInt(a.style.width)==parseInt(this.resizeGhost.style.left)&&(this.resizeGhost.style.left=a.style.left),c=0,this.dragger.previousSibling!=A_&&(this.dragger.previousSibling.previousSibling!=A_&&this.dragger.previousSibling.previousSibling.getAttribute(AdfDhtmlBaseGanttPeer.j)==A_U.Ql&&a!=A_)&&(c=a.style.width),this.resizeGhost.style.width=parseInt(this.resizeGhost.style.width)+parseInt(c)+"px",this.resizeGhost.style.width=parseInt(this.resizeGhost.style.width)+5+"px"):
(AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.resizeGhost.style.right=a!=A_?parseInt(b.style.right)-parseInt(a.style.width)+"px":b.style.right:this.resizeGhost.style.left=a!=A_?parseInt(b.style.left)+parseInt(a.style.width)+"px":b.style.left,this.resizeGhost.style.width=a!=A_?parseInt(b.style.width)-parseInt(a.style.width)+"px":b.style.width);this.resizeGhost.style.cursor="w-resize";b.parentNode.appendChild(this.resizeGhost);for(b=0;b<this.dragger.childNodes.length;b++)c=this.dragger.childNodes[b],
c.style.display="none";this.Xa=this.resizeGhost.style.width;this.resizeGhostWidth=parseInt(this.Xa)}else if(this.$)if(AdfAgent.AGENT.disableUserSelect(this.getDomElement()),d=this.Ra(),d.style.height="15px",this.dragger=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.j),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_||this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_){for(f=0;f<b.childNodes.length;f++)c=b.childNodes[f],e=c.cloneNode(A_b),e.onmouseover=A_,e.onmouseout=A_,e.onmousedown=A_,e.style.cursor=
"move",c.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ap||c.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.pc||c.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud?AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right="0px":e.style.left="0px":c.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Fl?AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right=parseInt(this.dragger.style.width)+"px":e.style.left=parseInt(this.dragger.style.width)+
"px":c.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.He&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.style.right=parseInt(this.dragger.style.width)+5+"px":e.style.left=parseInt(this.dragger.style.width)+5+"px"),d.firstChild.appendChild(e);AdfAgent.AGENT.setOpacity(d,70);d.style.width=parseInt(this.dragger.style.width)+5+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=parseInt(AdfAgent.AGENT.getElementLeft(this.dragger))-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))-
4+"px":d.style.left=parseInt(AdfAgent.AGENT.getElementLeft(this.dragger))-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))-4+"px";d.style.top=parseInt(AdfAgent.AGENT.getElementTop(this.dragger))-parseInt(AdfAgent.AGENT.getElementTop(this.getDomElement())-8)+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.G=this.dragger.style.right:this.G=this.dragger.style.left}else{c=d.childNodes;c[0].style.height="15px";c[1].style.height="10px";c[2].style.width=Math.max(0,parseInt(b.style.width)-
5)+"px";for(f=0;f<b.childNodes.length;f++)c=b.childNodes[f],e=c.cloneNode(A_b),e.onmouseover=A_,e.onmouseout=A_,e.onmousedown=A_,d.firstChild.appendChild(e);AdfAgent.AGENT.setOpacity(d,70);d.style.width=parseInt(b.style.width)+"px";AdfPage.PAGE.getLocaleContext().isRightToLeft()?(this.G=A_jd(this,b),d.style.right=parseInt(this.G)-parseInt(A_Jc(this.getDomElement()))+"px"):(this.G=AdfAgent.AGENT.getElementLeft(b),d.style.left=parseInt(this.G)-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+
"px");d.style.top=parseInt(this.ha(a))-10+"px"}}};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.startNormalDrag",A_U.prototype.ni);A_U.prototype.Rx=function(a,b){if(this.ua&&5>=parseInt(this.resizeGhost.style.width))return A_b;this.lg(a,b);return A_c};
A_U.prototype.lg=function(a){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)&&(!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&parseInt(this.dragger.style.left)<parseInt(d.style.left)&&
parseInt(this.resizeGhost.style.left)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.left)||AdfPage.PAGE.getLocaleContext().isRightToLeft()&&parseInt(this.dragger.style.right)<parseInt(d.style.right)&&parseInt(this.resizeGhost.style.right)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.right))){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.left)<parseInt(d.style.left)&&parseInt(this.resizeGhost.style.left)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.left)||AdfPage.PAGE.getLocaleContext().isRightToLeft()&&parseInt(this.dragger.style.right)<parseInt(d.style.right)&&parseInt(this.resizeGhost.style.right)+parseInt(this.resizeGhostWidth)+a>parseInt(d.style.right))){this.mergeWith=d.getAttribute(AdfDhtmlBaseGanttPeer.Q);break}}this.resizeGhostWidth+=a;this.mergeWith==A_&&(this.resizeGhost.style.width=0<
this.resizeGhostWidth?this.resizeGhostWidth+"px":"2px")}else 0!=a&&(this.Hc==A_&&(this.Hc=0),this.Hc+=a)};
A_U.prototype.ms=function(a,b,c){a=this.Ra();a.style.display="block";_x=b;AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=0>parseInt(a.style.right)+_x?"0px":parseInt(a.style.right)+_x+"px":a.style.left=0>parseInt(a.style.left)+_x?"0px":parseInt(a.style.left)+_x+"px";this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)==A_&&this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)==A_&&(a.style.top=0>parseInt(a.style.top)+c?"0px":parseInt(a.style.top)+c+"px")};
A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.handleTaskbarMove",A_U.prototype.ms);
A_U.prototype.ug=function(a,b,c){var d=A_L(this),e=this.md(),f=this.getDomElement().offsetWidth,g=A_Kc(this),h=0,l=0;e.scrollHeight!=e.clientHeight&&(l=22);if(0<=b&&f<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb+l)h=f<=this.t(a)+AdfDhtmlBaseGanttPeer.Gb/2+l?2*AdfDhtmlBaseGanttPeer.sd:AdfDhtmlBaseGanttPeer.sd;else if(0>=b&&this.t(a)<=g+AdfDhtmlBaseGanttPeer.Gb&&(!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&0<e.scrollLeft||AdfPage.PAGE.getLocaleContext().isRightToLeft()))h=this.t(a)<=g+AdfDhtmlBaseGanttPeer.Gb/
2?0-2*AdfDhtmlBaseGanttPeer.sd:0-AdfDhtmlBaseGanttPeer.sd;b=0;var f=this.getHeight(),g=0,l=this.getComponent(),m=l.getClientId()+"::majorAxis",m=document.getElementById(m);m==A_&&(m=l.getClientId()+"::minorAxis",m=document.getElementById(m));if(m!=A_)if(m.offsetParent)for(;m.offsetParent;)g+=m.offsetTop,m=m.offsetParent;else m.y&&(g+=m.y);g+=36;l=0;document.getElementById(this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.ND)!=A_&&(l=AdfDhtmlBaseGanttPeer.KB);m=0;e.scrollWidth!=
e.clientWidth&&(m=22);0<=c&&f<=this.ha(a)+AdfDhtmlBaseGanttPeer.Gb+l+m?b=f<=this.ha(a)+AdfDhtmlBaseGanttPeer.Gb/2+l+m?2*AdfDhtmlBaseGanttPeer.sd:AdfDhtmlBaseGanttPeer.sd:0>=c&&(this.ha(a)<=g+AdfDhtmlBaseGanttPeer.Gb&&0<e.scrollTop)&&(b=this.ha(a)<=g+AdfDhtmlBaseGanttPeer.Gb/2?0-2*AdfDhtmlBaseGanttPeer.sd:0-AdfDhtmlBaseGanttPeer.sd);if(0!=h||0!=b){if(this.ii==A_||!this.ob||this.ob&&(this.gJ!=h||this.hJ!=b))this.ob&&this.Na(),AdfDhtmlBaseGanttPeer.pk(this.getComponent().getClientId(),d,this.t(a),this.ha(a),
h,b),this.ob=A_b,this.gJ=h,this.hJ=b}else this.Na()};A_U.prototype.mk=function(a,b,c){this.ca&&(a.cancelBubble=A_b,this.ua?(this.Na(),this.Yh(a,b,c)):this.$&&(this.ms(0,b,c),this.ug(a,b,c)),A_8c(this,a))};
A_U.prototype.Nh=function(a){a.cancelBubble=A_b;this.Ck=this.Dc=0;this.ca=A_c;var b=A_Gc(this);b!=A_&&(b.style.display="none");if(A_7c(a))for(b=0;b<this.dragger.childNodes.length;b++)this.dragger.childNodes[b].style.display="block";else if(b=this.getComponent(),this.dragger!=A_){var c={},d=this.md();d!=A_&&(c.scrollLeft=parseInt(d.scrollLeft),c.scrollTop=parseInt(d.scrollTop));d=this.Ra();if(this.ua){this.ua=A_c;this.dragger.style.cursor="default";var e=0;this.dragger!=A_&&(this.dragger.parentNode!=
A_&&this.dragger.parentNode.childNodes[0]!=A_&&this.dragger.parentNode.childNodes[0].getAttribute(AdfDhtmlBaseGanttPeer.j)==A_U.Ql)&&(e=parseInt(this.dragger.parentNode.childNodes[0].style.width));this.dragger.previousSibling!=A_&&this.dragger.previousSibling.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud?this.resizeGhost.style.width!=this.Xa&&(c.actionType="resize",c.taskId=this.al,c.resourceId=this.ld,this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_&&(c.splitId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)),
this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_&&(c.recurId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)),AdfPage.PAGE.getLocaleContext().isRightToLeft()?(c.oldwidth=parseInt(this.dragger.parentNode.style.right)+parseInt(this.Xa)+parseInt(this.dragger.previousSibling.style.right),c.newwidth=parseInt(this.dragger.parentNode.style.right)+parseInt(this.resizeGhost.style.width)+parseInt(this.dragger.previousSibling.style.right),c.oldx=parseInt(this.dragger.parentNode.style.right)+parseInt(this.dragger.previousSibling.style.right),
c.newx=parseInt(this.dragger.parentNode.style.right)+parseInt(this.dragger.previousSibling.style.right)):(c.oldwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(this.Xa)+parseInt(this.dragger.previousSibling.style.left),c.newwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(this.resizeGhost.style.width)+parseInt(this.dragger.previousSibling.style.left),c.oldx=parseInt(this.dragger.parentNode.style.left)+parseInt(this.dragger.previousSibling.style.left),c.newx=parseInt(this.dragger.parentNode.style.left)+
parseInt(this.dragger.previousSibling.style.left)),c.rowKeys=this.sk,c=new A_R(b,c),c.setPartial(A_b),b.queueEvent(c)):this.resizeGhost.style.width!=this.Xa&&(c.actionType="resize",c.taskId=this.al,c.resourceId=this.ld,this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_&&(c.splitId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=A_&&(c.recurId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)),AdfPage.PAGE.getLocaleContext().isRightToLeft()?
(c.oldwidth=parseInt(this.dragger.parentNode.style.right)+parseInt(this.Xa),c.newwidth=parseInt(this.dragger.parentNode.style.right)+parseInt(this.resizeGhost.style.width)+e,c.oldx=parseInt(this.dragger.parentNode.style.right)+e,c.newx=parseInt(this.dragger.parentNode.style.right)+e):(c.oldwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(this.Xa),c.newwidth=parseInt(this.dragger.parentNode.style.left)+parseInt(this.resizeGhost.style.width)+e,c.oldx=parseInt(this.dragger.parentNode.style.left)+
e,c.newx=parseInt(this.dragger.parentNode.style.left)+e),c.rowKeys=this.sk,c=new A_R(b,c),c.setPartial(A_b),b.queueEvent(c));this.resizeGhost.style.display="none"}else if(this.$){for(var f=d.firstChild;f.firstChild;)f.removeChild(f.firstChild);d.style.display="none";this.$=A_c;e=AdfAgent.AGENT.getElementLeft(this.getDomElement());AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(e=A_Jc(this.getDomElement()));this.Hc==A_&&(this.Hc=0);this.dragger=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.j);if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)==
A_&&this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)==A_){var g=d.style.left,f=this.dragger.parentNode.style.left;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(g=d.style.right,f=this.dragger.parentNode.style.right);var h=parseInt(g)+(parseInt(f)-parseInt(this.G))+parseInt(e)+this.Hc;h!=A_&&(this.G!=A_&&parseInt(this.G)!=parseInt(g)+parseInt(e))&&(e=0,this.dragger.parentNode.childNodes[0].getAttribute(AdfDhtmlBaseGanttPeer.j)==A_U.Ql&&(e=parseInt(this.dragger.parentNode.childNodes[0].style.width)),
a=A_Dd(this,a),g=A_,g=a==A_?this.ld:a.id,c.actionType="move",c.taskId=this.al,c.fromResourceId=this.ld,c.toResourceId=g,c.oldx=parseInt(f)+e,c.newx=h+e,c.oldwidth=parseInt(f)+parseInt(d.style.width),c.newwidth=h+parseInt(d.style.width),c.rowKeys=this.sk+" "+a.P,c=new A_R(b,c),c.setPartial(A_b),b.queueEvent(c))}else f=this.md(),a=parseInt(d.style.left)-A_Kc(this)+f.scrollLeft+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a=parseInt(d.style.right)-A_Kc(this)+f.scrollLeft+"px"),a!=this.G&&(c.actionType=
this.mergeWith!=A_?"merge":"move",c.taskId=this.nd(),f=parseInt(this.dragger.parentNode.style.left),AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(f=parseInt(this.dragger.parentNode.style.right)),c.oldx=parseInt(this.G)+f,c.newx=parseInt(a)-4,c.oldwidth=parseInt(this.G)+f+parseInt(d.style.width),c.newwidth=parseInt(a)-4+parseInt(d.style.width),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)!=A_&&(c.splitId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.J)),this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)!=
A_&&(c.recurId=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Q)),this.mergeWith!=A_&&(c.mergeWith=this.mergeWith),c=new A_R(b,c),c.setPartial(A_b),b.queueEvent(c))}this.dragger=A_;this.G=-1;this.Hc=0}};A_h("AdfDhtmlBaseSchedulingGanttPeer.prototype.endNormalDrag",A_U.prototype.Nh);
A_U.RI=function(a,b,c){var d=AdfPage.PAGE.findComponent(a+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la).getPeer().getDomElement();a=A_Ec(AdfPage.PAGE.findComponent(a).getPeer(),d).childNodes;if(a[0]!=A_){a=a[0].rows;for(var d=a.length,e=0;e<d;++e){var f=A_U.vM(a[e]);if(!(f==A_||f[0]==A_))for(var g=f[0],h=A_,l=A_,m=A_,n=1;g!=A_;){var p=f[n],q=A_,v=b;g.getAttribute(AdfDhtmlBaseGanttPeer.du)==AdfDhtmlBaseGanttPeer.eu?b="left":g.getAttribute(AdfDhtmlBaseGanttPeer.du)==AdfDhtmlBaseGanttPeer.fu&&(b=
"right");var u=c;g.getAttribute(AdfDhtmlBaseGanttPeer.Zt)==AdfDhtmlBaseGanttPeer.eu?c="left":g.getAttribute(AdfDhtmlBaseGanttPeer.Zt)==AdfDhtmlBaseGanttPeer.fu&&(c="right");AdfPage.PAGE.getLocaleContext().isRightToLeft()?"left"==b&&p!=A_?(q=g.nextSibling,l=p,m=g):"right"==b&&h!=A_&&(q=g.nextSibling,l=g,m=h):"right"==b&&p!=A_?(q=g.nextSibling,l=p,m=g):"left"==b&&h!=A_&&(q=g.nextSibling,l=g,m=h);q!=A_&&q.getAttribute(AdfDhtmlBaseGanttPeer.j)!=AdfDhtmlBaseGanttPeer.Ti&&(q=A_);if(q!=A_){b=parseInt(l.style.left);
AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=parseInt(l.style.right));var w=parseInt(m.style.left)+parseInt(m.style.width);AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(w=parseInt(m.style.right)+parseInt(m.style.width));b-=w;w=Math.abs(m.offsetTop-l.offsetTop);q.offsetWidth>=b&&2>=w&&(b-=5,0>b&&(b=0),q.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ti&&(q.style.width=b+"px"))}q=A_;AdfPage.PAGE.getLocaleContext().isRightToLeft()?"left"==c&&p!=A_?(q=g.nextSibling,l=p,m=g):"right"==
c&&h!=A_&&(q=g.nextSibling,l=g,m=h):"right"==c&&p!=A_?(q=g.nextSibling,l=p,m=g):"left"==c&&h!=A_&&(q=g.nextSibling,l=g,m=h);q!=A_&&(q.childNodes[0]!=A_&&"IMG"!=q.childNodes[0].nodeName)&&(q=A_);q!=A_&&(b=parseInt(l.style.left),w=parseInt(m.style.left)+parseInt(m.style.width),AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=parseInt(l.style.right),w=parseInt(m.style.right)+parseInt(m.style.width)),b-=w,w=Math.abs(m.offsetTop-l.offsetTop),q.offsetWidth>=b&&2>=w&&(b-=5,0>b&&(b=0),q.childNodes[0]!=
A_&&"IMG"==q.childNodes[0].nodeName&&(q.style.overflow="hidden",q.style.maxWidth=b+"px")));b=v;c=u;h=g;g=p;n++}}}};A_h("AdfDhtmlBaseSchedulingGanttPeer.adjustLabels",A_U.RI);A_U.vM=function(a){var b=[],c=0;if(a!=A_){for(a=a.childNodes;a!=A_&&0<a.length&&(a[0].id==A_||""==a[0].id);)a=a[0].childNodes;if(a!=A_){a=a[0].childNodes;for(var d=0;d<a.length;d++)a[d]!=A_&&a[d].getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_&&(b[c]=a[d],c++);b.sort(A_U.uM)}}return b};
A_U.uM=function(a,b){var c=parseInt(a.style.left)-parseInt(b.style.left);AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(c=parseInt(a.style.right)-parseInt(b.style.right));return c};A_U.prototype.bs=function(a){for(a=a.parentNode;a;){if("DIV"==a.nodeName&&a.getAttribute(A_U.Sb)!=A_)return a.getAttribute(A_U.Sb);if("TR"==a.nodeName)break;else{var b=this.bs(a);if(b!=A_)return b}a=a.parentNode}return A_};
function A_Dd(a,b){var c=a.getComponent(),c=document.getElementById(c.getClientId()+":"+AdfDhtmlBaseGanttPeer.la),d=AdfDhtmlBaseGanttPeer.F()?a.Cr:a.Uh(b),d=A_U.as(c,d.x,d.y);return d!=A_?(c={},c.id=d.getAttribute(A_U.Sb),c.P=A_N(a,d),d=d.getAttribute(A_U.Nl),c.name=d!=A_?d:c.id,c):A_}A_U.as=function(a,b,c){for(a=a.firstChild;a;){if("DIV"==a.nodeName&&a.getAttribute(A_U.Sb)!=A_){if(AdfAgent.AGENT.pointInElementBounds(a,b,c))return a}else{var d=A_U.as(a,b,c);if(d!=A_)return d}a=a.nextSibling}return A_};
A_g=A_U.prototype;A_g.Pk=function(a){if(!this.ca&&!A_7c(a)){this.dragger=A_3c(a);this.dragger.style.cursor="default";if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb||"img"==this.dragger.nodeName)this.dragger=this.dragger.parentNode;a=this.getTooltip();a!=A_&&(a.style.display="none");this.dU=this.dragger;this.dragger=A_}};
A_g.nd=function(){if(this.dragger!=A_){var a=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.p);a==A_&&this.dragger.parentNode!=A_&&(a=this.dragger.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p));return a}return A_};A_g.Qr=function(a){this.dragger!=A_&&(this.dragger.parentNode!=A_&&this.dragger.parentNode.parentNode!=A_)&&(a.fromResourceId=this.dragger.parentNode.parentNode.getAttribute(A_U.Sb),a.toResourceId=a.fromResourceId)};
A_g.Op=function(a,b,c){var d=new Date;d.setTime(this.nc.getTime());var e=new Date;e.setTime(this.ue.getTime());var f=this.ok,g=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.j),h=g&&g.parentNode&&g.parentNode.childNodes[0]&&g.parentNode.childNodes[0].getAttribute(AdfDhtmlBaseGanttPeer.j)==A_U.Ql?parseInt(g.parentNode.childNodes[0].style.width):0;if(this.$){var g=this.Ra(),l=AdfPage.PAGE.getLocaleContext().isRightToLeft()?A_Jc(this.getDomElement()):AdfAgent.AGENT.getElementLeft(this.getDomElement()),
m=this.Hc==A_?0:this.Hc,n=A_P(this,this.dragger,AdfDhtmlBaseGanttPeer.j);n.getAttribute(AdfDhtmlBaseGanttPeer.J)==A_&&n.getAttribute(AdfDhtmlBaseGanttPeer.Q)==A_?g=parseInt(A_9c(g))+(parseInt(A_9c(n.parentNode))-parseInt(this.G))+parseInt(l)+m:(l=this.md(),g=parseInt(A_9c(g))-A_Kc(this)+l.scrollLeft-4);h=A_Wc(g+h,A_Tc(this),A_Uc(this),A_Vc(this));g=this.ue.getTime()-this.nc.getTime();d.setTime(h);e.setTime(h+g)}else this.ua&&(h=parseInt(A_9c(g.parentNode))+parseInt(this.resizeGhost.style.width)+h,
g.previousSibling&&g.previousSibling.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.ud&&(h+=parseInt(A_9c(g.previousSibling))),h=A_Wc(h,A_Tc(this),A_Uc(this),A_Vc(this)),e.setTime(h));h=A_Gc(this);if(h!=A_){var m=l="",g=this.getDomElement(),n=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la,n=AdfPage.PAGE.findComponent(n).getPeer().getDomElement(),p=AdfAgent.AGENT.getElementPageBounds(g),q=p.top+b,p=AdfPage.PAGE.getLocaleContext().isRightToLeft()?p.right-
a:p.left+a,n=A_U.as(n,p,q);n!=A_&&(m=n.getAttribute(A_U.Sb),l=n.getAttribute(A_U.Nl),l==A_&&(l=m));n="\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' style\x3d'padding-bottom:3px;padding-right:3px'\x3e\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+g.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e";n=this.ld!=A_&&this.ld!=m?n+A_Q(this,"resource")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+l:n+A_Q(this,"resource")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+
this.Ph;n+="\x3c/td\x3e\x3c/tr\x3e";l=A_$c(this,AdfDhtmlBaseGanttPeer.Wt);l!=A_?l=l.getAsString(e):(l=A_ad(this,e),"hour"==f&&(l+="\x3c/b\x3e"));this.$?(e=A_$c(this,AdfDhtmlBaseGanttPeer.Gp),e!=A_?d=e.getAsString(d):(d=A_ad(this,d),"hour"==f&&(d+="\x3c/b\x3e")),n=n+"\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+g.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_Q(this,"start_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+
d+"\x3c/td\x3e\x3c/tr\x3e",n=n+"\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+g.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_Q(this,"end_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+l+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"):this.ua&&("hour"==f?(f=(e.getTime()-this.nc.getTime())/36E5,f=Math.max(0,Math.round(100*f)/100),f+=" h"):(f=(e.getTime()-this.nc.getTime())/864E5,f=Math.max(0,Math.round(100*f)/100),f=f+" "+A_Q(this,
"days")),n="\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' style\x3d'padding-bottom:3px;padding-right:3px'\x3e\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+g.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_Q(this,"end_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+l+"\x3c/td\x3e\x3c/tr\x3e",n=n+"\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+g.getAttribute(AdfDhtmlBaseGanttPeer.wd)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+
A_Q(this,"duration")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+f+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");h.childNodes[0].childNodes[1].childNodes[1].innerHTML=n;c&&(h.style.display="block",h.style.top=b-parseInt(h.offsetHeight)-10+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?h.style.right=a-parseInt(h.offsetWidth)-10+"px":h.style.left=a-parseInt(h.offsetWidth)-10+"px")}};
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");var c=b=0;this.$&&(b=parseInt(this.t(a))-parseInt(this.Dc),c=parseInt(this.ha(a))-parseInt(this.Ck));this.$=A_c;this.dragger.style.cursor="default";for(var d=0;d<this.dragger.childNodes.length;d++)this.dragger.childNodes[d].style.display="block";this.resizeGhost!=A_&&(this.resizeGhost.style.display="none",this.resizeGhost=A_);this.Ck=this.Dc=0;this.ca=A_c;this.dragger=A_;this.G=-1;d=this.Rr();
AdfDhtmlBaseGanttPeer.sJ(b,c,d);A_U.superclass.pg.call(this,a)}};A_g.my=function(a){a.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&(a=a.parentNode);a=a.cloneNode(A_b);AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right="0px":a.style.left="0px";return a};
A_g.getHeight=function(){var a=AdfAgent.AGENT.getComputedStyle(this.getDomElement()),b=0,b="100%"==a.height?parseInt(AdfAgent.AGENT.getWindowClientHeight(AdfAgent.AGENT.getDomWindow())):Math.min(parseInt(AdfAgent.AGENT.getWindowClientHeight(AdfAgent.AGENT.getDomWindow())),parseInt(a.top)+parseInt(a.height));parseInt(AdfAgent.AGENT.getWindowClientWidth(AdfAgent.AGENT.getDomWindow()))<parseInt(AdfAgent.AGENT.getWindowScrollWidth(AdfAgent.AGENT.getDomWindow()))&&(b-=14);return b};
A_g.cs=function(){return[AdfDhtmlBaseGanttPeer.Gl,AdfDhtmlBaseGanttPeer.Il,AdfDhtmlBaseGanttPeer.Hl,AdfDhtmlBaseGanttPeer.Jl,A_U.Pu]};A_g.Fg=function(a){0>=A_U.superclass.Fg.call(this,a)||A_Zc(this,[AdfDhtmlBaseGanttPeer.tp,AdfDhtmlBaseGanttPeer.pp,AdfDhtmlBaseGanttPeer.mp,AdfDhtmlBaseGanttPeer.El,AdfDhtmlBaseGanttPeer.Ou,AdfDhtmlBaseGanttPeer.qp,AdfDhtmlBaseGanttPeer.np,AdfDhtmlBaseGanttPeer.rp,A_U.wu,AdfDhtmlBaseGanttPeer.Dp],A_b)};
A_g.Ms=function(a){if(this.Zk!=A_){var b=this.getDomElement(),c=AdfAgent.AGENT;if(a=c.getPlatform()==AdfAgent.IE_PLATFORM?!c.pointInElementBounds(b,a.clientX+b.scrollLeft,a.clientY+b.scrollTop):!c.pointInElementBounds(b,a.clientX,a.clientY))this.Ra().style.display="none";return a}return A_c};A_g.fs=function(a){this.kf(a,"focus");this.Ob(a)};A_g.xk=function(a){a=AdfDhtmlBaseGanttPeer.Oh(a);return A_Ed(this,a)};
function A_Ed(a,b){for(var c=b.childNodes,d=0;d<c.length;d++){var e=a.bf(c[d]);if(e!=A_)return e}return A_}A_g.bf=function(a){return A_P(this,a,AdfDhtmlBaseGanttPeer.vd)};
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");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("data-sut");c!=A_&&(d=a.getAttribute("data-fsut"),d==A_&&(d=new Date(+c)),b=A_id(this,b,A_Q(this,"sut"),d));c=this.Jr(a);c!=A_&&(b=A_id(this,b,A_Q(this,"lbl"),c));d=a.parentNode;if(d.firstChild==a&&(c=d.getAttribute("data-wst"),d=d.getAttribute("data-wet"),c!=A_&&d!=A_))var e=A_Q(this,"wt"),e=e.replace("{0}",c),e=e.replace("{1}",d),b=b.concat(" "),b=b.concat(e);a.setAttribute("aria-label",b);A_U.superclass.Ob.call(this,
a)}};A_g.Jr=function(a){a=a.nextSibling;return a!=A_&&a.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ti?a.textContent:A_};