$wnd.showcase.runAsyncCallback18("function Bz(){}\nfunction MIb(a,b){$w(a.a,b)}\nfunction lfb(a,b){this.b=a;this.a=b}\nfunction nfb(a,b){this.b=a;this.a=b}\nfunction _z(a){return JX(Mz,a)}\nfunction Az(){Az=VW;zz=new Bz}\nfunction ffb(a,b){XBb(b,'Selected: '+a.Jf()+', '+a.Kf())}\nfunction YIb(){UIb();XIb.call(this,Mo($doc,'password'),'gwt-PasswordTextBox')}\nfunction BQb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return 0;return c.text.length}catch(a){return 0}}\nfunction AQb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return -1;return -c.move(mbc,-65535)}catch(a){return 0}}\nfunction dfb(a,b){var c,d;c=new QFb;c.e[E9b]=4;NFb(c,a);if(b){d=new _Bb('Selected: 0, 0');Hh(a,new lfb(a,d),(iu(),iu(),hu));Hh(a,new nfb(a,d),(Nt(),Nt(),Mt));NFb(c,d)}return c}\nfunction DQb(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(mbc,-1);var g=f.text.length;while(g==d&&f.parentElement()==b&&c.compareEndPoints('StartToEnd',f)<=0){e+=2;f.moveEnd(mbc,-1);g=f.text.length}return d+e}catch(a){return 0}}\nfunction CQb(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(mbc,-1);var h=g.text.length;while(h==e&&g.parentElement()==b){f+=2;g.moveEnd(mbc,-1);h=g.text.length}return e+f}catch(a){return 0}}\nfunction efb(){var a,b,c,d,e,f;f=new uPb;f.e[E9b]=5;d=new WIb;dPb(d.hb,'','cwBasicText-textbox');MIb(d,(Az(),Az(),zz));b=new WIb;dPb(b.hb,'','cwBasicText-textbox-disabled');b.hb[vac]='read only';Zw(b.a);b.hb[w8b]=true;rPb(f,new eCb('<b>Normal text box:<\\/b>'));rPb(f,dfb(d,true));rPb(f,dfb(b,false));c=new YIb;dPb(c.hb,'','cwBasicText-password');a=new YIb;dPb(a.hb,'','cwBasicText-password-disabled');a.hb[vac]='read only';Zw(a.a);a.hb[w8b]=true;rPb(f,new eCb('<br><br><b>Password text box:<\\/b>'));rPb(f,dfb(c,true));rPb(f,dfb(a,false));e=new yNb;dPb(e.hb,'','cwBasicText-textarea');e.hb.rows=5;rPb(f,new eCb('<br><br><b>Text area:<\\/b>'));rPb(f,dfb(e,true));return f}\nvar mbc='character';UW(866,1133,{},Bz);_.dd=function Cz(a){return _z((Vz(),a))?(Iy(),Hy):(Iy(),Gy)};var zz;var zH=UVb(Y6b,'AnyRtlDirectionEstimator',866);UW(437,1,j8b);_.Bc=function kfb(){mZ(this.a,efb())};UW(438,1,lbc,lfb);_.Uc=function mfb(a){ffb(this.b,this.a)};var YM=UVb(t8b,'CwBasicText/2',438);UW(439,1,a8b,nfb);_.Sc=function ofb(a){ffb(this.b,this.a)};var ZM=UVb(t8b,'CwBasicText/3',439);UW(745,245,c6b);_.Jf=function PIb(){return AQb(this.hb)};_.Kf=function QIb(){return BQb(this.hb)};UW(322,50,c6b,YIb);var RR=UVb(a6b,'PasswordTextBox',322);UW(214,308,c6b);_.Jf=function zNb(){return CQb(this.hb)};_.Kf=function ANb(){return DQb(this.hb)};m5b(wl)(18);\n//# sourceURL=showcase-18.js\n")
