var wp=I.ea($e,"AdfDhtmlInputTextPeer");m("AdfDhtmlInputTextPeer",wp);wp.C=function(){r.bb(AdfRichInputText);I.hc(this,AdfRichInputText.LABEL);I.ra(this,D.Bc,D.gh,D.Ad);I.sb(this,AdfRichInputText.LABEL);I.sb(this,AdfRichInputText.READ_ONLY);I.sb(this,AdfRichInputText.CONTENT_STYLE)};m("AdfDhtmlInputTextPeer.InitSubclass",wp.C);wp.prototype.G=function(a,b){wp.h.G.call(this,a,b);var d=q.b,e=O.da(a);d.S()==q.ia&&9>d.Ib()?q.b.ba(e,"propertychange",this.D(this.GV)):q.b.ba(e,"input",this.D(this.GV))};
r.a("AdfDhtmlInputTextPeer.prototype.InitDomElement",{G:wp.prototype.G});wp.prototype.P$=function(a){var b=this.f();if(this.Ll(b)){var d=O.da(b);gd.$().wo(d,a);this.nd(b,d)}};r.a("AdfDhtmlInputTextPeer.prototype.replaceTextSelection",{P$:wp.prototype.P$});wp.prototype.ya=function(a){var b=q.b,d=b.S()==q.ia,b=b.Ib();return d&&8>b&&C.sa(I.oy(a),"p_AFStretched")};r.a("AdfDhtmlInputTextPeer.prototype.needsResizeNotify",{ya:wp.prototype.ya});
wp.prototype.Qe=function(a,b,d,e,f){b=q.b;a=O.da(a);b.uv(a,e);b.Fh(a,f)};r.a("AdfDhtmlInputTextPeer.prototype.resizeNotify",{Qe:wp.prototype.Qe});wp.prototype.Ba=function(a,b,d){u.J(d);b=O.da(a);a.getReadOnly()?(1<a.getRows()||1!=this.WD(a))&&q.b.bc(b,d):(1<a.getRows()||this.WD(a)||(b.title=d),b.value!=d&&(b.value=d))};r.a("AdfDhtmlInputTextPeer.prototype.SetDisplayValue",{Ba:wp.prototype.Ba});wp.prototype.WD=function(a){return"password"==O.da(a).type?!0:!1};
r.a("AdfDhtmlInputTextPeer.prototype.IsSecret",{WD:wp.prototype.WD});wp.prototype.Yb=function(a){this.Il(a);if(a.ce()==Qa.Ef){var b=this.f(),d=a.X(),e=a.U(),f=q.b.na(e);"TEXTAREA"==d.tagName?this.OQ(b,d)&&(b=e.keyCode,f=e.charCode,0!=b&&13!=b&&void 0!=f&&b!=f||e.ctrlKey||(e=!0,null!=d.selectionStart?e=d.selectionStart==d.selectionEnd:document.selection&&(e=""==document.selection.createRange().text),e&&a.cancel())):f==w.jb&&this.nd(b,d,!0);this.Dx=d.value?d.value.length:0}};
r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyPress",{Yb:wp.prototype.Yb});wp.prototype.za=function(a){if(a.ce()==Qa.Ef){var b=q.b.na(a.U()),d=this.f(),e=a.X();9!=b&&this.hD(d,e);delete this.Dx}wp.h.za.call(this,a)};r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyUp",{za:wp.prototype.za});wp.prototype.ma=function(a){this.Il(a)};r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyDown",{ma:wp.prototype.ma});
wp.prototype.GV=function(a){a=q.b.ca(a);if(a=A.c.m(q.b.getAttribute(a,"name"))){var b=O.da(a);this.OQ(a,b)}};wp.prototype.hD=function(a,b){if(a.getAutoTab&&a.getAutoTab()&&(q.b.rm()[q.zl]==q.Al||q.Bh()==q.yl)){var d=a.getMaximumLength();if(!(1>d)){var e=b.value?b.value.length:0;e>=d&&e>=this.Dx&&J.be(b)}}};r.a("AdfDhtmlInputTextPeer.prototype.AutoTab",{hD:wp.prototype.hD});wp.prototype.Oa=function(){return gi.jd()};r.a("AdfDhtmlInputTextPeer.prototype.GetInlineEditor",{Oa:wp.prototype.Oa});
wp.prototype.Gwa=function(a,b,d){if(d)if("SPAN"==b.tagName){if(C.sa(b,"p_AFClickToEdit")&&C.O(b,"p_AFClickToEdit"),C.w(b,"p_AFReadOnly"),a=O.da(a),"INPUT"==a.tagName){var e=document.createElement("span");e.appendChild(document.createTextNode(a.value));d=a.attributes;for(var f=0;f<d.length;f++){var g=d[f].name;"type"!=g&&"value"!=g&&e.setAttribute(g,d[f].value)}b.replaceChild(e,a);q.b.Ia(e)}}else return!1;else if("SPAN"==b.tagName){if(C.sa(b,"p_AFReadOnly")&&C.O(b,"p_AFReadOnly"),C.w(b,"p_AFClickToEdit"),
a=O.da(a),"SPAN"==a.tagName){e=document.createElement("input");d=a.attributes;for(f=0;f<d.length;f++)e.setAttribute(d[f].name,d[f].value);e.setAttribute("type","text");a.firstChild&&a.firstChild.nodeValue&&e.setAttribute("value",a.firstChild.nodeValue);e.setAttribute("name",b.id);b.replaceChild(e,a);q.b.Ia(e)}}else return!1};r.a("AdfDhtmlInputTextPeer.prototype.ComponentReadOnlyChanged",{Gwa:wp.prototype.Gwa});wp.prototype.swa=function(a,b,d){a=O.da(a);if(null!=a)a.style.cssText=d;else return!1};
r.a("AdfDhtmlInputTextPeer.prototype.ComponentContentStyleChanged",{swa:wp.prototype.swa});