$wnd.showcase.runAsyncCallback18("function FB(){}\nfunction gLb(a,b){jy(a.a,b)}\nfunction ihb(a,b){this.b=a;this.a=b}\nfunction khb(a,b){this.b=a;this.a=b}\nfunction aC(a){return HZ(NB,a)}\nfunction EB(){EB=TX;DB=new FB}\nfunction chb(a,b){kEb(b,'Selected: '+a.eg()+', '+a.fg())}\nfunction tLb(){oLb();sLb.call(this,yp($doc,'password'),'gwt-PasswordTextBox')}\nfunction cTb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return 0;return c.text.length}catch(a){return 0}}\nfunction bTb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return -1;return -c.move(Adc,-65535)}catch(a){return 0}}\nfunction ahb(a,b){var c,d;c=new fIb;qp(c.e,_bc,4);cIb(c,a);if(b){d=new oEb('Selected: 0, 0');Fh(a,new ihb(a,d),(pv(),pv(),ov));Fh(a,new khb(a,d),(Uu(),Uu(),Tu));cIb(c,d)}return c}\nfunction eTb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return 0;var d=c.text.length;var e=0;var f=c.duplicate();f.moveEnd(Adc,-1);var g=f.text.length;while(g==d&&f.parentElement()==b&&c.compareEndPoints('StartToEnd',f)<=0){e+=2;f.moveEnd(Adc,-1);g=f.text.length}return d+e}catch(a){return 0}}\nfunction dTb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return -1;var d=c.duplicate();d.moveToElementText(b);d.setEndPoint('EndToStart',c);var e=d.text.length;var f=0;var g=d.duplicate();g.moveEnd(Adc,-1);var h=g.text.length;while(h==e&&g.parentElement()==b){f+=2;g.moveEnd(Adc,-1);h=g.text.length}return e+f}catch(a){return 0}}\nfunction bhb(){var a,b,c,d,e,f;f=new VRb;qp(f.e,_bc,5);d=new rLb;ERb(d.hb,'','cwBasicText-textbox');gLb(d,(EB(),EB(),DB));b=new rLb;ERb(b.hb,'','cwBasicText-textbox-disabled');rp(b.hb,Ncc,'read only');iy(b.a);pp(b.hb,Hac,true);SRb(f,new tEb('<b>Normal text box:<\\/b>'));SRb(f,ahb(d,true));SRb(f,ahb(b,false));c=new tLb;ERb(c.hb,'','cwBasicText-password');a=new tLb;ERb(a.hb,'','cwBasicText-password-disabled');rp(a.hb,Ncc,'read only');iy(a.a);pp(a.hb,Hac,true);SRb(f,new tEb('<br><br><b>Password text box:<\\/b>'));SRb(f,ahb(c,true));SRb(f,ahb(a,false));e=new YPb;ERb(e.hb,'','cwBasicText-textarea');e.hb.rows=5;SRb(f,new tEb('<br><br><b>Text area:<\\/b>'));SRb(f,ahb(e,true));return f}\nvar Adc='character';SX(859,1138,{},FB);_.yd=function GB(a){return aC((WB(),a))?(pA(),oA):(pA(),nA)};var DB;var MI=zYb(j9b,'AnyRtlDirectionEstimator',859);SX(423,1,wac);_.xc=function hhb(){j_(this.a,bhb())};SX(424,1,zdc,ihb);_.Qc=function jhb(a){chb(this.b,this.a)};var uO=zYb(Eac,'CwBasicText/2',424);SX(425,1,nac,khb);_.Oc=function lhb(a){chb(this.b,this.a)};var vO=zYb(Eac,'CwBasicText/3',425);SX(737,246,o8b);_.eg=function jLb(){return bTb(this.hb)};_.fg=function kLb(){return cTb(this.hb)};SX(312,48,o8b,tLb);var pT=zYb(m8b,'PasswordTextBox',312);SX(212,298,o8b);_.eg=function ZPb(){return dTb(this.hb)};_.fg=function $Pb(){return eTb(this.hb)};z7b(Cl)(18);\n//# sourceURL=showcase-18.js\n")
