var com=com||{};com.eqela=com.eqela||{};com.eqela.libtwittergui=com.eqela.libtwittergui||{};com.eqela.libtwittergui.TwitterShareDialog=function(){com.eqela.libsocialgui.SocialShareDialog.call(this);{}};P=com.eqela.libtwittergui.TwitterShareDialog.prototype=(function(o){function F(){};F.prototype=o;return(new F());})(com.eqela.libsocialgui.SocialShareDialog.prototype);P._t={};P._t['eq.api.Object']=true;P._t['com.eqela.libsocialgui.SocialShareDialog']=true;P._t['com.eqela.libtwittergui.TwitterShareDialog']=true;P.constructor=com.eqela.libtwittergui.TwitterShareDialog;com.eqela.libtwittergui.TwitterShareDialog.create=function(){return((new com.eqela.libtwittergui.GenericTwitterShareDialog()));};com.eqela.libtwittergui.TwitterShareDialog.for_text=function(text){var v=com.eqela.libtwittergui.TwitterShareDialog.create();if(v!==null){com.eqela.libsocialgui.SocialShareDialog.prototype.set_initial_text.call(v,text);}return(v);};com.eqela.libtwittergui.GenericTwitterShareDialog=function(){com.eqela.libtwittergui.TwitterShareDialog.call(this);{}};P=com.eqela.libtwittergui.GenericTwitterShareDialog.prototype=(function(o){function F(){};F.prototype=o;return(new F());})(com.eqela.libtwittergui.TwitterShareDialog.prototype);P._t={};P._t['eq.api.Object']=true;P._t['com.eqela.libsocialgui.SocialShareDialog']=true;P._t['com.eqela.libtwittergui.TwitterShareDialog']=true;P._t['com.eqela.libtwittergui.GenericTwitterShareDialog']=true;P.constructor=com.eqela.libtwittergui.GenericTwitterShareDialog;P.execute=function(frame,listener){var text=com.eqela.libsocialgui.SocialShareDialog.prototype.get_initial_text.call(this);if(eq.api.StringStatic.is_empty(text)){text=eq.api.StringStatic.for_strptr("");}var sb=eq.api.StringBufferStatic.create(text);var h=com.eqela.libsocialgui.SocialShareDialog.prototype.get_hashtags.call(this);{var _t428=eq.api.IteratorStatic.for_object(h);if(_t428!==null){var _t429=null;for(_t429=_t428.next();_t429!==null;_t429=_t428.next()){if((function(l,r){return(l!=null&&l._t[r]===true);})(_t429,"eq.api.String")){var s=_t429;{if(eq.api.StringStatic.is_empty(s)){continue;}sb.append(s);}}}}}var link=com.eqela.libsocialgui.SocialShareDialog.prototype.get_initial_link.call(this);if(eq.api.StringStatic.is_empty(link)===false){sb.append_c(' '.charCodeAt(0));sb.append(link);}com.eqela.libgui.URLHandler.open(eq.api.StringStatic.for_strptr("https://twitter.com/home?status=").append(com.eqela.liburl.URLEncoder.encode(sb.to_string(),false)));};com.eqela.libtwittergui.TwitterShareDialog=function(){com.eqela.libsocialgui.SocialShareDialog.call(this);{}};P=com.eqela.libtwittergui.TwitterShareDialog.prototype=(function(o){function F(){};F.prototype=o;return(new F());})(com.eqela.libsocialgui.SocialShareDialog.prototype);P._t={};P._t['eq.api.Object']=true;P._t['com.eqela.libsocialgui.SocialShareDialog']=true;P._t['com.eqela.libtwittergui.TwitterShareDialog']=true;P.constructor=com.eqela.libtwittergui.TwitterShareDialog;com.eqela.libtwittergui.TwitterShareDialog.create=function(){return((new com.eqela.libtwittergui.GenericTwitterShareDialog()));};com.eqela.libtwittergui.TwitterShareDialog.for_text=function(text){var v=com.eqela.libtwittergui.TwitterShareDialog.create();if(v!==null){com.eqela.libsocialgui.SocialShareDialog.prototype.set_initial_text.call(v,text);}return(v);};