$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 CQb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return 0;return c.text.length}catch(a){return 0}}\nfunction BQb(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return -1;return -c.move(nbc,-65535)}catch(a){return 0}}\nfunction dfb(a,b){var c,d;c=new QFb;c.e[G9b]=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 EQb(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(nbc,-1);var g=f.text.length;while(g==d&&f.parentElement()==b&&c.compareEndPoints('StartToEnd',f)<=0){e+=2;f.moveEnd(nbc,-1);g=f.text.length}return d+e}catch(a){return 0}}\nfunction DQb(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(nbc,-1);var h=g.text.length;while(h==e&&g.parentElement()==b){f+=2;g.moveEnd(nbc,-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[G9b]=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[wac]='read only';Zw(b.a);b.hb[x8b]=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[wac]='read only';Zw(a.a);a.hb[x8b]=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 nbc='character';UW(867,1134,{},Bz);_.dd=function Cz(a){return _z((Vz(),a))?(Iy(),Hy):(Iy(),Gy)};var zz;var zH=XVb(Z6b,'AnyRtlDirectionEstimator',867);UW(438,1,k8b);_.Bc=function kfb(){mZ(this.a,efb())};UW(439,1,mbc,lfb);_.Uc=function mfb(a){ffb(this.b,this.a)};var YM=XVb(u8b,'CwBasicText/2',439);UW(440,1,b8b,nfb);_.Sc=function ofb(a){ffb(this.b,this.a)};var ZM=XVb(u8b,'CwBasicText/3',440);UW(746,246,d6b);_.Jf=function PIb(){return BQb(this.hb)};_.Kf=function QIb(){return CQb(this.hb)};UW(324,50,d6b,YIb);var RR=XVb(b6b,'PasswordTextBox',324);UW(215,310,d6b);_.Jf=function zNb(){return DQb(this.hb)};_.Kf=function ANb(){return EQb(this.hb)};n5b(wl)(18);\n//# sourceURL=showcase-18.js\n")
