var com=com||{};com.eqela=com.eqela||{};com.eqela.libsocialgui=com.eqela.libsocialgui||{};com.eqela.libsocialgui.SocialShareDialog=function(){eq.api.Object.call(this);this.com_eqela_libsocialgui_SocialShareDialog_initial_text=null;this.com_eqela_libsocialgui_SocialShareDialog_initial_link=null;this.com_eqela_libsocialgui_SocialShareDialog_hashtags=null;{}};P=com.eqela.libsocialgui.SocialShareDialog.prototype=(function(o){function F(){};F.prototype=o;return(new F());})(eq.api.Object.prototype);P._t={};P._t['eq.api.Object']=true;P._t['com.eqela.libsocialgui.SocialShareDialog']=true;P.constructor=com.eqela.libsocialgui.SocialShareDialog;P.add_hashtag=function(hashtag){if(eq.api.StringStatic.is_empty(hashtag)){return;}if(this.com_eqela_libsocialgui_SocialShareDialog_hashtags===null){this.com_eqela_libsocialgui_SocialShareDialog_hashtags=eq.api.LinkedList.create();}var sb=eq.api.StringBufferStatic.create(eq.api.StringStatic.for_strptr(" #"));var it=hashtag.iterate();while(it!==null){var nc=it.next_char();if(nc < 1){break;}if((((nc >= 'a'.charCodeAt(0))&&(nc <= 'z'.charCodeAt(0)))||((nc >= 'A'.charCodeAt(0))&&(nc <= 'Z'.charCodeAt(0))))||((nc >= '0'.charCodeAt(0))&&(nc <= '9'.charCodeAt(0)))){sb.append_c(nc);}}if(sb.count() < 1){return;}this.com_eqela_libsocialgui_SocialShareDialog_hashtags.add(sb.to_string());};P.add_link=function(link){if(eq.api.StringStatic.is_empty(link)){return;}if(link.has_prefix(eq.api.StringStatic.for_strptr("https://"))||link.has_prefix(eq.api.StringStatic.for_strptr("http://"))){com.eqela.libsocialgui.SocialShareDialog.prototype.set_initial_link.call(this,link);return;}com.eqela.libsocialgui.SocialShareDialog.prototype.set_initial_link.call(this,eq.api.StringStatic.for_strptr("http://%s").printf().add(link).to_string());};P.execute=function(frame,listener){};P.set_initial_text=function(v){this.com_eqela_libsocialgui_SocialShareDialog_initial_text=v;return(this);};P.get_initial_text=function(){return(this.com_eqela_libsocialgui_SocialShareDialog_initial_text);};P.set_initial_link=function(v){this.com_eqela_libsocialgui_SocialShareDialog_initial_link=v;return(this);};P.get_initial_link=function(){return(this.com_eqela_libsocialgui_SocialShareDialog_initial_link);};P.set_hashtags=function(v){this.com_eqela_libsocialgui_SocialShareDialog_hashtags=v;return(this);};P.get_hashtags=function(){return(this.com_eqela_libsocialgui_SocialShareDialog_hashtags);};