var lz=M.U(V,"AdfDhtmlTablePeer",p);v("AdfDhtmlTablePeer",lz);lz.m=function(){M.ha(this,ma.sj);M.ha(this,I.Qd,I.Ve);this.$Ha="af|column::data-cell";this.ZHa="af|column::banded-data-cell"};v("AdfDhtmlTablePeer.InitSubclass",lz.m);lz.prototype.Fo=t(3);z.a("AdfDhtmlTablePeer.prototype.__getColumnResizeMargin",{Fo:lz.prototype.Fo});
lz.prototype.Ka=function(a){if(!this.PB&&!this.Kj){var b=w.b,d=a.Q();if(this.If==V.WNa&&this.XP){var e,f;Lv(this)&&!this.Zb?(e=this.Pa(),f=this.Pa()):(e=this.Pa()[V.Mm],f=this.Pa()[V.uj]);if(f!=n&&f!=n){var g=e.offsetWidth-e.clientWidth,h=f.offsetHeight-f.clientHeight,m=this.h(),q=b.getElementById(M.g(m.id,V.fA));if(q){q=q.style;q.width=m.offsetWidth-g-this.ota+"px";q.height=m.offsetHeight-this.Zc-this.Me-this.ji-h-this.wSa+"px";if(h=Jv(this))h.style.width=m.offsetWidth-g-this.ota+"px";g=this.ea();
this.WG?(m=Rv(this,p),g.style.top=parseInt(this.nr)+parseInt(this.mr)+"px",m.style.top=parseInt(this.nr)+parseInt(this.mr)+"px",m.style.width=this.bP):this.UO?Rv(this,l).style.width=this.bP:g.style.top=this.mr;e.style.visibility="";f.style.visibility="";this.XP=p}}}if(d!=n&&(e=d.tagName,("TD"==e||"TH"==e)&&(d.noWrap&&!d.title)&&this.qK(d),this.UE(document,d,e),this.twa&&(d=this.he(d,this.h()),d!=n))){b=d[1];H.ta(b,V.Xe)||H.n(b,V.xw);return}if(!this.Gf&&(a=Dw(this,a.L()))&&2>a.colSpan)a=M.g(a.id,V.At),
b=b.getElementById(a),b!=n&&(a=b.getAttribute(V.sA),d=b.getAttribute(V.ara),a==n&&d&&(b.style.visibility=""))}};z.a("AdfDhtmlTablePeer.prototype.HandleComponentMouseOver",{Ka:lz.prototype.Ka});
lz.prototype.UE=function(a,b,d){var e=this.d().Fe();if(("TD"==d||"SPAN"==d||"NOBR"==d)&&b.getAttribute(V.Km)==n&&e!=n)if(d=F.c.u(),onlyTextNode=Ww(b))if((b=onlyTextNode.parentNode)&&"SPAN"==b.nodeName&&b.parentNode&&"A"!=b.parentNode.nodeName)V.rg(b,"text"),e&&b.setAttribute(V.h5,"on");else if(b&&"TD"==b.nodeName&&(H.ta(b,d.getStyleClass(lz.$Ha))||H.ta(b,d.getStyleClass(lz.ZHa)))||"NOBR"==b.nodeName)d=a.createElement("span"),d.appendChild(a.createTextNode(onlyTextNode.nodeValue)),V.rg(d,"text"),e&&
d.setAttribute(V.h5,"on"),b.replaceChild(d,onlyTextNode)==n&&D.i.fine("unable to replace child textnode '",onlyTextNode.nodeValue,"' with a span element '",d,"for the current node ",b)};z.a("AdfDhtmlTablePeer.prototype.SetCursorToText",{UE:lz.prototype.UE});
lz.prototype.vb=function(a){if(!this.PB&&!this.Kj){var b=w.b;if(this.If==V.WNa){var d=this.h(),e=b.getElementById(M.g(d.id,V.fA));if(e){var f=p,g=a.L().clientX,h=a.L().clientY,m,q;Lv(this)&&!this.Zb?(m=this.Pa(),q=this.Pa()):(m=this.Pa()[V.Mm],q=this.Pa()[V.uj]);if(q!=n&&q!=n&&!this.XP){var s=m.offsetWidth-m.clientWidth,y=q.offsetHeight-q.clientHeight,A=e.getBoundingClientRect();g>A.left+1&&(g<A.right-s-1&&h>A.top+1&&h<A.bottom-y-1)&&(f=l);if(!f){e=e.style;e.width=d.offsetWidth+"px";e.height=d.offsetHeight-
this.Zc-this.Me-this.ji+"px";if(e=Jv(this))e.style.width=d.offsetWidth+"px";d=this.ea();this.WG?(e=Rv(this,p),d.style.top=this.nr,e.style.top=this.nr,e.style.width=this.Aba):this.UO?Rv(this,l).style.width=this.Aba:d.style.top="0px";m.style.visibility="hidden";q.style.visibility="hidden";this.XP=l}}}}if(this.twa&&(m=this.he(a.Q(),this.h()),m!=n)){H.F(m[1],V.xw);return}if(!this.Gf&&(a=Dw(this,a.L()))&&2>a.colSpan&&a&&2>a.colSpan)a=M.g(a.id,V.At),b=b.getElementById(a),b!=n&&(a=b.getAttribute(V.sA),m=
b.getAttribute(V.ara),a==n&&m&&(b.style.visibility="hidden"))}};z.a("AdfDhtmlTablePeer.prototype.HandleComponentMouseOut",{vb:lz.prototype.vb});lz.prototype.qg=function(a){if(1==a.Gp()){if(this.Hw(a)){var b=this.Sq(a.L());"resize"==(b?b.type:n)&&lz.f.Gw.call(this,a)}a=a.Q();this.qK(a)}};z.a("AdfDhtmlTablePeer.prototype.HandleComponentTouchStart",{qg:lz.prototype.qg});