$wnd.showcase.runAsyncCallback18("function sdb(){}\nfunction woc(a,b){$w(a.a,b)}\nfunction YWb(a,b){this.b=a;this.a=b}\nfunction $Wb(a,b){this.b=a;this.a=b}\nfunction Sdb(a){return uDb(Ddb,a)}\nfunction rdb(){rdb=GCb;qdb=new sdb}\nfunction SWb(a,b){Hhc(b,'Selected: '+a.$g()+', '+a._g())}\nfunction Ioc(){Eoc();Hoc.call(this,Mo($doc,'password'),'gwt-PasswordTextBox')}\nfunction nwc(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return 0;return c.text.length}catch(a){return 0}}\nfunction mwc(b){try{var c=b.document.selection.createRange();if(c.parentElement()!==b)return -1;return -c.move(STc,-65535)}catch(a){return 0}}\nfunction QWb(a,b){var c,d;c=new Alc;c.e[TRc]=4;xlc(c,a);if(b){d=new Lhc('Selected: 0, 0');Hh(a,new YWb(a,d),(iu(),iu(),hu));Hh(a,new $Wb(a,d),(Nt(),Nt(),Mt));xlc(c,d)}return c}\nfunction pwc(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(STc,-1);var g=f.text.length;while(g==d&&f.parentElement()==b&&c.compareEndPoints('StartToEnd',f)<=0){e+=2;f.moveEnd(STc,-1);g=f.text.length}return d+e}catch(a){return 0}}\nfunction owc(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(STc,-1);var h=g.text.length;while(h==e&&g.parentElement()==b){f+=2;g.moveEnd(STc,-1);h=g.text.length}return e+f}catch(a){return 0}}\nfunction RWb(){var a,b,c,d,e,f;f=new fvc;f.e[TRc]=5;d=new Goc;Quc(d.hb,'','cwBasicText-textbox');woc(d,(rdb(),rdb(),qdb));b=new Goc;Quc(b.hb,'','cwBasicText-textbox-disabled');b.hb[_Sc]='read only';Zw(b.a);b.hb[KQc]=true;cvc(f,new Qhc('<b>Normal text box:<\\/b>'));cvc(f,QWb(d,true));cvc(f,QWb(b,false));c=new Ioc;Quc(c.hb,'','cwBasicText-password');a=new Ioc;Quc(a.hb,'','cwBasicText-password-disabled');a.hb[_Sc]='read only';Zw(a.a);a.hb[KQc]=true;cvc(f,new Qhc('<br><br><b>Password text box:<\\/b>'));cvc(f,QWb(c,true));cvc(f,QWb(a,false));e=new jtc;Quc(e.hb,'','cwBasicText-textarea');e.hb.rows=5;cvc(f,new Qhc('<br><br><b>Text area:<\\/b>'));cvc(f,QWb(e,true));return f}\nvar STc='character';FCb(896,1232,{},sdb);_.ve=function tdb(a){return Sdb((Mdb(),a))?(xB(),wB):(xB(),vB)};var qdb;var mnb=IBc(KOc,'AnyRtlDirectionEstimator',896);FCb(468,1,xQc);_.Bc=function XWb(){ZEb(this.a,RWb())};FCb(469,1,RTc,YWb);_.Uc=function ZWb(a){SWb(this.b,this.a)};var Isb=IBc(HQc,'CwBasicText/2',469);FCb(470,1,oQc,$Wb);_.Sc=function _Wb(a){SWb(this.b,this.a)};var Jsb=IBc(HQc,'CwBasicText/3',470);FCb(775,273,QNc);_.$g=function zoc(){return mwc(this.hb)};_._g=function Aoc(){return nwc(this.hb)};FCb(352,50,QNc,Ioc);var Cxb=IBc(ONc,'PasswordTextBox',352);FCb(242,338,QNc);_.$g=function ktc(){return owc(this.hb)};_._g=function ltc(){return pwc(this.hb)};$Mc(wl)(18);\n//# sourceURL=showcase-18.js\n")
