define(["Ti/_","Ti/_/declare","Ti/_/Evented","Ti/_/lang"],function(i,e,t,c){return e("Ti.UI.EmailDialog",t,{open:function(){var e,t,o=this.toRecipients||[],s="mailto:"+o.join(","),n={subject:"subject",ccRecipients:"cc",bccRecipients:"bcc",messageBody:"body"},r={};for(e in n)(t=this[e])&&(require.is(t,"Array")&&(t=t.join(",")),r[n[e]]=t);this.html||r.body&&(r.body=i.escapeHtmlEntities(r.body)),r=c.urlEncode(r),location.href=s+(r?"?"+r:""),this.fireEvent("complete",{result:this.SENT,success:!0})},isSupported:function(){return!0},constants:{CANCELLED:0,FAILED:3,SAVED:1,SENT:2},properties:{bccRecipients:void 0,ccRecipients:void 0,html:!1,messageBody:void 0,subject:void 0,toRecipients:void 0}})});