var Fs=M.U(M,"AdfDhtmlPanelLabelAndMessagePeer");v("AdfDhtmlPanelLabelAndMessagePeer",Fs);Fs.m=function(){this.Fm="content";Fs.Y5={INPUT:l,SELECT:l,TEXTAREA:l};M.$b(this,AdfRichPanelLabelAndMessage.LABEL);M.hb(this,AdfRichPanelLabelAndMessage.LABEL,AdfRichPanelLabelAndMessage.SHOW_REQUIRED)};v("AdfDhtmlPanelLabelAndMessagePeer.InitSubclass",Fs.m);
Fs.prototype.q=function(a,b){Fs.f.q.call(this,a,b);var d=this.kX(a,b);if(d!=n){var e=d.htmlFor;if(e&&(forObject=w.b.getElementById(e),forObject==n||!Fs.Y5[forObject.tagName])){var f=e.length-9;if(0<f&&(e=e.substring(0,f),f=w.b.getElementById(e),f!=n))if(Fs.Y5[f.tagName])d.htmlFor=e;else{e=f.childNodes;for(i=0;i<e.length;i++)if(Fs.Y5[e[i].tagName]){d.htmlFor=e[i].id;break}}}}};z.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.InitDomElement",{q:Fs.prototype.q});Fs.prototype.Aa=function(){return mg.Hc()};
z.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetInlineEditor",{Aa:Fs.prototype.Aa});Fs.prototype.hk=function(a,b){var d=this.kX(a,b);return d!=n?w.b.Mb(d):n};z.a("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetComponentLabel",{hk:Fs.prototype.hk});Fs.prototype.kX=function(a,b){var d=a.getFor(),e=n;d&&(d=M.g(d,Fs.Fm),e=H.nh(b,"for",d,"LABEL"));return e};