(function(){var t={2188:function(t,e,s){"use strict";s(7658);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-admin-page"},[e("router-view"),t.blocked?e("div",{staticClass:"wp-mail-smtp-blocked"}):t.loading?e("div",{staticClass:"wp-mail-smtp-loading"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(969),width:"195"}})],1):t._e()],1)},a=[],n=s(8345),o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-welcome"},[e("the-wizard-header"),e("div",{staticClass:"wp-mail-smtp-setup-wizard-container"},[e("main",{staticClass:"wp-mail-smtp-setup-wizard-content"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main wp-mail-smtp-button-large",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.nextStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_button)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"22"}})],1)])],1)]),e("footer",[e("p",{staticClass:"wp-mail-smtp-exit-link"},[e("a",{attrs:{href:t.exit_href}},[t._v(t._s(t.text_exit_link))])])])])],1)},r=[],l=s(3165),p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-content-header"},[e("h2",{domProps:{innerHTML:t._s(t.title)}}),t.subtitle?e("p",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])},m=[],_={name:"ContentHeader",props:{title:String,subtitle:String}},c=_,d=s(1001),u=(0,d.Z)(c,p,m,!1,null,null,null),h=u.exports,g=function(){var t=this,e=t._self._c;return e("header",{staticClass:"wp-mail-smtp-setup-wizard-header"},[e("h1",{staticClass:"wp-mail-smtp-setup-wizard-logo"},[e("div",{staticClass:"wp-mail-smtp-logo"},[e("img",{staticClass:"wp-mail-smtp-logo-img",attrs:{src:s(6375),alt:t.text_logo_alt}})])])])},w=[],f={name:"TheWizardHeader",data(){return{text_logo_alt:(0,l.__)("WP Mail SMTP logo","wp-mail-smtp")}}},A=f,b=(0,d.Z)(A,g,w,!1,null,null,null),v=b.exports,x={name:"SetupWizardWelcome",components:{ContentHeader:h,TheWizardHeader:v},data(){return{text_header_title:(0,l.__)("Welcome to the WP Mail SMTP Setup Wizard!","wp-mail-smtp"),text_header_subtitle:(0,l.__)("We’ll guide you through each step needed to get WP Mail SMTP fully set up on your site.","wp-mail-smtp"),text_button:(0,l.__)("Let's Get Started","wp-mail-smtp"),text_exit_link:(0,l.__)("Go back to the Dashboard","wp-mail-smtp"),exit_href:this.$wpms.exit_url}},methods:{nextStep:function(){this.$store.dispatch("$_wizard/started"),this.$router.push({name:this.$wizard_steps[0]})}}},k=x,y=(0,d.Z)(k,o,r,!1,null,null,null),C=y.exports,S=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-step"},[e("the-wizard-header"),e("the-wizard-timeline"),e("div",{staticClass:"wp-mail-smtp-setup-wizard-container"},[e("main",{staticClass:"wp-mail-smtp-setup-wizard-content"},[e("router-view",{on:{displayContentBelow:t.displayContentBelow}})],1),e("footer",[t.content_below.length>0?e("div",{staticClass:"wp-mail-smtp-step-below-content",domProps:{innerHTML:t._s(t.content_below)}}):t._e(),t.display_exit_link?e("p",{staticClass:"wp-mail-smtp-exit-link"},[e("a",{attrs:{href:t.exit_href}},[t._v(t._s(t.text_exit_link))])]):t._e()])])],1)},P=[],M=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-container"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-timeline"},[t._l(t.steps,(function(i,a){return[a>0?e("div",{key:a+"line",class:t.lineClass(a)}):t._e(),e("div",{key:a,class:t.stepClass(a)},[e("inline-svg",{staticClass:"icon icon-success",attrs:{src:s(7579),width:"10",height:"10"}}),e("inline-svg",{staticClass:"icon icon-failed",attrs:{src:s(3531),width:"8",height:"11"}})],1)]}))],2)])},E=[],B={name:"TheWizardTimeline",data(){return{steps:this.$wizard_steps}},methods:{stepClass(t){let e="wp-mail-smtp-setup-wizard-timeline-step";const s=this.steps.findIndex((t=>this.$route.name.includes(t)));return(tthis.$route.name.includes(t)));return t<=s&&(e+=" wp-mail-smtp-setup-wizard-timeline-line-active"),e}}},T=B,I=(0,d.Z)(T,M,E,!1,null,null,null),F=I.exports,D={name:"SetupWizardSteps",components:{TheWizardHeader:v,TheWizardTimeline:F},data(){return{text_exit_link:(0,l.__)("Close and exit the Setup Wizard","wp-mail-smtp"),exit_href:this.$wpms.exit_url,content_below:""}},computed:{display_exit_link:function(){return!this.$route.name.includes("check_configuration_step")}},methods:{displayContentBelow:function(t){this.content_below=t}},mounted(){this.$store.dispatch("$_app/start_loading"),Promise.all([this.$store.dispatch("$_settings/getSettings"),this.$store.dispatch("$_plugins/getPlugins")]).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))}},z=D,Z=(0,d.Z)(z,S,P,!1,null,null,null),O=Z.exports,L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-import"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("form",[e("div",{staticClass:"wp-mail-smtp-setup-wizard-form-row"},[e("settings-input-radios-with-icons",{attrs:{name:"import_from_plugin",options:t.options},model:{value:t.selectedImport,callback:function(e){t.selectedImport=e},expression:"selectedImport"}})],1)])])],1),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"skip_step"},domProps:{textContent:t._s(t.text_skip)},on:{click:function(e){return e.preventDefault(),t.nextStep.apply(null,arguments)}}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step",disabled:null===t.selectedImport},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},W=[],R=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-input-radios-with-icons"},t._l(t.options,(function(i){return e("label",{key:i.value,class:t.labelClass(i),attrs:{for:"wp-mail-smtp-settings-radio-"+t.name+"["+i.value+"]"},on:{click:function(e){return t.clicked(i)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedImport,expression:"selectedImport"}],attrs:{id:"wp-mail-smtp-settings-radio-"+t.name+"["+i.value+"]",type:"radio",name:t.name,autocomplete:"off",disabled:i.disabled||!1},domProps:{value:i.value,checked:t.isChecked(i.value),checked:t._q(t.selectedImport,i.value)},on:{change:function(e){t.selectedImport=i.value}}}),e("span",{class:t.titleClass(i.value)},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}})],1),i.logo.length?e("img",{staticClass:"wp-mail-smtp-logo-icon",attrs:{src:i.logo,alt:i.label}}):t._e(),e("span",{staticClass:"wp-mail-smtp-styled-radio-text"},[t._v(t._s(i.label))]),i.is_pro?e("inline-svg",{staticClass:"wp-mail-smtp-pro-badge",attrs:{src:s(330),width:"46",height:"26"}}):t._e()],1)})),0)},Q=[],N={name:"SettingsInputRadiosWithIcons",props:{options:Array,name:String,value:String},data(){return{has_error:!1}},computed:{selectedImport:{get(){return this.value},set(t){this.$emit("input",t)}}},methods:{titleClass(t){let e="wp-mail-smtp-styled-radio";return this.isChecked(t)&&(e+=" wp-mail-smtp-styled-radio-checked"),e},labelClass(t){let e="";return this.isChecked(t.value)&&(e+=" wp-mail-smtp-styled-radio-label-checked"),t.disabled&&(e+=" wp-mail-smtp-styled-radio-label-disabled"),t.readonly&&(e+=" wp-mail-smtp-styled-radio-label-readonly"),e},isChecked(t){return t===this.selectedImport},clicked(t){t.is_pro&&this.$emit("clicked-disabled",t)}}},U=N,G=(0,d.Z)(U,R,Q,!1,null,"2d9202de",null),H=G.exports,Y=function(){var t=this,e=t._self._c;return e("p",{staticClass:"wp-mail-smtp-setup-wizard-step-count"},[t._v(" "+t._s(t.stepValue)+" ")])},V=[],K={name:"TheWizardStepCounter",computed:{stepValue:function(){const t=this.$wizard_steps.findIndex((t=>this.$route.name.includes(t)))+1;return(0,l.gB)((0,l.__)("Step %1$s of %2$s","wp-mail-smtp"),t,this.$wizard_steps.length)}}},J=K,q=(0,d.Z)(J,Y,V,!1,null,"44fd4a93",null),X=q.exports,j={name:"WizardStepImport",components:{SettingsInputRadiosWithIcons:H,ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Import data from your current plugins","wp-mail-smtp"),text_header_subtitle:(0,l.__)("We have detected other SMTP plugins installed on your website. Select which plugin's data you would like to import to WP Mail SMTP.","wp-mail-smtp"),text_save:(0,l.__)("Import Data and Continue","wp-mail-smtp"),text_skip:(0,l.__)("Skip this Step","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),options:[{value:"easy-smtp",label:(0,l.__)("Easy WP SMTP","wp-mail-smtp"),logo:s(9515),disabled:!this.$wpms.other_smtp_plugins.includes("easy-smtp"),readonly:!this.$wpms.other_smtp_plugins.includes("easy-smtp")},{value:"fluent-smtp",label:(0,l.__)("FluentSMTP","wp-mail-smtp"),logo:s(5529),disabled:!this.$wpms.other_smtp_plugins.includes("fluent-smtp"),readonly:!this.$wpms.other_smtp_plugins.includes("fluent-smtp")},{value:"post-smtp-mailer",label:(0,l.__)("Post SMTP Mailer","wp-mail-smtp"),logo:s(6557),disabled:!this.$wpms.other_smtp_plugins.includes("post-smtp-mailer"),readonly:!this.$wpms.other_smtp_plugins.includes("post-smtp-mailer")},{value:"smtp-mailer",label:(0,l.__)("SMTP Mailer","wp-mail-smtp"),logo:s(5543),disabled:!this.$wpms.other_smtp_plugins.includes("smtp-mailer"),readonly:!this.$wpms.other_smtp_plugins.includes("smtp-mailer")},{value:"wp-smtp",label:(0,l.__)("WP SMTP","wp-mail-smtp"),logo:s(7445),disabled:!this.$wpms.other_smtp_plugins.includes("wp-smtp"),readonly:!this.$wpms.other_smtp_plugins.includes("wp-smtp")}],selectedImport:null}},methods:{handleSubmit(){null!==this.selectedImport&&(this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/importOtherPlugin",{value:this.selectedImport}).then((t=>{t?this.nextStep():this.$wpms_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")})))},nextStep(){this.$next_step()},previousStep(){this.$previous_step()}}},$=j,tt=(0,d.Z)($,L,W,!1,null,null,null),et=tt.exports,st=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-choose-mailer"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),t.mailer_set_via_constants?e("div",{staticClass:"wp-mail-smtp-notice wp-mail-smtp-notice--info"},[e("p",{domProps:{innerHTML:t._s(t.text_mailer_set_via_constants)}})]):t._e(),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("form",[e("div",{staticClass:"wp-mail-smtp-setup-wizard-form-row wp-mail-smtp-setup-wizard-form-row-highlight"},[e("h3",[t._v(t._s(t.text_recommended_mailers))]),e("settings-input-radios-with-icons",{attrs:{name:"choose_mailer",options:t.recommended_options},model:{value:t.selectedMailer,callback:function(e){t.selectedMailer=e},expression:"selectedMailer"}})],1),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form-row"},[e("settings-input-radios-with-icons",{attrs:{name:"choose_mailer",options:t.options},on:{"clicked-disabled":t.clickedDisabledOption},model:{value:t.selectedMailer,callback:function(e){t.selectedMailer=e},expression:"selectedMailer"}})],1)])])],1),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step",disabled:null===t.selectedMailer||"mail"===t.selectedMailer},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},it=[],at=s(629),nt={name:"WizardStepChooseMailer",components:{SettingsInputRadiosWithIcons:H,ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Choose Your SMTP Mailer","wp-mail-smtp"),text_header_subtitle:(0,l.gB)((0,l.__)("Which mailer would you like to use to send emails? Not sure which mailer to choose? Check out our %1$scomplete mailer guide%2$s for details on each option.","wp-mail-smtp"),'',""),text_save:(0,l.__)("Save and Continue","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),text_recommended_mailers:(0,l.__)("Recommended Mailers","wp-mail-smtp"),text_mailer_set_via_constants:(0,l.__)("Your mailer is already configured in a WP Mail SMTP constant, so the options below have been disabled. To change your mailer, please edit or remove the WPMS_MAILER constant in your wp-config.php file.","wp-mail-smtp"),mailer_set_via_constants:this.$wpms.defined_constants.includes("WPMS_MAILER"),recommended_options:[{value:"sendlayer",label:this.$wpms.mailer_options["sendlayer"].title,logo:s(9857),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"smtpcom",label:this.$wpms.mailer_options["smtpcom"].title,logo:s(7536),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"sendinblue",label:this.$wpms.mailer_options["sendinblue"].title,logo:s(2451),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")}],options:[{value:"amazonses",label:this.$wpms.mailer_options["amazonses"].title,logo:s(7557),is_pro:!this.$wpms.is_pro,notice:this.$wpms.mailer_options["amazonses"].edu_notice,readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:!this.$wpms.is_pro||this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"gmail",label:this.$wpms.mailer_options["gmail"].title,logo:s(7526),notice:this.$wpms.mailer_options["gmail"].edu_notice,readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"mailgun",label:this.$wpms.mailer_options["mailgun"].title,logo:s(5567),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"outlook",label:this.$wpms.is_pro?(0,l.__)("Microsoft 365 / Outlook","wp-mail-smtp"):this.$wpms.mailer_options["outlook"].title,logo:s(6703),is_pro:!this.$wpms.is_pro,notice:this.$wpms.mailer_options["outlook"].edu_notice,readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:!this.$wpms.is_pro||this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"postmark",label:this.$wpms.mailer_options["postmark"].title,logo:s(5699),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"sendgrid",label:this.$wpms.mailer_options["sendgrid"].title,logo:s(2763),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"sparkpost",label:this.$wpms.mailer_options["sparkpost"].title,logo:s(2091),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"zoho",label:this.$wpms.mailer_options["zoho"].title,logo:s(9349),is_pro:!this.$wpms.is_pro,readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:!this.$wpms.is_pro||this.$wpms.defined_constants.includes("WPMS_MAILER")},{value:"smtp",label:this.$wpms.mailer_options["smtp"].title,logo:s(450),readonly:this.$wpms.defined_constants.includes("WPMS_MAILER"),disabled:this.$wpms.defined_constants.includes("WPMS_MAILER")}],selectedMailer:this.currentMailer}},watch:{currentMailer:function(t){this.selectedMailer=t}},computed:{...(0,at.Se)({currentMailer:"$_settings/mailer"}),selectedMailerOptions:function(){return this.recommended_options.concat(this.options).find((t=>t.value===this.selectedMailer))}},methods:{handleSubmit(t,e=!1){null!==this.selectedMailer&&"mail"!==this.selectedMailer&&(void 0===this.selectedMailerOptions.notice||e?(this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/updateSettings",{value:{mail:{mailer:this.selectedMailer}}}).then((t=>{t.success?(this.$store.dispatch("$_settings/setMailer",this.selectedMailer),this.nextStep()):this.$wpms_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))):this.$swal({title:this.selectedMailerOptions.label+" "+(0,l.__)("Mailer","wp-mail-smtp"),html:this.selectedMailerOptions.notice,width:650,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"wp-mail-smtp-swal"},confirmButtonText:(0,l.__)("I Understand, Continue","wp-mail-smtp"),cancelButtonText:(0,l.__)("Choose a Different Mailer","wp-mail-smtp"),showCancelButton:!0,reverseButtons:!0}).then((t=>{t.value?this.handleSubmit(null,!0):void 0===t.dismiss||"cancel"!==t.dismiss||this.$wpms.defined_constants.includes("WPMS_MAILER")||(this.selectedMailer=null)})))},nextStep(){const t=this.$wizard_steps.findIndex((t=>this.$route.name.includes(t)))+1;this.$router.push({name:`${this.$wizard_steps[t]}_${this.selectedMailer}`})},previousStep(){this.$previous_step()},clickedDisabledOption(t){var e=/(\?)/.test(this.$wpms.education.upgrade_url)?"&":"?",i=this.$wpms.education.upgrade_url+e+"utm_content="+encodeURIComponent(t.value);this.$swal({title:t.label+" "+(0,l.__)("is a PRO Feature","wp-mail-smtp"),html:`
`,width:550,imageUrl:s(4523),imageWidth:31,imageHeight:35,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-upgrade-popup"},showConfirmButton:!1})}},mounted(){this.selectedMailer=this.currentMailer}},ot=nt,rt=(0,d.Z)(ot,st,it,!1,null,"1e0dc98d",null),lt=rt.exports,pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-configure-mailer"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-configure-mailer-header"},[e("div",{staticClass:"wp-mail-smtp-configure-mailer-header-container"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("span",{staticClass:"wp-mail-smtp-configure-mailer-logo"},[e("inline-svg",{attrs:{src:t.logo(t.mailer),height:"40"}})],1)]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("router-view",{ref:"mailerConfiguration"})],1),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step",disabled:null===t.mailer||!0===t.blocked_step},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},mt=[],_t=s(7452),ct={name:"WizardStepConfigureMailer",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Configure Mailer Settings","wp-mail-smtp"),text_header_subtitle:(0,l.__)("Below, we'll show you all of the settings required to set up this mailer.","wp-mail-smtp"),text_save:(0,l.__)("Save and Continue","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp")}},computed:{...(0,at.Se)({mailer:"$_settings/mailer"}),...(0,_t.vn)("$_wizard",["blocked_step"])},methods:{handleSubmit(){return!this.blocked_step&&(this.$refs.mailerConfiguration.areRequiredFieldsValid()?(this.$store.dispatch("$_app/start_loading"),void this.$store.dispatch("$_settings/saveCurrentSettings").then((t=>{t.success?this.$next_step():this.$wpms_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))):(this.$required_fields_modal(),!1))},previousStep(){this.blocked_step=!1,this.$previous_step()},logo(t){return"mail"===t?t="smtp":"sendinblue"===t&&(t="brevo"),s(5016)(`./${t}.svg`)}}},dt=ct,ut=(0,d.Z)(dt,pt,mt,!1,null,null,null),ht=ut.exports,gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-plugin-features"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-plugin-features-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("div",{staticClass:"wp-mail-smtp-plugin-features-list"},[e("settings-input-long-checkbox",{attrs:{value:!0,name:"improved_deliverability",label:t.text_improved_email_deliverability,description:t.text_improved_email_deliverability_desc,disabled:""}}),e("settings-input-long-checkbox",{attrs:{value:!0,name:"error_tracking",label:t.text_error_tracking,description:t.text_error_tracking_desc,disabled:""}}),t.contact_form_already_installed?t._e():e("settings-input-long-checkbox",{attrs:{name:"smart_contact_form",label:t.text_smart_contact_form,description:t.text_smart_contact_form_desc},model:{value:t.smart_contact_form,callback:function(e){t.smart_contact_form=e},expression:"smart_contact_form"}}),t.seo_toolkit_already_installed?t._e():e("settings-input-long-checkbox",{attrs:{name:"wordpress_seo_toolkit",label:t.text_wordpress_seo_toolkit,description:t.text_wordpress_seo_toolkit_desc},model:{value:t.wordpress_seo_toolkit,callback:function(e){t.wordpress_seo_toolkit=e},expression:"wordpress_seo_toolkit"}}),t.is_pro?t._e():e("settings-input-long-checkbox",{attrs:{name:"summary_report_email",label:t.text_summary_report_email,description:t.text_summary_report_email_desc},model:{value:t.summary_report_email,callback:function(e){t.summary_report_email=e},expression:"summary_report_email"}}),e("settings-input-long-checkbox",{attrs:{name:"email_log",constant:"WPMS_LOGS_ENABLED",label:t.text_email_log,description:t.text_email_log_desc,show_pro:!t.is_pro},on:{input:t.emailLogEnabledChanged},model:{value:t.email_log,callback:function(e){t.email_log=e},expression:"email_log"}}),t.email_log||!t.is_pro?e("settings-input-long-checkbox",{attrs:{value:t.complete_email_report,name:"complete_email_report",label:t.text_complete_email_report,description:t.text_complete_email_report_desc,show_pro:!t.is_pro,disabled:!!t.is_pro},model:{value:t.complete_email_report,callback:function(e){t.complete_email_report=e},expression:"complete_email_report"}}):t._e(),t.is_pro&&t.email_log?e("settings-input-long-checkbox",{attrs:{name:"summary_report_email",constant:"WPMS_SUMMARY_REPORT_EMAIL_DISABLED",label:t.text_summary_report_email,description:t.text_summary_report_email_desc},model:{value:t.summary_report_email,callback:function(e){t.summary_report_email=e},expression:"summary_report_email"}}):t._e(),e("settings-input-long-checkbox",{attrs:{name:"instant_email_alert_input",label:t.text_instant_email_alert,description:t.text_instant_email_alert_desc,constant:"WPMS_ALERT_EMAIL_SEND_TO",show_pro:!t.is_pro},model:{value:t.instant_email_alert,callback:function(e){t.instant_email_alert=e},expression:"instant_email_alert"}}),t.is_pro?t._e():e("settings-input-long-checkbox",{attrs:{name:"manage_notifications",label:t.text_manage_notifications,description:t.text_manage_notifications_desc,show_pro:!t.is_pro},model:{value:t.manage_notifications,callback:function(e){t.manage_notifications=e},expression:"manage_notifications"}}),t.is_multisite&&!t.is_pro?e("settings-input-long-checkbox",{attrs:{name:"network_settings",label:t.text_network_settings,description:t.text_network_settings_desc,show_pro:!t.is_pro},model:{value:t.network_settings,callback:function(e){t.network_settings=e},expression:"network_settings"}}):t._e()],1)]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},wt=[],ft=function(){var t=this,e=t._self._c;return e("label",{staticClass:"settings-input-long-checkbox",class:{"settings-input-long-checkbox-checked":t.value,"settings-input-long-checkbox-disabled":t.disabled||t.is_constant_set},attrs:{for:"wp-mail-smtp-settings-long-checkbox-"+t.name}},[e("div",{staticClass:"settings-input-long-checkbox-header"},[e("span",{staticClass:"title-container"},[e("span",{staticClass:"label"},[t._v(t._s(t.label))]),t.show_pro?e("inline-svg",{staticClass:"wp-mail-smtp-pro-badge",attrs:{src:s(330),width:"46",height:"24"}}):t._e()],1),t.description?e("p",{staticClass:"description"},[t._v(t._s(t.description))]):t._e(),t.is_constant_set?e("p",{staticClass:"description description--constant",domProps:{innerHTML:t._s(t.text_constant)}}):t._e()]),e("span",{staticClass:"settings-input-long-checkbox-container"},[e("input",{attrs:{id:"wp-mail-smtp-settings-long-checkbox-"+t.name,type:"checkbox",name:t.name,disabled:t.disabled||t.is_constant_set},domProps:{checked:t.value},on:{input:function(e){return t.$emit("input",e.target.checked)}}}),e("span",{staticClass:"checkbox",class:{"checkbox-checked":t.value,"checkbox-disabled":t.disabled||t.is_constant_set}},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}})],1)])])},At=[],bt={name:"SettingsInputLongCheckbox",props:{label:String,name:String,value:Boolean,description:String,constant:String,disabled:Boolean,show_pro:Boolean},computed:{is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}}},vt=bt,xt=(0,d.Z)(vt,ft,At,!1,null,null,null),kt=xt.exports,yt={name:"WizardStepPluginFeatures",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputLongCheckbox:kt},data(){return{text_header_title:(0,l.__)("Which email features do you want to enable?","wp-mail-smtp"),text_header_subtitle:(0,l.__)("Make sure you're getting the most out of WP Mail SMTP. Just check all of the features you'd like to use, and we'll go ahead and enable those for you.","wp-mail-smtp"),text_save:(0,l.__)("Save and Continue","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),text_improved_email_deliverability:(0,l.__)("Improved Email Deliverability","wp-mail-smtp"),text_improved_email_deliverability_desc:(0,l.__)("Ensure your emails are sent successfully and reliably.","wp-mail-smtp"),text_error_tracking:(0,l.__)("Email Error Tracking","wp-mail-smtp"),text_error_tracking_desc:(0,l.__)("Easily spot errors causing delivery issues.","wp-mail-smtp"),text_smart_contact_form:(0,l.__)("Smart Contact Form","wp-mail-smtp"),text_smart_contact_form_desc:(0,l.__)("Create beautiful contact forms with just a few clicks.","wp-mail-smtp"),text_wordpress_seo_toolkit:(0,l.__)("WordPress SEO Toolkit","wp-mail-smtp"),text_wordpress_seo_toolkit_desc:(0,l.__)("Improve your SEO rankings with the All in One SEO plugin.","wp-mail-smtp"),text_email_log:(0,l.__)("Detailed Email Logs","wp-mail-smtp"),text_email_log_desc:(0,l.__)("Keep records of every email that's sent out from your website.","wp-mail-smtp"),text_instant_email_alert:(0,l.__)("Instant Email Alerts","wp-mail-smtp"),text_instant_email_alert_desc:(0,l.__)("Get notifications via email, SMS, Slack, or webhook when emails fail to send.","wp-mail-smtp"),text_complete_email_report:(0,l.__)("Complete Email Reports","wp-mail-smtp"),text_complete_email_report_desc:(0,l.__)("See the delivery status, track opens and clicks, and create deliverability graphs.","wp-mail-smtp"),text_summary_report_email:(0,l.__)("Weekly Email Summary","wp-mail-smtp"),text_summary_report_email_desc:(0,l.__)("Get statistics about emails you've sent.","wp-mail-smtp"),text_manage_notifications:(0,l.__)("Manage Default Notifications","wp-mail-smtp"),text_manage_notifications_desc:(0,l.__)("Control which email notifications your WordPress site sends.","wp-mail-smtp"),text_network_settings:(0,l.__)("Multisite Network Settings","wp-mail-smtp"),text_network_settings_desc:(0,l.__)("Save time with powerful WordPress Multisite controls.","wp-mail-smtp"),is_pro:this.$wpms.is_pro,is_multisite:this.$wpms.is_multisite,email_log:!1,complete_email_report:!!this.$wpms.is_pro,summary_report_email:!1,manage_notifications:!1,network_settings:!1}},computed:{...(0,at.Se)({contact_form_already_installed:"$_plugins/contact_form_plugin_already_installed",seo_toolkit_already_installed:"$_plugins/seo_toolkit_plugin_already_installed",email_log_setting:"$_settings/email_log_enabled",summary_report_email_setting:"$_settings/summary_report_email_enabled"}),...(0,_t.vn)("$_plugins",{smart_contact_form:"smart_contact_form_setting",wordpress_seo_toolkit:"wordpress_seo_toolkit_setting"}),...(0,_t.vn)("$_settings",{alert_email_connections:"settings.alert_email.connections",instant_email_alert:"settings.alert_email.enabled"})},watch:{smart_contact_form:function(){if(this.contact_form_already_installed)return!1;this.showPluginInstallFooterNotice()},contact_form_already_installed:function(){this.showPluginInstallFooterNotice()},wordpress_seo_toolkit:function(){if(this.seo_toolkit_already_installed)return!1;this.showPluginInstallFooterNotice()},seo_toolkit_already_installed:function(){this.showPluginInstallFooterNotice()},email_log_setting:function(t){this.email_log=t},summary_report_email_setting:function(t){this.summary_report_email=t}},methods:{handleSubmit(){this.$store.dispatch("$_app/start_loading");let t=[],e={value:{general:{summary_report_email_disabled:!this.summary_report_email}}};if(t.push(this.$store.dispatch("$_settings/setSummaryReportEmail",!this.summary_report_email)),this.is_pro){e.value={...e.value,logs:{enabled:this.email_log}},t.push(this.$store.dispatch("$_settings/setLogs",this.email_log));let s={enabled:this.instant_email_alert};this.instant_email_alert&&0===Object.values(this.alert_email_connections).length&&(s.connections=[{send_to:this.$wpms.current_user_email}]),e.value={...e.value,alert_email:s}}if(t.push(this.$store.dispatch("$_settings/updateSettings",e)),t.push(Promise.resolve({success:!0}).then((t=>this.smart_contact_form&&!this.contact_form_already_installed?this.$store.dispatch("$_plugins/installPlugin","wpforms-lite"):t)).then((t=>this.wordpress_seo_toolkit&&!this.seo_toolkit_already_installed?this.$store.dispatch("$_plugins/installPlugin","all-in-one-seo-pack"):t))),!this.is_pro){const e=[];this.email_log&&e.push("email_log"),this.complete_email_report&&e.push("complete_email_report"),this.instant_email_alert&&e.push("instant_email_alert"),this.manage_notifications&&e.push("manage_notifications"),this.network_settings&&e.push("network_settings"),t.push(this.$store.dispatch("$_settings/savePluginFeatures",e))}Promise.all(t).then((t=>{const e=t.filter((t=>t.success));if(e.length===t.length){this.$emit("displayContentBelow","");let t=this.is_pro&&!this.$store.getters["$_settings/email_log_enabled"]?1:0;this.$next_step(t)}})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},previousStep(){this.$emit("displayContentBelow","");const t=this.$wizard_steps.findIndex((t=>this.$route.name.includes(t)))-1;this.$router.push({name:`${this.$wizard_steps[t]}_${this.$store.getters["$_settings/mailer"]}`})},showPluginInstallFooterNotice(){let t=[];this.smart_contact_form&&!this.contact_form_already_installed&&t.push("WPForms"),this.wordpress_seo_toolkit&&!this.seo_toolkit_already_installed&&t.push("AIOSEO");let e="";t.length>0&&(e=(0,l.__)("The following plugin will be installed for free:","wp-mail-smtp"),e=`
${e} ${t.join(", ")}
`),this.$emit("displayContentBelow",e)},emailLogEnabledChanged(){"0"===this.$wpms.completed_time&&sessionStorage.setItem("wp_mail_smtp_email_log_enabled_changed","true")}},mounted(){if(this.showPluginInstallFooterNotice(),this.$wpms.is_pro&&"0"===this.$wpms.completed_time&&"true"!==sessionStorage.getItem("wp_mail_smtp_email_log_enabled_changed")?this.email_log=!0:this.email_log=this.$store.getters["$_settings/email_log_enabled"],this.summary_report_email=this.$store.getters["$_settings/summary_report_email_enabled"],!this.$wpms.is_pro){const t=this.$store.getters["$_settings/plugin_features"];t.includes("email_log")&&(this.email_log=!0),t.includes("complete_email_report")&&(this.complete_email_report=!0),t.includes("instant_email_alert")&&(this.instant_email_alert=!0),t.includes("manage_notifications")&&(this.manage_notifications=!0),t.includes("network_settings")&&(this.network_settings=!0)}}},Ct=yt,St=(0,d.Z)(Ct,gt,wt,!1,null,null,null),Pt=St.exports,Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-help-improve"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-help-improve-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("settings-input-text",{attrs:{name:"email",type:"email",label:t.text_email_label,description:t.text_email_description},model:{value:t.current_user_email,callback:function(e){t.current_user_email=e},expression:"current_user_email"}}),e("settings-input-checkbox",{attrs:{name:"usage_tracking",label:t.text_usage_tracking_label,description:t.text_usage_tracking_description,tooltip:t.text_usage_tracking_tooltip},model:{value:t.usage_tracking,callback:function(e){t.usage_tracking=e},expression:"usage_tracking"}})],1),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"skip_step"},domProps:{textContent:t._s(t.text_skip)},on:{click:function(e){return e.preventDefault(),t.nextStep.apply(null,arguments)}}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},Et=[],Bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-text",class:{"settings-input-text-with-copy":t.copy,"input-error":t.has_errors||t.field_error}},[e("label",{staticClass:"settings-input-label-container",attrs:{for:t.id}},[t.label?e("span",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1),e("span",{staticClass:"settings-input-container"},["checkbox"===t.type?e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled||t.is_constant_set,type:"checkbox"},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{change:[function(e){var s=t.currentValue,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=null,o=t._i(s,n);i.checked?o<0&&(t.currentValue=s.concat([n])):o>-1&&(t.currentValue=s.slice(0,o).concat(s.slice(o+1)))}else t.currentValue=a},t.inputUpdate]}}):"radio"===t.type?e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled||t.is_constant_set,type:"radio"},domProps:{checked:t._q(t.currentValue,null)},on:{change:[function(e){t.currentValue=null},t.inputUpdate]}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled||t.is_constant_set,type:t.type},domProps:{value:t.currentValue},on:{change:t.inputUpdate,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t.copy?e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-small",class:{"wp-mail-smtp-button-copied":t.show_copied},attrs:{title:t.text_copy_button},on:{click:function(e){return e.preventDefault(),t.copyValue.apply(null,arguments)}}},[e("span",{staticClass:"copy-button-container"},[e("inline-svg",{staticClass:"icon",class:{active:!t.show_copied},attrs:{src:s(8098),width:"16",height:"16"}}),e("inline-svg",{staticClass:"icon copied",class:{active:t.show_copied},attrs:{src:s(5561),width:"16",height:"16"}})],1)]):t._e()]),t.has_errors?e("p",{staticClass:"error"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(4186),width:"16"}}),e("span",{domProps:{innerHTML:t._s(t.text_error)}})],1):t._e(),t.description?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.description)}}):t._e(),t.is_constant_set?e("p",{staticClass:"description description--constant",domProps:{innerHTML:t._s(t.text_constant)}}):t._e()])},Tt=[],It=function(){var t=this,e=t._self._c;return e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],staticClass:"wp-mail-smtp-info",attrs:{tabindex:"0"}},[e("inline-svg",{staticClass:"icon",attrs:{src:s(1004),width:"14",height:"14"}})],1)},Ft=[],Dt={name:"SettingsInfoTooltip",props:{content:String},data(){return{tooltip_data:{content:this.content,autoHide:!1,trigger:"hover focus click"}}}},zt=Dt,Zt=(0,d.Z)(zt,It,Ft,!1,null,"74a4d2ae",null),Ot=Zt.exports,Lt={name:"SettingsInputText",components:{SettingsInfoTooltip:Ot},props:{name:String,value:String,label:String,description:String,constant:String,placeholder:String,type:{type:String,default:"text"},tooltip:String,readonly:Boolean,disabled:Boolean,format:RegExp,error:{type:String,default:""},copy:{type:Boolean,default:!1},is_error:Boolean},data(){return{has_error:!1,id:"input-"+this.name,text_copy_button:(0,l.__)("Copy input value","wp-mail-smtp"),text_copied:(0,l.__)("Copied!","wp-mail-smtp"),show_copied:!1}},computed:{currentValue:{get(){return this.value},set(t){this.$emit("is_error_update",!1),this.$emit("input",t)}},field_error:{get(){return this.is_error},set(t){this.$emit("is_error_update",t)}},has_errors:function(){return this.error.length>0||this.has_error},text_error:function(){return this.error.length>0?this.error:(0,l.__)("The value entered does not match the required format","wp-mail-smtp")},is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}},methods:{inputUpdate:function(t){if(this.disabled)return!1;if(this.has_error=!1,this.format||this.type&&"email"===this.type){const e=this.format?this.format:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(t.target.value))return this.has_error=!0,this.$emit("error_detected",this.text_error),!1}},copyValue:function(){const t=this.$refs.input;t.select(),document.execCommand("copy"),this.show_copied=!0;let e=this;setTimeout((function(){e.show_copied=!1}),1e3)}}},Wt=Lt,Rt=(0,d.Z)(Wt,Bt,Tt,!1,null,null,null),Qt=Rt.exports,Nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-checkbox",class:{"settings-input-checkbox-checked":t.value,"settings-input-checkbox-disabled":t.disabled}},[e("span",{staticClass:"settings-input-label-container"},[e("span",{staticClass:"label"},[t._v(t._s(t.label))]),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1),e("label",{staticClass:"settings-input-checkbox-container",attrs:{for:"wp-mail-smtp-settings-checkbox-"+t.name}},[e("input",{attrs:{id:"wp-mail-smtp-settings-checkbox-"+t.name,type:"checkbox",name:t.name,disabled:t.disabled},domProps:{checked:t.value},on:{input:function(e){return t.$emit("input",e.target.checked)}}}),e("span",{staticClass:"checkbox",class:{"checkbox-checked":t.value,"checkbox-disabled":t.disabled}},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"14",height:"14"}})],1),t.description?e("span",{staticClass:"input-label"},[t._v(t._s(t.description))]):t._e()])])},Ut=[],Gt={name:"SettingsInputCheckbox",components:{SettingsInfoTooltip:Ot},props:{label:String,name:String,value:Boolean,description:String,tooltip:String,disabled:Boolean}},Ht=Gt,Yt=(0,d.Z)(Ht,Nt,Ut,!1,null,null,null),Vt=Yt.exports,Kt={name:"WizardStepHelpImprove",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputText:Qt,SettingsInputCheckbox:Vt},data(){return{text_header_title:(0,l.__)("Help Improve WP Mail SMTP + Smart Recommendations","wp-mail-smtp"),text_header_subtitle:(0,l.__)("Get helpful suggestions from WP Mail SMTP on how to optimize your email deliverability and grow your business.","wp-mail-smtp"),text_save:(0,l.__)("Save and Continue","wp-mail-smtp"),text_skip:(0,l.__)("Skip this Step","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),text_email_label:(0,l.__)("Your Email Address","wp-mail-smtp"),text_email_description:(0,l.__)("Your email is needed, so you can receive recommendations.","wp-mail-smtp"),text_usage_tracking_label:(0,l.__)("Help make WP Mail SMTP better for everyone","wp-mail-smtp"),text_usage_tracking_description:(0,l.__)("Yes, count me in","wp-mail-smtp"),text_usage_tracking_tooltip:(0,l.__)("By allowing us to track usage data we can better help you because we know with which WordPress configurations, themes and plugins we should test.","wp-mail-smtp"),is_pro:this.$wpms.is_pro,usage_tracking:!1}},computed:{...(0,_t.vn)("$_wizard",["current_user_email"])},methods:{handleSubmit(){this.$store.dispatch("$_app/start_loading");let t=[];if(this.current_user_email&&t.push(this.$store.dispatch("$_settings/subscribeToNewsletter",this.current_user_email)),this.usage_tracking){const e={value:{general:{"usage-tracking-enabled":!0}}};t.push(this.$store.dispatch("$_settings/updateSettings",e))}Promise.all(t).then((()=>{this.nextStep()})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},nextStep(){this.$next_step()},previousStep(){this.$previous_step()}}},Jt=Kt,qt=(0,d.Z)(Jt,Mt,Et,!1,null,null,null),Xt=qt.exports,jt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-license"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-license-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),t.is_pro?t._e():e("div",{staticClass:"upgrade-content"},[e("p",{staticClass:"medium-bold",domProps:{innerHTML:t._s(t.text_upgrade_paragraph)}}),e("div",{staticClass:"checked-item-list"},[e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_email_log))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_complete_email_report))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_instant_email_alert))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_summary_report_email))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_manage_notifications))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_network_settings))])],1)])]),t.verified?e("div",{staticClass:"verified-license"},[e("p",{domProps:{innerHTML:t._s(t.text_verified_license)}})]):e("div",{staticClass:"license-form",class:{"license-form-error":t.license_error}},[e("p",{domProps:{innerHTML:t._s(t.text_license_form)}}),e("div",{staticClass:"license-control"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:t.text_license_input_placeholder,"aria-label":t.text_aria_label_for_license_input},domProps:{value:t.license},on:{input:function(e){e.target.composing||(t.license=e.target.value)}}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-success wp-mail-smtp-button-small",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.handleLicenseSubmit.apply(null,arguments)}}},[t._v(" "+t._s(t.text_license_button)+" ")])]),t.license_error?e("p",{staticClass:"error-message",domProps:{textContent:t._s(t.text_license_error)}}):t._e()])]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[t.verified?e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)]):e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"skip_step"},domProps:{textContent:t._s(t.text_skip)},on:{click:function(e){return e.preventDefault(),t.nextStep.apply(null,arguments)}}})])])])},$t=[],te=s(8394),ee=s.n(te),se={name:"WizardStepLicense",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Enter your WP Mail SMTP License Key","wp-mail-smtp"),text_header_subtitle:this.$wpms.is_pro?"":(0,l.gB)((0,l.__)("You're currently using %1$sWP Mail SMTP Lite%2$s - no license needed. Enjoy!","wp-mail-smtp"),'',"")+" 🙂",text_save:(0,l.__)("Continue","wp-mail-smtp"),text_skip:(0,l.__)("Skip this Step","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),text_upgrade_paragraph:(0,l.gB)((0,l.__)("To unlock selected features, %1$sUpgrade to Pro%2$s and enter your license key below.","wp-mail-smtp"),'',""),text_network_settings:(0,l.__)("Multisite Network Settings","wp-mail-smtp"),text_manage_notifications:(0,l.__)("Manage Default Notifications","wp-mail-smtp"),text_email_log:(0,l.__)("Detailed Email Logs","wp-mail-smtp"),text_summary_report_email:(0,l.__)("Enhanced Weekly Email Summary","wp-mail-smtp"),text_license_form_lite:(0,l.gB)((0,l.__)("Already purchased? Enter your license key below to connect with %1$sWP Mail SMTP Pro%2$s!","wp-mail-smtp"),"",""),text_license_form_pro:(0,l.__)("Enter your license key below to unlock plugin updates!","wp-mail-smtp"),text_license_button:this.$wpms.is_pro?(0,l.__)("Verify License Key","wp-mail-smtp"):(0,l.__)("Connect","wp-mail-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","wp-mail-smtp"),text_verified_license:(0,l.__)("Your license was successfully verified! You are ready for the next step.","wp-mail-smtp"),text_email_log_desc:(0,l.__)("Keep records of every email that's sent out from your website.","wp-mail-smtp"),text_manage_notifications_desc:(0,l.__)("Control which email notifications your WordPress site sends.","wp-mail-smtp"),text_network_settings_desc:(0,l.__)("Save time with powerful WordPress Multisite controls.","wp-mail-smtp"),text_instant_email_alert:(0,l.__)("Instant Email Alerts","wp-mail-smtp"),text_instant_email_alert_desc:(0,l.__)("Get notifications via email, SMS, Slack, or webhook when emails fail to send.","wp-mail-smtp"),text_complete_email_report:(0,l.__)("Complete Email Reports","wp-mail-smtp"),text_complete_email_report_desc:(0,l.__)("See the delivery status, track opens and clicks, and create deliverability graphs.","wp-mail-smtp"),text_pro_badge:(0,l.__)("Pro badge","wp-mail-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","wp-mail-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","wp-mail-smtp"),pro_badge:s(330),is_pro:this.$wpms.is_pro,verified:!1,license:"",license_error:!1}},computed:{text_license_form:function(){return this.is_pro?this.text_license_form_pro:this.text_license_form_lite},...(0,at.Se)({selectedProFeatures:"$_settings/plugin_features"})},methods:{handleLicenseSubmit(){return this.license_error=!1,!(!this.is_pro&&0===this.license.length)&&(this.is_pro&&this.license.length<16?(this.license_error=!0,!1):(this.$store.dispatch("$_app/start_loading"),void(this.is_pro?this.$store.dispatch("$_settings/verifyLicense",this.license).then((t=>{t.success?(this.verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","wp-mail-smtp"),html:t.data.message,width:450,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","wp-mail-smtp"),html:t.data,width:450,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")})):this.$store.dispatch("$_settings/upgradePlugin",this.license).then((t=>{if(t.success&&ee()(t,"data.redirect_url"))return window.location=t.data.redirect_url;this.$store.dispatch("$_app/stop_loading"),this.$swal({title:t.success?(0,l.__)("Successful Upgrade!","wp-mail-smtp"):(0,l.__)("Upgrade Failed!","wp-mail-smtp"),html:t.data,width:450,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})})))))},handleSubmit(){this.nextStep()},nextStep(){this.$next_step()},previousStep(){let t=this.is_pro&&!this.$store.getters["$_settings/email_log_enabled"]?1:0;this.$previous_step(t)},prepareLongCheckbox(t,e){return``},prepareProFeaturesHtml(){let t="
"}},mounted(){if(!this.is_pro&&this.selectedProFeatures.length>0){const t=this.prepareProFeaturesHtml();this.$swal({title:(0,l.__)("Would you like to purchase the following features now?","wp-mail-smtp"),html:`
${(0,l.__)("These features are available as part of WP Mail SMTP Pro plan.","wp-mail-smtp")}
\n\t\t\t\t\t\t\t${t}\n\t\t\t\t\t\t\t
${(0,l.gB)((0,l.__)("%1$sBonus:%2$s You can upgrade to the Pro plan and %3$ssave %5$s today%4$s, automatically applied at checkout.","wp-mail-smtp"),"","",'',"","$50")}
\n\t\t\t\t\t\t`,width:850,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-plugin-upgrade"},confirmButtonText:(0,l.__)("Purchase Now","wp-mail-smtp"),cancelButtonText:(0,l.__)("I'll do it later","wp-mail-smtp"),showCancelButton:!0,reverseButtons:!0}).then((t=>{if(t.value){const t=window.open(this.$wpms.upgrade_link,"_blank");t.focus()}}))}this.verified=this.$wpms.license_exists},created(){const t=new URLSearchParams(window.location.search);this.$wpms.license_exists&&!t.has("upgrade-redirect")&&this.nextStep()}},ie=se,ae=(0,d.Z)(ie,jt,$t,!1,null,null,null),ne=ae.exports,oe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-check-configuration"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-check-configuration-header"},[e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("div",{staticClass:"check-configuration-loading-image-container"},[e("img",{attrs:{src:s(7764),alt:t.text_image_alt}})])])])},re=[],le={name:"WizardStepCheckConfiguration",components:{ContentHeader:h},data(){return{text_header_title:(0,l.__)("Checking Mailer Configuration","wp-mail-smtp"),text_header_subtitle:(0,l.__)("We're running some tests in the background to make sure everything is set up properly.","wp-mail-smtp"),text_image_alt:(0,l.__)("Checking mailer configuration image","wp-mail-smtp")}},mounted(){this.$store.dispatch("$_wizard/checkMailerConfiguration").then((t=>{t.success?this.$router.push({name:"check_configuration_step_success"}):this.$router.push({name:"check_configuration_step_failure"})}))}},pe=le,me=(0,d.Z)(pe,oe,re,!1,null,null,null),_e=me.exports,ce=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-configuration-success"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-configuration-success-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("div",{staticClass:"plugin-item-container"},[e("p",{staticClass:"medium-bold",domProps:{textContent:t._s(t.text_free_plugins_header)}}),e("div",t._l(t.plugins,(function(t,s){return e("plugin-item",{key:s,attrs:{name:t.name,slug:t.slug,is_installed:t.is_installed,is_activated:t.is_activated}})})),1)]),t.is_pro?t._e():e("div",{staticClass:"upgrade-banner-container"},[e("div",{staticClass:"upgrade-banner"},[e("h2",{domProps:{textContent:t._s(t.text_upgrade_title)}}),e("p",{staticClass:"subtitle",domProps:{textContent:t._s(t.text_upgrade_subtitle)}}),e("div",{staticClass:"checked-item-list"},[e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_email_log))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_manage_notifications))])],1),e("span",{staticClass:"checked-item"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(7579),width:"16",height:"16"}}),t._v(" "),e("span",[t._v(t._s(t.text_network_settings))])],1)]),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-success",attrs:{type:"button"},domProps:{textContent:t._s(t.text_upgrade_button)},on:{click:t.openUpgradePage}})]),e("p",{staticClass:"bonus",domProps:{innerHTML:t._s(t.text_bonus)}})])]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"send_test_email"},domProps:{textContent:t._s(t.text_test_email)},on:{click:function(e){return e.preventDefault(),t.handleTestEmail.apply(null,arguments)}}}),e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"send_feedback"},domProps:{textContent:t._s(t.text_send_feedback)},on:{click:function(e){return e.preventDefault(),t.handleFeedback.apply(null,arguments)}}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"button",name:"finish_setup"},domProps:{textContent:t._s(t.text_finish)},on:{click:function(e){return e.preventDefault(),t.handleFinish.apply(null,arguments)}}})])])},de=[],ue=function(){var t=this,e=t._self._c;return e("div",{class:`wp-mail-smtp-plugin-item wp-mail-smtp-plugin-${t.slug}`},[e("span",{staticClass:"wp-mail-smtp-plugin-item-title-container"},[t.logo.length?e("img",{staticClass:"wp-mail-smtp-logo-icon",attrs:{src:t.logo2x,srcset:t.logo_srcset,alt:t.name}}):t._e(),e("span",{domProps:{textContent:t._s(t.name)}})]),e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",disabled:t.is_activated||t.is_installed},on:{click:function(e){return e.preventDefault(),t.handleClick.apply(null,arguments)}}},[t.loading?e("spin-loader",{attrs:{color:"white"}}):e("span",[t._v(" "+t._s(t.text_button_label)+" ")])],1)])},he=[],ge=function(){var t=this,e=t._self._c;return e("img",{class:`wp-mail-smtp-loader wp-mail-smtp-loader-${t.size}`,attrs:{src:t.image,alt:t.text_loading}})},we=[],fe={name:"SpinLoader",props:{color:{type:String,default:""},size:{type:String,default:"sm"}},data(){return{image:s(7630)(`./loading${this.color.length?"-"+this.color:""}.svg`),text_loading:(0,l.__)("Loading","wp-mail-smtp")}}},Ae=fe,be=(0,d.Z)(Ae,ge,we,!1,null,null,null),ve=be.exports,xe={name:"PluginItem",components:{SpinLoader:ve},props:{slug:String,name:String,is_installed:Boolean,is_activated:Boolean},data(){return{loading:!1,logo:s(8517)(`./${this.slug}.png`),logo2x:s(833)(`./${this.slug}@2x.png`)}},computed:{text_button_label:function(){let t=(0,l.__)("Install","wp-mail-smtp");return this.is_installed&&!this.is_activated&&(t=(0,l.__)("Installed","wp-mail-smtp")),this.is_activated&&(t=(0,l.__)("Activated","wp-mail-smtp")),t},logo_srcset:function(){return`${this.logo}, ${this.logo2x} 2x`}},methods:{handleClick(){this.loading||(this.loading=!0,this.$store.dispatch("$_plugins/installPlugin",this.slug).then((t=>{t.success&&this.$wpms_success_toast({title:`Plugin: ${this.name} installed!`}),this.loading=!1})))}}},ke=xe,ye=(0,d.Z)(ke,ue,he,!1,null,"2e2edfa6",null),Ce=ye.exports,Se={name:"WizardStepConfigurationSuccess",components:{ContentHeader:h,TheWizardStepCounter:X,PluginItem:Ce},data(){return{text_header_title:(0,l.__)("Congrats, you’ve successfully set up WP Mail SMTP!","wp-mail-smtp"),text_header_subtitle:(0,l.__)("Here’s what to do next:","wp-mail-smtp"),text_free_plugins_header:(0,l.__)("Check out our other free WordPress plugins:","wp-mail-smtp"),text_upgrade_title:(0,l.__)("Upgrade to Unlock Powerful SMTP Features","wp-mail-smtp"),text_upgrade_subtitle:(0,l.__)("Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is used by over 3,000,000 websites.","wp-mail-smtp"),text_network_settings:(0,l.__)("Multisite Network Settings","wp-mail-smtp"),text_manage_notifications:(0,l.__)("Manage Default Notifications","wp-mail-smtp"),text_email_log:(0,l.__)("Detailed Email Logs","wp-mail-smtp"),text_upgrade_button:(0,l.__)("Upgrade to Pro Today","wp-mail-smtp"),text_test_email:(0,l.__)("Send a Test Email","wp-mail-smtp"),text_send_feedback:(0,l.__)("Send us Feedback","wp-mail-smtp"),text_finish:(0,l.__)("Finish Setup","wp-mail-smtp"),text_bonus:(0,l.gB)((0,l.__)("%1$sBonus:%2$s You can upgrade to the Pro plan and %3$ssave %5$s today%4$s, automatically applied at checkout.","wp-mail-smtp"),"","",'',"","$50"),star_image_html:``,is_pro:this.$wpms.is_pro}},computed:{...(0,at.Se)({plugins:"$_plugins/partner_plugins"})},methods:{handleTestEmail(){return window.location=this.$wpms.email_test_tab_url},goodFeedback(){this.$swal({title:(0,l.__)("Thanks for the feedback!","wp-mail-smtp"),html:`${(0,l.gB)((0,l.__)("Help us spread the word %1$sby giving WP Mail SMTP a 5-star rating %3$s(%4$s) on WordPress.org%2$s. Thanks for your support and we look forward to bringing you more awesome features.","wp-mail-smtp"),'',""," ",this.star_image_html+""+this.star_image_html+this.star_image_html+this.star_image_html+this.star_image_html)}`,width:650,showCloseButton:!0,allowEnterKey:!1,confirmButtonText:(0,l.__)("Rate on WordPress.org","wp-mail-smtp"),customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-feedback-good"}}).then((t=>{if(t.value){const t=window.open("https://wordpress.org/support/plugin/wp-mail-smtp/reviews/#new-post","_blank");t.focus()}}))},badFeedback(){this.$swal({title:(0,l.__)("What could we do to improve?","wp-mail-smtp"),html:`${(0,l.__)("We're sorry things didn't go smoothly for you, and want to keep improving. Please let us know any specific parts of this process that you think could be better. We really appreciate any details you're willing to share!","wp-mail-smtp")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t`,width:650,showCloseButton:!0,allowEnterKey:!1,allowOutsideClick:!1,allowEscapeKey:!1,confirmButtonText:(0,l.__)("Submit Feedback","wp-mail-smtp"),customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-feedback-bad"},preConfirm:()=>[document.getElementById("feedback").value,document.getElementById("permission").checked]}).then((t=>{if(t.value){const e=t.value[0],s=t.value[1];this.$store.dispatch("$_wizard/sendFeedback",{feedback:e,permission:s})}}))},handleFeedback(){this.$swal({title:(0,l.__)("How was your WP Mail SMTP setup experience?","wp-mail-smtp"),text:(0,l.__)("Our goal is to make your SMTP setup as simple and straightforward as possible. We'd love to know how this process went for you!","wp-mail-smtp"),width:650,showCloseButton:!0,allowEnterKey:!1,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-feedback"},showCancelButton:!0}).then((t=>{t.value?this.goodFeedback():void 0!==t.dismiss&&"cancel"===t.dismiss&&this.badFeedback()}))},handleFinish(){return window.location=this.$wpms.exit_url},openUpgradePage:function(){const t=window.open(this.$wpms.upgrade_link,"_blank");t.focus()}}},Pe=Se,Me=(0,d.Z)(Pe,ce,de,!1,null,null,null),Ee=Me.exports,Be=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-configuration-failure"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-configuration-failure-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("div",{staticClass:"start-troubleshooting-arrow-container"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(1122),width:"112",height:"112"}})],1)]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"button",name:"start_troubleshooting"},domProps:{textContent:t._s(t.text_start_troubleshooting)},on:{click:function(e){return e.preventDefault(),t.handleTroubleshooting.apply(null,arguments)}}}),e("button",{staticClass:"wp-mail-smtp-button",attrs:{type:"button",name:"finish_setup"},domProps:{textContent:t._s(t.text_finish)},on:{click:function(e){return e.preventDefault(),t.handleFinish.apply(null,arguments)}}})])])},Te=[],Ie={name:"WizardStepConfigurationFailure",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Whoops, looks like things aren’t configured properly.","wp-mail-smtp"),text_header_subtitle:(0,l.__)("We just tried to send a test email, but something prevented that from working. To see more details about the issue we detected, as well as our suggestions to fix it, please start troubleshooting.","wp-mail-smtp"),text_start_troubleshooting:(0,l.__)("Start Troubleshooting","wp-mail-smtp"),text_send_feedback:(0,l.__)("Send us Feedback","wp-mail-smtp"),text_finish:(0,l.__)("Finish Setup","wp-mail-smtp")}},methods:{handleTroubleshooting(){return window.location=`${this.$wpms.email_test_tab_url}&auto-start=1`},handleFinish(){return window.location=this.$wpms.exit_url}}},Fe=Ie,De=(0,d.Z)(Fe,Be,Te,!1,null,null,null),ze=De.exports,Ze=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-smtp"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"host",constant:"WPMS_SMTP_HOST",label:t.text_host_label,is_error:t.field_errors.includes("host")},on:{is_error_update:function(e){return t.removeFieldError("host")}},model:{value:t.host,callback:function(e){t.host=e},expression:"host"}}),e("settings-input-radio",{attrs:{name:"encryption",constant:"WPMS_SSL",label:t.text_encryption_label,options:t.encryptionOptions,description:t.text_encryption_description},on:{input:t.encryptionChanged},model:{value:t.encryption,callback:function(e){t.encryption=e},expression:"encryption"}}),e("settings-input-number",{attrs:{name:"port",constant:"WPMS_SMTP_PORT",label:t.text_port_label,is_error:t.field_errors.includes("port")},on:{is_error_update:function(e){return t.removeFieldError("port")}},model:{value:t.port,callback:function(e){t.port=e},expression:"port"}}),e("settings-input-switch",{directives:[{name:"show",rawName:"v-show",value:t.show_autotls,expression:"show_autotls"}],attrs:{name:"autotls",constant:"WPMS_SMTP_AUTOTLS",title:t.text_autotls_title,label:t.text_autotls_label,description:t.text_autotls_description},model:{value:t.autotls,callback:function(e){t.autotls=e},expression:"autotls"}}),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-switch",{attrs:{name:"auth",constant:"WPMS_SMTP_AUTH",title:t.text_auth_title,label:t.text_auth_label},model:{value:t.auth,callback:function(e){t.auth=e},expression:"auth"}}),e("settings-input-text",{directives:[{name:"show",rawName:"v-show",value:t.auth,expression:"auth"}],attrs:{name:"user",constant:"WPMS_SMTP_USER",label:t.text_user_label,is_error:t.field_errors.includes("user")},on:{is_error_update:function(e){return t.removeFieldError("user")}},model:{value:t.user,callback:function(e){t.user=e},expression:"user"}}),e("settings-input-text",{directives:[{name:"show",rawName:"v-show",value:t.auth,expression:"auth"}],attrs:{name:"pass",constant:"WPMS_SMTP_PASS",type:"password",label:t.text_pass_label,is_error:t.field_errors.includes("pass")},on:{is_error_update:function(e){return t.removeFieldError("pass")}},model:{value:t.pass,callback:function(e){t.pass=e},expression:"pass"}}),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},Oe=[],Le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-radio"},[t.label?e("span",{staticClass:"settings-input-label-container"},[e("span",{staticClass:"label"},[t._v(t._s(t.label))])]):t._e(),e("div",{staticClass:"settings-input-radio-container"},t._l(t.options,(function(s){return e("label",{key:s.value,class:t.labelClass(s.value),attrs:{for:"wp-mail-smtp-settings-radio-"+t.name+"["+s.value+"]"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{id:"wp-mail-smtp-settings-radio-"+t.name+"["+s.value+"]",type:"radio",name:t.name,autocomplete:"off",readonly:t.disabled,disabled:t.is_constant_set},domProps:{value:s.value,checked:t.isChecked(s.value),checked:t._q(t.selected,s.value)},on:{change:[function(e){t.selected=s.value},t.updateSetting]}}),e("span",{class:t.titleClass(s.value)}),e("span",{staticClass:"input-label"},[t._v(t._s(s.label))])])})),0),t.description?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.description)}}):t._e(),t.is_constant_set?e("p",{staticClass:"description description--constant",domProps:{innerHTML:t._s(t.text_constant)}}):t._e()])},We=[],Re={name:"SettingsInputRadio",props:{options:Array,label:String,name:String,value:String,description:String,constant:String,disabled:Boolean},data(){return{has_error:!1}},computed:{selected:{get(){return this.value},set(t){this.$emit("input",t)}},is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}},methods:{updateSetting:function(){if(this.disabled)return!1},titleClass(t){let e="wp-mail-smtp-styled-radio";return this.isChecked(t)&&(e+=" wp-mail-smtp-styled-radio-checked"),this.is_constant_set&&(e+=" wp-mail-smtp-styled-radio-disabled"),e},labelClass(t){let e="";return this.isChecked(t)&&(e+=" wp-mail-smtp-styled-radio-label-checked"),this.is_constant_set&&(e+=" wp-mail-smtp-styled-radio-label-disabled"),e},isChecked(t){return t===this.selected}}},Qe=Re,Ne=(0,d.Z)(Qe,Le,We,!1,null,null,null),Ue=Ne.exports,Ge=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-number",class:{"settings-input-number-error":t.field_error}},[e("label",{staticClass:"settings-input-label-container",attrs:{for:t.id}},[t.label?e("span",{staticClass:"label"},[t._v(t._s(t.label))]):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1),e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],attrs:{id:t.id,type:"number",name:t.name,placeholder:t.placeholder,min:t.min,max:t.max,step:t.step,readonly:t.disabled,disabled:t.is_constant_set},domProps:{value:t.currentValue},on:{change:t.inputUpdate,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}),t.has_error?e("p",{staticClass:"error"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(4186),width:"16"}}),e("span",{domProps:{innerHTML:t._s(t.has_error)}})],1):t._e(),t.description?e("p",{staticClass:"description"},[t._v(" "+t._s(t.description)+" ")]):t._e(),t.is_constant_set?e("p",{staticClass:"description description--constant",domProps:{innerHTML:t._s(t.text_constant)}}):t._e()])},He=[],Ye={name:"SettingsInputNumber",components:{SettingsInfoTooltip:Ot},props:{name:String,value:[Number,String],label:String,description:String,constant:String,placeholder:String,type:{type:String,default:"text"},tooltip:String,default_value:String,min:Number,max:Number,disabled:Boolean,step:{type:Number,default:1},round:{type:Boolean,default:!1},is_error:Boolean},data(){return{has_error:!1,id:"input-"+this.name,text_error_value:(0,l.gB)((0,l.__)("Please enter a value between %1$s and %2$s","wp-mail-smtp"),""+this.min+"",""+this.max+""),text_error_round:(0,l.__)("Value has to be a round number","wp-mail-smtp")}},computed:{currentValue:{get(){return this.value},set(t){this.$emit("is_error_update",!1),this.$emit("input",parseInt(t,10))}},field_error:{get(){return this.is_error},set(t){this.$emit("is_error_update",t)}},is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}},methods:{inputUpdate:function(t){if(this.disabled)return!1;this.has_error=!1;const e=parseFloat(t.target.value);return this.round&&e%1!==0?(this.has_error=this.text_error_round,!1):e>this.max||e-1:t.currentValue},on:{change:[function(e){var s=t.currentValue,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=null,o=t._i(s,n);i.checked?o<0&&(t.currentValue=s.concat([n])):o>-1&&(t.currentValue=s.slice(0,o).concat(s.slice(o+1)))}else t.currentValue=a},t.inputUpdate],click:t.inputClicked}}),e("span",{class:{"toggle-switch":!0,"toggle-switch-with-label":t.label}}),t.label?e("span",{staticClass:"label-description",domProps:{innerHTML:t._s(t.label)}}):t._e()])])])},Xe=[],je={name:"SettingsInputSwitch",components:{SettingsInfoTooltip:Ot},props:{name:String,value:Boolean,title:String,label:String,description:String,constant:String,tooltip:String,classname:String,disabled:Boolean,show_pro:Boolean},data(){return{has_error:!1,id:"input-"+this.name}},computed:{currentValue:{get(){return this.value},set(t){this.$emit("input",!!t)}},is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}},methods:{inputUpdate:function(){if(this.disabled)return!1},inputClicked(t){this.$emit("clicked",t)}}},$e=je,ts=(0,d.Z)($e,qe,Xe,!1,null,null,null),es=ts.exports,ss={name:"WizardStepConfigureMailerSmtp",components:{SettingsInputText:Qt,SettingsInputRadio:Ue,SettingsInputNumber:Je,SettingsInputSwitch:es},data(){return{mailer:"smtp",text_host_label:(0,l.__)("SMTP Host","wp-mail-smtp"),text_encryption_label:(0,l.__)("Encryption","wp-mail-smtp"),text_port_label:(0,l.__)("SMTP Port","wp-mail-smtp"),text_autotls_title:(0,l.__)("Auto TLS","wp-mail-smtp"),text_autotls_label:(0,l.__)("Enable Auto TLS","wp-mail-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.","wp-mail-smtp"),text_auth_title:(0,l.__)("Authentication","wp-mail-smtp"),text_auth_label:(0,l.__)("Enable Authentication","wp-mail-smtp"),text_user_label:(0,l.__)("SMTP Username","wp-mail-smtp"),text_pass_label:(0,l.__)("SMTP Password","wp-mail-smtp"),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-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.","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),description:this.$wpms.mailer_options.smtp.description,encryptionOptions:[{label:(0,l.__)("None","wp-mail-smtp"),value:"none",default_port:25},{label:(0,l.__)("SSL","wp-mail-smtp"),value:"ssl",default_port:465},{label:(0,l.__)("TLS","wp-mail-smtp"),value:"tls",default_port:587}],show_autotls:!0,show_user_and_pass:!0,field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.show_autotls="tls"!==t}},methods:{getEncryptionDefaultPort(t){return this.encryptionOptions.find((e=>e.value===t)).default_port},encryptionChanged(t){this.port=this.getEncryptionDefaultPort(t)},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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}},mounted(){"tls"===this.encryption&&(this.show_autotls=!1)}},is=ss,as=(0,d.Z)(is,Ze,Oe,!1,null,null,null),ns=as.exports,os=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-sendlayer"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-small wp-mail-smtp-button-secondary",attrs:{href:t.get_started_button_url,target:"_blank",rel:"noopener noreferrer"}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_get_started_button)),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),e("a",{staticClass:"wp-mail-smtp-link wp-mail-smtp-link-docs",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_SENDLAYER_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},rs=[],ls={name:"WizardStepConfigureMailerSendlayer",components:{SettingsInputText:Qt,SettingsInputSwitch:es},data(){return{mailer:"sendlayer",text_api_key_label:(0,l.__)("API Key","wp-mail-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SendLayer.","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_get_started_button:(0,l.__)("Get Started with SendLayer","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendLayer","wp-mail-smtp"),description:this.$wpms.mailer_options.sendlayer.description.substr(0,this.$wpms.mailer_options.sendlayer.description.lastIndexOf("
")),get_started_button_url:this.$getUTMUrl("https://sendlayer.com/wp-mail-smtp/",{source:"wpmailsmtpplugin",medium:"WordPress",content:"Setup Wizard - Mailer Button"}),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-sendlayer-mailer-in-wp-mail-smtp/",{content:"Read how to set up SendLayer"}),field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},ps=ls,ms=(0,d.Z)(ps,os,rs,!1,null,null,null),_s=ms.exports,cs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-smtpcom"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-small wp-mail-smtp-button-secondary",attrs:{href:"https://wpmailsmtp.com/go/smtp/",target:"_blank",rel:"noopener noreferrer"}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_get_started_button)),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),e("a",{staticClass:"wp-mail-smtp-link wp-mail-smtp-link-docs",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))]),e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[t._v(t._s(t.text_disclosure))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_SMTPCOM_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-text",{attrs:{name:"channel",constant:"WPMS_SMTPCOM_CHANNEL",label:t.text_channel_label,description:t.text_channel_description,is_error:t.field_errors.includes("channel")},on:{is_error_update:function(e){return t.removeFieldError("channel")}},model:{value:t.channel,callback:function(e){t.channel=e},expression:"channel"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},ds=[],us={name:"WizardStepConfigureMailerSmtpCom",components:{SettingsInputText:Qt,SettingsInputSwitch:es},data(){return{mailer:"smtpcom",text_api_key_label:(0,l.__)("API Key","wp-mail-smtp"),text_channel_label:(0,l.__)("Sender Name","wp-mail-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SMTP.com.","wp-mail-smtp"),'',""),text_channel_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Sender Name for SMTP.com.","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_get_started_button:(0,l.__)("Get Started with SMTP.com","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up SMTP.com","wp-mail-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","wp-mail-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.","wp-mail-smtp"),autoHide:!0,trigger:"hover"},description:this.$wpms.mailer_options.smtpcom.description.substr(0,this.$wpms.mailer_options.smtpcom.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-smtp-com-mailer-in-wp-mail-smtp",{content:"Read how to set up SMTP.com"}),field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},hs=us,gs=(0,d.Z)(hs,cs,ds,!1,null,null,null),ws=gs.exports,fs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-sendinblue"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-small wp-mail-smtp-button-secondary",attrs:{href:"https://wpmailsmtp.com/go/sendinblue/",target:"_blank",rel:"noopener noreferrer"}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_get_started_button)),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),e("a",{staticClass:"wp-mail-smtp-link wp-mail-smtp-link-docs",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))]),e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[t._v(t._s(t.text_disclosure))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_SENDINBLUE_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-text",{attrs:{name:"domain",constant:"WPMS_SENDINBLUE_DOMAIN",label:t.text_domain_label,description:t.text_domain_description},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},As=[],bs={name:"WizardStepConfigureMailerSendinblue",components:{SettingsInputText:Qt,SettingsInputSwitch:es},data(){return{mailer:"sendinblue",text_api_key_label:(0,l.__)("API Key","wp-mail-smtp"),text_domain_label:(0,l.__)("Sending Domain","wp-mail-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for Brevo.","wp-mail-smtp"),'',""),text_domain_description:(0,l.gB)((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","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_get_started_button:(0,l.__)("Get Started with Brevo","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Brevo","wp-mail-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","wp-mail-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.","wp-mail-smtp"),autoHide:!0,trigger:"hover"},description:this.$wpms.mailer_options.sendinblue.description.substr(0,this.$wpms.mailer_options.sendinblue.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-sendinblue-mailer-in-wp-mail-smtp",{content:"Read how to set up Brevo"}),field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},vs=bs,xs=(0,d.Z)(vs,fs,As,!1,null,null,null),ks=xs.exports,ys=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-mailgun"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_MAILGUN_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-text",{attrs:{name:"domain",constant:"WPMS_MAILGUN_DOMAIN",label:t.text_domain_label,description:t.text_domain_description,is_error:t.field_errors.includes("domain")},on:{is_error_update:function(e){return t.removeFieldError("domain")}},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),e("settings-input-radio",{attrs:{name:"region",constant:"WPMS_MAILGUN_REGION",label:t.text_region_label,options:t.regionOptions,description:t.text_region_description},model:{value:t.region,callback:function(e){t.region=e},expression:"region"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},Cs=[],Ss={name:"WizardStepConfigureMailerMailgun",components:{SettingsInputText:Qt,SettingsInputRadio:Ue,SettingsInputSwitch:es},data(){return{mailer:"mailgun",text_api_key_label:(0,l.__)("Mailgun API Key","wp-mail-smtp"),text_domain_label:(0,l.__)("Domain Name","wp-mail-smtp"),text_region_label:(0,l.__)("Region","wp-mail-smtp"),text_api_key_description:(0,l.gB)((0,l.__)('%1$sFollow this link%2$s to get a Mailgun API Key. Generate a key in the "Mailgun API Keys" section.',"wp-mail-smtp"),'',""),text_domain_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Domain Name from Mailgun.","wp-mail-smtp"),'',""),text_region_description:(0,l.gB)((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.","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Mailgun","wp-mail-smtp"),description:this.$wpms.mailer_options.mailgun.description.substr(0,this.$wpms.mailer_options.mailgun.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-mailgun-mailer-in-wp-mail-smtp/",{content:"Read how to set up Mailgun"}),regionOptions:[{label:(0,l.__)("US","wp-mail-smtp"),value:"US"},{label:(0,l.__)("EU","wp-mail-smtp"),value:"EU"}],field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},Ps=Ss,Ms=(0,d.Z)(Ps,ys,Cs,!1,null,null,null),Es=Ms.exports,Bs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-sendgrid"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_SENDGRID_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-text",{attrs:{name:"domain",constant:"WPMS_SENDGRID_DOMAIN",label:t.text_domain_label,description:t.text_domain_description},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},Ts=[],Is={name:"WizardStepConfigureMailerSendgrid",components:{SettingsInputText:Qt,SettingsInputSwitch:es},data(){return{mailer:"sendgrid",text_api_key_label:(0,l.__)("API Key","wp-mail-smtp"),text_domain_label:(0,l.__)("Sending Domain","wp-mail-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for Sendgrid.","wp-mail-smtp"),'',"")+" "+(0,l.gB)((0,l.__)("To send emails you will need only a %1$sMail Send%2$s access level for this API key.","wp-mail-smtp"),"",""),text_domain_description:(0,l.gB)((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","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendGrid","wp-mail-smtp"),description:this.$wpms.mailer_options.sendgrid.description.substr(0,this.$wpms.mailer_options.sendgrid.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-sendgrid-mailer-in-wp-mail-smtp/",{content:"Read how to set up Sendgrid"}),field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},Fs=Is,Ds=(0,d.Z)(Fs,Bs,Ts,!1,null,null,null),zs=Ds.exports,Zs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-sparkpost"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link wp-mail-smtp-link-docs",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"WPMS_SPARKPOST_API_KEY",label:t.text_api_key_label,description:t.text_api_key_description,is_error:t.field_errors.includes("api_key")},on:{is_error_update:function(e){return t.removeFieldError("api_key")}},model:{value:t.api_key,callback:function(e){t.api_key=e},expression:"api_key"}}),e("settings-input-radio",{attrs:{name:"region",constant:"WPMS_SPARKPOST_REGION",label:t.text_region_label,options:t.regionOptions,description:t.text_region_description},model:{value:t.region,callback:function(e){t.region=e},expression:"region"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},Os=[],Ls={name:"WizardStepConfigureMailerSparkPost",components:{SettingsInputText:Qt,SettingsInputRadio:Ue,SettingsInputSwitch:es},data(){return{mailer:"sparkpost",text_api_key_label:(0,l.__)("API Key","wp-mail-smtp"),text_region_label:(0,l.__)("Region","wp-mail-smtp"),text_region_description:(0,l.gB)((0,l.__)("Select your SparkPost account region. %1$sMore information%2$s on SparkPost.","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up SparkPost","wp-mail-smtp"),description:this.$wpms.mailer_options.sparkpost.description.substr(0,this.$wpms.mailer_options.sparkpost.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-sparkpost-mailer-in-wp-mail-smtp/",{content:"Read how to set up SparkPost"}),regionOptions:[{label:(0,l.__)("US","wp-mail-smtp"),value:"US"},{label:(0,l.__)("EU","wp-mail-smtp"),value:"EU"}],field_errors:[]}},computed:{...(0,_t.vn)("$_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 t="EU"===this.region?"eu.":"";return(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SparkPost.","wp-mail-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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},Ws=Ls,Rs=(0,d.Z)(Ws,Zs,Os,!1,null,null,null),Qs=Rs.exports,Ns=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-postmark"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link wp-mail-smtp-link-docs",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"server_api_token",type:"password",constant:"WPMS_POSTMARK_SERVER_API_TOKEN",label:t.text_server_api_token_label,description:t.text_server_api_token_description,is_error:t.field_errors.includes("server_api_token")},on:{is_error_update:function(e){return t.removeFieldError("server_api_token")}},model:{value:t.server_api_token,callback:function(e){t.server_api_token=e},expression:"server_api_token"}}),e("settings-input-text",{attrs:{name:"message_stream",constant:"WPMS_POSTMARK_MESSAGE_STREAM",label:t.text_message_stream_label,description:t.text_message_stream_description},model:{value:t.message_stream,callback:function(e){t.message_stream=e},expression:"message_stream"}}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)])},Us=[],Gs={name:"WizardStepConfigureMailerPostmark",components:{SettingsInputText:Qt,SettingsInputSwitch:es},data(){return{mailer:"postmark",text_server_api_token_label:(0,l.__)("Server API Token","wp-mail-smtp"),text_message_stream_label:(0,l.__)("Message Stream ID","wp-mail-smtp"),text_server_api_token_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Server API Token for Postmark.","wp-mail-smtp"),'',""),text_message_stream_description:(0,l.gB)((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.","wp-mail-smtp"),'',""),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Postmark","wp-mail-smtp"),description:this.$wpms.mailer_options.postmark.description.substr(0,this.$wpms.mailer_options.postmark.description.lastIndexOf("
")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-postmark-mailer-in-wp-mail-smtp/",{content:"Read how to set up Postmark"}),field_errors:[]}},computed:{...(0,_t.vn)("$_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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}}},Hs=Gs,Ys=(0,d.Z)(Hs,Ns,Us,!1,null,null,null),Vs=Ys.exports,Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-amazonses"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("b",[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])])]),t.is_ssl?e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"client_id",constant:"WPMS_AMAZONSES_CLIENT_ID",label:t.text_client_id_label,is_error:t.field_errors.includes("client_id")},on:{is_error_update:function(e){return t.removeFieldError("client_id")}},model:{value:t.client_id,callback:function(e){t.client_id=e},expression:"client_id"}}),e("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"WPMS_AMAZONSES_CLIENT_SECRET",label:t.text_client_secret_label,is_error:t.field_errors.includes("client_secret")},on:{is_error_update:function(e){return t.removeFieldError("client_secret")}},model:{value:t.client_secret,callback:function(e){t.client_secret=e},expression:"client_secret"}}),e("settings-input-select",{attrs:{name:"region",constant:"WPMS_AMAZONSES_REGION",label:t.text_region_label,options:t.regionOptions,description:t.text_region_description,is_error:t.field_errors.includes("region")},on:{is_error_update:function(e){return t.removeFieldError("region")}},model:{value:t.region,callback:function(e){t.region=e},expression:"region"}}),t.is_api_auth_missing?t._e():e("div",[t.display_identities?e("div",[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-amazon-s-e-s-identities",{attrs:{options:t.identities,label:t.text_identities_label,columns:t.identities_columns}})],1):t._e(),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)],1):e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("div",{staticClass:"wp-mail-smtp-notice wp-mail-smtp-notice--error"},[e("p",[e("span",[t._v(t._s(t.text_no_ssl))]),t._v(" "),e("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[t._v(t._s(t.text_no_ssl_link_text))]),t._v(".")]),e("p",[t._v(t._s(t.text_no_ssl_diff_mailer))])])])])},Js=[],qs=s(1296),Xs=s.n(qs),js=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-select",class:{"settings-input-select-error":t.field_error}},[e("label",{staticClass:"settings-input-label-container",attrs:{for:`wp-mail-smtp-settings-select-${t.name}`}},[e("span",{staticClass:"label"},[t._v(t._s(t.label))])]),e("div",{staticClass:"settings-input-select-container"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{id:`wp-mail-smtp-settings-select-${t.name}`,name:t.name,readonly:t.disabled,disabled:t.is_constant_set},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selected=e.target.multiple?s:s[0]}}},t._l(t.options,(function(s){return e("option",{key:s.value,domProps:{value:s.value}},[t._v(" "+t._s(s.label)+" ")])})),0)]),t.description?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.description)}}):t._e(),t.is_constant_set?e("p",{staticClass:"description description--constant",domProps:{innerHTML:t._s(t.text_constant)}}):t._e()])},$s=[],ti={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(t){this.$emit("is_error_update",!1),this.$emit("input",t)}},field_error:{get(){return this.is_error},set(t){this.$emit("is_error_update",t)}},is_constant_set:function(){return this.$wpms.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the WP Mail SMTP constant. To change it, please edit or remove the "+this.constant+" constant in your wp-config.php file.","wp-mail-smtp")}}},ei=ti,si=(0,d.Z)(ei,js,$s,!1,null,null,null),ii=si.exports,ai=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-amazon-ses-identities"},[e("label",{staticClass:"settings-input-label-container"},[e("span",{staticClass:"label"},[t._v(t._s(t.label))]),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1),t.options?e("div",[t.options&&0!==t.options.length?e("p",{staticClass:"description"},[t._v(" "+t._s(t.text_identities_table_description)+" ")]):e("p",{staticClass:"description"},[e("strong",[t._v(t._s(t.text_no_registered_identities_title))]),t._v(" "+t._s(t.text_no_registered_identities_content)+" ")]),e("div",{staticClass:"ses-identities-container"},[t.options&&t.options.length>0?e("div",{staticClass:"ses-identities-table-container"},[e("table",[t.columns?e("tr",{staticClass:"ses-identity-columns"},t._l(t.filtered_columns,(function(s){return e("th",{key:s.key,class:`ses-identity-column ses-identity-column-${s.key}`},[t._v(" "+t._s(s.label)+" ")])})),0):t._e(),t._l(t.options,(function(s,i){return e("tr",{key:i},[e("td",[t._v(" "+t._s(s.value)+" ")]),e("td",[t._v(" "+t._s(s.type)+" ")]),e("td",[t._v(" "+t._s(s.status)+" ")])])})),t.show_identity_form?t._e():e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main wp-mail-smtp-button-small",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.addNewIdentity.apply(null,arguments)}}},[t._v(" "+t._s(t.text_add_new_identity)+" ")])],2)]):t._e(),t.show_identity_form||!t.options||0===t.options.length?e("div",{staticClass:"wp-mail-smtp-amazonses-identity-form"},[t.options&&0!==t.options.length?t._e():e("h3",[t._v(" "+t._s(t.text_verify_identity)+" ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1===t.verify_identity_step,expression:"verify_identity_step === 1"}],staticClass:"amazonses-identity-form-step"},[e("settings-input-radio",{attrs:{name:"identity_type",options:t.identity_type_options},model:{value:t.identity_type,callback:function(e){t.identity_type=e},expression:"identity_type"}}),e("p",{domProps:{textContent:t._s(t.verify_identity_text)}}),e("settings-input-text",{attrs:{name:"identity_value",placeholder:t.identity_value_placeholder},model:{value:t.identity_value,callback:function(e){t.identity_value=e},expression:"identity_value"}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main wp-mail-smtp-button-small wp-mail-smtp-button-verify",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.verifyIdentity.apply(null,arguments)}}},[t.loading_verify_identity?e("spin-loader",{attrs:{color:"white"}}):e("span",[t._v(t._s(t.text_verify))])],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.verify_identity_step&&"domain"===t.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'domain'"}],staticClass:"amazonses-identity-form-step amazonses-identity-form-step-domain"},[e("p",{domProps:{innerHTML:t._s(t.text_verify_identity_step2_domain_text)}}),e("div",{staticClass:"amazonses-dns-records"},[e("div",{staticClass:"amazonses-dns-records__row amazonses-dns-records__row--heading"},[e("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[t._v(" "+t._s(t.text_name)+" ")]),e("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[t._v(" "+t._s(t.text_value)+" ")])]),t._l(t.verify_identity_result.domain_dkim_dns_records,(function(t,s){return e("div",{key:t.value,staticClass:"amazonses-dns-records__row amazonses-dns-records__row--record"},[e("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[e("settings-input-text",{attrs:{name:`dns_record_name[${s}]`,value:t.name,readonly:"",copy:""}})],1),e("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[e("settings-input-text",{attrs:{name:`dns_record_value[${s}]`,value:t.value,readonly:"",copy:""}})],1)])}))],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.verify_identity_step&&"email"===t.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'email'"}],staticClass:"amazonses-identity-form-step"},[e("p",{staticClass:"ses-identities-email-success-notice"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(2411),width:"16",height:"16"}}),t._v(" "),e("span",{domProps:{innerHTML:t._s(t.text_verify_identity_step2_email_text)}})],1)])]):t._e()])]):e("spin-loader",{attrs:{size:"md"}})],1)},ni=[],oi={name:"SettingsAmazonSESIdentities",components:{SettingsInfoTooltip:Ot,SettingsInputRadio:Ue,SettingsInputText:Qt,SpinLoader:ve},props:{options:Array,columns:Array,label:String,tooltip:String},computed:{filtered_columns:function(){return this.columns.filter((t=>"action"!==t.key))},identity_value_placeholder:function(){return"domain"===this.identity_type?(0,l.__)("Please enter a domain","wp-mail-smtp"):(0,l.__)("Please enter a valid email address","wp-mail-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.","wp-mail-smtp"):(0,l.__)("Enter a valid email address. A verification email will be sent to the email address you entered.","wp-mail-smtp")},text_verify_identity_step2_email_text:function(){return(0,l.gB)((0,l.__)("Please check the inbox of %s for a confirmation email.","wp-mail-smtp"),this.verify_identity_result.value)},text_verify:function(){return"domain"===this.identity_type?(0,l.__)("Verify Domain","wp-mail-smtp"):(0,l.__)("Verify Email","wp-mail-smtp")}},data(){return{text_no_registered_identities_title:(0,l.__)("No registered domains or emails.","wp-mail-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.","wp-mail-smtp"),text_view_dns:(0,l.__)("View DNS","wp-mail-smtp"),text_resend:(0,l.__)("Resend","wp-mail-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.","wp-mail-smtp"),text_verify_identity:(0,l.__)("Verify SES Identity","wp-mail-smtp"),text_add_new_identity:(0,l.__)("Add New SES Identity","wp-mail-smtp"),text_name:(0,l.__)("Name","wp-mail-smtp"),text_value:(0,l.__)("Value","wp-mail-smtp"),text_verify_identity_step2_domain_text:(0,l.gB)((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.","wp-mail-smtp"),'',""),show_identity_form:!1,identity_type:"domain",identity_type_options:[{label:(0,l.__)("Verify Domain","wp-mail-smtp"),value:"domain"},{label:(0,l.__)("Verify Email Address","wp-mail-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 t=this;this.$store.dispatch("$_settings/amazonSESRegisterIdentity",{value:this.identity_value,type:this.identity_type}).then((function(e){t.loading_verify_identity=!1,e.success&&e.data&&(t.verify_identity_result=e.data,t.verify_identity_step=2)}))},addNewIdentity:function(){this.show_identity_form=!0}}},ri=oi,li=(0,d.Z)(ri,ai,ni,!1,null,null,null),pi=li.exports,mi={name:"WizardStepConfigureMailerAmazonSES",components:{SettingsInputText:Qt,SettingsInputSelect:ii,SettingsInputSwitch:es,SettingsAmazonSESIdentities:pi},data(){return{mailer:"amazonses",text_client_id_label:(0,l.__)("Access Key ID","wp-mail-smtp"),text_client_secret_label:(0,l.__)("Secret Access Key",{NODE_ENV:"production",VUE_APP_TEXTDOMAIN:"wp-mail-smtp",VUE_APP_PRODUCT_NAME:"WPMailSMTP",BASE_URL:""}.VUE_APP_TEXTclient_id),text_region_label:(0,l.__)("Region","wp-mail-smtp"),text_identities_label:(0,l.__)("SES Identities","wp-mail-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.","wp-mail-smtp"),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Amazon SES","wp-mail-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 ","wp-mail-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","wp-mail-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.","wp-mail-smtp"),description:this.$wpms.mailer_options.amazonses.description.substr(0,this.$wpms.mailer_options.amazonses.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-amazon-ses-mailer-in-wp-mail-smtp/",{content:"Read how to set up Amazon SES"}),regionOptions:this.$wpms.mailer_options.amazonses.region_options||[],fetching_identities:!1,is_ssl:this.$wpms.is_ssl,field_errors:[]}},computed:{...(0,_t.vn)("$_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,_t.vn)("$_settings",{identities_columns:"amazonses_identities.columns",identities:"amazonses_identities.data",display_identities:"amazonses_display_identities"}),...(0,_t.vn)("$_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:Xs()((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(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}},mounted(){this.getIdentities(),this.$wpms.is_ssl||(this.blocked_step=!0)}},_i=mi,ci=(0,d.Z)(_i,Ks,Js,!1,null,"05d90eba",null),di=ci.exports,ui=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-gmail"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("b",[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-switch",{attrs:{classname:"wp-mail-smtp-gmail-one-click-setup-switch",name:"one_click_setup_enabled",title:t.text_one_click_setup_title,label:t.one_click_setup_enabled?t.text_enabled:t.text_disabled,description:t.text_one_click_setup_description,show_pro:!t.is_pro},on:{clicked:t.oneClickSetupOptionClicked},model:{value:t.one_click_setup_enabled,callback:function(e){t.one_click_setup_enabled=e},expression:"one_click_setup_enabled"}}),t.one_click_setup_enabled?[t.is_license_verification_required?[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("div",{staticClass:"license-form",class:{"license-form-error":t.license_error}},[e("p",{domProps:{innerHTML:t._s(t.text_license_form)}}),e("div",{staticClass:"license-control"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:t.text_license_input_placeholder,"aria-label":t.text_aria_label_for_license_input},domProps:{value:t.license},on:{input:function(e){e.target.composing||(t.license=e.target.value)}}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-success wp-mail-smtp-button-small",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.handleLicenseSubmit.apply(null,arguments)}}},[t._v(" "+t._s(t.text_license_button)+" ")])]),t.license_error?e("p",{staticClass:"error-message",domProps:{textContent:t._s(t.text_license_error)}}):t._e()]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"})]:t._e(),e("settings-o-auth-connection",{attrs:{hide_description:!0,mailer:t.mailer,connected_email:t.one_click_setup_connected_email_address,is_auth_required:t.is_auth_required,disabled:t.is_license_verification_required}})]:[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-text",{attrs:{name:"client_id",constant:"WPMS_GMAIL_CLIENT_ID",label:t.text_client_id_label,is_error:t.field_errors.includes("client_id")},on:{is_error_update:function(e){return t.removeFieldError("client_id")}},model:{value:t.client_id,callback:function(e){t.client_id=e},expression:"client_id"}}),e("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"WPMS_GMAIL_CLIENT_SECRET",label:t.text_client_secret_label,is_error:t.field_errors.includes("client_secret")},on:{is_error_update:function(e){return t.removeFieldError("client_secret")}},model:{value:t.client_secret,callback:function(e){t.client_secret=e},expression:"client_secret"}}),e("settings-input-text",{attrs:{value:t.redirect_uri,name:"redirect_uri",label:t.text_redirect_uri_label,copy:"",readonly:""}}),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-o-auth-connection",{attrs:{label:t.text_authorization_label,mailer:t.mailer,connected_email:t.connected_email_address,is_auth_required:t.is_auth_required,client_id:t.client_id,client_secret:t.client_secret}})],t.is_auth_required?t._e():e("div",{staticClass:"wp-mail-smtp-setup-wizard-form-general-settings"},[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)],2)])},hi=[],gi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-oauth-connection"},[t.label?e("label",{staticClass:"settings-input-label-container"},[e("span",{staticClass:"label"},[t._v(t._s(t.label))]),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1):t._e(),t.is_auth_required?e("div",{staticClass:"add-authorization-container"},[t.hide_description?t._e():e("p",{staticClass:"description",domProps:{textContent:t._s(t.text_authorization_button_description)}}),"gmail"===t.mailer&&t.gmail_one_click_setup_enabled?e("button",{staticClass:"wp-mail-smtp-google-sign-in-btn",attrs:{type:"button",disabled:!t.are_client_details_ready||t.disabled},on:{click:function(e){return e.preventDefault(),t.authorize.apply(null,arguments)}}},[e("span",{staticClass:"wp-mail-smtp-google-sign-in-btn__icon"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(214),width:"46",height:"46"}})],1),e("span",{staticClass:"wp-mail-smtp-google-sign-in-btn__text"},[t._v(" "+t._s(t.text_google_authorization_button)+" ")])]):e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main wp-mail-smtp-button-small",attrs:{type:"button",disabled:!t.are_client_details_ready||t.disabled},on:{click:function(e){return e.preventDefault(),t.authorize.apply(null,arguments)}}},[t._v(" "+t._s(t.text_authorization_button)+" ")])]):e("div",{staticClass:"remove-authorization-container"},[t.connected_email?e("p",{staticClass:"description connected-as"},[e("span",{domProps:{innerHTML:t._s(t.text_connected_as_with_email)}}),t._v(" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(2546),width:"16",height:"16"}})],1):t._e(),"gmail"===t.mailer?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.text_remove_authorization_button_description_google)}}):t._e(),e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.text_remove_authorization_button_description)}}),e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-red wp-mail-smtp-button-small",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.removeAuthorization.apply(null,arguments)}}},[t._v(" "+t._s(t.text_remove_authorization_button)+" ")])])])},wi=[],fi={name:"SettingsOAuthConnection",components:{SettingsInfoTooltip:Ot},props:{label:String,hide_description:Boolean,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","wp-mail-smtp"),text_google_authorization_button:(0,l.__)("Sign in with Google","wp-mail-smtp"),text_authorization_button_description_general:(0,l.__)("Before continuing, you'll need to allow this plugin to send emails using your %s account.","wp-mail-smtp"),text_remove_authorization_button:(0,l.__)("Remove OAuth Connection","wp-mail-smtp"),text_remove_authorization_button_description_google:(0,l.gB)((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 select the alias in the From Email section below.","wp-mail-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.","wp-mail-smtp"),text_connected_as:(0,l.__)("Connected as","wp-mail-smtp")}},computed:{...(0,at.Se)({gmail_one_click_setup_enabled:"$_settings/gmail_one_click_setup_enabled"}),are_client_details_ready:function(){return!("gmail"!==this.mailer||!this.gmail_one_click_setup_enabled)||!!this.client_id&&!!this.client_secret},mailer_name:function(){let t="Google";return"outlook"===this.mailer?t="Microsoft Outlook":"zoho"===this.mailer&&(t="Zoho Mail"),t},text_authorization_button:function(){return(0,l.gB)(this.text_allow_button,this.mailer_name)},text_authorization_button_description:function(){return(0,l.gB)(this.text_authorization_button_description_general,this.mailer_name)},text_remove_authorization_button_description:function(){return(0,l.gB)(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(t){t.success&&t.data.oauth_url&&(window.location.href=t.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(t,e,s){e.delete(s),t.search=e.toString(),window.history.replaceState({},document.title,t.toString())},catchAuthNotice:function(){const t=new URL(window.location.href),e=new URLSearchParams(t.search);let s="",i="",a=!1;switch(e.has("success")?(s=e.get("success"),a=!0,this.removeUrlParam(t,e,"success")):e.has("error")&&(s=e.get("error"),this.removeUrlParam(t,e,"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.","wp-mail-smtp");break;case"google_no_code_scope":case"google_access_denied":case"zoho_access_denied":i=(0,l.__)("There was an error while processing the authentication request. Please try again.","wp-mail-smtp");break;case"google_no_clients":case"zoho_no_clients":case"microsoft_unsuccessful_oauth":case"google_unsuccessful_oauth":i=(0,l.__)("There was an error while processing the authentication request. Please recheck your Client ID and Client Secret and try again.","wp-mail-smtp");break;case"google_one_click_setup_unsuccessful_oauth":i=(0,l.__)("There was an error while processing the authentication request.","wp-mail-smtp");break;case"google_invalid_nonce":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.","wp-mail-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.","wp-mail-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.","wp-mail-smtp");break;case"google_site_linked":i=(0,l.__)("You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail.","wp-mail-smtp");break;case"google_one_click_setup_site_linked":i=(0,l.__)("You have successfully connected your site with your Gmail account. Now you can start sending emails through Gmail.","wp-mail-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.","wp-mail-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.","wp-mail-smtp");break}i.length>0&&this.$swal({title:a?(0,l.__)("Successful Authorization","wp-mail-smtp"):(0,l.__)("Authorization Error!","wp-mail-smtp"),text:i,width:550,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})}},mounted(){this.catchAuthNotice()}},Ai=fi,bi=(0,d.Z)(Ai,gi,wi,!1,null,null,null),vi=bi.exports,xi={name:"WizardStepConfigureMailerGmail",components:{SettingsInputText:Qt,SettingsInputSwitch:es,SettingsOAuthConnection:vi},data(){return{mailer:"gmail",text_one_click_setup_title:(0,l.__)("One-Click Setup","wp-mail-smtp"),text_one_click_setup_description:(0,l.__)("Provides a quick and easy way to connect to Google that doesn't require creating your own app.","wp-mail-smtp"),text_client_id_label:(0,l.__)("Client ID","wp-mail-smtp"),text_client_secret_label:(0,l.__)("Client Secret","wp-mail-smtp"),text_redirect_uri_label:(0,l.__)("Authorized Redirect URI","wp-mail-smtp"),text_authorization_label:(0,l.__)("Authorization","wp-mail-smtp"),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-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.","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from. You can use only the connected email address or its alias.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up the Gmail mailer","wp-mail-smtp"),text_enabled:(0,l.__)("Enabled","wp-mail-smtp"),text_disabled:(0,l.__)("Disabled","wp-mail-smtp"),text_one_click_setup_upgrade_title:(0,l.__)("One-Click Setup for Google Mailer is a Pro Feature","wp-mail-smtp"),text_one_click_setup_upgrade_content:(0,l.__)("We're sorry, One-Click Setup for Google Mailer is not available on your plan. Please upgrade to the Pro plan to unlock all these awesome features.","wp-mail-smtp"),description:this.$wpms.mailer_options.gmail.description.substr(0,this.$wpms.mailer_options.gmail.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/#create-app",{content:"Read how to set up the Gmail mailer"}),redirect_uri:this.$wpms.mailer_options.gmail.redirect_uri,field_errors:[],license_verified:!1,license:"",license_error:!1,text_license_form:(0,l.__)("One-Click Setup for Google Mailer requires an active license. Verify your license to proceed with this One-Click Setup, please.","wp-mail-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","wp-mail-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","wp-mail-smtp"),text_license_button:(0,l.__)("Verify License Key","wp-mail-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","wp-mail-smtp"),is_pro:this.$wpms.is_pro,one_click_setup_enabled:!1}},computed:{...(0,_t.vn)("$_settings",["settings.gmail.client_id","settings.gmail.client_secret","settings.gmail.access_token","settings.gmail.refresh_token","settings.gmail.one_click_setup_credentials","settings.mail.from_email","settings.mail.from_email_force","settings.mail.from_name","settings.mail.from_name_force"]),...(0,_t.vn)("$_wizard",["blocked_step"]),...(0,at.Se)({is_valid_license:"$_settings/is_valid_license",one_click_setup_enabled_setting:"$_settings/gmail_one_click_setup_enabled",connected_email_address:"$_settings/gmail_email",one_click_setup_connected_email_address:"$_settings/gmail_one_click_setup_email"}),is_auth_required:function(){return this.one_click_setup_enabled?!this.one_click_setup_credentials?.key||!this.one_click_setup_credentials?.token:!this.access_token||!this.refresh_token},is_license_verification_required:function(){return!this.license_verified&&!this.is_valid_license&&this.is_auth_required}},watch:{is_auth_required:function(t){this.blocked_step=t},one_click_setup_enabled:function(t){this.is_pro&&this.$store.dispatch("$_settings/setGmailUseOneClickSetup",t)},one_click_setup_enabled_setting:function(t){this.is_pro&&(this.one_click_setup_enabled=t)}},methods:{areRequiredFieldsValid(){let t=!0;return""===this.from_email&&(t=!1,this.field_errors.push("from_email")),this.one_click_setup_enabled||(""===this.client_id&&(t=!1,this.field_errors.push("client_id")),""===this.client_secret&&(t=!1,this.field_errors.push("client_secret"))),t},removeFieldError(t){this.field_errors=this.field_errors.filter((e=>e!==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((t=>{t.success?(this.license_verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","wp-mail-smtp"),html:(0,l.__)("Now you can continue mailer configuration.","wp-mail-smtp"),width:450,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","wp-mail-smtp"),html:t.data,width:450,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},oneClickSetupOptionClicked(t){this.is_pro||(t.preventDefault(),this.oneClickSetupUpgradePopup())},oneClickSetupUpgradePopup(){var t=/(\?)/.test(this.$wpms.education.upgrade_url)?"&":"?",e=this.$wpms.education.upgrade_url+t+"utm_content="+encodeURIComponent("gmail-one-click-setup");this.$swal({title:this.text_one_click_setup_upgrade_title,html:`
`,width:550,imageUrl:s(4523),imageWidth:31,imageHeight:35,showCloseButton:!0,customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-upgrade-popup"},showConfirmButton:!1})}},mounted(){this.is_auth_required&&(this.blocked_step=!0),this.is_pro&&(this.one_click_setup_enabled=this.one_click_setup_enabled_setting)}},ki=xi,yi=(0,d.Z)(ki,ui,hi,!1,null,null,null),Ci=yi.exports,Si=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-outlook"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),t.is_ssl?e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-text",{attrs:{name:"client_id",constant:"WPMS_OUTLOOK_CLIENT_ID",label:t.text_client_id_label,is_error:t.field_errors.includes("client_id")},on:{is_error_update:function(e){return t.removeFieldError("client_id")}},model:{value:t.client_id,callback:function(e){t.client_id=e},expression:"client_id"}}),e("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"WPMS_OUTLOOK_CLIENT_SECRET",label:t.text_client_secret_label,is_error:t.field_errors.includes("client_secret")},on:{is_error_update:function(e){return t.removeFieldError("client_secret")}},model:{value:t.client_secret,callback:function(e){t.client_secret=e},expression:"client_secret"}}),e("settings-input-text",{attrs:{value:t.redirect_uri,name:"redirect_uri",label:t.text_redirect_uri_label,copy:"",readonly:""}}),e("settings-o-auth-connection",{attrs:{label:t.text_authorization_label,mailer:t.mailer,connected_email:t.connected_email_address,is_auth_required:t.is_auth_required,client_id:t.client_id,client_secret:t.client_secret}}),t.is_auth_required?t._e():e("div",{staticClass:"wp-mail-smtp-setup-wizard-form-general-settings"},[e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-big-margin"}),e("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"WPMS_MAIL_FROM",label:t.text_from_email_label,description:t.text_from_email_description,is_error:t.field_errors.includes("from_email")},on:{is_error_update:function(e){return t.removeFieldError("from_email")},error_detected:e=>t.errorDetected(e,"from_email")},model:{value:t.from_email,callback:function(e){t.from_email=e},expression:"from_email"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"WPMS_MAIL_FROM_FORCE",title:t.text_force_from_email_title,label:t.text_force_from_email_label},model:{value:t.from_email_force,callback:function(e){t.from_email_force=e},expression:"from_email_force"}})],1)],1):e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("div",{staticClass:"wp-mail-smtp-notice wp-mail-smtp-notice--error"},[e("p",[e("span",[t._v(t._s(t.text_no_ssl))]),t._v(" "),e("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[t._v(t._s(t.text_no_ssl_link_text))]),t._v(".")]),e("p",[t._v(t._s(t.text_no_ssl_diff_mailer))])])])])},Pi=[],Mi={name:"WizardStepConfigureMailerOutlook",components:{SettingsInputText:Qt,SettingsInputSwitch:es,SettingsOAuthConnection:vi},data(){return{mailer:"outlook",text_client_id_label:(0,l.__)("Application ID","wp-mail-smtp"),text_client_secret_label:(0,l.__)("Application Password","wp-mail-smtp"),text_redirect_uri_label:(0,l.__)("Redirect URI","wp-mail-smtp"),text_authorization_label:(0,l.__)("Authorization","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Microsoft Outlook / 365","wp-mail-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 ","wp-mail-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","wp-mail-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.","wp-mail-smtp"),text_from_email_label:(0,l.__)("From Email","wp-mail-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","wp-mail-smtp"),text_force_from_email_title:(0,l.__)("Force From Email","wp-mail-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.","wp-mail-smtp"),description:this.$wpms.mailer_options.outlook.description.substr(0,this.$wpms.mailer_options.outlook.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-outlook-mailer-in-wp-mail-smtp/#microsoft-setup",{content:"Read how to set up Microsoft Outlook / 365"}),redirect_uri:this.$wpms.mailer_options.outlook.redirect_uri,field_errors:[],is_ssl:this.$wpms.is_ssl}},computed:{...(0,_t.vn)("$_settings",["settings.outlook.client_id","settings.outlook.client_secret","settings.outlook.access_token","settings.outlook.refresh_token","settings.mail.from_email","settings.mail.from_email_force"]),...(0,_t.vn)("$_wizard",["blocked_step"]),...(0,at.Se)({connected_email_address:"$_settings/outlook_email"}),is_auth_required:function(){return!this.access_token||!this.refresh_token}},watch:{is_auth_required:function(t){this.blocked_step=t}},methods:{areRequiredFieldsValid(){return""===this.client_id&&this.field_errors.push("client_id"),""===this.client_secret&&this.field_errors.push("client_secret"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(t){this.field_errors=this.field_errors.filter((e=>e!==t))},errorDetected(t,e){this.field_errors.push(e)}},mounted(){this.is_auth_required&&(this.blocked_step=!0),this.$wpms.is_ssl||(this.blocked_step=!0)}},Ei=Mi,Bi=(0,d.Z)(Ei,Si,Pi,!1,null,"1230186a",null),Ti=Bi.exports,Ii=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-configure-mailer-settings wp-mail-smtp-setup-wizard-step-configure-mailer-settings-zoho"},[e("p",{staticClass:"mailer-description",domProps:{innerHTML:t._s(t.description)}}),e("p",{staticClass:"mailer-description mailer-description-links"},[e("a",{staticClass:"wp-mail-smtp-link",attrs:{href:t.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.text_documentation_link))])]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-form"},[e("settings-input-select",{attrs:{name:"domain",constant:"WPMS_ZOHO_DOMAIN",label:t.text_domain_label,options:t.domain_options,description:t.text_domain_description,is_error:t.field_errors.includes("domain")},on:{is_error_update:function(e){return t.removeFieldError("domain")}},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),e("settings-input-text",{attrs:{name:"client_id",constant:"WPMS_ZOHO_CLIENT_ID",label:t.text_client_id_label,is_error:t.field_errors.includes("client_id")},on:{is_error_update:function(e){return t.removeFieldError("client_id")}},model:{value:t.client_id,callback:function(e){t.client_id=e},expression:"client_id"}}),e("settings-input-text",{attrs:{name:"client_secret",constant:"WPMS_ZOHO_CLIENT_SECRET",type:"password",label:t.text_client_secret_label,is_error:t.field_errors.includes("client_secret")},on:{is_error_update:function(e){return t.removeFieldError("client_secret")}},model:{value:t.client_secret,callback:function(e){t.client_secret=e},expression:"client_secret"}}),e("settings-input-text",{attrs:{value:t.redirect_uri,name:"redirect_uri",label:t.text_redirect_uri_label,copy:"",readonly:""}}),e("settings-o-auth-connection",{attrs:{label:t.text_authorization_label,mailer:t.mailer,connected_email:t.connected_email_address,is_auth_required:t.is_auth_required,client_id:t.client_id,client_secret:t.client_secret}}),t.is_auth_required?t._e():e("div",[e("settings-input-text",{attrs:{name:"from_name",constant:"WPMS_MAIL_FROM_NAME",label:t.text_from_name_label,description:t.text_from_name_description},model:{value:t.from_name,callback:function(e){t.from_name=e},expression:"from_name"}}),e("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"WPMS_MAIL_FROM_NAME_FORCE",title:t.text_force_from_name_title,label:t.text_force_from_name_label},model:{value:t.from_name_force,callback:function(e){t.from_name_force=e},expression:"from_name_force"}})],1)],1)])},Fi=[],Di={name:"WizardStepConfigureMailerZoho",components:{SettingsInputText:Qt,SettingsInputSwitch:es,SettingsInputSelect:ii,SettingsOAuthConnection:vi},data(){return{mailer:"zoho",text_domain_label:(0,l.__)("Region","wp-mail-smtp"),text_domain_description:(0,l.__)("The data center location used by your Zoho account.","wp-mail-smtp"),text_client_id_label:(0,l.__)("Client ID","wp-mail-smtp"),text_client_secret_label:(0,l.__)("Client Secret","wp-mail-smtp"),text_redirect_uri_label:(0,l.__)("Redirect URI","wp-mail-smtp"),text_authorization_label:(0,l.__)("Authorization","wp-mail-smtp"),text_from_name_label:(0,l.__)("From Name","wp-mail-smtp"),text_force_from_name_title:(0,l.__)("Force From Name","wp-mail-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.","wp-mail-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","wp-mail-smtp"),text_documentation_link:(0,l.__)("Read how to set up Zoho Mail","wp-mail-smtp"),description:this.$wpms.mailer_options.zoho.description.substr(0,this.$wpms.mailer_options.zoho.description.indexOf(" ")),documentation_link_url:this.$getUTMUrl("https://wpmailsmtp.com/docs/how-to-set-up-the-zoho-mailer-in-wp-mail-smtp/#zoho-account",{content:"Read how to set up Zoho Mail"}),redirect_uri:this.$wpms.mailer_options.zoho.redirect_uri,domain_options:this.$wpms.mailer_options.zoho.domain_options,field_errors:[]}},computed:{...(0,_t.vn)("$_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,_t.vn)("$_wizard",["blocked_step"]),...(0,at.Se)({connected_email_address:"$_settings/zoho_email"}),is_auth_required:function(){return!this.access_token||!this.refresh_token}},watch:{is_auth_required:function(t){this.blocked_step=t}},methods:{areRequiredFieldsValid(){let t=!0;return""===this.domain&&(t=!1,this.field_errors.push("domain")),""===this.client_id&&(t=!1,this.field_errors.push("client_id")),""===this.client_secret&&(t=!1,this.field_errors.push("client_secret")),t},removeFieldError(t){this.field_errors=this.field_errors.filter((e=>e!==t))}},mounted(){this.is_auth_required&&(this.blocked_step=!0)}},zi=Di,Zi=(0,d.Z)(zi,Ii,Fi,!1,null,null,null),Oi=Zi.exports,Li=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-mail-smtp-setup-wizard-step wp-mail-smtp-setup-wizard-step-configure-email-logs"},[e("div",{staticClass:"wp-mail-smtp-setup-wizard-content-container"},[e("div",{staticClass:"wp-mail-smtp-configure-email-logs-header"},[e("the-wizard-step-counter"),e("content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}})],1),e("div",{staticClass:"wp-mail-smtp-plugin-configure-email-logs"},[e("settings-input-long-checkbox",{attrs:{name:"log_email_content",label:t.text_log_email_content,description:t.text_log_email_content_desc},model:{value:t.log_email_content,callback:function(e){t.log_email_content=e},expression:"log_email_content"}}),e("settings-input-long-checkbox",{attrs:{name:"save_attachments",label:t.text_save_attachments,description:t.text_save_attachments_desc},model:{value:t.save_attachments,callback:function(e){t.save_attachments=e},expression:"save_attachments"}}),e("settings-input-long-checkbox",{attrs:{name:"open_email_tracking",label:t.text_open_email_tracking,description:t.text_open_email_tracking_desc},model:{value:t.open_email_tracking,callback:function(e){t.open_email_tracking=e},expression:"open_email_tracking"}}),e("settings-input-long-checkbox",{attrs:{name:"click_link_tracking",label:t.text_click_link_tracking,description:t.text_click_link_tracking_desc},model:{value:t.click_link_tracking,callback:function(e){t.click_link_tracking=e},expression:"click_link_tracking"}})],1)]),e("div",{staticClass:"wp-mail-smtp-separator wp-mail-smtp-separator-no-margin"}),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousStep.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-left"},[e("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"18"}}),t._v(t._s(t.text_previous_step)+" ")],1)]),e("div",{staticClass:"wp-mail-smtp-setup-wizard-step-footer-buttons"},[e("button",{staticClass:"wp-mail-smtp-button wp-mail-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("span",{staticClass:"text-with-arrow text-with-arrow-right"},[t._v(" "+t._s(t.text_save)+" "),e("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},Wi=[],Ri={name:"WizardStepConfigureEmailLogs",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputLongCheckbox:kt},data(){return{text_header_title:(0,l.__)("Configure Email Logs","wp-mail-smtp"),text_header_subtitle:(0,l.__)("Enable these powerful logging features for more control of your WordPress emails.","wp-mail-smtp"),text_save:(0,l.__)("Save and Continue","wp-mail-smtp"),text_previous_step:(0,l.__)("Previous Step","wp-mail-smtp"),text_log_email_content:(0,l.__)("Store the content for all sent emails","wp-mail-smtp"),text_log_email_content_desc:(0,l.__)("This option must be enabled if you'd like to be able to resend emails. Please be aware that all email content will be stored in your WordPress database. This may include sensitive data, passwords, and personal details.","wp-mail-smtp"),text_save_attachments:(0,l.__)("Save file attachments sent from WordPress","wp-mail-smtp"),text_save_attachments_desc:(0,l.__)("All file attachments sent from your site will be saved to the WordPress Uploads folder. Please note that this may reduce available disk space on your server.","wp-mail-smtp"),text_open_email_tracking:(0,l.__)("Track when an email is opened","wp-mail-smtp"),text_open_email_tracking_desc:(0,l.__)("See which emails were opened by the recipients. Email open tracking works with emails that are sent in HTML format.","wp-mail-smtp"),text_click_link_tracking:(0,l.__)("Track when a link in an email is clicked","wp-mail-smtp"),text_click_link_tracking_desc:(0,l.__)("See which links were clicked in emails sent from your WordPress site. Click tracking works with emails that are sent in HTML format.","wp-mail-smtp")}},computed:{...(0,_t.vn)("$_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 t={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",t).then((t=>{t.success?this.nextStep():this.$wpms_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},previousStep(){this.$previous_step()},nextStep(){this.$next_step()}}},Qi=Ri,Ni=(0,d.Z)(Qi,Li,Wi,!1,null,null,null),Ui=Ni.exports,Gi=new n.ZP({routes:[{path:"*",redirect:"/"},{path:"/",name:"welcome",component:C},{path:"/step",name:"step",component:O,children:[{path:"import",name:"import_step",component:et},{path:"choose_mailer",name:"choose_mailer_step",component:lt},{path:"configure_mailer",name:"configure_mailer_step",component:ht,children:[{path:"smtp",name:"configure_mailer_step_smtp",component:ns},{path:"sendlayer",name:"configure_mailer_step_sendlayer",component:_s},{path:"smtpcom",name:"configure_mailer_step_smtpcom",component:ws},{path:"sendinblue",name:"configure_mailer_step_sendinblue",component:ks},{path:"mailgun",name:"configure_mailer_step_mailgun",component:Es},{path:"sendgrid",name:"configure_mailer_step_sendgrid",component:zs},{path:"sparkpost",name:"configure_mailer_step_sparkpost",component:Qs},{path:"postmark",name:"configure_mailer_step_postmark",component:Vs},{path:"amazoneses",name:"configure_mailer_step_amazonses",component:di},{path:"gmail",name:"configure_mailer_step_gmail",component:Ci},{path:"outlook",name:"configure_mailer_step_outlook",component:Ti},{path:"zoho",name:"configure_mailer_step_zoho",component:Oi}]},{path:"plugin_features",name:"plugin_features_step",component:Pt},{path:"configure_email_logs",name:"configure_email_logs_step",component:Ui},{path:"help_improve",name:"help_improve_step",component:Xt},{path:"license",name:"license_step",component:ne},{path:"check_configuration",name:"check_configuration_step",component:_e},{path:"successful_configuration",name:"check_configuration_step_success",component:Ee},{path:"failed_configuration",name:"check_configuration_step_failure",component:ze}]}],scrollBehavior(){return{x:0,y:0}}}),Hi={name:"SetupWizardApp",router:Gi,computed:{...(0,at.Se)({blocked:"$_app/blocked",loading:"$_app/loading"})}},Yi=Hi,Vi=(0,d.Z)(Yi,i,a,!1,null,null,null),Ki=Vi.exports,Ji=s(144),qi=s(9516);const Xi={install(t){window.wp_mail_smtp_vue&&(t.prototype.$wpms=window.wp_mail_smtp_vue),t.prototype.$isPro=ji,t.prototype.$addQueryArg=$i,t.prototype.$getUTMUrl=ta}};function ji(){return window.wp_mail_smtp_vue.is_pro}function $i(t,e,s){var i=new RegExp("([?&])"+e+"=.*?(&|#|$)","i");if(t.match(i))return t.replace(i,"$1"+e+"="+s+"$2");var a="";-1!==t.indexOf("#")&&(a=t.replace(/.*#/,"#"),t=t.replace(/#.*/,""));var n=-1!==t.indexOf("?")?"&":"?";return t+n+e+"="+s+a}function ta(t,e){e={source:"WordPress",medium:"setup-wizard",campaign:ji()?"plugin":"liteplugin",content:"general",...e};for(const[s,i]of Object.entries(e))t=$i(t,`utm_${s}`,encodeURIComponent(i));return t}var ea=Xi;const sa={install(t){t.prototype.$next_step=function(e=0){const s=t.prototype.$wizard_steps.findIndex((t=>this.$route.name.includes(t)))+1+e;this.$router.push({name:t.prototype.$wizard_steps[s]})},t.prototype.$previous_step=function(e=0){let s="welcome";const i=t.prototype.$wizard_steps.findIndex((t=>this.$route.name.includes(t)))-1-e;i>=0&&(s=t.prototype.$wizard_steps[i]),this.$router.push({name:s})},t.prototype.$swal&&(t.prototype.$wpms_success_toast=function(e){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:o="success",timer:r=3e3,showCloseButton:p=!0,title:m=(0,l.__)("Settings Updated","wp-mail-smtp"),showCancelButton:_=!1,confirmButtonText:c="",cancelButtonText:d="",text:u=""}=e;return t.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:o,showCloseButton:p,title:m,timer:r,showCancelButton:_,confirmButtonText:c,cancelButtonText:d,text:u})},t.prototype.$wpms_error_toast=function(e){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:o="error",showCloseButton:r=!0,title:p=(0,l.__)("Could Not Save Changes","wp-mail-smtp"),text:m=""}=e;return t.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:o,showCloseButton:r,title:p,text:m,onOpen:function(){t.prototype.$swal.hideLoading()}})},t.prototype.$wpms_error_modal=function(e){let{position:s="center",width:i=650,showConfirmButton:a=!0,confirmButtonText:n=(0,l.__)("Return to Mailer Settings","wp-mail-smtp"),customClass:o={container:"wp-mail-smtp-swal wp-mail-smtp-swal-error"},showCloseButton:r=!0,title:p=(0,l.__)("Whoops, we found an issue!","wp-mail-smtp"),subtitle:m=(0,l.__)("It looks like something went wrong...","wp-mail-smtp"),detailedError:_=""}=e;return t.prototype.$swal({position:s,width:i,showConfirmButton:a,confirmButtonText:n,customClass:o,showCloseButton:r,title:p,html:`\n\t\t\t\t\t\t
${m}
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
${(0,l.__)("Error Message:","wp-mail-smtp")}
\n\t\t\t\t\t\t\t
${_}
\n\t\t\t\t\t\t
\n\t\t\t\t\t`,allowEscapeKey:!1,allowOutsideClick:!1,onOpen:function(){t.prototype.$swal.hideLoading()}})},t.prototype.$required_fields_modal=function(){return t.prototype.$swal({position:"center",width:450,showConfirmButton:!0,confirmButtonText:(0,l.__)("OK","wp-mail-smtp"),customClass:{container:"wp-mail-smtp-swal wp-mail-smtp-swal-alert"},showCloseButton:!0,title:(0,l.__)("Heads up!","wp-mail-smtp"),text:(0,l.__)("Please fill out all the required fields to continue.","wp-mail-smtp"),allowEscapeKey:!1,allowOutsideClick:!1})})}};var ia=sa,aa=s(9669),na=s.n(aa);const oa=function(t,e){return new Promise(((s,i)=>{let a=new FormData;a.append("action","wp_mail_smtp_vue_install_plugin"),a.append("nonce",Ji.ZP.prototype.$wpms.nonce),a.append("slug",e),na().post(Ji.ZP.prototype.$wpms.ajax_url,a).then((e=>{if(e.data.success)t.commit("PLUGIN_INSTALLED",e.data);else{let t="";ee()(e.data,"data[0].message")?t=e.data.data[0].message:ee()(e.data,"data")&&(t=e.data.data),Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like the plugin installation failed!","wp-mail-smtp"),detailedError:t})}s(e.data)})).catch((function(t){if(i(t),t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't install the plugin.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline. Plugin not installed.","wp-mail-smtp")})}))}))},ra=function(t){return new Promise(((e,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_get_partner_plugins_info"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((s=>{s.data.success?t.commit("PLUGINS_FETCHED",s.data):Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("Can't fetch plugins information.","wp-mail-smtp")}),e(s.data)})).catch((function(t){if(s(t),t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't fetch plugins information.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline. Plugin information not retrieved.","wp-mail-smtp")})}))}))};var la={installPlugin:oa,fetchPlugins:ra};const pa=function(t,e){return la.installPlugin(t,e)},ma=function(t){return la.fetchPlugins(t)};var _a={installPlugin:pa,getPlugins:ma};const ca=t=>t.plugins,da=t=>t.plugins.filter((t=>"wpforms-lite"!==t.slug&&"all-in-one-seo-pack"!==t.slug)),ua=t=>t.contact_form_plugin_already_installed,ha=t=>t.seo_toolkit_plugin_already_installed;var ga={getField:_t.rz,plugins:ca,partner_plugins:da,contact_form_plugin_already_installed:ua,seo_toolkit_plugin_already_installed:ha};const wa=(t,e)=>{t.plugins.map((s=>(s.slug===e.data.slug&&(s.is_installed=e.data.is_installed,s.is_activated=e.data.is_activated),"wpforms-lite"===e.data.slug&&(t.contact_form_plugin_already_installed=!0),s)))},fa=(t,e)=>{t.plugins=e.data.plugins,t.contact_form_plugin_already_installed=e.data.contact_form_plugin_already_installed,t.seo_toolkit_plugin_already_installed=e.data.seo_toolkit_plugin_already_installed};var Aa={updateField:_t.L4,PLUGIN_INSTALLED:wa,PLUGINS_FETCHED:fa};const ba={plugins:[],contact_form_plugin_already_installed:!1,seo_toolkit_plugin_already_installed:!1,smart_contact_form_setting:!0,wordpress_seo_toolkit_setting:!0};var va={namespaced:!0,state:ba,actions:_a,getters:ga,mutations:Aa};const xa=t=>new Promise(((e,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_get_settings"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(e){if(t.dispatch("$_app/block",!1,{root:!0}),e.response){const t=e.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load the settings.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),t.status,t.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))})),ka=(t,e)=>new Promise(((t,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_get_amazon_ses_identities"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==e&&i.append("value",JSON.stringify(e)),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve Amazon SES Identities.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("Can't retrieve Amazon SES Identities.","wp-mail-smtp")})}))})),ya=(t,e)=>new Promise(((t,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_amazon_ses_identity_registration"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==e.value&&i.append("value",e.value),!1!==e.value&&i.append("type",e.type),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("Can't register the Amazon SES Identity","wp-mail-smtp")})}))})),Ca=(t,e)=>new Promise((t=>{let s=new FormData;s.append("action","wp_mail_smtp_vue_update_settings"),s.append("nonce",Ji.ZP.prototype.$wpms.nonce),void 0!==e.overwrite&&s.append("overwrite",e.overwrite),!1!==e.value&&s.append("value",JSON.stringify(e.value)),na().post(Ji.ZP.prototype.$wpms.ajax_url,s).then((e=>{t(e.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't save the settings.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("Network error encountered. Settings not saved.","wp-mail-smtp")})}))})),Sa=(t,e)=>new Promise((t=>{let s=new FormData;s.append("action","wp_mail_smtp_vue_import_settings"),s.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==e.value&&s.append("value",e.value),na().post(Ji.ZP.prototype.$wpms.ajax_url,s).then((e=>{t(e.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't import the plugin settings.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("Network error encountered. SMTP plugin import failed!","wp-mail-smtp")})}))})),Pa=function(t,e){return new Promise(((s,i)=>{let a=new FormData;a.append("action","wp_mail_smtp_vue_get_oauth_url"),a.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==t&&a.append("mailer",t),!1!==e&&a.append("settings",JSON.stringify(e)),na().post(Ji.ZP.prototype.$wpms.ajax_url,a).then((t=>{t.data.success?s(t.data):i(t.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load authentication details.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))}))},Ma=function(t){return new Promise(((e,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_remove_oauth_connection"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==t&&i.append("mailer",t),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't remove OAuth connection.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))}))},Ea=function(t){return new Promise(((e,s)=>{let i=new FormData;t?i.append("action","wp_mail_smtp_vue_remove_gmail_one_click_setup_oauth_connection"):i.append("action","wp_mail_smtp_vue_remove_oauth_connection"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),i.append("mailer","gmail"),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't remove OAuth connection.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))}))},Ba=function(t){return new Promise(((e,s)=>{let i=new FormData;i.append("action","wp_mail_smtp_vue_get_connected_data"),i.append("nonce",Ji.ZP.prototype.$wpms.nonce),!1!==t&&i.append("mailer",t),na().post(Ji.ZP.prototype.$wpms.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load oAuth connected data.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))}))},Ta=function(t){return new Promise((e=>{let s=new FormData;s.append("action","wp_mail_smtp_vue_subscribe_to_newsletter"),s.append("nonce",Ji.ZP.prototype.$wpms.nonce),s.append("email",t),na().post(Ji.ZP.prototype.$wpms.ajax_url,s).then((t=>{e(t.data)}))}))},Ia=function(t){return new Promise((e=>{let s=new FormData;s.append("action","wp_mail_smtp_vue_verify_license_key"),s.append("nonce",Ji.ZP.prototype.$wpms.nonce),s.append("license_key",t),na().post(Ji.ZP.prototype.$wpms.ajax_url,s).then((t=>{e(t.data)}))}))},Fa=function(t){return new Promise((e=>{let s=new FormData;s.append("action","wp_mail_smtp_vue_upgrade_plugin"),s.append("nonce",Ji.ZP.prototype.$wpms.nonce),s.append("license_key",t),na().post(Ji.ZP.prototype.$wpms.ajax_url,s).then((t=>{e(t.data)}))}))};var Da={fetchSettings:xa,saveSettings:Ca,importOtherPluginSettings:Sa,fetchAmazonSESIdentities:ka,amazonSESRegisterIdentity:ya,getAuthRedirect:Pa,removeAuth:Ma,removeGmailAuth:Ea,getConnectedData:Ba,subscribeToNewsletter:Ta,verifyLicense:Ia,upgradePlugin:Fa};const za=t=>Da.fetchSettings(t).then((e=>{t.commit("SETTINGS_UPDATED",e.data)})).catch((t=>{if(t.data)return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load existing settings.","wp-mail-smtp"),detailedError:t.data})})),Za=t=>{const e=t.getters.settings.amazonses;if(0!==Object.keys(e).length)return Da.fetchAmazonSESIdentities(t,e).then((e=>{t.commit("AMAZONSES_IDENTITIES_UPDATED",e),Ji.ZP.swal.close()})).catch((t=>{Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve the Amazon SES Identities.","wp-mail-smtp"),detailedError:t.data?t.data:""})}))},Oa=(t,e)=>Da.amazonSESRegisterIdentity(t,e).catch((t=>{Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","wp-mail-smtp"),detailedError:t.data})})),La=(t,e)=>{t.commit("MAILER_UPDATE",e)},Wa=(t,e)=>new Promise((function(s){t.commit("LOGS_UPDATE",e),s({success:!0})})),Ra=(t,e)=>new Promise((function(s){t.commit("SUMMARY_REPORT_EMAIL_UPDATE",e),s({success:!0})})),Qa=(t,e)=>{t.commit("SETTINGS_SAVE_START");let s=Da.saveSettings(t,e);return s.then((function(){t.commit("SETTINGS_SAVE_END")})),s},Na=t=>{const e=t.getters.settings;t.commit("SETTINGS_SAVE_START");let s=Da.saveSettings(t,{value:e});return s.then((function(){t.commit("SETTINGS_SAVE_END")})),s},Ua=(t,e)=>(t.commit("SETTINGS_SAVE_START"),new Promise((function(s){Da.importOtherPluginSettings(t,e).then((function(e){t.commit("SETTINGS_SAVE_END"),e.success?za(t).then((function(){s(!0)})):s(!1)}))}))),Ga=(t,e)=>Da.getAuthRedirect(e,t.getters.settings[e]).catch((t=>{Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load oAuth redirect.","wp-mail-smtp"),detailedError:t.data})})),Ha=(t,e)=>Da.getConnectedData(e).catch((t=>{Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't load oAuth connected data.","wp-mail-smtp"),detailedError:t.data})})),Ya=(t,e)=>{let s;return s="gmail"===e?Da.removeGmailAuth(t.getters.gmail_one_click_setup_enabled).then((function(){t.commit("SETTINGS_REMOVE_GMAIL_AUTH",t.getters.gmail_one_click_setup_enabled)})):Da.removeAuth(e).then((function(){t.commit("SETTINGS_REMOVE_AUTH",e)})),s.catch((t=>{Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't remove oAuth connection.","wp-mail-smtp"),detailedError:t.data})})),s},Va=(t,e)=>new Promise((s=>{t.commit("SETTINGS_SAVE_PLUGIN_FEATURES",e),s({success:!0,features:e})})),Ka=(t,e)=>Da.subscribeToNewsletter(e),Ja=(t,e)=>Da.verifyLicense(e),qa=(t,e)=>Da.upgradePlugin(e),Xa=(t,e)=>{t.commit("GMAIL_ONE_CLICK_SETUP_ENABLED_UPDATE",e)};var ja={getSettings:za,updateSettings:Qa,importOtherPlugin:Ua,setMailer:La,setLogs:Wa,setSummaryReportEmail:Ra,saveCurrentSettings:Na,getAmazonSESIdentities:Za,amazonSESRegisterIdentity:Oa,getAuthUrl:Ga,removeAuth:Ya,getConnectedData:Ha,savePluginFeatures:Va,subscribeToNewsletter:Ka,verifyLicense:Ja,upgradePlugin:qa,setGmailUseOneClickSetup:Xa};const $a=t=>t.settings,tn=t=>t.settings.mail.mailer,en=t=>t.settings.outlook.user_details?t.settings.outlook.user_details.email:null,sn=t=>t.settings.zoho.user_details?t.settings.zoho.user_details.email:null,an=t=>t.settings.gmail.user_details?t.settings.gmail.user_details.email:null,nn=t=>t.settings.gmail.one_click_setup_user_details?t.settings.gmail.one_click_setup_user_details.email:null,on=t=>t.plugin_features,rn=t=>!!t.settings.logs.enabled&&t.settings.logs.enabled,ln=t=>!t.settings.general.summary_report_email_disabled,pn=t=>e=>{let s=!1;const i=t.amazonses_identities.data,a=e.split("@").pop();return void 0!==i&&(i.forEach((t=>{("email"===t.type&&t.value===e||"domain"===t.type&&t.value===a)&&(s=!0)})),s)},mn=t=>"string"===typeof t.settings.license.key&&t.settings.license.key.length>0&&!t.settings.license.is_expired&&!t.settings.license.is_disabled&&!t.settings.license.is_invalid,_n=t=>!!ji()&&t.settings.gmail.one_click_setup_enabled;var cn={getField:_t.rz,settings:$a,mailer:tn,outlook_email:en,zoho_email:sn,gmail_email:an,gmail_one_click_setup_email:nn,plugin_features:on,amazonses_is_email_registered:pn,email_log_enabled:rn,summary_report_email_enabled:ln,is_valid_license:mn,gmail_one_click_setup_enabled:_n},dn=s(2378),un=s.n(dn);const hn=(t,e)=>{t.is_saving=!1,t.settings=un()(t.settings,e)},gn=(t,e)=>{t.amazonses_identities=e.data},wn=(t,e)=>{t.settings.mail.mailer=e},fn=(t,e)=>{t.settings.logs.enabled=e},An=(t,e)=>{t.settings.general.summary_report_email_disabled=e},bn=t=>{t.is_saving=!0},vn=t=>{t.is_saving=!1},xn=(t,e)=>{const s=t.settings[e];t.settings[e]={client_id:s.client_id,client_secret:s.client_secret},"zoho"===e&&(t.settings[e].domain=s.domain)},kn=(t,e)=>{e?(t.settings.gmail.one_click_setup_credentials={key:"",token:""},t.settings.gmail.one_click_setup_user_details={email:""},delete t.settings.gmail.one_click_setup_status):(t.settings.gmail.access_token={},t.settings.gmail.refresh_token="",t.settings.gmail.user_details={email:""},delete t.settings.gmail.auth_code)},yn=(t,e)=>{t.plugin_features=e},Cn=(t,e)=>{t.settings.gmail.one_click_setup_enabled=e};var Sn={updateField:_t.L4,SETTINGS_UPDATED:hn,SETTINGS_SAVE_START:bn,SETTINGS_SAVE_END:vn,MAILER_UPDATE:wn,LOGS_UPDATE:fn,SUMMARY_REPORT_EMAIL_UPDATE:An,AMAZONSES_IDENTITIES_UPDATED:gn,SETTINGS_REMOVE_AUTH:xn,SETTINGS_REMOVE_GMAIL_AUTH:kn,SETTINGS_SAVE_PLUGIN_FEATURES:yn,GMAIL_ONE_CLICK_SETUP_ENABLED_UPDATE:Cn};const Pn={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"},sendgrid:{api_key:"",domain:""},sparkpost:{api_key:"",region:"US"},postmark:{server_api_token:"",message_stream:""},amazonses:{client_id:"",client_secret:"",region:"us-east-1"},gmail:{client_id:"",client_secret:"",access_token:{},refresh_token:"",user_details:{email:""},one_click_setup_enabled:!1,one_click_setup_credentials:{key:"",token:""},one_click_setup_user_details:{email:""}},outlook:{client_id:"",client_secret:"",access_token:{},refresh_token:"",user_details:{email:""}},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},alert_email:{enabled:!1,connections:{}},license:{key:"",is_expired:!1,is_disabled:!1,is_invalid:!1}},amazonses_identities:{},amazonses_display_identities:window.wp_mail_smtp_vue.mailer_options.amazonses.display_identities,plugin_features:[]};var Mn={namespaced:!0,state:Pn,actions:ja,getters:cn,mutations:Sn};const En=()=>new Promise((t=>{let e=new FormData;e.append("action","wp_mail_smtp_vue_check_mailer_configuration"),e.append("nonce",Ji.ZP.prototype.$wpms.nonce),na().post(Ji.ZP.prototype.$wpms.ajax_url,e).then((e=>{t(e.data)})).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't perform the mailer configuration check.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))})),Bn=t=>{let e=new FormData;e.append("action","wp_mail_smtp_vue_send_feedback"),e.append("nonce",Ji.ZP.prototype.$wpms.nonce),e.append("data",JSON.stringify(t)),na().post(Ji.ZP.prototype.$wpms.ajax_url,e).catch((function(t){if(t.response){const e=t.response;return Ji.ZP.prototype.$wpms_error_modal({subtitle:(0,l.__)("It looks like we can't send the feedback.","wp-mail-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","wp-mail-smtp"),e.status,e.statusText)})}Ji.ZP.prototype.$wpms_error_toast({title:(0,l.__)("You appear to be offline.","wp-mail-smtp")})}))},Tn=()=>{let t=new FormData;t.append("action","wp_mail_smtp_vue_wizard_steps_started"),t.append("nonce",Ji.ZP.prototype.$wpms.nonce),na().post(Ji.ZP.prototype.$wpms.ajax_url,t)};var In={checkMailerConfiguration:En,sendFeedback:Bn,started:Tn};const Fn=()=>In.checkMailerConfiguration(),Dn=(t,e)=>{In.sendFeedback(e)},zn=()=>{In.started()};var Zn={checkMailerConfiguration:Fn,sendFeedback:Dn,started:zn};const On=t=>t.blocked_step,Ln=t=>t.current_user_email;var Wn={getField:_t.rz,blocked_step:On,current_user_email:Ln},Rn={updateField:_t.L4};const Qn={blocked_step:!1,current_user_email:window.wp_mail_smtp_vue.current_user_email};var Nn={namespaced:!0,state:Qn,actions:Zn,getters:Wn,mutations:Rn};const Un=t=>{t.commit("INIT")},Gn=t=>{t.commit("BLOCK_APP")},Hn=t=>{t.commit("UNBLOCK_APP")},Yn=t=>{t.commit("APP_LOADING_START")},Vn=t=>{t.commit("APP_LOADING_STOP")};var Kn={init:Un,block:Gn,unblock:Hn,start_loading:Yn,stop_loading:Vn};const Jn=t=>t.blocked,qn=t=>t.loading,Xn=t=>t.wpms;var jn={blocked:Jn,loading:qn,wpms:Xn};const $n=()=>{},to=t=>{t.blocked=!0},eo=t=>{t.blocked=!1},so=t=>{t.loading=!0},io=t=>{t.loading=!1};var ao={INIT:$n,BLOCK_APP:to,UNBLOCK_APP:eo,APP_LOADING_START:so,APP_LOADING_STOP:io};const no={blocked:!1,loading:!1,wpms:window.wp_mail_smtp_vue?window.wp_mail_smtp_vue:{}};var oo={namespaced:!0,state:no,actions:Kn,getters:jn,mutations:ao};const ro=t=>{t.subscribe(((e,s)=>{if("$_app/INIT"===e.type){const e=s["$_app"].wpms.versions;let i="",a="";e.php_version_below_55?(i=(0,l.__)("Yikes! PHP Update Required","wp-mail-smtp"),a=(0,l.gB)((0,l.__)("WP Mail SMTP has detected that your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked. WordPress stopped supporting your PHP version in April, 2019. Updating to the recommended version (PHP %2$s) only takes a few minutes and will make your website significantly faster and more secure.","wp-mail-smtp"),e.php_version,"7.4")):e.php_version_below_56?(i=(0,l.__)("Yikes! PHP Update Required","wp-mail-smtp"),a=(0,l.gB)((0,l.__)("WP Mail SMTP has detected that your site is running an outdated, insecure version of PHP (%1$s). Some mailers require at least PHP version 5.6. Updating to the recommended version (PHP %2$s) only takes a few minutes and will make your website significantly faster and more secure.","wp-mail-smtp"),e.php_version,"7.4")):e.wp_version_below_49&&(i=(0,l.__)("Yikes! WordPress Update Required","wp-mail-smtp"),a=(0,l.gB)((0,l.__)("WP Mail SMTP has detected that your site is running an outdated version of WordPress (%s). WP Mail SMTP requires at least WordPress version 4.9.","wp-mail-smtp"),e.wp_version)),Ji.ZP.prototype.$swal&&i.length&&(t.dispatch("$_app/block"),Ji.ZP.prototype.$swal.close(),Ji.ZP.prototype.$swal({title:i,html:`