-1:e.currentValue},on:{change:[function(t){var s=e.currentValue,i=t.target,a=!!i.checked;if(Array.isArray(s)){var n=null,r=e._i(s,n);i.checked?r<0&&(e.currentValue=s.concat([n])):r>-1&&(e.currentValue=s.slice(0,r).concat(s.slice(r+1)))}else e.currentValue=a},e.inputUpdate]}}),t("span",{class:{"toggle-switch":!0,"toggle-switch-with-label":e.label}}),e.label?t("span",{staticClass:"label-description",domProps:{innerHTML:e._s(e.label)}}):e._e()]),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])])},Ft=[],zt={name:"SettingsInputSwitch",components:{SettingsInfoTooltip:Te},props:{name:String,value:Boolean,title:String,label:String,description:String,constant:String,tooltip:String,classname:String,disabled:Boolean},data(){return{has_error:!1,id:"input-"+this.name}},computed:{currentValue:{get(){return this.value},set(e){this.$emit("input",!!e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the "+this.constant+"
constant in your wp-config.php
file.","easy-wp-smtp")}},methods:{inputUpdate:function(){if(this.disabled)return!1}}},Lt=zt,Ot=(0,d.A)(Lt,It,Ft,!1,null,null,null),Rt=Ot.exports,Wt={name:"WizardStepConfigureMailerSmtp",components:{SettingsInputText:Le,SettingsInputRadio:Pt,SettingsInputNumber:Tt,SettingsInputSwitch:Rt},data(){return{mailer:"smtp",text_host_label:(0,l.__)("SMTP Host","easy-wp-smtp"),text_encryption_label:(0,l.__)("Encryption","easy-wp-smtp"),text_port_label:(0,l.__)("SMTP Port","easy-wp-smtp"),text_autotls_title:(0,l.__)("Auto TLS","easy-wp-smtp"),text_autotls_label:(0,l.__)("Enable Auto TLS","easy-wp-smtp"),text_autotls_description:(0,l.__)("By default, TLS encryption is automatically used if the server supports it (recommended). In some cases, due to server misconfigurations, this can cause issues and may need to be disabled.","easy-wp-smtp"),text_auth_title:(0,l.__)("Authentication","easy-wp-smtp"),text_auth_label:(0,l.__)("Enable Authentication","easy-wp-smtp"),text_user_label:(0,l.__)("SMTP Username","easy-wp-smtp"),text_pass_label:(0,l.__)("SMTP Password","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_encryption_description:(0,l.__)("For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS.","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.smtp.description,encryptionOptions:[{label:(0,l.__)("None","easy-wp-smtp"),value:"none",default_port:25},{label:(0,l.__)("SSL","easy-wp-smtp"),value:"ssl",default_port:465},{label:(0,l.__)("TLS","easy-wp-smtp"),value:"tls",default_port:587}],show_autotls:!0,show_user_and_pass:!0,field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.smtp.host","settings.smtp.auth","settings.smtp.port","settings.smtp.encryption","settings.smtp.user","settings.smtp.pass","settings.smtp.autotls","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},watch:{encryption:function(e){this.show_autotls="tls"!==e}},methods:{getEncryptionDefaultPort(e){return this.encryptionOptions.find((t=>t.value===e)).default_port},encryptionChanged(e){this.port=this.getEncryptionDefaultPort(e)},areRequiredFieldsValid(){return""===this.host&&this.field_errors.push("host"),(""===this.port||isNaN(this.port))&&this.field_errors.push("port"),this.auth&&(""===this.user&&this.field_errors.push("user"),""===this.pass&&this.field_errors.push("pass")),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}},mounted(){"tls"===this.encryption&&(this.show_autotls=!1)}},Nt=Wt,Yt=(0,d.A)(Nt,gt,wt,!1,null,null,null),Dt=Yt.exports,Ut=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendlayer"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:e.get_started_button_url,target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(953),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SENDLAYER_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Bt=[],Vt={name:"WizardStepConfigureMailerSendlayer",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendlayer",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SendLayer.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with SendLayer","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendLayer","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.sendlayer.description.substr(0,this.$easywpsmtp.mailer_options.sendlayer.description.lastIndexOf("")),get_started_button_url:this.$getUTMUrl("https://sendlayer.com/easy-wp-smtp/",{source:"easywpsmtpplugin",medium:"WordPress",content:"Setup Wizard - Mailer Button"}),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendlayer-mailer/",{content:"Read how to set up SendLayer"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.sendlayer.api_key","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Ht=Vt,Kt=(0,d.A)(Ht,Ut,Bt,!1,null,null,null),qt=Kt.exports,Gt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-smtp2go"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SMTP2GO_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",title:e.text_force_from_name_title,label:e.text_force_from_name_label},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",title:e.text_force_from_email_title,label:e.text_force_from_email_label},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},jt=[],Zt={name:"WizardStepConfigureMailerSMTP2GO",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"smtp2go",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("Generate an API key on the Sending → API Keys page in your %1$scontrol panel%2$s.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SMTP2GO","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.smtp2go.description.substr(0,this.$easywpsmtp.mailer_options.smtp2go.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/setting-up-the-smtp2go-mailer-in-easy-wp-smtp/",{content:"Read how to set up SMTP2GO"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.smtp2go.api_key","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Jt=Zt,Xt=(0,d.A)(Jt,Gt,jt,!1,null,null,null),Qt=Xt.exports,es=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-smtpcom"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:"https://easywpsmtp.com/go/smtp/",target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(953),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))]),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[e._v(e._s(e.text_disclosure))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SMTPCOM_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"channel",constant:"EASY_WP_SMTP_SMTPCOM_CHANNEL",label:e.text_channel_label,description:e.text_channel_description,is_error:e.field_errors.includes("channel")},on:{is_error_update:function(t){return e.removeFieldError("channel")}},model:{value:e.channel,callback:function(t){e.channel=t},expression:"channel"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ts=[],ss={name:"WizardStepConfigureMailerSmtpCom",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"smtpcom",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_channel_label:(0,l.__)("Sender Name","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SMTP.com.","easy-wp-smtp"),'',""),text_channel_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get a Sender Name for SMTP.com.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with SMTP.com","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SMTP.com","easy-wp-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","easy-wp-smtp"),disclosure_tooltip_data:{content:(0,l.__)("We believe in full transparency. The SMTP.com links above are tracking links as part of our partnership with SMTP (j2 Global). We can recommend just about any SMTP service, but we only recommend products that we believe will add value to our users.","easy-wp-smtp"),autoHide:!0,trigger:"hover"},description:this.$easywpsmtp.mailer_options.smtpcom.description.substr(0,this.$easywpsmtp.mailer_options.smtpcom.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-smtp-com-mailer",{content:"Read how to set up SMTP.com"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.smtpcom.api_key","settings.smtpcom.channel","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.channel&&this.field_errors.push("channel"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},is=ss,as=(0,d.A)(is,es,ts,!1,null,null,null),ns=as.exports,rs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendinblue"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:"https://easywpsmtp.com/go/sendinblue/",target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(953),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))]),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[e._v(e._s(e.text_disclosure))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SENDINBLUE_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EASY_WP_SMTP_SENDINBLUE_DOMAIN",label:e.text_domain_label,description:e.text_domain_description},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},os=[],ls={name:"WizardStepConfigureMailerSendinblue",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendinblue",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Sending Domain","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for Brevo.","easy-wp-smtp"),'',""),text_domain_description:(0,l.nv)((0,l.__)("Please input the sending domain/subdomain you configured in your Brevo dashboard. More information can be found in our %1$sBrevo documentation%2$s","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with Brevo","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Brevo","easy-wp-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","easy-wp-smtp"),disclosure_tooltip_data:{content:(0,l.__)("We believe in full transparency. The Brevo links above are tracking links as part of our partnership with Brevo. We can recommend just about any SMTP service, but we only recommend products that we believe will add value to our users.","easy-wp-smtp"),autoHide:!0,trigger:"hover"},description:this.$easywpsmtp.mailer_options.sendinblue.description.substr(0,this.$easywpsmtp.mailer_options.sendinblue.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendinblue-mailer",{content:"Read how to set up Brevo"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.sendinblue.api_key","settings.sendinblue.domain","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},_s=ls,ps=(0,d.A)(_s,rs,os,!1,null,null,null),ms=ps.exports,cs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-mailgun"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_MAILGUN_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EASY_WP_SMTP_MAILGUN_DOMAIN",label:e.text_domain_label,description:e.text_domain_description,is_error:e.field_errors.includes("domain")},on:{is_error_update:function(t){return e.removeFieldError("domain")}},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-radio",{attrs:{name:"region",constant:"EASY_WP_SMTP_MAILGUN_REGION",label:e.text_region_label,options:e.regionOptions,description:e.text_region_description},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ds=[],us={name:"WizardStepConfigureMailerMailgun",components:{SettingsInputText:Le,SettingsInputRadio:Pt,SettingsInputSwitch:Rt},data(){return{mailer:"mailgun",text_api_key_label:(0,l.__)("Mailgun API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Domain Name","easy-wp-smtp"),text_region_label:(0,l.__)("Region","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)('%1$sFollow this link%2$s to get a Mailgun API Key. Generate a key in the "Mailgun API Keys" section.',"easy-wp-smtp"),'',""),text_domain_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get a Domain Name from Mailgun.","easy-wp-smtp"),'',""),text_region_description:(0,l.nv)((0,l.__)("Define which endpoint you want to use for sending messages. If you are operating under EU laws, you may be required to use EU region. %1$sMore information%2$s on Mailgun.com.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Mailgun","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.mailgun.description.substr(0,this.$easywpsmtp.mailer_options.mailgun.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-mailgun-mailer/",{content:"Read how to set up Mailgun"}),regionOptions:[{label:(0,l.__)("US","easy-wp-smtp"),value:"US"},{label:(0,l.__)("EU","easy-wp-smtp"),value:"EU"}],field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.mailgun.api_key","settings.mailgun.domain","settings.mailgun.region","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.domain&&this.field_errors.push("domain"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},fs=us,hs=(0,d.A)(fs,cs,ds,!1,null,null,null),ys=hs.exports,gs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-mailjet"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_MAILJET_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"secret_key",type:"password",constant:"EASY_WP_SMTP_MAILJET_SECRET_KEY",label:e.text_secret_key_label,description:e.text_secret_key_description,is_error:e.field_errors.includes("secret_key")},on:{is_error_update:function(t){return e.removeFieldError("secret_key")}},model:{value:e.secret_key,callback:function(t){e.secret_key=t},expression:"secret_key"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",title:e.text_force_from_name_title,label:e.text_force_from_name_label},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",title:e.text_force_from_email_title,label:e.text_force_from_email_label},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ws=[],bs={name:"WizardStepConfigureMailerMailjet",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"mailjet",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("Follow this link to get the API key from Mailjet: %1$sAPI Key Management%2$s.","easy-wp-smtp"),'',""),text_secret_key_label:(0,l.__)("Secret Key","easy-wp-smtp"),text_secret_key_description:(0,l.nv)((0,l.__)("Follow this link to get the Secret key from Mailjet: %1$sAPI Key Management%2$s.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Mailjet","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.mailjet.description.substr(0,this.$easywpsmtp.mailer_options.mailjet.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-mailjet-mailer/",{content:"Read how to set up Mailjet"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.mailjet.api_key","settings.mailjet.secret_key","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},vs=bs,xs=(0,d.A)(vs,gs,ws,!1,null,null,null),ks=xs.exports,Ss=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendgrid"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SENDGRID_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EASY_WP_SMTP_SENDGRID_DOMAIN",label:e.text_domain_label,description:e.text_domain_description},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Ps=[],$s={name:"WizardStepConfigureMailerSendgrid",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendgrid",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Sending Domain","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SendGrid.","easy-wp-smtp"),'',"")+"
"+(0,l.nv)((0,l.__)("To send emails you will need only a %1$sMail Send%2$s access level for this API key.","easy-wp-smtp"),"",""),text_domain_description:(0,l.nv)((0,l.__)("Please input the sending domain/subdomain you configured in your SendGrid dashboard. More information can be found in our %1$sSendGrid documentation%2$s","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendGrid","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.sendgrid.description.substr(0,this.$easywpsmtp.mailer_options.sendgrid.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendgrid-mailer/",{content:"Read how to set up Sendgrid"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.sendgrid.api_key","settings.sendgrid.domain","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},As=$s,Cs=(0,d.A)(As,Ss,Ps,!1,null,null,null),Es=Cs.exports,Ms=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-postmark"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"server_api_token",type:"password",constant:"EASY_WP_SMTP_POSTMARK_SERVER_API_TOKEN",label:e.text_server_api_token_label,description:e.text_server_api_token_description,is_error:e.field_errors.includes("server_api_token")},on:{is_error_update:function(t){return e.removeFieldError("server_api_token")}},model:{value:e.server_api_token,callback:function(t){e.server_api_token=t},expression:"server_api_token"}}),t("settings-input-text",{attrs:{name:"message_stream",constant:"EASY_WP_SMTP_POSTMARK_MESSAGE_STREAM",label:e.text_message_stream_label,description:e.text_message_stream_description},model:{value:e.message_stream,callback:function(t){e.message_stream=t},expression:"message_stream"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_lable,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Ts=[],Is={name:"WizardStepConfigureMailerPostmark",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"postmark",text_server_api_token_label:(0,l.__)("Server API Token","easy-wp-smtp"),text_message_stream_label:(0,l.__)("Message Stream ID","easy-wp-smtp"),text_server_api_token_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get a Server API Token for Postmark.","easy-wp-smtp"),'',""),text_message_stream_description:(0,l.nv)((0,l.__)("Message Stream ID is optional. By default outbound (Default Transactional Stream) will be used. More information can be found in our %1$sPostmark documentation%2$s.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_lable:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Postmark","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.postmark.description.substr(0,this.$easywpsmtp.mailer_options.postmark.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-postmark-mailer/",{content:"Read how to set up Postmark"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.postmark.server_api_token","settings.postmark.message_stream","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.server_api_token&&this.field_errors.push("server_api_token"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Fs=Is,zs=(0,d.A)(Fs,Ms,Ts,!1,null,null,null),Ls=zs.exports,Os=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sparkpost"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_SPARKPOST_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-radio",{attrs:{name:"region",constant:"EASY_WP_SMTP_SPARKPOST_REGION",label:e.text_region_label,options:e.regionOptions,description:e.text_region_description},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Rs=[],Ws={name:"WizardStepConfigureMailerSparkPost",components:{SettingsInputText:Le,SettingsInputRadio:Pt,SettingsInputSwitch:Rt},data(){return{mailer:"sparkpost",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_region_label:(0,l.__)("Region","easy-wp-smtp"),text_region_description:(0,l.nv)((0,l.__)("Select your SparkPost account region. %1$sMore information%2$s on SparkPost.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SparkPost","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.sparkpost.description.substr(0,this.$easywpsmtp.mailer_options.sparkpost.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sparkpost-mailer/",{content:"Read how to set up SparkPost"}),regionOptions:[{label:(0,l.__)("US","easy-wp-smtp"),value:"US"},{label:(0,l.__)("EU","easy-wp-smtp"),value:"EU"}],field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.sparkpost.api_key","settings.sparkpost.region","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"]),text_api_key_description:function(){let e="EU"===this.region?"eu.":"";return(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SparkPost.","easy-wp-smtp"),'',"")}},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Ns=Ws,Ys=(0,d.A)(Ns,Os,Rs,!1,null,null,null),Ds=Ys.exports,Us=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-amazonses"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("b",[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])])]),e.is_ssl?t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"client_id",constant:"EASY_WP_SMTP_AMAZONSES_CLIENT_ID",label:e.text_client_id_label,is_error:e.field_errors.includes("client_id")},on:{is_error_update:function(t){return e.removeFieldError("client_id")}},model:{value:e.client_id,callback:function(t){e.client_id=t},expression:"client_id"}}),t("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"EASY_WP_SMTP_AMAZONSES_CLIENT_SECRET",label:e.text_client_secret_label,is_error:e.field_errors.includes("client_secret")},on:{is_error_update:function(t){return e.removeFieldError("client_secret")}},model:{value:e.client_secret,callback:function(t){e.client_secret=t},expression:"client_secret"}}),t("settings-input-select",{attrs:{name:"region",constant:"EASY_WP_SMTP_AMAZONSES_REGION",label:e.text_region_label,options:e.regionOptions,description:e.text_region_description,is_error:e.field_errors.includes("region")},on:{is_error_update:function(t){return e.removeFieldError("region")}},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}}),e.is_api_auth_missing?e._e():[e.display_identities?t("div",[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-amazon-s-e-s-identities",{attrs:{options:e.identities,label:e.text_identities_label,columns:e.identities_columns}})],1):e._e(),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})]],2):t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("div",{staticClass:"easy-wp-smtp-notice easy-wp-smtp-notice--error"},[t("p",[t("span",[e._v(e._s(e.text_no_ssl))]),e._v(" "),t("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[e._v(e._s(e.text_no_ssl_link_text))]),e._v(".")]),t("p",[e._v(e._s(e.text_no_ssl_diff_mailer))])])])])},Bs=[],Vs=s(181),Hs=s.n(Vs),Ks=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-select",class:{"settings-input-select-error":e.field_error}},[t("label",{staticClass:"settings-input-label-container",attrs:{for:`easy-wp-smtp-settings-select-${e.name}`}},[t("span",{staticClass:"label"},[e._v(e._s(e.label))])]),t("div",{staticClass:"settings-input-select-container"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:`easy-wp-smtp-settings-select-${e.name}`,name:e.name,readonly:e.disabled,disabled:e.is_constant_set},on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selected=t.target.multiple?s:s[0]}}},e._l(e.options,(function(s){return t("option",{key:s.value,domProps:{value:s.value}},[e._v(" "+e._s(s.label)+" ")])})),0)]),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])},qs=[],Gs={name:"SettingsInputSelect",props:{options:Array,label:String,name:String,value:String,description:String,constant:String,disabled:Boolean,is_error:Boolean},computed:{selected:{get(){return this.value},set(e){this.$emit("is_error_update",!1),this.$emit("input",e)}},field_error:{get(){return this.is_error},set(e){this.$emit("is_error_update",e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the "+this.constant+"
constant in your wp-config.php
file.","easy-wp-smtp")}}},js=Gs,Zs=(0,d.A)(js,Ks,qs,!1,null,null,null),Js=Zs.exports,Xs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-amazon-ses-identities"},[t("label",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),e.options?t("div",[e.options&&0!==e.options.length?t("p",{staticClass:"description"},[e._v(" "+e._s(e.text_identities_table_description)+" ")]):t("p",{staticClass:"description"},[t("strong",[e._v(e._s(e.text_no_registered_identities_title))]),e._v(" "+e._s(e.text_no_registered_identities_content)+" ")]),t("div",{staticClass:"ses-identities-container"},[e.options&&e.options.length>0?t("div",{staticClass:"ses-identities-table-container"},[t("table",[e.columns?t("tr",{staticClass:"ses-identity-columns"},e._l(e.filtered_columns,(function(s){return t("th",{key:s.key,class:`ses-identity-column ses-identity-column-${s.key}`},[e._v(" "+e._s(s.label)+" ")])})),0):e._e(),e._l(e.options,(function(s,i){return t("tr",{key:i},[t("td",[e._v(" "+e._s(s.value)+" ")]),t("td",[e._v(" "+e._s(s.type)+" ")]),t("td",[e._v(" "+e._s(s.status)+" ")])])})),e.show_identity_form?e._e():t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.addNewIdentity.apply(null,arguments)}}},[e._v(" "+e._s(e.text_add_new_identity)+" ")])],2)]):e._e(),e.show_identity_form||!e.options||0===e.options.length?t("div",{staticClass:"easy-wp-smtp-amazonses-identity-form"},[e.options&&0!==e.options.length?e._e():t("h3",[e._v(" "+e._s(e.text_verify_identity)+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:1===e.verify_identity_step,expression:"verify_identity_step === 1"}],staticClass:"amazonses-identity-form-step"},[t("settings-input-radio",{attrs:{name:"identity_type",options:e.identity_type_options},model:{value:e.identity_type,callback:function(t){e.identity_type=t},expression:"identity_type"}}),t("p",{domProps:{textContent:e._s(e.verify_identity_text)}}),t("settings-input-text",{attrs:{name:"identity_value",placeholder:e.identity_value_placeholder},model:{value:e.identity_value,callback:function(t){e.identity_value=t},expression:"identity_value"}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small easy-wp-smtp-button-verify",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.verifyIdentity.apply(null,arguments)}}},[e.loading_verify_identity?t("spin-loader",{attrs:{color:"white"}}):t("span",[e._v(e._s(e.text_verify))])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.verify_identity_step&&"domain"===e.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'domain'"}],staticClass:"amazonses-identity-form-step amazonses-identity-form-step-domain"},[t("p",{domProps:{innerHTML:e._s(e.text_verify_identity_step2_domain_text)}}),t("div",{staticClass:"amazonses-dns-records"},[t("div",{staticClass:"amazonses-dns-records__row amazonses-dns-records__row--heading"},[t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[e._v(" "+e._s(e.text_name)+" ")]),t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[e._v(" "+e._s(e.text_value)+" ")])]),e._l(e.verify_identity_result.domain_dkim_dns_records,(function(e,s){return t("div",{key:e.value,staticClass:"amazonses-dns-records__row amazonses-dns-records__row--record"},[t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[t("settings-input-text",{attrs:{name:`dns_record_name[${s}]`,value:e.name,readonly:"",copy:""}})],1),t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[t("settings-input-text",{attrs:{name:`dns_record_value[${s}]`,value:e.value,readonly:"",copy:""}})],1)])}))],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.verify_identity_step&&"email"===e.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'email'"}],staticClass:"amazonses-identity-form-step"},[t("p",{staticClass:"ses-identities-email-success-notice"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9318),width:"16",height:"16"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.text_verify_identity_step2_email_text)}})],1)])]):e._e()])]):t("spin-loader",{attrs:{size:"md"}})],1)},Qs=[],ei=function(){var e=this,t=e._self._c;return t("img",{class:`easy-wp-smtp-loader easy-wp-smtp-loader-${e.size}`,attrs:{src:e.image,alt:e.text_loading}})},ti=[],si={name:"SpinLoader",props:{color:{type:String,default:""},size:{type:String,default:"sm"}},data(){return{image:s(3159)(`./loading${this.color.length?"-"+this.color:""}.svg`),text_loading:(0,l.__)("Loading","easy-wp-smtp")}}},ii=si,ai=(0,d.A)(ii,ei,ti,!1,null,null,null),ni=ai.exports,ri={name:"SettingsAmazonSESIdentities",components:{SettingsInfoTooltip:Te,SettingsInputRadio:Pt,SettingsInputText:Le,SpinLoader:ni},props:{options:Array,columns:Array,label:String,tooltip:String},computed:{filtered_columns:function(){return this.columns.filter((e=>"action"!==e.key))},identity_value_placeholder:function(){return"domain"===this.identity_type?(0,l.__)("Please enter a domain","easy-wp-smtp"):(0,l.__)("Please enter a valid email address","easy-wp-smtp")},verify_identity_text:function(){return"domain"===this.identity_type?(0,l.__)("Enter the domain name to verify it on Amazon SES and generate the required DNS CNAME records.","easy-wp-smtp"):(0,l.__)("Enter a valid email address. A verification email will be sent to the email address you entered.","easy-wp-smtp")},text_verify_identity_step2_email_text:function(){return(0,l.nv)((0,l.__)("Please check the inbox of %s for a confirmation email.","easy-wp-smtp"),this.verify_identity_result.value)},text_verify:function(){return"domain"===this.identity_type?(0,l.__)("Verify Domain","easy-wp-smtp"):(0,l.__)("Verify Email","easy-wp-smtp")}},data(){return{text_no_registered_identities_title:(0,l.__)("No registered domains or emails.","easy-wp-smtp"),text_no_registered_identities_content:(0,l.__)("You will not be able to send emails until you verify at least one domain or email address for the selected Amazon SES Region.","easy-wp-smtp"),text_view_dns:(0,l.__)("View DNS","easy-wp-smtp"),text_resend:(0,l.__)("Resend","easy-wp-smtp"),text_identities_table_description:(0,l.__)("Here are the domains and email addresses that have been verified and can be used as the From Email.","easy-wp-smtp"),text_verify_identity:(0,l.__)("Verify SES Identity","easy-wp-smtp"),text_add_new_identity:(0,l.__)("Add New SES Identity","easy-wp-smtp"),text_name:(0,l.__)("Name","easy-wp-smtp"),text_value:(0,l.__)("Value","easy-wp-smtp"),text_verify_identity_step2_domain_text:(0,l.nv)((0,l.__)("Please add these CNAME records to your domain's DNS settings. For information on how to add CNAME DNS records, please refer to the %1$sAmazon SES documentation%2$s.","easy-wp-smtp"),'',""),show_identity_form:!1,identity_type:"domain",identity_type_options:[{label:(0,l.__)("Verify Domain","easy-wp-smtp"),value:"domain"},{label:(0,l.__)("Verify Email Address","easy-wp-smtp"),value:"email"}],identity_value:"",verify_identity_step:1,verify_identity_result:{},loading_verify_identity:!1}},methods:{verifyIdentity:function(){if(this.loading_verify_identity)return;this.loading_verify_identity=!0;const e=this;this.$store.dispatch("$_settings/amazonSESRegisterIdentity",{value:this.identity_value,type:this.identity_type}).then((function(t){e.loading_verify_identity=!1,t.success&&t.data&&(e.verify_identity_result=t.data,e.verify_identity_step=2)}))},addNewIdentity:function(){this.show_identity_form=!0}}},oi=ri,li=(0,d.A)(oi,Xs,Qs,!1,null,null,null),_i=li.exports,pi={name:"WizardStepConfigureMailerAmazonSES",components:{SettingsInputText:Le,SettingsInputSelect:Js,SettingsInputSwitch:Rt,SettingsAmazonSESIdentities:_i},data(){return{mailer:"amazonses",text_client_id_label:(0,l.__)("Access Key ID","easy-wp-smtp"),text_client_secret_label:(0,l.__)("Secret Access Key",{NODE_ENV:"production",VUE_APP_TEXTDOMAIN:"easy-wp-smtp",VUE_APP_PRODUCT_NAME:"EasyWPSMTP",BASE_URL:""}.VUE_APP_TEXTclient_id),text_region_label:(0,l.__)("Region","easy-wp-smtp"),text_identities_label:(0,l.__)("SES Identities","easy-wp-smtp"),text_region_description:(0,l.__)("Please select the Amazon SES API region which is the closest to where your website is hosted. This can help to decrease network latency between your site and Amazon SES, which will speed up email sending.","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Amazon SES","easy-wp-smtp"),text_no_ssl:(0,l.__)("Amazon SES requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out ","easy-wp-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","easy-wp-smtp"),text_no_ssl_diff_mailer:(0,l.__)("If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please go back and select a different mailer option.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.amazonses.description.substr(0,this.$easywpsmtp.mailer_options.amazonses.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-amazon-ses-mailer/",{content:"Read how to set up Amazon SES"}),regionOptions:this.$easywpsmtp.mailer_options.amazonses.region_options||[],fetching_identities:!1,is_ssl:this.$easywpsmtp.is_ssl,field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.amazonses.client_id","settings.amazonses.client_secret","settings.amazonses.region","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"]),...(0,ne.YP)("$_settings",{identities_columns:"amazonses_identities.columns",identities:"amazonses_identities.data",display_identities:"amazonses_display_identities"}),...(0,ne.YP)("$_wizard",["blocked_step"]),is_api_auth_missing:function(){return!this.client_id||!this.client_secret||!this.region}},watch:{client_id:function(){this.getIdentitiesDelayed()},client_secret:function(){this.getIdentitiesDelayed()},region:function(){this.getIdentities()}},methods:{getIdentities:function(){this.display_identities&&(this.fetching_identities||this.client_id.length<20||this.client_secret.length<40||!this.region||(this.fetching_identities=!0,this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/getAmazonSESIdentities").then((()=>{this.fetching_identities=!1})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))))},getIdentitiesDelayed:Hs()((function(){this.getIdentities()}),500),areRequiredFieldsValid(){return""===this.client_id&&this.field_errors.push("client_id"),""===this.client_secret&&this.field_errors.push("client_secret"),""===this.region&&this.field_errors.push("region"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}},mounted(){this.getIdentities(),this.$easywpsmtp.is_ssl||(this.blocked_step=!0)}},mi=pi,ci=(0,d.A)(mi,Us,Bs,!1,null,"08fd3607",null),di=ci.exports,ui=function(){var e=this,t=e._self._c;return t("div",[e.license_verified||e.is_valid_license?e._e():t("div",{staticClass:"license-form",class:{"license-form-error":e.license_error}},[t("p",{domProps:{innerHTML:e._s(e.text_license_form)}}),t("div",{staticClass:"license-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:e.text_license_input_placeholder,"aria-label":e.text_aria_label_for_license_input},domProps:{value:e.license},on:{input:function(t){t.target.composing||(e.license=t.target.value)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.handleLicenseSubmit.apply(null,arguments)}}},[e._v(" "+e._s(e.text_license_button)+" ")])]),e.license_error?t("p",{staticClass:"error-message",domProps:{textContent:e._s(e.text_license_error)}}):e._e()]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-gmail",class:{"easy-wp-smtp-setup-wizard-step-configure-mailer-settings--blocked":!e.license_verified&&!e.is_valid_license}},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("b",[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-o-auth-connection",{attrs:{label:e.text_authorization_label,mailer:e.mailer,connected_email:e.connected_email_address,is_auth_required:e.is_auth_required}}),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])])},fi=[],hi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-oauth-connection"},[t("label",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),e.is_auth_required?t("div",{staticClass:"add-authorization-container"},[t("p",{staticClass:"description",domProps:{textContent:e._s(e.text_authorization_button_description)}}),"gmail"===e.mailer?t("button",{staticClass:"easy-wp-smtp-one-click-sign-in-btn easy-wp-smtp-one-click-sign-in-btn__google",attrs:{type:"button",disabled:!e.are_client_details_ready},on:{click:function(t){return t.preventDefault(),e.authorize.apply(null,arguments)}}},[t("span",{staticClass:"easy-wp-smtp-one-click-sign-in-btn__icon"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(3321),width:"46",height:"46"}})],1),t("span",{staticClass:"easy-wp-smtp-one-click-sign-in-btn__text"},[e._v(" "+e._s(e.text_google_authorization_button)+" ")])]):"outlook"===e.mailer&&e.outlook_one_click_setup_enabled?t("button",{staticClass:"easy-wp-smtp-one-click-sign-in-btn easy-wp-smtp-sign-in-btn__outlook",attrs:{type:"button",disabled:!e.are_client_details_ready||e.disabled},on:{click:function(t){return t.preventDefault(),e.authorize.apply(null,arguments)}}},[t("span",{staticClass:"easy-wp-smtp-one-click-sign-in-btn__icon"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(6458),width:"46",height:"46"}})],1),t("span",{staticClass:"easy-wp-smtp-one-click-sign-in-btn__text"},[e._v(" "+e._s(e.text_outlook_authorization_button)+" ")])]):t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button",disabled:!e.are_client_details_ready},on:{click:function(t){return t.preventDefault(),e.authorize.apply(null,arguments)}}},[e._v(" "+e._s(e.text_authorization_button)+" ")])]):t("div",{staticClass:"remove-authorization-container"},[e.connected_email?t("p",{staticClass:"description connected-as"},[t("span",{domProps:{innerHTML:e._s(e.text_connected_as_with_email)}}),e._v(" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(5636),width:"16",height:"16"}})],1):e._e(),"gmail"===e.mailer?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.text_remove_authorization_button_description_google)}}):e._e(),t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.text_remove_authorization_button_description)}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-red easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.removeAuthorization.apply(null,arguments)}}},[e._v(" "+e._s(e.text_remove_authorization_button)+" ")])])])},yi=[],gi={name:"SettingsOAuthConnection",components:{SettingsInfoTooltip:Te},props:{label:String,mailer:String,connected_email:String,is_auth_required:Boolean,client_id:String,client_secret:String,tooltip:String,disabled:Boolean},data(){return{text_allow_button:(0,l.__)("Connect to %s","easy-wp-smtp"),text_google_authorization_button:(0,l.__)("Sign in with Google","easy-wp-smtp"),text_outlook_authorization_button:(0,l.__)("Sign in with Outlook","easy-wp-smtp"),text_authorization_button_description_general:(0,l.__)("Before continuing, you'll need to allow this plugin to send emails using your %s account.","easy-wp-smtp"),text_remove_authorization_button:(0,l.__)("Remove OAuth Connection","easy-wp-smtp"),text_remove_authorization_button_description_google:(0,l.nv)((0,l.__)("If you want to use a different From Email address you can setup a Google email alias. %1$sFollow these instructions%2$s, then input the alias address in the From Email section below.","easy-wp-smtp"),'',""),text_remove_authorization_button_desc_template:(0,l.__)("Removing this OAuth connection will give you the ability to redo the OAuth connection or connect to different %s account.","easy-wp-smtp"),text_connected_as:(0,l.__)("Connected as","easy-wp-smtp")}},computed:{...(0,Y.L8)({outlook_one_click_setup_enabled:"$_settings/outlook_one_click_setup_enabled"}),are_client_details_ready:function(){return"gmail"===this.mailer||(!("outlook"!==this.mailer||!this.outlook_one_click_setup_enabled)||!!this.client_id&&!!this.client_secret)},mailer_name:function(){let e="Google";return"outlook"===this.mailer?e="Microsoft Outlook":"zoho"===this.mailer&&(e="Zoho Mail"),e},text_authorization_button:function(){return(0,l.nv)(this.text_allow_button,this.mailer_name)},text_authorization_button_description:function(){return(0,l.nv)(this.text_authorization_button_description_general,this.mailer_name)},text_remove_authorization_button_description:function(){return(0,l.nv)(this.text_remove_authorization_button_desc_template,this.mailer_name)},text_connected_as_with_email:function(){return`${this.text_connected_as} ${this.connected_email}`}},methods:{authorize:function(){this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/getAuthUrl",this.mailer).then((function(e){e.success&&e.data.oauth_url&&(window.location.href=e.data.oauth_url)})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},removeAuthorization:function(){this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/removeAuth",this.mailer).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},removeUrlParam:function(e,t,s){t.delete(s),e.search=t.toString(),window.history.replaceState({},document.title,e.toString())},catchAuthNotice:function(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);let s="",i="",a=!1;switch(t.has("success")?(s=t.get("success"),a=!0,this.removeUrlParam(e,t,"success")):t.has("error")&&(s=t.get("error"),this.removeUrlParam(e,t,"error")),s){case"oauth_invalid_state":i=(0,l.__)("There was an error while processing the authentication request. The state key is invalid. Please try again.","easy-wp-smtp");break;case"zoho_access_denied":i=(0,l.__)("There was an error while processing the authentication request. Please try again.","easy-wp-smtp");break;case"google_unsuccessful_oauth":i=(0,l.__)("There was an error while processing the authentication request.","easy-wp-smtp");break;case"microsoft_unsuccessful_oauth":case"zoho_no_clients":i=(0,l.__)("There was an error while processing the authentication request. Please recheck your Client ID and Client Secret and try again.","easy-wp-smtp");break;case"zoho_unsuccessful_oauth":i=(0,l.__)("There was an error while processing the authentication request. Please recheck your Region, Client ID and Client Secret and try again.","easy-wp-smtp");break;case"microsoft_invalid_nonce":case"zoho_invalid_nonce":i=(0,l.__)("There was an error while processing the authentication request. The nonce is invalid. Please try again.","easy-wp-smtp");break;case"microsoft_no_code":case"zoho_no_code":i=(0,l.__)("There was an error while processing the authentication request. The authorization code is missing. Please try again.","easy-wp-smtp");break;case"google_site_linked":i=(0,l.__)("You have successfully connected your site with your Gmail account. This site will now send emails via your Gmail account.","easy-wp-smtp");break;case"microsoft_site_linked":i=(0,l.__)("You have successfully linked the current site with your Microsoft API project. Now you can start sending emails through Outlook.","easy-wp-smtp");break;case"outlook_one_click_setup_site_linked":i=(0,l.__)("You have successfully connected your site with your Outlook account. Now you can start sending emails through Outlook.","easy-wp-smtp");break;case"zoho_site_linked":i=(0,l.__)("You have successfully linked the current site with your Zoho Mail API project. Now you can start sending emails through Zoho Mail.","easy-wp-smtp");break}i.length>0&&this.$swal({title:a?(0,l.__)("Successful Authorization","easy-wp-smtp"):(0,l.__)("Authorization Error!","easy-wp-smtp"),text:i,width:550,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})}},mounted(){this.catchAuthNotice()}},wi=gi,bi=(0,d.A)(wi,hi,yi,!1,null,null,null),vi=bi.exports,xi={name:"WizardStepConfigureMailerGmail",components:{SettingsInputText:Le,SettingsInputSwitch:Rt,SettingsOAuthConnection:vi},data(){return{mailer:"gmail",text_authorization_label:(0,l.__)("Authorization","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up the Gmail mailer","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.gmail.description.substr(0,this.$easywpsmtp.mailer_options.gmail.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-gmail-mailer/#create-app",{content:"Read how to set up the Gmail mailer"}),redirect_uri:this.$easywpsmtp.mailer_options.gmail.redirect_uri,possible_send_as_emails:[],field_errors:[],license_verified:!1,license:"",license_error:!1,text_license_form:(0,l.__)("Gmail mailer requires a valid Easy WP SMTP Pro license. Please activate your license key.","easy-wp-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","easy-wp-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","easy-wp-smtp"),text_license_button:(0,l.__)("Verify License Key","easy-wp-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","easy-wp-smtp")}},computed:{...(0,ne.YP)("$_settings",["settings.gmail.relay_credentials","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"]),...(0,ne.YP)("$_wizard",["blocked_step"]),...(0,Y.L8)({connected_email_address:"$_settings/gmail_email",is_valid_license:"$_settings/is_valid_license"}),is_auth_required:function(){return!this.relay_credentials?.key||!this.relay_credentials?.token}},watch:{is_auth_required:function(e){this.blocked_step=e}},methods:{areRequiredFieldsValid(){let e=!0;return""===this.from_email&&(e=!1,this.field_errors.push("from_email")),e},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},handleLicenseSubmit(){if(this.license_error=!1,this.license.length<16)return this.license_error=!0,!1;this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/verifyLicense",this.license).then((e=>{e.success?(this.license_verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","easy-wp-smtp"),html:(0,l.__)("Now you can continue mailer configuration.","easy-wp-smtp"),width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","easy-wp-smtp"),html:e.data,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))}},mounted(){this.is_auth_required&&(this.blocked_step=!0)}},ki=xi,Si=(0,d.A)(ki,ui,fi,!1,null,null,null),Pi=Si.exports,$i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-outlook"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),e.is_ssl?t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-switch",{attrs:{classname:"easy-wp-smtp-one-click-setup-switch",name:"one_click_setup_enabled",title:e.text_one_click_setup_title,label:e.one_click_setup_enabled?e.text_enabled:e.text_disabled,description:e.text_one_click_setup_description},model:{value:e.one_click_setup_enabled,callback:function(t){e.one_click_setup_enabled=t},expression:"one_click_setup_enabled"}}),e.one_click_setup_enabled?[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),e.license_verified||e.is_valid_license?e._e():t("div",{staticClass:"license-form",class:{"license-form-error":e.license_error}},[t("p",{domProps:{innerHTML:e._s(e.text_license_form)}}),t("div",{staticClass:"license-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:e.text_license_input_placeholder,"aria-label":e.text_aria_label_for_license_input},domProps:{value:e.license},on:{input:function(t){t.target.composing||(e.license=t.target.value)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.handleLicenseSubmit.apply(null,arguments)}}},[e._v(" "+e._s(e.text_license_button)+" ")])]),e.license_error?t("p",{staticClass:"error-message",domProps:{textContent:e._s(e.text_license_error)}}):e._e()]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-outlook",class:{"easy-wp-smtp-setup-wizard-step-configure-mailer-settings--blocked":!e.license_verified&&!e.is_valid_license}},[t("settings-o-auth-connection",{attrs:{hide_description:!0,mailer:e.mailer,connected_email:e.one_click_setup_connected_email_address,is_auth_required:e.is_auth_required}})],1)]:[t("div",{staticClass:"easy-wp-smtp-separator wp-mail-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"client_id",constant:"EASY_WP_SMTP_OUTLOOK_CLIENT_ID",label:e.text_client_id_label,is_error:e.field_errors.includes("client_id")},on:{is_error_update:function(t){return e.removeFieldError("client_id")}},model:{value:e.client_id,callback:function(t){e.client_id=t},expression:"client_id"}}),t("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"EASY_WP_SMTP_OUTLOOK_CLIENT_SECRET",label:e.text_client_secret_label,is_error:e.field_errors.includes("client_secret")},on:{is_error_update:function(t){return e.removeFieldError("client_secret")}},model:{value:e.client_secret,callback:function(t){e.client_secret=t},expression:"client_secret"}}),t("settings-input-text",{attrs:{value:e.redirect_uri,name:"redirect_uri",label:e.text_redirect_uri_label,copy:"",readonly:""}}),t("settings-o-auth-connection",{attrs:{label:e.text_authorization_label,mailer:e.mailer,connected_email:e.connected_email_address,is_auth_required:e.is_auth_required,client_id:e.client_id,client_secret:e.client_secret}})],e.is_auth_required?e._e():[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})]],2):t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("div",{staticClass:"easy-wp-smtp-notice easy-wp-smtp-notice--error"},[t("p",[t("span",[e._v(e._s(e.text_no_ssl))]),e._v(" "),t("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[e._v(e._s(e.text_no_ssl_link_text))]),e._v(".")]),t("p",[e._v(e._s(e.text_no_ssl_diff_mailer))])])])])},Ai=[],Ci={name:"WizardStepConfigureMailerOutlook",components:{SettingsInputText:Le,SettingsInputSwitch:Rt,SettingsOAuthConnection:vi},data(){return{mailer:"outlook",text_one_click_setup_title:(0,l.__)("One-Click Setup","easy-wp-smtp"),text_one_click_setup_description:(0,l.__)("Provides a quick and easy way to connect to Outlook that doesn't require creating your own app.","easy-wp-smtp"),text_client_id_label:(0,l.__)("Application ID","easy-wp-smtp"),text_client_secret_label:(0,l.__)("Application Password","easy-wp-smtp"),text_redirect_uri_label:(0,l.__)("Redirect URI","easy-wp-smtp"),text_authorization_label:(0,l.__)("Authorization","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Microsoft Outlook / 365","easy-wp-smtp"),text_enabled:(0,l.__)("Enabled","easy-wp-smtp"),text_disabled:(0,l.__)("Disabled","easy-wp-smtp"),text_no_ssl:(0,l.__)("Outlook / 365 requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out ","easy-wp-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","easy-wp-smtp"),text_no_ssl_diff_mailer:(0,l.__)("If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please go back and select a different mailer option.","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.outlook.description.substr(0,this.$easywpsmtp.mailer_options.outlook.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-outlook-mailer/#microsoft-setup",{content:"Read how to set up Microsoft Outlook / 365"}),redirect_uri:this.$easywpsmtp.mailer_options.outlook.redirect_uri,field_errors:[],is_ssl:this.$easywpsmtp.is_ssl,one_click_setup_enabled:!1,license:"",license_verified:!1,license_error:!1,text_license_form:(0,l.__)("One-Click Setup for Microsoft Outlook requires an active license. Verify your license to proceed with this One-Click Setup, please.","easy-wp-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","easy-wp-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","easy-wp-smtp"),text_license_button:(0,l.__)("Verify License Key","easy-wp-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","easy-wp-smtp")}},computed:{...(0,ne.YP)("$_settings",["settings.outlook.client_id","settings.outlook.client_secret","settings.outlook.access_token","settings.outlook.refresh_token","settings.outlook.one_click_setup_credentials","settings.mail.from_email","settings.mail.from_email_force"]),...(0,ne.YP)("$_wizard",["blocked_step"]),...(0,Y.L8)({is_valid_license:"$_settings/is_valid_license",one_click_setup_enabled_setting:"$_settings/outlook_one_click_setup_enabled",connected_email_address:"$_settings/outlook_email",one_click_setup_connected_email_address:"$_settings/outlook_one_click_setup_email"}),is_auth_required:function(){return this.one_click_setup_enabled?!this.one_click_setup_credentials?.access_token||!this.one_click_setup_credentials?.refresh_token:!this.access_token||!this.refresh_token}},watch:{is_auth_required:function(e){this.blocked_step=e},one_click_setup_enabled:function(e){this.$store.dispatch("$_settings/setOutlookUseOneClickSetup",e)},one_click_setup_enabled_setting:function(e){this.one_click_setup_enabled=e}},methods:{areRequiredFieldsValid(){let e=!0;return""===this.from_email&&(e=!1,this.field_errors.push("from_email")),this.one_click_setup_enabled||(""===this.client_id&&(e=!1,this.field_errors.push("client_id")),""===this.client_secret&&(e=!1,this.field_errors.push("client_secret"))),e},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)},handleLicenseSubmit(){if(this.license_error=!1,this.license.length<16)return this.license_error=!0,!1;this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/verifyLicense",this.license).then((e=>{e.success?(this.license_verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","easy-wp-smtp"),html:(0,l.__)("Now you can continue mailer configuration.","easy-wp-smtp"),width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","easy-wp-smtp"),html:e.data,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))}},mounted(){this.is_auth_required&&(this.blocked_step=!0),this.$easywpsmtp.is_ssl||(this.blocked_step=!0),this.one_click_setup_enabled=this.one_click_setup_enabled_setting}},Ei=Ci,Mi=(0,d.A)(Ei,$i,Ai,!1,null,"521c2de1",null),Ti=Mi.exports,Ii=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-zoho"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-select",{attrs:{name:"domain",constant:"EASY_WP_SMTP_ZOHO_DOMAIN",label:e.text_domain_label,options:e.domain_options,description:e.text_domain_description,is_error:e.field_errors.includes("domain")},on:{is_error_update:function(t){return e.removeFieldError("domain")}},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-text",{attrs:{name:"client_id",constant:"EASY_WP_SMTP_ZOHO_CLIENT_ID",label:e.text_client_id_label,is_error:e.field_errors.includes("client_id")},on:{is_error_update:function(t){return e.removeFieldError("client_id")}},model:{value:e.client_id,callback:function(t){e.client_id=t},expression:"client_id"}}),t("settings-input-text",{attrs:{name:"client_secret",constant:"EASY_WP_SMTP_ZOHO_CLIENT_SECRET",type:"password",label:e.text_client_secret_label,is_error:e.field_errors.includes("client_secret")},on:{is_error_update:function(t){return e.removeFieldError("client_secret")}},model:{value:e.client_secret,callback:function(t){e.client_secret=t},expression:"client_secret"}}),t("settings-input-text",{attrs:{value:e.redirect_uri,name:"redirect_uri",label:e.text_redirect_uri_label,copy:"",readonly:""}}),t("settings-o-auth-connection",{attrs:{label:e.text_authorization_label,mailer:e.mailer,connected_email:e.connected_email_address,is_auth_required:e.is_auth_required,client_id:e.client_id,client_secret:e.client_secret}}),e.is_auth_required?e._e():[t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}})]],2)])},Fi=[],zi={name:"WizardStepConfigureMailerZoho",components:{SettingsInputText:Le,SettingsInputSwitch:Rt,SettingsInputSelect:Js,SettingsOAuthConnection:vi},data(){return{mailer:"zoho",text_domain_label:(0,l.__)("Region","easy-wp-smtp"),text_domain_description:(0,l.__)("The data center location used by your Zoho account.","easy-wp-smtp"),text_client_id_label:(0,l.__)("Client ID","easy-wp-smtp"),text_client_secret_label:(0,l.__)("Client Secret","easy-wp-smtp"),text_redirect_uri_label:(0,l.__)("Redirect URI","easy-wp-smtp"),text_authorization_label:(0,l.__)("Authorization","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Zoho Mail","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.zoho.description.substr(0,this.$easywpsmtp.mailer_options.zoho.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-zoho-mailer/#zoho-account",{content:"Read how to set up Zoho Mail"}),redirect_uri:this.$easywpsmtp.mailer_options.zoho.redirect_uri,domain_options:this.$easywpsmtp.mailer_options.zoho.domain_options,field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.zoho.domain","settings.zoho.client_id","settings.zoho.client_secret","settings.zoho.access_token","settings.zoho.refresh_token","settings.mail.from_name","settings.mail.from_name_force"]),...(0,ne.YP)("$_wizard",["blocked_step"]),...(0,Y.L8)({connected_email_address:"$_settings/zoho_email"}),is_auth_required:function(){return!this.access_token||!this.refresh_token}},watch:{is_auth_required:function(e){this.blocked_step=e}},methods:{areRequiredFieldsValid(){let e=!0;return""===this.domain&&(e=!1,this.field_errors.push("domain")),""===this.client_id&&(e=!1,this.field_errors.push("client_id")),""===this.client_secret&&(e=!1,this.field_errors.push("client_secret")),e},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))}},mounted(){this.is_auth_required&&(this.blocked_step=!0)}},Li=zi,Oi=(0,d.A)(Li,Ii,Fi,!1,null,null,null),Ri=Oi.exports,Wi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-elasticemail"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EASY_WP_SMTP_ELASTICEMAIL_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EASY_WP_SMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EASY_WP_SMTP_MAIL_FROM_NAME_FORCE",title:e.text_force_from_name_title,label:e.text_force_from_name_label},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EASY_WP_SMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EASY_WP_SMTP_MAIL_FROM_FORCE",title:e.text_force_from_email_title,label:e.text_force_from_email_label},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Ni=[],Yi={name:"WizardStepConfigureMailerElasticEmail",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"elasticemail",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_api_key_description:(0,l.nv)((0,l.__)("%1$sFollow this link%2$s to get an API Key for Elastic Email.","easy-wp-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Elastic Email","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.elasticemail.description.substr(0,this.$easywpsmtp.mailer_options.elasticemail.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-elastic-email-mailer/",{content:"Read how to set up Elastic Email"}),field_errors:[]}},computed:{...(0,ne.YP)("$_settings",["settings.elasticemail.api_key","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"])},methods:{areRequiredFieldsValid(){return""===this.api_key&&this.field_errors.push("api_key"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Di=Yi,Ui=(0,d.A)(Di,Wi,Ni,!1,null,null,null),Bi=Ui.exports,Vi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-configure-email-logs"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-configure-email-logs-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("div",{staticClass:"easy-wp-smtp-plugin-configure-email-logs"},[t("settings-input-long-checkbox",{attrs:{name:"log_email_content",label:e.text_log_email_content,description:e.text_log_email_content_desc},model:{value:e.log_email_content,callback:function(t){e.log_email_content=t},expression:"log_email_content"}}),t("settings-input-long-checkbox",{attrs:{name:"save_attachments",label:e.text_save_attachments,description:e.text_save_attachments_desc},model:{value:e.save_attachments,callback:function(t){e.save_attachments=t},expression:"save_attachments"}}),t("settings-input-long-checkbox",{attrs:{name:"open_email_tracking",label:e.text_open_email_tracking,description:e.text_open_email_tracking_desc},model:{value:e.open_email_tracking,callback:function(t){e.open_email_tracking=t},expression:"open_email_tracking"}}),t("settings-input-long-checkbox",{attrs:{name:"click_link_tracking",label:e.text_click_link_tracking,description:e.text_click_link_tracking_desc},model:{value:e.click_link_tracking,callback:function(t){e.click_link_tracking=t},expression:"click_link_tracking"}})],1)]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9004),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(953),width:"16",height:"19"}})],1)])])])])},Hi=[],Ki={name:"WizardStepConfigureEmailLogs",components:{ContentHeader:f,TheWizardStepCounter:X,SettingsInputLongCheckbox:ye},data(){return{text_header_title:(0,l.__)("Configure Email Logs","easy-wp-smtp"),text_header_subtitle:(0,l.__)("You’ve chosen to enable email logging. Please select which additional email logging features you would like to use.","easy-wp-smtp"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_log_email_content:(0,l.__)("Store the content for all sent emails","easy-wp-smtp"),text_log_email_content_desc:(0,l.__)("Email content may include sensitive information, such as plain text passwords. For security purposes, consider carefully whether to enable this option. All email content will be stored in your site's database. To resend emails from our Email Log, this option must be enabled.","easy-wp-smtp"),text_save_attachments:(0,l.__)("Save file attachments sent from WordPress","easy-wp-smtp"),text_save_attachments_desc:(0,l.__)("When enabled, all sent attachments will be saved to your WordPress Uploads folder. For sites that send a high volume of unique large attachments, this option could result in a disk space issue.","easy-wp-smtp"),text_open_email_tracking:(0,l.__)("Track when an email is opened","easy-wp-smtp"),text_open_email_tracking_desc:(0,l.__)("When enabled, the email log will note whether or not an email has been opened.","easy-wp-smtp"),text_click_link_tracking:(0,l.__)("Track when a link in an email is clicked","easy-wp-smtp"),text_click_link_tracking_desc:(0,l.__)("When enabled, the email log will note whether or not a link has been clicked in the specified email.","easy-wp-smtp")}},computed:{...(0,ne.YP)("$_settings",["settings.logs.log_email_content","settings.logs.save_attachments","settings.logs.open_email_tracking","settings.logs.click_link_tracking"])},methods:{handleSubmit(){this.$store.dispatch("$_app/start_loading");let e={value:{logs:{log_email_content:this.log_email_content,save_attachments:this.save_attachments,open_email_tracking:this.open_email_tracking,click_link_tracking:this.click_link_tracking}}};this.$store.dispatch("$_settings/updateSettings",e).then((e=>{e.success?this.nextStep():this.$easywpsmtp_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},previousStep(){this.$previous_step()},nextStep(){this.$next_step()}}},qi=Ki,Gi=(0,d.A)(qi,Vi,Hi,!1,null,null,null),ji=Gi.exports,Zi=new n.Ay({routes:[{path:"*",redirect:"/"},{path:"/",name:"welcome",component:P},{path:"/step",name:"step",component:R,children:[{path:"choose_mailer",name:"choose_mailer_step",component:se},{path:"configure_mailer",name:"configure_mailer_step",component:_e,children:[{path:"smtp",name:"configure_mailer_step_smtp",component:Dt},{path:"sendlayer",name:"configure_mailer_step_sendlayer",component:qt},{path:"smtpcom",name:"configure_mailer_step_smtpcom",component:ns},{path:"sendinblue",name:"configure_mailer_step_sendinblue",component:ms},{path:"mailgun",name:"configure_mailer_step_mailgun",component:ys},{path:"mailjet",name:"configure_mailer_step_mailjet",component:ks},{path:"sendgrid",name:"configure_mailer_step_sendgrid",component:Es},{path:"postmark",name:"configure_mailer_step_postmark",component:Ls},{path:"sparkpost",name:"configure_mailer_step_sparkpost",component:Ds},{path:"amazoneses",name:"configure_mailer_step_amazonses",component:di},{path:"gmail",name:"configure_mailer_step_gmail",component:Pi},{path:"outlook",name:"configure_mailer_step_outlook",component:Ti},{path:"smtp2go",name:"configure_mailer_step_smtp2go",component:Qt},{path:"zoho",name:"configure_mailer_step_zoho",component:Ri},{path:"elasticemail",name:"configure_mailer_step_elasticemail",component:Bi}]},{path:"plugin_features",name:"plugin_features_step",component:ve},{path:"configure_email_logs",name:"configure_email_logs_step",component:ji},{path:"help_improve",name:"help_improve_step",component:He},{path:"license",name:"license_step",component:Qe},{path:"check_configuration",name:"check_configuration_step",component:nt},{path:"successful_configuration",name:"check_configuration_step_success",component:mt},{path:"failed_configuration",name:"check_configuration_step_failure",component:yt}]}],scrollBehavior(){return{x:0,y:0}}}),Ji={name:"SetupWizardApp",router:Zi,computed:{...(0,Y.L8)({blocked:"$_app/blocked",loading:"$_app/loading"})}},Xi=Ji,Qi=(0,d.A)(Xi,i,a,!1,null,null,null),ea=Qi.exports,ta=s(5471),sa=s(1823);const ia={install(e){window.easy_wp_smtp_vue&&(e.prototype.$easywpsmtp=window.easy_wp_smtp_vue),e.prototype.$isPro=aa,e.prototype.$addQueryArg=na,e.prototype.$getUTMUrl=ra}};function aa(){return window.easy_wp_smtp_vue.is_pro}function na(e,t,s){var i=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(e.match(i))return e.replace(i,"$1"+t+"="+s+"$2");var a="";-1!==e.indexOf("#")&&(a=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));var n=-1!==e.indexOf("?")?"&":"?";return e+n+t+"="+s+a}function ra(e,t){t={source:"WordPress",medium:"setup-wizard",campaign:aa()?"plugin":"liteplugin",content:"general",...t};for(const[s,i]of Object.entries(t))e=na(e,`utm_${s}`,encodeURIComponent(i));return e}var oa=ia;const la={install(e){e.prototype.$next_step=function(t=0){const s=e.prototype.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))+1+t;this.$router.push({name:e.prototype.$wizard_steps[s]})},e.prototype.$previous_step=function(t=0){let s="welcome";const i=e.prototype.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))-1-t;i>=0&&(s=e.prototype.$wizard_steps[i]),this.$router.push({name:s})},e.prototype.$swal&&(e.prototype.$easywpsmtp_success_toast=function(t){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:r="success",timer:o=3e3,showCloseButton:_=!0,title:p=(0,l.__)("Settings Updated","easy-wp-smtp"),showCancelButton:m=!1,confirmButtonText:c="",cancelButtonText:d="",text:u=""}=t;return e.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:r,showCloseButton:_,title:p,timer:o,showCancelButton:m,confirmButtonText:c,cancelButtonText:d,text:u})},e.prototype.$easywpsmtp_error_toast=function(t){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:r="error",showCloseButton:o=!0,title:_=(0,l.__)("Could Not Save Changes","easy-wp-smtp"),text:p=""}=t;return e.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:r,showCloseButton:o,title:_,text:p,onOpen:function(){e.prototype.$swal.hideLoading()}})},e.prototype.$easywpsmtp_error_modal=function(t){let{position:s="center",width:i=650,showConfirmButton:a=!0,confirmButtonText:n=(0,l.__)("Return to Mailer Settings","easy-wp-smtp"),customClass:r={container:"easy-wp-smtp-swal easy-wp-smtp-swal-error"},showCloseButton:o=!0,title:_=(0,l.__)("Whoops, we found an issue!","easy-wp-smtp"),subtitle:p=(0,l.__)("It looks like something went wrong...","easy-wp-smtp"),detailedError:m=""}=t;return e.prototype.$swal({position:s,width:i,showConfirmButton:a,confirmButtonText:n,customClass:r,showCloseButton:o,title:_,html:`\n\t\t\t\t\t\t
${p}
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
${(0,l.__)("Error Message:","easy-wp-smtp")}
\n\t\t\t\t\t\t\t
${m}
\n\t\t\t\t\t\t
\n\t\t\t\t\t`,allowEscapeKey:!1,allowOutsideClick:!1,onOpen:function(){e.prototype.$swal.hideLoading()}})},e.prototype.$required_fields_modal=function(){return e.prototype.$swal({position:"center",width:450,showConfirmButton:!0,confirmButtonText:(0,l.__)("OK","easy-wp-smtp"),customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"},showCloseButton:!0,title:(0,l.__)("Heads up!","easy-wp-smtp"),text:(0,l.__)("Please fill out all the required fields to continue.","easy-wp-smtp"),allowEscapeKey:!1,allowOutsideClick:!1})})}};var _a=la,pa=s(4335);const ma=function(e,t){return new Promise(((s,i)=>{let a=new FormData;a.append("action","easy_wp_smtp_vue_install_plugin"),a.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),a.append("slug",t),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,a).then((t=>{if(t.data.success)e.commit("PLUGIN_INSTALLED",t.data);else{let e="";je()(t.data,"data[0].message")?e=t.data.data[0].message:je()(t.data,"data")&&(e=t.data.data),ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like the plugin installation failed!","easy-wp-smtp"),detailedError:e})}s(t.data)})).catch((function(e){if(i(e),e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't install the plugin.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline. Plugin not installed.","easy-wp-smtp")})}))}))},ca=function(e){return new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_partner_plugins_info"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((s=>{s.data.success?e.commit("PLUGINS_FETCHED",s.data):ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't fetch plugins information.","easy-wp-smtp")}),t(s.data)})).catch((function(e){if(s(e),e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't fetch plugins information.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline. Plugin information not retrieved.","easy-wp-smtp")})}))}))};var da={installPlugin:ma,fetchPlugins:ca};const ua=function(e,t){return da.installPlugin(e,t)},fa=function(e){return da.fetchPlugins(e)};var ha={installPlugin:ua,getPlugins:fa};const ya=e=>e.plugins,ga=e=>e.plugins.filter((e=>"wpforms-lite"!==e.slug)),wa=e=>e.contact_form_plugin_already_installed;var ba={getField:ne.VI,plugins:ya,partner_plugins:ga,contact_form_plugin_already_installed:wa};const va=(e,t)=>{e.plugins.map((s=>(s.slug===t.data.slug&&(s.is_installed=t.data.is_installed,s.is_activated=t.data.is_activated),"wpforms-lite"===t.data.slug&&(e.contact_form_plugin_already_installed=!0),s)))},xa=(e,t)=>{e.plugins=t.data.plugins,e.contact_form_plugin_already_installed=t.data.contact_form_plugin_already_installed};var ka={updateField:ne.cP,PLUGIN_INSTALLED:va,PLUGINS_FETCHED:xa};const Sa={plugins:[],contact_form_plugin_already_installed:!1,smart_contact_form_setting:!0};var Pa={namespaced:!0,state:Sa,actions:ha,getters:ba,mutations:ka};const $a=e=>new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_settings"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(t){if(e.dispatch("$_app/block",!1,{root:!0}),t.response){const e=t.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load the settings.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),e.status,e.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))})),Aa=(e,t)=>new Promise(((e,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_amazon_ses_identities"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),!1!==t&&i.append("value",JSON.stringify(t)),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve Amazon SES Identities.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't retrieve Amazon SES Identities.","easy-wp-smtp")})}))})),Ca=(e,t)=>new Promise(((e,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_amazon_ses_identity_registration"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),!1!==t.value&&i.append("value",t.value),!1!==t.value&&i.append("type",t.type),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't register the Amazon SES Identity","easy-wp-smtp")})}))})),Ea=(e,t)=>new Promise((e=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_update_settings"),s.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),void 0!==t.overwrite&&s.append("overwrite",t.overwrite),!1!==t.value&&s.append("value",JSON.stringify(t.value)),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,s).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't save the settings.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Network error encountered. Settings not saved.","easy-wp-smtp")})}))})),Ma=(e,t)=>new Promise((e=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_import_settings"),s.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),!1!==t.value&&s.append("value",t.value),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,s).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't import the plugin settings.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Network error encountered. SMTP plugin import failed!","easy-wp-smtp")})}))})),Ta=function(e,t){return new Promise(((s,i)=>{let a=new FormData;a.append("action","easy_wp_smtp_vue_get_oauth_url"),a.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),!1!==e&&a.append("mailer",e),!1!==t&&a.append("settings",JSON.stringify(t)),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,a).then((e=>{e.data.success?s(e.data):i(e.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load authentication details.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))}))},Ia=function(e){return new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_remove_oauth_connection"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),!1!==e&&i.append("mailer",e),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't remove OAuth connection.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))}))},Fa=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_subscribe_to_newsletter"),s.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),s.append("email",e),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))},za=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_verify_license_key"),s.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),s.append("license_key",e),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))},La=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_upgrade_plugin"),s.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),s.append("license_key",e),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))},Oa=function(e){return new Promise(((t,s)=>{let i=new FormData;e?i.append("action","easy_wp_smtp_vue_remove_outlook_one_click_setup_oauth_connection"):i.append("action","easy_wp_smtp_vue_remove_oauth_connection"),i.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),i.append("mailer","outlook"),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't remove OAuth connection.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))}))};var Ra={fetchSettings:$a,saveSettings:Ea,importOtherPluginSettings:Ma,fetchAmazonSESIdentities:Aa,amazonSESRegisterIdentity:Ca,getAuthRedirect:Ta,removeAuth:Ia,removeOutlookAuth:Oa,subscribeToNewsletter:Fa,verifyLicense:za,upgradePlugin:La};const Wa=e=>Ra.fetchSettings(e).then((t=>{e.commit("SETTINGS_UPDATED",t.data)})).catch((e=>{if(e.data)return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load existing settings.","easy-wp-smtp"),detailedError:e.data})})),Na=e=>{const t=e.getters.settings.amazonses;if(0!==Object.keys(t).length)return Ra.fetchAmazonSESIdentities(e,t).then((t=>{e.commit("AMAZONSES_IDENTITIES_UPDATED",t),ta.Ay.swal.close()})).catch((e=>{ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve the Amazon SES Identities.","easy-wp-smtp"),detailedError:e.data?e.data:""})}))},Ya=(e,t)=>Ra.amazonSESRegisterIdentity(e,t).catch((e=>{ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","easy-wp-smtp"),detailedError:e.data})})),Da=(e,t)=>{e.commit("MAILER_UPDATE",t)},Ua=(e,t)=>new Promise((function(s){e.commit("LOGS_UPDATE",t),s({success:!0})})),Ba=(e,t)=>new Promise((function(s){e.commit("SUMMARY_REPORT_EMAIL_UPDATE",t),s({success:!0})})),Va=(e,t)=>{e.commit("SETTINGS_SAVE_START");let s=Ra.saveSettings(e,t);return s.then((function(){e.commit("SETTINGS_SAVE_END")})),s},Ha=e=>{const t=e.getters.settings;e.commit("SETTINGS_SAVE_START");let s=Ra.saveSettings(e,{value:t});return s.then((function(){e.commit("SETTINGS_SAVE_END")})),s},Ka=(e,t)=>(e.commit("SETTINGS_SAVE_START"),new Promise((function(s){Ra.importOtherPluginSettings(e,t).then((function(t){e.commit("SETTINGS_SAVE_END"),t.success?Wa(e).then((function(){s(!0)})):s(!1)}))}))),qa=(e,t)=>Ra.getAuthRedirect(t,e.getters.settings[t]).catch((e=>{ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load oAuth redirect.","easy-wp-smtp"),detailedError:e.data})})),Ga=(e,t)=>{let s;return s="outlook"===t?Ra.removeOutlookAuth(e.getters.outlook_one_click_setup_enabled).then((function(){e.commit("SETTINGS_REMOVE_OUTLOOK_AUTH",e.getters.outlook_one_click_setup_enabled)})):Ra.removeAuth(t).then((function(){e.commit("SETTINGS_REMOVE_AUTH",t)})),s.catch((e=>{ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't remove oAuth connection.","easy-wp-smtp"),detailedError:e.data})})),s},ja=(e,t)=>new Promise((s=>{e.commit("SETTINGS_SAVE_PLUGIN_FEATURES",t),s({success:!0,features:t})})),Za=(e,t)=>Ra.subscribeToNewsletter(t),Ja=(e,t)=>Ra.verifyLicense(t),Xa=(e,t)=>Ra.upgradePlugin(t),Qa=(e,t)=>{e.commit("OUTLOOK_ONE_CLICK_SETUP_ENABLED_UPDATE",t)};var en={getSettings:Wa,updateSettings:Va,importOtherPlugin:Ka,setMailer:Da,setLogs:Ua,setSummaryReportEmail:Ba,saveCurrentSettings:Ha,getAmazonSESIdentities:Na,amazonSESRegisterIdentity:Ya,getAuthUrl:qa,removeAuth:Ga,savePluginFeatures:ja,subscribeToNewsletter:Za,verifyLicense:Ja,upgradePlugin:Xa,setOutlookUseOneClickSetup:Qa};const tn=e=>e.settings,sn=e=>e.settings.mail.mailer,an=e=>e.settings.outlook.user_details?e.settings.outlook.user_details.email:null,nn=e=>e.settings.outlook.one_click_setup_user_details?e.settings.outlook.one_click_setup_user_details.email:null,rn=e=>e.settings.gmail.user_details?e.settings.gmail.user_details.email:null,on=e=>e.settings.zoho.user_details?e.settings.zoho.user_details.email:null,ln=e=>e.plugin_features,_n=e=>!!e.settings.logs.enabled&&e.settings.logs.enabled,pn=e=>!e.settings.general.summary_report_email_disabled,mn=e=>"string"===typeof e.settings.license.key&&e.settings.license.key.length>0&&!e.settings.license.is_expired&&!e.settings.license.is_disabled&&!e.settings.license.is_invalid&&!e.settings.license.is_limit_reached,cn=e=>t=>{let s=!1;const i=e.amazonses_identities.data,a=t.split("@").pop();return void 0!==i&&(i.forEach((e=>{("email"===e.type&&e.value===t||"domain"===e.type&&e.value===a)&&(s=!0)})),s)},dn=e=>e.settings.outlook.one_click_setup_enabled;var un={getField:ne.VI,settings:tn,mailer:sn,outlook_email:an,outlook_one_click_setup_email:nn,gmail_email:rn,zoho_email:on,plugin_features:ln,amazonses_is_email_registered:cn,email_log_enabled:_n,summary_report_email_enabled:pn,is_valid_license:mn,outlook_one_click_setup_enabled:dn},fn=s(182),hn=s.n(fn);const yn=(e,t)=>{e.is_saving=!1,e.settings=hn()(e.settings,t)},gn=(e,t)=>{e.amazonses_identities=t.data},wn=(e,t)=>{e.settings.mail.mailer=t},bn=(e,t)=>{e.settings.logs.enabled=t},vn=(e,t)=>{e.settings.general.summary_report_email_disabled=t},xn=e=>{e.is_saving=!0},kn=e=>{e.is_saving=!1},Sn=(e,t)=>{const s=e.settings[t];e.settings[t]={client_id:s.client_id,client_secret:s.client_secret},"zoho"===t&&(e.settings[t].domain=s.domain)},Pn=(e,t)=>{t?(e.settings.outlook.one_click_setup_credentials={access_token:"",refresh_token:"",expires:""},e.settings.outlook.one_click_setup_user_details={email:"",name:""}):(e.settings.outlook.access_token="",e.settings.outlook.refresh_token="",e.settings.outlook.user_details={email:"",name:""})},$n=(e,t)=>{e.plugin_features=t},An=(e,t)=>{e.settings.outlook.one_click_setup_enabled=t};var Cn={updateField:ne.cP,SETTINGS_UPDATED:yn,SETTINGS_SAVE_START:xn,SETTINGS_SAVE_END:kn,MAILER_UPDATE:wn,LOGS_UPDATE:bn,SUMMARY_REPORT_EMAIL_UPDATE:vn,AMAZONSES_IDENTITIES_UPDATED:gn,SETTINGS_REMOVE_AUTH:Sn,SETTINGS_REMOVE_OUTLOOK_AUTH:Pn,SETTINGS_SAVE_PLUGIN_FEATURES:$n,OUTLOOK_ONE_CLICK_SETUP_ENABLED_UPDATE:An};const En={settings:{mail:{mailer:"mail",from_email:"",from_name:"",return_path:!1,from_email_force:!0,from_name_force:!1},smtp:{host:"",port:"587",encryption:"tls",autotls:!0,auth:!0,user:"",pass:""},sendlayer:{api_key:""},smtpcom:{api_key:"",channel:""},sendinblue:{api_key:"",domain:""},mailgun:{api_key:"",domain:"",region:"US"},mailjet:{api_key:"",secret_key:""},sendgrid:{api_key:"",domain:""},postmark:{server_api_token:"",message_stream:""},sparkpost:{api_key:"",region:"US"},amazonses:{client_id:"",client_secret:"",region:"us-east-1"},outlook:{client_id:"",client_secret:"",access_token:{},refresh_token:"",user_details:{email:""},one_click_setup_enabled:!1,one_click_setup_credentials:{access_token:"",refresh_token:"",expires:""},one_click_setup_user_details:{email:""}},elasticemail:{api_key:""},gmail:{relay_credentials:{key:"",token:"",project_id:""},user_details:{email:""}},smtp2go:{api_key:""},zoho:{client_id:"",client_secret:"",domain:"com",access_token:{},refresh_token:"",user_details:{email:""}},logs:{enabled:!1,log_email_content:!1,save_attachments:!1,open_email_tracking:!1,click_link_tracking:!1},general:{summary_report_email_disabled:!1},license:{key:"",is_expired:!1,is_disabled:!1,is_invalid:!1,is_limit_reached:!1},alert_email:{enabled:!1,connections:{}}},amazonses_identities:{},amazonses_display_identities:window.easy_wp_smtp_vue.mailer_options.amazonses.display_identities,plugin_features:[]};var Mn={namespaced:!0,state:En,actions:en,getters:un,mutations:Cn};const Tn=()=>new Promise((e=>{let t=new FormData;t.append("action","easy_wp_smtp_vue_check_mailer_configuration"),t.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,t).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't perform the mailer configuration check.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))})),In=e=>{let t=new FormData;t.append("action","easy_wp_smtp_vue_send_feedback"),t.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),t.append("data",JSON.stringify(e)),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,t).catch((function(e){if(e.response){const t=e.response;return ta.Ay.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't send the feedback.","easy-wp-smtp"),detailedError:(0,l.nv)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}ta.Ay.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))},Fn=()=>{let e=new FormData;e.append("action","easy_wp_smtp_vue_wizard_steps_started"),e.append("nonce",ta.Ay.prototype.$easywpsmtp.nonce),pa.A.post(ta.Ay.prototype.$easywpsmtp.ajax_url,e)};var zn={checkMailerConfiguration:Tn,sendFeedback:In,started:Fn};const Ln=()=>zn.checkMailerConfiguration(),On=(e,t)=>{zn.sendFeedback(t)},Rn=()=>{zn.started()};var Wn={checkMailerConfiguration:Ln,sendFeedback:On,started:Rn};const Nn=e=>e.blocked_step,Yn=e=>e.current_user_email;var Dn={getField:ne.VI,blocked_step:Nn,current_user_email:Yn},Un={updateField:ne.cP};const Bn={blocked_step:!1,current_user_email:window.easy_wp_smtp_vue.current_user_email};var Vn={namespaced:!0,state:Bn,actions:Wn,getters:Dn,mutations:Un};const Hn=e=>{e.commit("INIT")},Kn=e=>{e.commit("BLOCK_APP")},qn=e=>{e.commit("UNBLOCK_APP")},Gn=e=>{e.commit("APP_LOADING_START")},jn=e=>{e.commit("APP_LOADING_STOP")};var Zn={init:Hn,block:Kn,unblock:qn,start_loading:Gn,stop_loading:jn};const Jn=e=>e.blocked,Xn=e=>e.loading,Qn=e=>e.easywpsmtp;var er={blocked:Jn,loading:Xn,easywpsmtp:Qn};const tr=()=>{},sr=e=>{e.blocked=!0},ir=e=>{e.blocked=!1},ar=e=>{e.loading=!0},nr=e=>{e.loading=!1};var rr={INIT:tr,BLOCK_APP:sr,UNBLOCK_APP:ir,APP_LOADING_START:ar,APP_LOADING_STOP:nr};const or={blocked:!1,loading:!1,easywpsmtp:window.easy_wp_smtp_vue?window.easy_wp_smtp_vue:{}};var lr={namespaced:!0,state:or,actions:Zn,getters:er,mutations:rr};const _r=e=>{e.subscribe(((t,s)=>{if("$_app/INIT"===t.type){const t=s["$_app"].easywpsmtp.versions;let i="",a="";t.wp_version_below_52&&(i=(0,l.__)("Yikes! WordPress Update Required","easy-wp-smtp"),a=(0,l.nv)((0,l.__)("Easy WP SMTP has detected that your site is running an outdated version of WordPress (%s). Easy WP SMTP requires at least WordPress version 5.2.","easy-wp-smtp"),t.wp_version)),ta.Ay.prototype.$swal&&i.length&&(e.dispatch("$_app/block"),ta.Ay.prototype.$swal.close(),ta.Ay.prototype.$swal({title:i,html:`${a}
${(0,l.__)("Return to Plugin Settings","easy-wp-smtp")}
`,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"},allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,showConfirmButton:!1,onOpen:function(){ta.Ay.prototype.$swal.hideLoading()}}))}}))};var pr=_r;ta.Ay.use(Y.Ay);const mr=[pr];var cr=new Y.Ay.Store({modules:{$_app:lr,$_plugins:Pa,$_settings:Mn,$_wizard:Vn},plugins:mr}),dr=s(5395),ur=(s(3987),s(596));const fr=document.getElementById("easy-wp-smtp-vue-setup-wizard");ta.Ay.config.productionTip=!1,s.p=window.easy_wp_smtp_vue.public_url,ta.Ay.use(ur.l_),ta.Ay.use(n.Ay),ta.Ay.use(sa.A),ta.Ay.use(dr.Ay,{defaultTemplate:'',defaultArrowSelector:".easy-wp-smtp-tooltip-arrow, .easy-wp-smtp-tooltip__arrow",defaultInnerSelector:".easy-wp-smtp-tooltip-inner, .easy-wp-smtp-tooltip__inner"}),ta.Ay.use(oa),(0,l.fh)(window.easy_wp_smtp_vue.translations,"easy-wp-smtp");const hr={install(e){e.prototype.$wizard_steps=[],e.prototype.$wizard_steps.push("choose_mailer_step"),e.prototype.$wizard_steps.push("configure_mailer_step"),e.prototype.$wizard_steps.push("plugin_features_step"),e.prototype.$easywpsmtp&&e.prototype.$easywpsmtp.is_pro&&e.prototype.$wizard_steps.push("configure_email_logs_step"),e.prototype.$easywpsmtp&&!e.prototype.$easywpsmtp.is_pro&&e.prototype.$wizard_steps.push("help_improve_step"),e.prototype.$wizard_steps.push("license_step"),e.prototype.$wizard_steps.push("check_configuration_step")}};ta.Ay.use(hr),ta.Ay.use(_a),new ta.Ay({store:cr,mounted:()=>{cr.dispatch("$_app/init")},render:e=>e(ea)}).$mount(fr)},3159:function(e,t,s){var i={"./loading-white.svg":4075,"./loading.svg":6283};function a(e){var t=n(e);return s(t)}function n(e){if(!s.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=n,e.exports=a,a.id=3159},3180:function(e,t,s){var i={"./amazonses.svg":6489,"./brevo.svg":1466,"./elasticemail.svg":4689,"./gmail.svg":6848,"./mailgun.svg":6211,"./mailjet.svg":5168,"./outlook.svg":5423,"./postmark.svg":6959,"./sendgrid.svg":5064,"./sendlayer.svg":8295,"./smtp.svg":9682,"./smtp2go.svg":1366,"./smtpcom.svg":9189,"./sparkpost.svg":6675,"./zoho.svg":7936};function a(e){var t=n(e);return s(t)}function n(e){if(!s.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=n,e.exports=a,a.id=3180},4075:function(e,t,s){"use strict";e.exports=s.p+"img/loading-white.svg"},6283:function(e,t,s){"use strict";e.exports=s.p+"img/loading.svg"},6644:function(e,t,s){"use strict";e.exports=s.p+"img/loading-ESMTP.svg"},5573:function(e,t,s){"use strict";e.exports=s.p+"img/arrow.svg"},3321:function(e,t,s){"use strict";e.exports=s.p+"img/gmail-sign-in-btn.svg"},2452:function(e,t,s){"use strict";e.exports=s.p+"img/check-circle-solid-white.svg"},5636:function(e,t,s){"use strict";e.exports=s.p+"img/check-circle-solid.svg"},1369:function(e,t,s){"use strict";e.exports=s.p+"img/check-solid-thin.svg"},8063:function(e,t,s){"use strict";e.exports=s.p+"img/check-solid.svg"},7726:function(e,t,s){"use strict";e.exports=s.p+"img/copy-solid.svg"},617:function(e,t,s){"use strict";e.exports=s.p+"img/exclamation-circle-solid.svg"},9318:function(e,t,s){"use strict";e.exports=s.p+"img/info-circle-solid.svg"},1312:function(e,t,s){"use strict";e.exports=s.p+"img/lock-solid.svg"},9004:function(e,t,s){"use strict";e.exports=s.p+"img/long-arrow-alt-left-regular.svg"},953:function(e,t,s){"use strict";e.exports=s.p+"img/long-arrow-alt-right-regular.svg"},4744:function(e,t,s){"use strict";e.exports=s.p+"img/question-circle.svg"},7157:function(e,t,s){"use strict";e.exports=s.p+"img/star-solid.svg"},3217:function(e,t,s){"use strict";e.exports=s.p+"img/times-solid.svg"},5447:function(e,t,s){"use strict";e.exports=s.p+"img/logo.svg"},6489:function(e,t,s){"use strict";e.exports=s.p+"img/amazonses.svg"},1466:function(e,t,s){"use strict";e.exports=s.p+"img/brevo.svg"},4689:function(e,t,s){"use strict";e.exports=s.p+"img/elasticemail.svg"},6848:function(e,t,s){"use strict";e.exports=s.p+"img/gmail.svg"},6211:function(e,t,s){"use strict";e.exports=s.p+"img/mailgun.svg"},5168:function(e,t,s){"use strict";e.exports=s.p+"img/mailjet.svg"},5423:function(e,t,s){"use strict";e.exports=s.p+"img/outlook.svg"},6959:function(e,t,s){"use strict";e.exports=s.p+"img/postmark.svg"},5064:function(e,t,s){"use strict";e.exports=s.p+"img/sendgrid.svg"},8295:function(e,t,s){"use strict";e.exports=s.p+"img/sendlayer.svg"},9682:function(e,t,s){"use strict";e.exports=s.p+"img/smtp.svg"},1366:function(e,t,s){"use strict";e.exports=s.p+"img/smtp2go.svg"},9189:function(e,t,s){"use strict";e.exports=s.p+"img/smtpcom.svg"},6675:function(e,t,s){"use strict";e.exports=s.p+"img/sparkpost.svg"},7936:function(e,t,s){"use strict";e.exports=s.p+"img/zoho.svg"},6458:function(e,t,s){"use strict";e.exports=s.p+"img/outlook-sign-in-btn.svg"},3453:function(e,t,s){"use strict";e.exports=s.p+"img/pro-badge.svg"},6478:function(e,t,s){"use strict";e.exports=s.p+"img/success-configuration.svg"},6915:function(e,t,s){"use strict";e.exports=s.p+"img/working.svg"}},t={};function s(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=e,function(){var e=[];s.O=function(t,i,a,n){if(!i){var r=1/0;for(p=0;p=n)&&Object.keys(s.O).every((function(e){return s.O[e](i[l])}))?i.splice(l--,1):(o=!1,n0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[i,a,n]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){s.p=""}(),function(){var e={678:0};s.O.j=function(t){return 0===e[t]};var t=function(t,i){var a,n,r=i[0],o=i[1],l=i[2],_=0;if(r.some((function(t){return 0!==e[t]}))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);if(l)var p=l(s)}for(t&&t(i);_