index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
plugins
/
easy-wp-smtp
/
assets
/
vue
/
js
/
File: /home/thefkyzp/easyloanly.com/wp-content/plugins/easy-wp-smtp/assets/vue/js/wizard.min.js
(function(){var e={4126:function(e,t,s){"use strict";s(7658);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-admin-page"},[t("router-view"),e.blocked?t("div",{staticClass:"easy-wp-smtp-blocked"}):e.loading?t("div",{staticClass:"easy-wp-smtp-loading"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(6520),width:"150"}})],1):e._e()],1)},a=[],n=s(8345),r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-welcome"},[t("the-wizard-header"),t("div",{staticClass:"easy-wp-smtp-setup-wizard-container"},[t("main",{staticClass:"easy-wp-smtp-setup-wizard-content"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-large",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.nextStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_button)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"18",height:"22"}})],1)])],1)]),t("footer",[t("p",{staticClass:"easy-wp-smtp-exit-link"},[t("a",{attrs:{href:e.exit_href}},[e._v(e._s(e.text_exit_link))])])])])],1)},o=[],l=s(3165),p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-content-header"},[t("h2",{domProps:{innerHTML:e._s(e.title)}}),e.subtitle?t("p",{staticClass:"subtitle",domProps:{innerHTML:e._s(e.subtitle)}}):e._e()])},_=[],c={name:"ContentHeader",props:{title:String,subtitle:String}},m=c,d=s(3736),u=(0,d.Z)(m,p,_,!1,null,null,null),h=u.exports,f=function(){var e=this,t=e._self._c;return t("header",{staticClass:"easy-wp-smtp-setup-wizard-header"},[t("div",{staticClass:"easy-wp-smtp-logo"},[t("img",{staticClass:"easy-wp-smtp-logo-img",attrs:{src:s(6375),alt:e.text_logo_alt}})])])},y=[],g={name:"TheWizardHeader",data(){return{text_logo_alt:(0,l.__)("Easy WP SMTP logo","easy-wp-smtp")}}},w=g,b=(0,d.Z)(w,f,y,!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 Easy WP SMTP Setup Wizard!","easy-wp-smtp"),text_header_subtitle:(0,l.__)("We’ll guide you through setting up Easy WP SMTP on your site step by step.","easy-wp-smtp"),text_button:(0,l.__)("Let's Get Started","easy-wp-smtp"),text_exit_link:(0,l.__)("Go back to the Dashboard","easy-wp-smtp"),exit_href:this.$easywpsmtp.exit_url}},methods:{nextStep:function(){this.$store.dispatch("$_wizard/started"),this.$router.push({name:this.$wizard_steps[0]})}}},k=x,S=(0,d.Z)(k,r,o,!1,null,null,null),P=S.exports,$=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-step"},[t("the-wizard-header"),t("the-wizard-timeline"),t("div",{staticClass:"easy-wp-smtp-setup-wizard-container"},[t("main",{staticClass:"easy-wp-smtp-setup-wizard-content"},[t("router-view",{on:{displayContentBelow:e.displayContentBelow}})],1),t("footer",[e.content_below.length>0?t("div",{staticClass:"easy-wp-smtp-step-below-content",domProps:{innerHTML:e._s(e.content_below)}}):e._e(),e.display_exit_link?t("p",{staticClass:"easy-wp-smtp-exit-link"},[t("a",{attrs:{href:e.exit_href}},[e._v(e._s(e.text_exit_link))])]):e._e()])])],1)},C=[],E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-container"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-timeline"},[e._l(e.steps,(function(i,a){return[a>0?t("div",{key:a+"line",class:e.lineClass(a)}):e._e(),t("div",{key:a,class:e.stepClass(a)},[t("inline-svg",{staticClass:"icon icon-success",attrs:{src:s(7579),width:"10",height:"10"}}),t("inline-svg",{staticClass:"icon icon-failed",attrs:{src:s(3531),width:"8",height:"11"}})],1)]}))],2)])},T=[],M={name:"TheWizardTimeline",data(){return{steps:this.$wizard_steps}},methods:{stepClass(e){let t="easy-wp-smtp-setup-wizard-timeline-step";const s=this.steps.findIndex((e=>this.$route.name.includes(e)));return(e<s||parseInt(s)===this.steps.length-1&&this.$route.name.includes("_success"))&&(t+=" easy-wp-smtp-setup-wizard-timeline-step-completed"),e===s&&parseInt(s)===this.steps.length-1&&this.$route.name.includes("_failure")&&(t+=" easy-wp-smtp-setup-wizard-timeline-step-failed"),parseInt(e)===parseInt(s)&&(t+=" easy-wp-smtp-setup-wizard-timeline-step-active"),t},lineClass(e){let t="easy-wp-smtp-setup-wizard-timeline-step-line";const s=this.steps.findIndex((e=>this.$route.name.includes(e)));return e<=s&&(t+=" easy-wp-smtp-setup-wizard-timeline-line-active"),t}}},I=M,z=(0,d.Z)(I,E,T,!1,null,null,null),A=z.exports,F={name:"SetupWizardSteps",components:{TheWizardHeader:v,TheWizardTimeline:A},data(){return{text_exit_link:(0,l.__)("Close and exit the Setup Wizard","easy-wp-smtp"),exit_href:this.$easywpsmtp.exit_url,content_below:""}},computed:{display_exit_link:function(){return!this.$route.name.includes("check_configuration_step")}},methods:{displayContentBelow:function(e){this.content_below=e}},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")}))}},L=F,W=(0,d.Z)(L,$,C,!1,null,null,null),R=W.exports,N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-choose-mailer"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}}),e.mailer_set_via_constants?t("div",{staticClass:"easy-wp-smtp-notice easy-wp-smtp-notice--info"},[t("p",{domProps:{innerHTML:e._s(e.text_mailer_set_via_constants)}})]):e._e(),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("form",[t("div",{staticClass:"easy-wp-smtp-setup-wizard-form-row easy-wp-smtp-setup-wizard-form-row-highlight"},[t("settings-input-radios-with-icons",{attrs:{name:"choose_mailer",options:e.recommended_options},model:{value:e.selectedMailer,callback:function(t){e.selectedMailer=t},expression:"selectedMailer"}})],1),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form-row"},[t("settings-input-radios-with-icons",{attrs:{name:"choose_mailer",options:e.options},on:{"clicked-disabled":e.clickedDisabledOption},model:{value:e.selectedMailer,callback:function(t){e.selectedMailer=t},expression:"selectedMailer"}})],1)])])],1),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step",disabled:null===e.selectedMailer||"mail"===e.selectedMailer},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},O=[],D=s(629),Z=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-input-radios-with-icons"},e._l(e.options,(function(i){return t("label",{key:i.value,class:e.labelClass(i),attrs:{for:"easy-wp-smtp-settings-radio-"+e.name+"["+i.value+"]"},on:{click:function(t){return e.clicked(i)}}},[t("span",{class:e.titleClass(i.value)}),i.logo.length?t("img",{staticClass:"easy-wp-smtp-logo-icon",attrs:{src:i.logo,alt:i.label}}):e._e(),t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedImport,expression:"selectedImport"}],attrs:{id:"easy-wp-smtp-settings-radio-"+e.name+"["+i.value+"]",type:"radio",name:e.name,autocomplete:"off",disabled:i.disabled||!1},domProps:{value:i.value,checked:e.isChecked(i.value),checked:e._q(e.selectedImport,i.value)},on:{change:function(t){e.selectedImport=i.value}}}),t("span",{staticClass:"easy-wp-smtp-styled-radio-text"},[e._v(" "+e._s(i.label)+" "),i.description?t("span",{staticClass:"easy-wp-smtp-styled-radio-desc"},[e._v(" "+e._s(i.description)+" ")]):e._e()]),i.is_pro?t("inline-svg",{staticClass:"easy-wp-smtp-pro-badge",attrs:{src:s(330),width:"28",height:"16"}}):e._e(),i.recommended?t("span",{staticClass:"easy-wp-smtp-recommended-badge"},[e._v(e._s(e.text_recommended))]):e._e()],1)})),0)},B=[],U={name:"SettingsInputRadiosWithIcons",props:{options:Array,name:String,value:String},data(){return{has_error:!1,text_recommended:(0,l.__)("Recommended","easy-wp-smtp")}},computed:{selectedImport:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{titleClass(e){let t="easy-wp-smtp-styled-radio";return this.isChecked(e)&&(t+=" easy-wp-smtp-styled-radio-checked"),t},labelClass(e){let t="";return this.isChecked(e.value)&&(t+=" easy-wp-smtp-styled-radio-label-checked"),e.disabled&&(t+=" easy-wp-smtp-styled-radio-label-disabled"),e.readonly&&(t+=" easy-wp-smtp-styled-radio-label-readonly"),t},isChecked(e){return e===this.selectedImport},clicked(e){e.is_pro&&this.$emit("clicked-disabled",e)}}},V=U,H=(0,d.Z)(V,Z,B,!1,null,"746ff3c0",null),G=H.exports,q=function(){var e=this,t=e._self._c;return t("p",{staticClass:"easy-wp-smtp-setup-wizard-step-count"},[e._v(" "+e._s(e.stepValue)+" ")])},K=[],j={name:"TheWizardStepCounter",computed:{stepValue:function(){const e=this.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))+1;return(0,l.gB)((0,l.__)("Step %1$s of %2$s","easy-wp-smtp"),e,this.$wizard_steps.length)}}},Y=j,J=(0,d.Z)(Y,q,K,!1,null,"02c612a3",null),X=J.exports,Q={name:"WizardStepChooseMailer",components:{SettingsInputRadiosWithIcons:G,ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Choose Your SMTP Mailer","easy-wp-smtp"),text_header_subtitle:(0,l.gB)((0,l.__)("Select the mailer you would like to use to send emails. Need more information on our mailers? See our %1$scomplete mailer guide%2$s for additional details.","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://easywpsmtp.com/docs/a-complete-guide-to-easy-wp-smtp-mailers/",{content:"complete mailer guide"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_mailer_set_via_constants:(0,l.__)("Your mailer is already configured in a Easy WP SMTP constant, so the options below have been disabled. To change your mailer, please edit or remove the <code>EasyWPSMTP_MAILER</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp"),mailer_set_via_constants:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended_options:[{value:"sendlayer",label:this.$easywpsmtp.mailer_options["sendlayer"].title,logo:s(9857),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["sendlayer"].recommended,description:(0,l.__)(" - Send your first 200 emails for free.","easy-wp-smtp")}],options:[{value:"amazonses",label:this.$easywpsmtp.mailer_options["amazonses"].title,logo:s(7557),is_pro:!this.$easywpsmtp.is_pro,notice:this.$easywpsmtp.mailer_options["amazonses"].edu_notice,readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:!this.$easywpsmtp.is_pro||this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["amazonses"].recommended},{value:"gmail",label:this.$easywpsmtp.mailer_options["gmail"].title,logo:s(7526),is_pro:!this.$easywpsmtp.is_pro,notice:this.$easywpsmtp.mailer_options["gmail"].edu_notice,readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:!this.$easywpsmtp.is_pro||this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["gmail"].recommended},{value:"mailgun",label:this.$easywpsmtp.mailer_options["mailgun"].title,logo:s(5567),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["mailgun"].recommended},{value:"outlook",label:this.$easywpsmtp.is_pro?(0,l.__)("Microsoft 365 / Outlook","easy-wp-smtp"):this.$easywpsmtp.mailer_options["outlook"].title,logo:s(6703),is_pro:!this.$easywpsmtp.is_pro,notice:this.$easywpsmtp.mailer_options["outlook"].edu_notice,readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:!this.$easywpsmtp.is_pro||this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["outlook"].recommended},{value:"postmark",label:this.$easywpsmtp.mailer_options["postmark"].title,logo:s(5699),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER")},{value:"smtpcom",label:this.$easywpsmtp.mailer_options["smtpcom"].title,logo:s(7536),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["smtpcom"].recommended},{value:"sendgrid",label:this.$easywpsmtp.mailer_options["sendgrid"].title,logo:s(2763),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER")},{value:"sendinblue",label:this.$easywpsmtp.mailer_options["sendinblue"].title,logo:s(2451),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["sendinblue"].recommended},{value:"smtp",label:this.$easywpsmtp.mailer_options["smtp"].title,logo:s(450),readonly:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),disabled:this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER"),recommended:this.$easywpsmtp.mailer_options["smtp"].recommended}],selectedMailer:this.currentMailer}},watch:{currentMailer:function(e){this.selectedMailer=e}},computed:{...(0,D.Se)({currentMailer:"$_settings/mailer"}),selectedMailerOptions:function(){return this.recommended_options.concat(this.options).find((e=>e.value===this.selectedMailer))}},methods:{handleSubmit(e,t=!1){null!==this.selectedMailer&&"mail"!==this.selectedMailer&&(void 0===this.selectedMailerOptions.notice||t?(this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/updateSettings",{value:{mail:{mailer:this.selectedMailer}}}).then((e=>{e.success?(this.$store.dispatch("$_settings/setMailer",this.selectedMailer),this.nextStep()):this.$easywpsmtp_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))):this.$swal({title:this.selectedMailerOptions.label+" "+(0,l.__)("Mailer","easy-wp-smtp"),html:this.selectedMailerOptions.notice,width:650,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"easy-wp-smtp-swal"},confirmButtonText:(0,l.__)("I Understand, Continue","easy-wp-smtp"),cancelButtonText:(0,l.__)("Choose a Different Mailer","easy-wp-smtp"),showCancelButton:!0,reverseButtons:!0}).then((e=>{e.value?this.handleSubmit(null,!0):void 0===e.dismiss||"cancel"!==e.dismiss||this.$easywpsmtp.defined_constants.includes("EasyWPSMTP_MAILER")||(this.selectedMailer=null)})))},nextStep(){const e=this.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))+1;this.$router.push({name:`${this.$wizard_steps[e]}_${this.selectedMailer}`})},previousStep(){this.$previous_step()},clickedDisabledOption(e){var t=/(\?)/.test(this.$easywpsmtp.education.upgrade_url)?"&":"?",i=this.$easywpsmtp.education.upgrade_url+t+"utm_content="+encodeURIComponent(e.value);this.$swal({title:e.label+" "+(0,l.__)("is a PRO Feature","easy-wp-smtp"),html:`<p>${this.$easywpsmtp.education.upgrade_text.replace("%mailer%",e.label)}</p>\n\t\t\t\t\t\t\t<div class="upgrade-bonus">\n\t\t\t\t\t\t\t<svg class="icon" width="16" height="16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>\n\t\t\t\t\t\t\t<span>${this.$easywpsmtp.education.upgrade_bonus_short}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p><a href="${i}" class="easy-wp-smtp-button easy-wp-smtp-button-success easy-wp-smtp-button-small" target="_blank" rel="noopener noreferrer">${this.$easywpsmtp.education.upgrade_button}</a></p>\n\t\t\t\t\t\t\t<p>${this.$easywpsmtp.education.upgrade_doc}</p>`,width:550,imageUrl:s(4523),imageWidth:28,imageHeight:37,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-upgrade-popup"},showConfirmButton:!1})}},mounted(){this.selectedMailer=this.currentMailer}},ee=Q,te=(0,d.Z)(ee,N,O,!1,null,"743edee6",null),se=te.exports,ie=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-configure-mailer"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-configure-mailer-header"},[t("div",{staticClass:"easy-wp-smtp-configure-mailer-header-container"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("span",{staticClass:"easy-wp-smtp-configure-mailer-logo"},[t("inline-svg",{attrs:{src:e.logo(e.mailer),height:"40"}})],1)]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("router-view",{ref:"mailerConfiguration"})],1),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step",disabled:null===e.mailer||!0===e.blocked_step},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},ae=[],ne=s(7452),re={name:"WizardStepConfigureMailer",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Configure Mailer Settings","easy-wp-smtp"),text_header_subtitle:(0,l.__)("Fill out the required settings below to set up this mailer.","easy-wp-smtp"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp")}},computed:{...(0,D.Se)({mailer:"$_settings/mailer"}),...(0,ne.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((e=>{e.success?this.$next_step():this.$easywpsmtp_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))):(this.$required_fields_modal(),!1))},previousStep(){this.blocked_step=!1,this.$previous_step()},logo(e){return"mail"===e?e="smtp":"sendinblue"===e&&(e="brevo"),s(5016)(`./${e}.svg`)}}},oe=re,le=(0,d.Z)(oe,ie,ae,!1,null,null,null),pe=le.exports,_e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-plugin-features"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-plugin-features-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("div",{staticClass:"easy-wp-smtp-plugin-features-list"},[t("settings-input-long-checkbox",{attrs:{value:!0,name:"improved_deliverability",label:e.text_improved_email_deliverability,description:e.text_improved_email_deliverability_desc,disabled:""}}),t("settings-input-long-checkbox",{attrs:{value:!0,name:"error_tracking",label:e.text_error_tracking,description:e.text_error_tracking_desc,disabled:""}}),e.contact_form_already_installed?e._e():t("settings-input-long-checkbox",{attrs:{name:"smart_contact_form",label:e.text_smart_contact_form,description:e.text_smart_contact_form_desc},model:{value:e.smart_contact_form,callback:function(t){e.smart_contact_form=t},expression:"smart_contact_form"}}),e.is_pro?e._e():t("settings-input-long-checkbox",{attrs:{name:"summary_report_email",label:e.text_summary_report_email,description:e.text_summary_report_email_desc},model:{value:e.summary_report_email,callback:function(t){e.summary_report_email=t},expression:"summary_report_email"}}),t("settings-input-long-checkbox",{attrs:{name:"email_log",constant:"EasyWPSMTP_LOGS_ENABLED",label:e.text_email_log,description:e.text_email_log_desc,show_pro:!e.is_pro},on:{input:e.emailLogEnabledChanged},model:{value:e.email_log,callback:function(t){e.email_log=t},expression:"email_log"}}),e.email_log||!e.is_pro?t("settings-input-long-checkbox",{attrs:{value:e.complete_email_report,name:"complete_email_report",label:e.text_complete_email_report,description:e.text_complete_email_report_desc,show_pro:!e.is_pro,disabled:!!e.is_pro},model:{value:e.complete_email_report,callback:function(t){e.complete_email_report=t},expression:"complete_email_report"}}):e._e(),e.is_pro&&e.email_log?t("settings-input-long-checkbox",{attrs:{name:"summary_report_email",constant:"EasyWPSMTP_SUMMARY_REPORT_EMAIL_DISABLED",label:e.text_summary_report_email,description:e.text_summary_report_email_desc},model:{value:e.summary_report_email,callback:function(t){e.summary_report_email=t},expression:"summary_report_email"}}):e._e()],1)]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},ce=[],me=function(){var e=this,t=e._self._c;return t("label",{staticClass:"settings-input-long-checkbox",class:{"settings-input-long-checkbox-checked":e.value,"settings-input-long-checkbox-disabled":e.disabled||e.is_constant_set},attrs:{for:"easy-wp-smtp-settings-long-checkbox-"+e.name}},[t("div",{staticClass:"settings-input-long-checkbox-header"},[t("span",{staticClass:"title-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.show_pro?t("inline-svg",{staticClass:"easy-wp-smtp-pro-badge",attrs:{src:s(330),width:"28",height:"16"}}):e._e()],1),e.description?t("p",{staticClass:"description"},[e._v(e._s(e.description))]):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()]),t("span",{staticClass:"settings-input-long-checkbox-container"},[t("span",{staticClass:"checkbox",class:{"checkbox-checked":e.value,"checkbox-disabled":e.disabled||e.is_constant_set}}),t("input",{attrs:{id:"easy-wp-smtp-settings-long-checkbox-"+e.name,type:"checkbox",name:e.name,disabled:e.disabled||e.is_constant_set},domProps:{checked:e.value},on:{input:function(t){return e.$emit("input",t.target.checked)}}})])])},de=[],ue={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.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}}},he=ue,fe=(0,d.Z)(he,me,de,!1,null,null,null),ye=fe.exports,ge={name:"WizardStepPluginFeatures",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputLongCheckbox:ye},data(){return{text_header_title:(0,l.__)("Which email features do you want to enable?","easy-wp-smtp"),text_header_subtitle:(0,l.__)("Get more value out of Easy WP SMTP! Select which of the following features you’d like to use, and we’ll enable them for you.","easy-wp-smtp"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_improved_email_deliverability:(0,l.__)("Improved Email Deliverability","easy-wp-smtp"),text_improved_email_deliverability_desc:(0,l.__)("Send emails from your website successfully and reliably.","easy-wp-smtp"),text_error_tracking:(0,l.__)("Email Error Tracking","easy-wp-smtp"),text_error_tracking_desc:(0,l.__)("Monitor email delivery issues so you can easily resolve them.","easy-wp-smtp"),text_smart_contact_form:(0,l.__)("Smart Contact Form","easy-wp-smtp"),text_smart_contact_form_desc:(0,l.__)("Install the WPForms plugin and create beautiful contact forms with just a few clicks.","easy-wp-smtp"),text_email_log:(0,l.__)("Detailed Email Logs","easy-wp-smtp"),text_email_log_desc:(0,l.__)("Store information from all emails sent from your site.","easy-wp-smtp"),text_complete_email_report:(0,l.__)("Complete Email Reports","easy-wp-smtp"),text_complete_email_report_desc:(0,l.__)("View your emails’ delivery status, open & click tracking, and deliverability charts.","easy-wp-smtp"),text_summary_report_email:(0,l.__)("Weekly Email Summary","easy-wp-smtp"),text_summary_report_email_desc:(0,l.__)("Receive a weekly email delivery report in your inbox.","easy-wp-smtp"),is_pro:this.$easywpsmtp.is_pro,is_multisite:this.$easywpsmtp.is_multisite,email_log:!1,complete_email_report:!!this.$easywpsmtp.is_pro,summary_report_email:!1}},computed:{...(0,D.Se)({contact_form_already_installed:"$_plugins/contact_form_plugin_already_installed",email_log_setting:"$_settings/email_log_enabled",summary_report_email_setting:"$_settings/summary_report_email_enabled"}),...(0,ne.vn)("$_plugins",{smart_contact_form:"smart_contact_form_setting"})},watch:{smart_contact_form:function(){if(this.contact_form_already_installed)return!1;this.showPluginInstallFooterNotice()},contact_form_already_installed:function(){this.showPluginInstallFooterNotice()},email_log_setting:function(e){this.email_log=e},summary_report_email_setting:function(e){this.summary_report_email=e}},methods:{handleSubmit(){this.$store.dispatch("$_app/start_loading");let e=[],t={value:{general:{summary_report_email_disabled:!this.summary_report_email}}};if(e.push(this.$store.dispatch("$_settings/setSummaryReportEmail",!this.summary_report_email)),this.is_pro&&(t.value={...t.value,logs:{enabled:this.email_log}},e.push(this.$store.dispatch("$_settings/setLogs",this.email_log))),e.push(this.$store.dispatch("$_settings/updateSettings",t)),e.push(Promise.resolve({success:!0}).then((e=>this.smart_contact_form&&!this.contact_form_already_installed?this.$store.dispatch("$_plugins/installPlugin","wpforms-lite"):e))),!this.is_pro){const t=[];this.email_log&&t.push("email_log"),this.complete_email_report&&t.push("complete_email_report"),e.push(this.$store.dispatch("$_settings/savePluginFeatures",t))}Promise.all(e).then((e=>{const t=e.filter((e=>e.success));if(t.length===e.length){this.$emit("displayContentBelow","");let e=this.is_pro&&!this.$store.getters["$_settings/email_log_enabled"]?1:0;this.$next_step(e)}})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},previousStep(){this.$emit("displayContentBelow","");const e=this.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))-1;this.$router.push({name:`${this.$wizard_steps[e]}_${this.$store.getters["$_settings/mailer"]}`})},showPluginInstallFooterNotice(){let e=[];this.smart_contact_form&&!this.contact_form_already_installed&&e.push("WPForms");let t="";e.length>0&&(t=(0,l.__)("The following plugin will be installed for free:","easy-wp-smtp"),t=`<p>${t} ${e.join(", ")}</p>`),this.$emit("displayContentBelow",t)},emailLogEnabledChanged(){"0"===this.$easywpsmtp.completed_time&&sessionStorage.setItem("easy_wp_smtp_email_log_enabled_changed","true")}},mounted(){if(this.showPluginInstallFooterNotice(),this.$easywpsmtp.is_pro&&"0"===this.$easywpsmtp.completed_time&&"true"!==sessionStorage.getItem("easy_wp_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.$easywpsmtp.is_pro){const e=this.$store.getters["$_settings/plugin_features"];e.includes("email_log")&&(this.email_log=!0),e.includes("complete_email_report")&&(this.complete_email_report=!0)}}},we=ge,be=(0,d.Z)(we,_e,ce,!1,null,null,null),ve=be.exports,xe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-help-improve"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-help-improve-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("settings-input-text",{attrs:{name:"email",type:"email",label:e.text_email_label,description:e.text_email_description},model:{value:e.current_user_email,callback:function(t){e.current_user_email=t},expression:"current_user_email"}}),t("settings-input-checkbox",{attrs:{name:"usage_tracking",label:e.text_usage_tracking_label,description:e.text_usage_tracking_description,tooltip:e.text_usage_tracking_tooltip},model:{value:e.usage_tracking,callback:function(t){e.usage_tracking=t},expression:"usage_tracking"}})],1),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary",attrs:{type:"button",name:"skip_step"},domProps:{textContent:e._s(e.text_skip)},on:{click:function(t){return t.preventDefault(),e.nextStep.apply(null,arguments)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},ke=[],Se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-text",class:{"settings-input-text-with-copy":e.copy,"input-error":e.has_errors||e.field_error}},[t("label",{staticClass:"settings-input-label-container",attrs:{for:e.id}},[e.label?t("span",{staticClass:"label",domProps:{innerHTML:e._s(e.label)}}):e._e(),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),t("span",{staticClass:"settings-input-container"},["checkbox"===e.type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:e.id,name:e.name,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled||e.is_constant_set,type:"checkbox"},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{change:[function(t){var s=e.currentValue,i=t.target,a=!!i.checked;if(Array.isArray(s)){var n=null,r=e._i(s,n);i.checked?r<0&&(e.currentValue=s.concat([n])):r>-1&&(e.currentValue=s.slice(0,r).concat(s.slice(r+1)))}else e.currentValue=a},e.inputUpdate]}}):"radio"===e.type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:e.id,name:e.name,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled||e.is_constant_set,type:"radio"},domProps:{checked:e._q(e.currentValue,null)},on:{change:[function(t){e.currentValue=null},e.inputUpdate]}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",attrs:{id:e.id,name:e.name,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled||e.is_constant_set,type:e.type},domProps:{value:e.currentValue},on:{change:e.inputUpdate,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.copy?t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary easy-wp-smtp-button-small",class:{"easy-wp-smtp-button-copied":e.show_copied},attrs:{title:e.text_copy_button},on:{click:function(t){return t.preventDefault(),e.copyValue.apply(null,arguments)}}},[t("span",{staticClass:"copy-button-container"},[t("inline-svg",{staticClass:"icon",class:{active:!e.show_copied},attrs:{src:s(8098),width:"16",height:"16"}}),t("inline-svg",{staticClass:"icon copied",class:{active:e.show_copied},attrs:{src:s(5561),width:"16",height:"16"}})],1)]):e._e()]),e.has_errors?t("p",{staticClass:"error"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(4186),width:"16"}}),t("span",{domProps:{innerHTML:e._s(e.text_error)}})],1):e._e(),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])},Pe=[],$e=function(){var e=this,t=e._self._c;return t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.tooltip_data,expression:"tooltip_data"}],staticClass:"easy-wp-smtp-info",attrs:{tabindex:"0"}},[t("inline-svg",{staticClass:"icon",attrs:{src:s(8021),width:"16",height:"16"}})],1)},Ce=[],Ee={name:"SettingsInfoTooltip",props:{content:String},data(){return{tooltip_data:{content:this.content,autoHide:!1,trigger:"hover focus click"}}}},Te=Ee,Me=(0,d.Z)(Te,$e,Ce,!1,null,"2a14ae56",null),Ie=Me.exports,ze={name:"SettingsInputText",components:{SettingsInfoTooltip:Ie},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","easy-wp-smtp"),text_copied:(0,l.__)("Copied!","easy-wp-smtp"),show_copied:!1}},computed:{currentValue:{get(){return this.value},set(e){this.$emit("is_error_update",!1),this.$emit("input",e)}},field_error:{get(){return this.is_error},set(e){this.$emit("is_error_update",e)}},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","easy-wp-smtp")},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}},methods:{inputUpdate:function(e){if(this.disabled)return!1;if(this.has_error=!1,this.format||this.type&&"email"===this.type){const t=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(!t.test(e.target.value))return this.has_error=!0,this.$emit("error_detected",this.text_error),!1}},copyValue:function(){const e=this.$refs.input;e.select(),document.execCommand("copy"),this.show_copied=!0;let t=this;setTimeout((function(){t.show_copied=!1}),1e3)}}},Ae=ze,Fe=(0,d.Z)(Ae,Se,Pe,!1,null,null,null),Le=Fe.exports,We=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-checkbox",class:{"settings-input-checkbox-checked":e.value,"settings-input-checkbox-disabled":e.disabled}},[t("span",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),t("label",{staticClass:"settings-input-checkbox-container",attrs:{for:"easy-wp-smtp-settings-checkbox-"+e.name}},[t("span",{staticClass:"checkbox",class:{"checkbox-checked":e.value,"checkbox-disabled":e.disabled}}),t("input",{attrs:{id:"easy-wp-smtp-settings-checkbox-"+e.name,type:"checkbox",name:e.name,disabled:e.disabled},domProps:{checked:e.value},on:{input:function(t){return e.$emit("input",t.target.checked)}}}),e.description?t("span",{staticClass:"input-label"},[e._v(e._s(e.description))]):e._e()])])},Re=[],Ne={name:"SettingsInputCheckbox",components:{SettingsInfoTooltip:Ie},props:{label:String,name:String,value:Boolean,description:String,tooltip:String,disabled:Boolean}},Oe=Ne,De=(0,d.Z)(Oe,We,Re,!1,null,null,null),Ze=De.exports,Be={name:"WizardStepHelpImprove",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputText:Le,SettingsInputCheckbox:Ze},data(){return{text_header_title:(0,l.__)("Help Us Improve Easy WP SMTP","easy-wp-smtp"),text_header_subtitle:(0,l.__)("Enter your email address to receive helpful suggestions from Easy WP SMTP. We’ll help you optimize your email deliverability and grow your business.","easy-wp-smtp"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_skip:(0,l.__)("Skip this Step","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_email_label:(0,l.__)("Your Email Address","easy-wp-smtp"),text_email_description:(0,l.__)("Your email address is needed if you want to receive recommendations.","easy-wp-smtp"),text_usage_tracking_label:(0,l.__)("Help make Easy WP SMTP better for everyone","easy-wp-smtp"),text_usage_tracking_description:(0,l.__)("Yes, count me in","easy-wp-smtp"),text_usage_tracking_tooltip:(0,l.__)("Allowing us to track usage data enables us to better help you because we know with which WordPress configurations, themes, and plugins to test.","easy-wp-smtp"),is_pro:this.$easywpsmtp.is_pro,usage_tracking:!1}},computed:{...(0,ne.vn)("$_wizard",["current_user_email"])},methods:{handleSubmit(){this.$store.dispatch("$_app/start_loading");let e=[];if(this.current_user_email&&e.push(this.$store.dispatch("$_settings/subscribeToNewsletter",this.current_user_email)),this.usage_tracking){const t={value:{general:{"usage-tracking-enabled":!0}}};e.push(this.$store.dispatch("$_settings/updateSettings",t))}Promise.all(e).then((()=>{this.nextStep()})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},nextStep(){this.$next_step()},previousStep(){this.$previous_step()}}},Ue=Be,Ve=(0,d.Z)(Ue,xe,ke,!1,null,null,null),He=Ve.exports,Ge=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-license"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-license-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),e.is_pro?e._e():t("div",{staticClass:"upgrade-content"},[t("p",{domProps:{innerHTML:e._s(e.text_upgrade_paragraph)}}),t("div",{staticClass:"checked-item-list"},[t("span",{staticClass:"checked-item"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(1151),width:"16",height:"12"}}),e._v(" "),t("span",[e._v(e._s(e.text_email_log))])],1),t("span",{staticClass:"checked-item"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(1151),width:"16",height:"12"}}),e._v(" "),t("span",[e._v(e._s(e.text_complete_email_report))])],1),t("span",{staticClass:"checked-item"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(1151),width:"16",height:"12"}}),e._v(" "),t("span",[e._v(e._s(e.text_summary_report_email))])],1)])]),e.verified?t("div",{staticClass:"verified-license"},[t("p",{domProps:{innerHTML:e._s(e.text_verified_license)}})]):t("div",{staticClass:"license-form",class:{"license-form-error":e.license_error}},[t("p",{domProps:{innerHTML:e._s(e.text_license_form)}}),t("div",{staticClass:"license-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:e.text_license_input_placeholder,"aria-label":e.text_aria_label_for_license_input},domProps:{value:e.license},on:{input:function(t){t.target.composing||(e.license=t.target.value)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.handleLicenseSubmit.apply(null,arguments)}}},[e._v(" "+e._s(e.text_license_button)+" ")])]),e.license_error?t("p",{staticClass:"error-message",domProps:{textContent:e._s(e.text_license_error)}}):e._e()])]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[e.verified?t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)]):t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary",attrs:{type:"button",name:"skip_step"},domProps:{textContent:e._s(e.text_skip)},on:{click:function(t){return t.preventDefault(),e.nextStep.apply(null,arguments)}}})])])])},qe=[],Ke=s(8394),je=s.n(Ke),Ye={name:"WizardStepLicense",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Enter your Easy WP SMTP License Key","easy-wp-smtp"),text_header_subtitle:this.$easywpsmtp.is_pro?"":(0,l.__)("You're using Easy WP SMTP Lite - no license key required. Enjoy!","easy-wp-smtp"),text_save:(0,l.__)("Continue","easy-wp-smtp"),text_skip:(0,l.__)("Skip this Step","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_upgrade_paragraph:(0,l.gB)((0,l.__)("To unlock the following features, %1$sUpgrade to Pro%2$s and enter your license key below.","easy-wp-smtp"),'<a href="'+this.$easywpsmtp.upgrade_link+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_email_log:(0,l.__)("Detailed Email Logs","easy-wp-smtp"),text_summary_report_email:(0,l.__)("Enhanced Weekly Email Summary","easy-wp-smtp"),text_license_form_lite:(0,l.gB)((0,l.__)("Already purchased %1$sEasy WP SMTP Pro%2$s? Enter your license key below!","easy-wp-smtp"),"<b>","</b>"),text_license_form_pro:(0,l.__)("Add your license key here to access plugin updates and support.","easy-wp-smtp"),text_license_button:this.$easywpsmtp.is_pro?(0,l.__)("Verify License Key","easy-wp-smtp"):(0,l.__)("Connect","easy-wp-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","easy-wp-smtp"),text_verified_license:(0,l.__)("Your license was successfully verified! You are ready for the next step.","easy-wp-smtp"),text_email_log_desc:(0,l.__)("Store information from all emails sent from your site.","easy-wp-smtp"),text_complete_email_report:(0,l.__)("Complete Email Reports","easy-wp-smtp"),text_complete_email_report_desc:(0,l.__)("View your emails’ delivery status, open & click tracking, and deliverability charts.","easy-wp-smtp"),text_pro_badge:(0,l.__)("Pro badge","easy-wp-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","easy-wp-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","easy-wp-smtp"),pro_badge:s(330),is_pro:this.$easywpsmtp.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,D.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((e=>{e.success?(this.verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","easy-wp-smtp"),html:e.data.message,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","easy-wp-smtp"),html:e.data,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")})):this.$store.dispatch("$_settings/upgradePlugin",this.license).then((e=>{if(e.success&&je()(e,"data.redirect_url"))return window.location=e.data.redirect_url;this.$store.dispatch("$_app/stop_loading"),this.$swal({title:e.success?(0,l.__)("Successful Upgrade!","easy-wp-smtp"):(0,l.__)("Upgrade Failed!","easy-wp-smtp"),html:e.data,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})})))))},handleSubmit(){this.nextStep()},nextStep(){this.$next_step()},previousStep(){let e=this.is_pro&&!this.$store.getters["$_settings/email_log_enabled"]?1:0;this.$previous_step(e)},prepareLongCheckbox(e,t){return`<label for="email_log" class="settings-input-long-checkbox settings-input-long-checkbox-checked settings-input-long-checkbox-disabled">\n\t\t\t\t\t\t\t<div class="settings-input-long-checkbox-header">\n\t\t\t\t\t\t\t\t<span class="title-container">\n\t\t\t\t\t\t\t\t\t<span class="label">\n\t\t\t\t\t\t\t\t\t\t${e}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<img src="${this.pro_badge}" alt="${this.text_pro_badge}" class="easy-wp-smtp-pro-badge">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<p class="description">\n\t\t\t\t\t\t\t\t\t${t}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span class="settings-input-long-checkbox-container">\n\t\t\t\t\t\t\t\t<span class="checkbox checkbox-checked checkbox-disabled"></span>\n\t\t\t\t\t\t\t\t<input id="email_log" type="checkbox" name="email_log" disabled="disabled">\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</label>`},prepareProFeaturesHtml(){let e="<div>";return this.selectedProFeatures.includes("email_log")&&(e+=this.prepareLongCheckbox(this.text_email_log,this.text_email_log_desc)),this.selectedProFeatures.includes("complete_email_report")&&(e+=this.prepareLongCheckbox(this.text_complete_email_report,this.text_complete_email_report_desc)),e+"</div>"}},mounted(){if(!this.is_pro&&this.selectedProFeatures.length>0){const e=this.prepareProFeaturesHtml();this.$swal({title:(0,l.__)("Would you like to purchase the following features now?","easy-wp-smtp"),html:`<p class="subtitle">${(0,l.__)("These features are available as part of Easy WP SMTP Pro plan.","easy-wp-smtp")}</p>\n\t\t\t\t\t\t\t${e}\n\t\t\t\t\t\t\t<div class="upgrade-bonus">\n\t\t\t\t\t\t\t<svg class="icon" width="16" height="16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>\n\t\t\t\t\t\t\t<span>${this.$easywpsmtp.education.upgrade_bonus_long}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`,width:850,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-plugin-upgrade"},confirmButtonText:(0,l.__)("Purchase Now","easy-wp-smtp"),cancelButtonText:(0,l.__)("I'll do it later","easy-wp-smtp"),showCancelButton:!0,reverseButtons:!0}).then((e=>{if(e.value){const e=window.open(this.$easywpsmtp.upgrade_link,"_blank");e.focus()}}))}this.verified=this.$easywpsmtp.license_exists},created(){const e=new URLSearchParams(window.location.search);this.$easywpsmtp.license_exists&&!e.has("upgrade-redirect")&&this.nextStep()}},Je=Ye,Xe=(0,d.Z)(Je,Ge,qe,!1,null,null,null),Qe=Xe.exports,et=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-check-configuration"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-check-configuration-header"},[t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("div",{staticClass:"check-configuration-loading-image-container"},[t("img",{attrs:{src:s(7764),alt:e.text_image_alt}})])])])},tt=[],st={name:"WizardStepCheckConfiguration",components:{ContentHeader:h},data(){return{text_header_title:(0,l.__)("Checking Mailer Configuration","easy-wp-smtp"),text_header_subtitle:(0,l.__)("We're running some tests in the background to make sure everything is set up properly.","easy-wp-smtp"),text_image_alt:(0,l.__)("Checking mailer configuration image","easy-wp-smtp")}},mounted(){this.$store.dispatch("$_wizard/checkMailerConfiguration").then((e=>{e.success?this.$router.push({name:"check_configuration_step_success"}):this.$router.push({name:"check_configuration_step_failure"})}))}},it=st,at=(0,d.Z)(it,et,tt,!1,null,null,null),nt=at.exports,rt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-configuration-success"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-configuration-success-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title}})],1),t("inline-svg",{staticStyle:{display:"block",margin:"0 auto"},attrs:{src:s(5134),width:"275"}})],1),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary",attrs:{type:"button",name:"send_test_email"},domProps:{textContent:e._s(e.text_test_email)},on:{click:function(t){return t.preventDefault(),e.handleTestEmail.apply(null,arguments)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary",attrs:{type:"button",name:"send_feedback"},domProps:{textContent:e._s(e.text_send_feedback)},on:{click:function(t){return t.preventDefault(),e.handleFeedback.apply(null,arguments)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"button",name:"finish_setup"},domProps:{textContent:e._s(e.text_finish)},on:{click:function(t){return t.preventDefault(),e.handleFinish.apply(null,arguments)}}})])])},ot=[],lt={name:"WizardStepConfigurationSuccess",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Congrats, you’ve successfully set up Easy WP SMTP.","easy-wp-smtp"),text_test_email:(0,l.__)("Send a Test Email","easy-wp-smtp"),text_send_feedback:(0,l.__)("Send us Feedback","easy-wp-smtp"),text_finish:(0,l.__)("Finish Setup","easy-wp-smtp"),star_image_html:`<img src="${s(3481)}" alt="${(0,l.__)("Star icon","easy-wp-smtp")}" class="icon" / >`,is_pro:this.$easywpsmtp.is_pro}},computed:{...(0,D.Se)({plugins:"$_plugins/partner_plugins"})},methods:{handleTestEmail(){return window.location=this.$easywpsmtp.email_test_tab_url},goodFeedback(){this.$swal({title:(0,l.__)("Thanks for the feedback!","easy-wp-smtp"),html:`${(0,l.gB)((0,l.__)("Help us spread the word %1$sby giving Easy WP 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.","easy-wp-smtp"),'<span class="medium-bold">',"</span>","<br>",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","easy-wp-smtp"),customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-feedback-good"}}).then((e=>{if(e.value){const e=window.open("https://wordpress.org/support/plugin/easy-wp-smtp/reviews/#new-post","_blank");e.focus()}}))},badFeedback(){this.$swal({title:(0,l.__)("What could we do to improve?","easy-wp-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!","easy-wp-smtp")}\n\t\t\t\t\t\t\t\t\t<textarea id="feedback" name="feedback" rows="9"></textarea>\n\t\t\t\t\t\t\t\t\t<span class="permission-container">\n\t\t\t\t\t\t\t\t\t\t<input type="checkbox" id="permission" name="permission">\n\t\t\t\t\t\t\t\t\t\t<label for="permission">${(0,l.__)("Yes, I give Easy WP SMTP permission to contact me for any follow up questions.","easy-wp-smtp")}</label>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t`,width:650,showCloseButton:!0,allowEnterKey:!1,allowOutsideClick:!1,allowEscapeKey:!1,confirmButtonText:(0,l.__)("Submit Feedback","easy-wp-smtp"),customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-feedback-bad"},preConfirm:()=>[document.getElementById("feedback").value,document.getElementById("permission").checked]}).then((e=>{if(e.value){const t=e.value[0],s=e.value[1];this.$store.dispatch("$_wizard/sendFeedback",{feedback:t,permission:s})}}))},handleFeedback(){this.$swal({title:(0,l.__)("How was your Easy WP SMTP setup experience?","easy-wp-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!","easy-wp-smtp"),width:650,showCloseButton:!0,allowEnterKey:!1,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-feedback"},showCancelButton:!0}).then((e=>{e.value?this.goodFeedback():void 0!==e.dismiss&&"cancel"===e.dismiss&&this.badFeedback()}))},handleFinish(){return window.location=this.$easywpsmtp.exit_url},openUpgradePage:function(){const e=window.open(this.$easywpsmtp.upgrade_link,"_blank");e.focus()}}},pt=lt,_t=(0,d.Z)(pt,rt,ot,!1,null,null,null),ct=_t.exports,mt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-configuration-failure"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-configuration-failure-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("div",{staticClass:"start-troubleshooting-arrow-container"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(1122),width:"112",height:"112"}})],1)]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"button",name:"start_troubleshooting"},domProps:{textContent:e._s(e.text_start_troubleshooting)},on:{click:function(t){return t.preventDefault(),e.handleTroubleshooting.apply(null,arguments)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-tertiary",attrs:{type:"button",name:"finish_setup"},domProps:{textContent:e._s(e.text_finish)},on:{click:function(t){return t.preventDefault(),e.handleFinish.apply(null,arguments)}}})])])},dt=[],ut={name:"WizardStepConfigurationFailure",components:{ContentHeader:h,TheWizardStepCounter:X},data(){return{text_header_title:(0,l.__)("Whoops, looks like something isn’t configured quite right.","easy-wp-smtp"),text_header_subtitle:(0,l.__)("We tried sending a test email, but we’re not able to do so. For more details about the issue we’ve found, as well as steps for resolving it, please begin troubleshooting.","easy-wp-smtp"),text_start_troubleshooting:(0,l.__)("Start Troubleshooting","easy-wp-smtp"),text_send_feedback:(0,l.__)("Send us Feedback","easy-wp-smtp"),text_finish:(0,l.__)("Finish Setup","easy-wp-smtp")}},methods:{handleTroubleshooting(){return window.location=`${this.$easywpsmtp.email_test_tab_url}&auto-start=1`},handleFinish(){return window.location=this.$easywpsmtp.exit_url}}},ht=ut,ft=(0,d.Z)(ht,mt,dt,!1,null,null,null),yt=ft.exports,gt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-smtp"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"host",constant:"EasyWPSMTP_SMTP_HOST",label:e.text_host_label,is_error:e.field_errors.includes("host")},on:{is_error_update:function(t){return e.removeFieldError("host")}},model:{value:e.host,callback:function(t){e.host=t},expression:"host"}}),t("settings-input-radio",{attrs:{name:"encryption",constant:"EasyWPSMTP_SSL",label:e.text_encryption_label,options:e.encryptionOptions,description:e.text_encryption_description},on:{input:e.encryptionChanged},model:{value:e.encryption,callback:function(t){e.encryption=t},expression:"encryption"}}),t("settings-input-number",{attrs:{name:"port",constant:"EasyWPSMTP_SMTP_PORT",label:e.text_port_label,is_error:e.field_errors.includes("port")},on:{is_error_update:function(t){return e.removeFieldError("port")}},model:{value:e.port,callback:function(t){e.port=t},expression:"port"}}),t("settings-input-switch",{directives:[{name:"show",rawName:"v-show",value:e.show_autotls,expression:"show_autotls"}],attrs:{name:"autotls",constant:"EasyWPSMTP_SMTP_AUTOTLS",title:e.text_autotls_title,label:e.text_autotls_label,description:e.text_autotls_description},model:{value:e.autotls,callback:function(t){e.autotls=t},expression:"autotls"}}),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-switch",{attrs:{name:"auth",constant:"EasyWPSMTP_SMTP_AUTH",title:e.text_auth_title,label:e.text_auth_label},model:{value:e.auth,callback:function(t){e.auth=t},expression:"auth"}}),t("settings-input-text",{directives:[{name:"show",rawName:"v-show",value:e.auth,expression:"auth"}],attrs:{name:"user",constant:"EasyWPSMTP_SMTP_USER",label:e.text_user_label,is_error:e.field_errors.includes("user")},on:{is_error_update:function(t){return e.removeFieldError("user")}},model:{value:e.user,callback:function(t){e.user=t},expression:"user"}}),t("settings-input-text",{directives:[{name:"show",rawName:"v-show",value:e.auth,expression:"auth"}],attrs:{name:"pass",constant:"EasyWPSMTP_SMTP_PASS",type:"password",label:e.text_pass_label,is_error:e.field_errors.includes("pass")},on:{is_error_update:function(t){return e.removeFieldError("pass")}},model:{value:e.pass,callback:function(t){e.pass=t},expression:"pass"}}),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},wt=[],bt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-radio"},[e.label?t("span",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))])]):e._e(),t("div",{staticClass:"settings-input-radio-container"},e._l(e.options,(function(s){return t("label",{key:s.value,class:e.labelClass(s.value),attrs:{for:"easy-wp-smtp-settings-radio-"+e.name+"["+s.value+"]"}},[t("span",{class:e.titleClass(s.value)}),t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:"easy-wp-smtp-settings-radio-"+e.name+"["+s.value+"]",type:"radio",name:e.name,autocomplete:"off",readonly:e.disabled,disabled:e.is_constant_set},domProps:{value:s.value,checked:e.isChecked(s.value),checked:e._q(e.selected,s.value)},on:{change:[function(t){e.selected=s.value},e.updateSetting]}}),t("span",{staticClass:"input-label"},[e._v(e._s(s.label))])])})),0),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])},vt=[],xt={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(e){this.$emit("input",e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}},methods:{updateSetting:function(){if(this.disabled)return!1},titleClass(e){let t="easy-wp-smtp-styled-radio";return this.isChecked(e)&&(t+=" easy-wp-smtp-styled-radio-checked"),this.is_constant_set&&(t+=" easy-wp-smtp-styled-radio-disabled"),t},labelClass(e){let t="";return this.isChecked(e)&&(t+=" easy-wp-smtp-styled-radio-label-checked"),this.is_constant_set&&(t+=" easy-wp-smtp-styled-radio-label-disabled"),t},isChecked(e){return e===this.selected}}},kt=xt,St=(0,d.Z)(kt,bt,vt,!1,null,null,null),Pt=St.exports,$t=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-number",class:{"settings-input-number-error":e.field_error}},[t("label",{staticClass:"settings-input-label-container",attrs:{for:e.id}},[e.label?t("span",{staticClass:"label"},[e._v(e._s(e.label))]):e._e(),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],attrs:{id:e.id,type:"number",name:e.name,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,readonly:e.disabled,disabled:e.is_constant_set},domProps:{value:e.currentValue},on:{change:e.inputUpdate,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.has_error?t("p",{staticClass:"error"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(4186),width:"16"}}),t("span",{domProps:{innerHTML:e._s(e.has_error)}})],1):e._e(),e.description?t("p",{staticClass:"description"},[e._v(" "+e._s(e.description)+" ")]):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])},Ct=[],Et={name:"SettingsInputNumber",components:{SettingsInfoTooltip:Ie},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","easy-wp-smtp"),"<strong>"+this.min+"</strong>","<strong>"+this.max+"</strong>"),text_error_round:(0,l.__)("Value has to be a round number","easy-wp-smtp")}},computed:{currentValue:{get(){return this.value},set(e){this.$emit("is_error_update",!1),this.$emit("input",parseInt(e,10))}},field_error:{get(){return this.is_error},set(e){this.$emit("is_error_update",e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}},methods:{inputUpdate:function(e){if(this.disabled)return!1;this.has_error=!1;const t=parseFloat(e.target.value);return this.round&&t%1!==0?(this.has_error=this.text_error_round,!1):t>this.max||t<this.min?(this.has_error=this.text_error_value,!1):void 0}}},Tt=Et,Mt=(0,d.Z)(Tt,$t,Ct,!1,null,null,null),It=Mt.exports,zt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-switch",class:e.classname},[t("label",{attrs:{for:e.id}},[e.title?t("span",{staticClass:"title settings-input-label-container"},[t("span",{staticClass:"label",domProps:{innerHTML:e._s(e.title)}}),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1):e._e(),t("span",{staticClass:"control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],attrs:{id:e.id,type:"checkbox",name:e.name,disabled:e.disabled||e.is_constant_set},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{change:[function(t){var s=e.currentValue,i=t.target,a=!!i.checked;if(Array.isArray(s)){var n=null,r=e._i(s,n);i.checked?r<0&&(e.currentValue=s.concat([n])):r>-1&&(e.currentValue=s.slice(0,r).concat(s.slice(r+1)))}else e.currentValue=a},e.inputUpdate]}}),t("span",{class:{"toggle-switch":!0,"toggle-switch-with-label":e.label}}),e.label?t("span",{staticClass:"label-description",domProps:{innerHTML:e._s(e.label)}}):e._e()]),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])])},At=[],Ft={name:"SettingsInputSwitch",components:{SettingsInfoTooltip:Ie},props:{name:String,value:Boolean,title:String,label:String,description:String,constant:String,tooltip:String,classname:String,disabled:Boolean},data(){return{has_error:!1,id:"input-"+this.name}},computed:{currentValue:{get(){return this.value},set(e){this.$emit("input",!!e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}},methods:{inputUpdate:function(){if(this.disabled)return!1}}},Lt=Ft,Wt=(0,d.Z)(Lt,zt,At,!1,null,null,null),Rt=Wt.exports,Nt={name:"WizardStepConfigureMailerSmtp",components:{SettingsInputText:Le,SettingsInputRadio:Pt,SettingsInputNumber:It,SettingsInputSwitch:Rt},data(){return{mailer:"smtp",text_host_label:(0,l.__)("SMTP Host","easy-wp-smtp"),text_encryption_label:(0,l.__)("Encryption","easy-wp-smtp"),text_port_label:(0,l.__)("SMTP Port","easy-wp-smtp"),text_autotls_title:(0,l.__)("Auto TLS","easy-wp-smtp"),text_autotls_label:(0,l.__)("Enable Auto TLS","easy-wp-smtp"),text_autotls_description:(0,l.__)("By default, TLS encryption is automatically used if the server supports it (recommended). In some cases, due to server misconfigurations, this can cause issues and may need to be disabled.","easy-wp-smtp"),text_auth_title:(0,l.__)("Authentication","easy-wp-smtp"),text_auth_label:(0,l.__)("Enable Authentication","easy-wp-smtp"),text_user_label:(0,l.__)("SMTP Username","easy-wp-smtp"),text_pass_label:(0,l.__)("SMTP Password","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_encryption_description:(0,l.__)("For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS.","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.smtp.description,encryptionOptions:[{label:(0,l.__)("None","easy-wp-smtp"),value:"none",default_port:25},{label:(0,l.__)("SSL","easy-wp-smtp"),value:"ssl",default_port:465},{label:(0,l.__)("TLS","easy-wp-smtp"),value:"tls",default_port:587}],show_autotls:!0,show_user_and_pass:!0,field_errors:[]}},computed:{...(0,ne.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(e){this.show_autotls="tls"!==e}},methods:{getEncryptionDefaultPort(e){return this.encryptionOptions.find((t=>t.value===e)).default_port},encryptionChanged(e){this.port=this.getEncryptionDefaultPort(e)},areRequiredFieldsValid(){return""===this.host&&this.field_errors.push("host"),(""===this.port||isNaN(this.port))&&this.field_errors.push("port"),this.auth&&(""===this.user&&this.field_errors.push("user"),""===this.pass&&this.field_errors.push("pass")),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}},mounted(){"tls"===this.encryption&&(this.show_autotls=!1)}},Ot=Nt,Dt=(0,d.Z)(Ot,gt,wt,!1,null,null,null),Zt=Dt.exports,Bt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendlayer"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:e.get_started_button_url,target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EasyWPSMTP_SENDLAYER_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},Ut=[],Vt={name:"WizardStepConfigureMailerSendlayer",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendlayer",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SendLayer.","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://app.sendlayer.com/settings/api/",{source:"easywpsmtpplugin",medium:"WordPress",content:"Setup Wizard - Get API Key"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with SendLayer","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendLayer","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.sendlayer.description.substr(0,this.$easywpsmtp.mailer_options.sendlayer.description.lastIndexOf("<p>")),get_started_button_url:this.$getUTMUrl("https://sendlayer.com/easy-wp-smtp/",{source:"easywpsmtpplugin",medium:"WordPress",content:"Setup Wizard - Mailer Button"}),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendlayer-mailer/",{content:"Read how to set up SendLayer"}),field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Ht=Vt,Gt=(0,d.Z)(Ht,Bt,Ut,!1,null,null,null),qt=Gt.exports,Kt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-smtpcom"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:"https://easywpsmtp.com/go/smtp/",target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))]),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[e._v(e._s(e.text_disclosure))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EasyWPSMTP_SMTPCOM_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"channel",constant:"EasyWPSMTP_SMTPCOM_CHANNEL",label:e.text_channel_label,description:e.text_channel_description,is_error:e.field_errors.includes("channel")},on:{is_error_update:function(t){return e.removeFieldError("channel")}},model:{value:e.channel,callback:function(t){e.channel=t},expression:"channel"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},jt=[],Yt={name:"WizardStepConfigureMailerSmtpCom",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"smtpcom",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_channel_label:(0,l.__)("Sender Name","easy-wp-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SMTP.com.","easy-wp-smtp"),'<a href="https://my.smtp.com/settings/api" target="_blank" rel="noopener noreferrer">',"</a>"),text_channel_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Sender Name for SMTP.com.","easy-wp-smtp"),'<a href="https://my.smtp.com/senders/" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with SMTP.com","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SMTP.com","easy-wp-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","easy-wp-smtp"),disclosure_tooltip_data:{content:(0,l.__)("We believe in full transparency. The SMTP.com links above are tracking links as part of our partnership with SMTP (j2 Global). We can recommend just about any SMTP service, but we only recommend products that we believe will add value to our users.","easy-wp-smtp"),autoHide:!0,trigger:"hover"},description:this.$easywpsmtp.mailer_options.smtpcom.description.substr(0,this.$easywpsmtp.mailer_options.smtpcom.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-smtp-com-mailer",{content:"Read how to set up SMTP.com"}),field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},Jt=Yt,Xt=(0,d.Z)(Jt,Kt,jt,!1,null,null,null),Qt=Xt.exports,es=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendinblue"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-small easy-wp-smtp-button-secondary",attrs:{href:"https://easywpsmtp.com/go/sendinblue/",target:"_blank",rel:"noopener noreferrer"}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_get_started_button)),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"23"}})],1)]),t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))]),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.disclosure_tooltip_data,expression:"disclosure_tooltip_data"}],staticClass:"mailer-offer-link-disclosure"},[e._v(e._s(e.text_disclosure))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EasyWPSMTP_SENDINBLUE_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EasyWPSMTP_SENDINBLUE_DOMAIN",label:e.text_domain_label,description:e.text_domain_description},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ts=[],ss={name:"WizardStepConfigureMailerSendinblue",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendinblue",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Sending Domain","easy-wp-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for Brevo.","easy-wp-smtp"),'<a href="https://app.brevo.com/settings/keys/api" target="_blank" rel="noopener noreferrer">',"</a>"),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","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendinblue-mailer#setup-smtp",{content:"Brevo documentation"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_get_started_button:(0,l.__)("Get Started with Brevo","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Brevo","easy-wp-smtp"),text_disclosure:(0,l.__)("Transparency and Disclosure","easy-wp-smtp"),disclosure_tooltip_data:{content:(0,l.__)("We believe in full transparency. The Brevo links above are tracking links as part of our partnership with Brevo. We can recommend just about any SMTP service, but we only recommend products that we believe will add value to our users.","easy-wp-smtp"),autoHide:!0,trigger:"hover"},description:this.$easywpsmtp.mailer_options.sendinblue.description.substr(0,this.$easywpsmtp.mailer_options.sendinblue.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendinblue-mailer",{content:"Read how to set up Brevo"}),field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},is=ss,as=(0,d.Z)(is,es,ts,!1,null,null,null),ns=as.exports,rs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-mailgun"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EasyWPSMTP_MAILGUN_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EasyWPSMTP_MAILGUN_DOMAIN",label:e.text_domain_label,description:e.text_domain_description,is_error:e.field_errors.includes("domain")},on:{is_error_update:function(t){return e.removeFieldError("domain")}},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-radio",{attrs:{name:"region",constant:"EasyWPSMTP_MAILGUN_REGION",label:e.text_region_label,options:e.regionOptions,description:e.text_region_description},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},os=[],ls={name:"WizardStepConfigureMailerMailgun",components:{SettingsInputText:Le,SettingsInputRadio:Pt,SettingsInputSwitch:Rt},data(){return{mailer:"mailgun",text_api_key_label:(0,l.__)("Mailgun API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Domain Name","easy-wp-smtp"),text_region_label:(0,l.__)("Region","easy-wp-smtp"),text_api_key_description:(0,l.gB)((0,l.__)('%1$sFollow this link%2$s to get a Mailgun API Key. Generate a key in the "Mailgun API Keys" section.',"easy-wp-smtp"),'<a href="https://app.mailgun.com/settings/api_security" target="_blank" rel="noopener noreferrer">',"</a>"),text_domain_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Domain Name from Mailgun.","easy-wp-smtp"),'<a href="https://app.mailgun.com/app/sending/domains" target="_blank" rel="noopener noreferrer">',"</a>"),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.","easy-wp-smtp"),'<a href="https://www.mailgun.com/regions" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Mailgun","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.mailgun.description.substr(0,this.$easywpsmtp.mailer_options.mailgun.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-mailgun-mailer/",{content:"Read how to set up Mailgun"}),regionOptions:[{label:(0,l.__)("US","easy-wp-smtp"),value:"US"},{label:(0,l.__)("EU","easy-wp-smtp"),value:"EU"}],field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},ps=ls,_s=(0,d.Z)(ps,rs,os,!1,null,null,null),cs=_s.exports,ms=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-sendgrid"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"api_key",type:"password",constant:"EasyWPSMTP_SENDGRID_API_KEY",label:e.text_api_key_label,description:e.text_api_key_description,is_error:e.field_errors.includes("api_key")},on:{is_error_update:function(t){return e.removeFieldError("api_key")}},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),t("settings-input-text",{attrs:{name:"domain",constant:"EasyWPSMTP_SENDGRID_DOMAIN",label:e.text_domain_label,description:e.text_domain_description},model:{value:e.domain,callback:function(t){e.domain=t},expression:"domain"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ds=[],us={name:"WizardStepConfigureMailerSendgrid",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"sendgrid",text_api_key_label:(0,l.__)("API Key","easy-wp-smtp"),text_domain_label:(0,l.__)("Sending Domain","easy-wp-smtp"),text_api_key_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get an API Key for SendGrid.","easy-wp-smtp"),'<a href="https://app.sendgrid.com/settings/api_keys" target="_blank" rel="noopener noreferrer">',"</a>")+"<br>"+(0,l.gB)((0,l.__)("To send emails you will need only a %1$sMail Send%2$s access level for this API key.","easy-wp-smtp"),"<i>","</i>"),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","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendgrid-mailer/#setup",{content:"SendGrid documentation"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up SendGrid","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.sendgrid.description.substr(0,this.$easywpsmtp.mailer_options.sendgrid.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-sendgrid-mailer/",{content:"Read how to set up Sendgrid"}),field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},hs=us,fs=(0,d.Z)(hs,ms,ds,!1,null,null,null),ys=fs.exports,gs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-postmark"},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link easy-wp-smtp-link-docs",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"server_api_token",type:"password",constant:"EasyWPSMTP_POSTMARK_SERVER_API_TOKEN",label:e.text_server_api_token_label,description:e.text_server_api_token_description,is_error:e.field_errors.includes("server_api_token")},on:{is_error_update:function(t){return e.removeFieldError("server_api_token")}},model:{value:e.server_api_token,callback:function(t){e.server_api_token=t},expression:"server_api_token"}}),t("settings-input-text",{attrs:{name:"message_stream",constant:"EasyWPSMTP_POSTMARK_MESSAGE_STREAM",label:e.text_message_stream_label,description:e.text_message_stream_description},model:{value:e.message_stream,callback:function(t){e.message_stream=t},expression:"message_stream"}}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_lable,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])},ws=[],bs={name:"WizardStepConfigureMailerPostmark",components:{SettingsInputText:Le,SettingsInputSwitch:Rt},data(){return{mailer:"postmark",text_server_api_token_label:(0,l.__)("Server API Token","easy-wp-smtp"),text_message_stream_label:(0,l.__)("Message Stream ID","easy-wp-smtp"),text_server_api_token_description:(0,l.gB)((0,l.__)("%1$sFollow this link%2$s to get a Server API Token for Postmark.","easy-wp-smtp"),'<a href="https://account.postmarkapp.com/api_tokens" target="_blank" rel="noopener noreferrer">',"</a>"),text_message_stream_description:(0,l.gB)((0,l.__)("Message Stream ID is <strong>optional</strong>. By default <strong>outbound</strong> (Default Transactional Stream) will be used. More information can be found in our %1$sPostmark documentation%2$s.","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-postmark-mailer/#message-stream",{content:"Postmark documentation"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_lable:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Postmark","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.postmark.description.substr(0,this.$easywpsmtp.mailer_options.postmark.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-postmark-mailer/",{content:"Read how to set up Postmark"}),field_errors:[]}},computed:{...(0,ne.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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}}},vs=bs,xs=(0,d.Z)(vs,gs,ws,!1,null,null,null),ks=xs.exports,Ss=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-amazonses"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("b",[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])])]),e.is_ssl?t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"client_id",constant:"EasyWPSMTP_AMAZONSES_CLIENT_ID",label:e.text_client_id_label,is_error:e.field_errors.includes("client_id")},on:{is_error_update:function(t){return e.removeFieldError("client_id")}},model:{value:e.client_id,callback:function(t){e.client_id=t},expression:"client_id"}}),t("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"EasyWPSMTP_AMAZONSES_CLIENT_SECRET",label:e.text_client_secret_label,is_error:e.field_errors.includes("client_secret")},on:{is_error_update:function(t){return e.removeFieldError("client_secret")}},model:{value:e.client_secret,callback:function(t){e.client_secret=t},expression:"client_secret"}}),t("settings-input-select",{attrs:{name:"region",constant:"EasyWPSMTP_AMAZONSES_REGION",label:e.text_region_label,options:e.regionOptions,description:e.text_region_description,is_error:e.field_errors.includes("region")},on:{is_error_update:function(t){return e.removeFieldError("region")}},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}}),e.is_api_auth_missing?e._e():[e.display_identities?t("div",[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-amazon-s-e-s-identities",{attrs:{options:e.identities,label:e.text_identities_label,columns:e.identities_columns}})],1):e._e(),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})]],2):t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("div",{staticClass:"easy-wp-smtp-notice easy-wp-smtp-notice--error"},[t("p",[t("span",[e._v(e._s(e.text_no_ssl))]),e._v(" "),t("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[e._v(e._s(e.text_no_ssl_link_text))]),e._v(".")]),t("p",[e._v(e._s(e.text_no_ssl_diff_mailer))])])])])},Ps=[],$s=s(1296),Cs=s.n($s),Es=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-input-select",class:{"settings-input-select-error":e.field_error}},[t("label",{staticClass:"settings-input-label-container",attrs:{for:`easy-wp-smtp-settings-select-${e.name}`}},[t("span",{staticClass:"label"},[e._v(e._s(e.label))])]),t("div",{staticClass:"settings-input-select-container"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:`easy-wp-smtp-settings-select-${e.name}`,name:e.name,readonly:e.disabled,disabled:e.is_constant_set},on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selected=t.target.multiple?s:s[0]}}},e._l(e.options,(function(s){return t("option",{key:s.value,domProps:{value:s.value}},[e._v(" "+e._s(s.label)+" ")])})),0)]),e.description?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.description)}}):e._e(),e.is_constant_set?t("p",{staticClass:"description description--constant",domProps:{innerHTML:e._s(e.text_constant)}}):e._e()])},Ts=[],Ms={name:"SettingsInputSelect",props:{options:Array,label:String,name:String,value:String,description:String,constant:String,disabled:Boolean,is_error:Boolean},computed:{selected:{get(){return this.value},set(e){this.$emit("is_error_update",!1),this.$emit("input",e)}},field_error:{get(){return this.is_error},set(e){this.$emit("is_error_update",e)}},is_constant_set:function(){return this.$easywpsmtp.defined_constants.includes(this.constant)},text_constant:function(){return(0,l.__)("This setting is already configured with the Easy WP SMTP constant. To change it, please edit or remove the <code>"+this.constant+"</code> constant in your <code>wp-config.php</code> file.","easy-wp-smtp")}}},Is=Ms,zs=(0,d.Z)(Is,Es,Ts,!1,null,null,null),As=zs.exports,Fs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-amazon-ses-identities"},[t("label",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),e.options?t("div",[e.options&&0!==e.options.length?t("p",{staticClass:"description"},[e._v(" "+e._s(e.text_identities_table_description)+" ")]):t("p",{staticClass:"description"},[t("strong",[e._v(e._s(e.text_no_registered_identities_title))]),e._v(" "+e._s(e.text_no_registered_identities_content)+" ")]),t("div",{staticClass:"ses-identities-container"},[e.options&&e.options.length>0?t("div",{staticClass:"ses-identities-table-container"},[t("table",[e.columns?t("tr",{staticClass:"ses-identity-columns"},e._l(e.filtered_columns,(function(s){return t("th",{key:s.key,class:`ses-identity-column ses-identity-column-${s.key}`},[e._v(" "+e._s(s.label)+" ")])})),0):e._e(),e._l(e.options,(function(s,i){return t("tr",{key:i},[t("td",[e._v(" "+e._s(s.value)+" ")]),t("td",[e._v(" "+e._s(s.type)+" ")]),t("td",[e._v(" "+e._s(s.status)+" ")])])})),e.show_identity_form?e._e():t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.addNewIdentity.apply(null,arguments)}}},[e._v(" "+e._s(e.text_add_new_identity)+" ")])],2)]):e._e(),e.show_identity_form||!e.options||0===e.options.length?t("div",{staticClass:"easy-wp-smtp-amazonses-identity-form"},[e.options&&0!==e.options.length?e._e():t("h3",[e._v(" "+e._s(e.text_verify_identity)+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:1===e.verify_identity_step,expression:"verify_identity_step === 1"}],staticClass:"amazonses-identity-form-step"},[t("settings-input-radio",{attrs:{name:"identity_type",options:e.identity_type_options},model:{value:e.identity_type,callback:function(t){e.identity_type=t},expression:"identity_type"}}),t("p",{domProps:{textContent:e._s(e.verify_identity_text)}}),t("settings-input-text",{attrs:{name:"identity_value",placeholder:e.identity_value_placeholder},model:{value:e.identity_value,callback:function(t){e.identity_value=t},expression:"identity_value"}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small easy-wp-smtp-button-verify",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.verifyIdentity.apply(null,arguments)}}},[e.loading_verify_identity?t("spin-loader",{attrs:{color:"white"}}):t("span",[e._v(e._s(e.text_verify))])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.verify_identity_step&&"domain"===e.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'domain'"}],staticClass:"amazonses-identity-form-step amazonses-identity-form-step-domain"},[t("p",{domProps:{innerHTML:e._s(e.text_verify_identity_step2_domain_text)}}),t("div",{staticClass:"amazonses-dns-records"},[t("div",{staticClass:"amazonses-dns-records__row amazonses-dns-records__row--heading"},[t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[e._v(" "+e._s(e.text_name)+" ")]),t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--heading"},[e._v(" "+e._s(e.text_value)+" ")])]),e._l(e.verify_identity_result.domain_dkim_dns_records,(function(e,s){return t("div",{key:e.value,staticClass:"amazonses-dns-records__row amazonses-dns-records__row--record"},[t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[t("settings-input-text",{attrs:{name:`dns_record_name[${s}]`,value:e.name,readonly:"",copy:""}})],1),t("div",{staticClass:"amazonses-dns-records__col amazonses-dns-records__col--record"},[t("settings-input-text",{attrs:{name:`dns_record_value[${s}]`,value:e.value,readonly:"",copy:""}})],1)])}))],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.verify_identity_step&&"email"===e.verify_identity_result.type,expression:"verify_identity_step === 2 && verify_identity_result.type === 'email'"}],staticClass:"amazonses-identity-form-step"},[t("p",{staticClass:"ses-identities-email-success-notice"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(2411),width:"16",height:"16"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.text_verify_identity_step2_email_text)}})],1)])]):e._e()])]):t("spin-loader",{attrs:{size:"md"}})],1)},Ls=[],Ws=function(){var e=this,t=e._self._c;return t("img",{class:`easy-wp-smtp-loader easy-wp-smtp-loader-${e.size}`,attrs:{src:e.image,alt:e.text_loading}})},Rs=[],Ns={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","easy-wp-smtp")}}},Os=Ns,Ds=(0,d.Z)(Os,Ws,Rs,!1,null,null,null),Zs=Ds.exports,Bs={name:"SettingsAmazonSESIdentities",components:{SettingsInfoTooltip:Ie,SettingsInputRadio:Pt,SettingsInputText:Le,SpinLoader:Zs},props:{options:Array,columns:Array,label:String,tooltip:String},computed:{filtered_columns:function(){return this.columns.filter((e=>"action"!==e.key))},identity_value_placeholder:function(){return"domain"===this.identity_type?(0,l.__)("Please enter a domain","easy-wp-smtp"):(0,l.__)("Please enter a valid email address","easy-wp-smtp")},verify_identity_text:function(){return"domain"===this.identity_type?(0,l.__)("Enter the domain name to verify it on Amazon SES and generate the required DNS CNAME records.","easy-wp-smtp"):(0,l.__)("Enter a valid email address. A verification email will be sent to the email address you entered.","easy-wp-smtp")},text_verify_identity_step2_email_text:function(){return(0,l.gB)((0,l.__)("Please check the inbox of <b>%s</b> for a confirmation email.","easy-wp-smtp"),this.verify_identity_result.value)},text_verify:function(){return"domain"===this.identity_type?(0,l.__)("Verify Domain","easy-wp-smtp"):(0,l.__)("Verify Email","easy-wp-smtp")}},data(){return{text_no_registered_identities_title:(0,l.__)("No registered domains or emails.","easy-wp-smtp"),text_no_registered_identities_content:(0,l.__)("You will not be able to send emails until you verify at least one domain or email address for the selected Amazon SES Region.","easy-wp-smtp"),text_view_dns:(0,l.__)("View DNS","easy-wp-smtp"),text_resend:(0,l.__)("Resend","easy-wp-smtp"),text_identities_table_description:(0,l.__)("Here are the domains and email addresses that have been verified and can be used as the From Email.","easy-wp-smtp"),text_verify_identity:(0,l.__)("Verify SES Identity","easy-wp-smtp"),text_add_new_identity:(0,l.__)("Add New SES Identity","easy-wp-smtp"),text_name:(0,l.__)("Name","easy-wp-smtp"),text_value:(0,l.__)("Value","easy-wp-smtp"),text_verify_identity_step2_domain_text:(0,l.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.","easy-wp-smtp"),'<a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#verify-domain-procedure" target="_blank" rel="noopener noreferrer">',"</a>"),show_identity_form:!1,identity_type:"domain",identity_type_options:[{label:(0,l.__)("Verify Domain","easy-wp-smtp"),value:"domain"},{label:(0,l.__)("Verify Email Address","easy-wp-smtp"),value:"email"}],identity_value:"",verify_identity_step:1,verify_identity_result:{},loading_verify_identity:!1}},methods:{verifyIdentity:function(){if(this.loading_verify_identity)return;this.loading_verify_identity=!0;const e=this;this.$store.dispatch("$_settings/amazonSESRegisterIdentity",{value:this.identity_value,type:this.identity_type}).then((function(t){e.loading_verify_identity=!1,t.success&&t.data&&(e.verify_identity_result=t.data,e.verify_identity_step=2)}))},addNewIdentity:function(){this.show_identity_form=!0}}},Us=Bs,Vs=(0,d.Z)(Us,Fs,Ls,!1,null,null,null),Hs=Vs.exports,Gs={name:"WizardStepConfigureMailerAmazonSES",components:{SettingsInputText:Le,SettingsInputSelect:As,SettingsInputSwitch:Rt,SettingsAmazonSESIdentities:Hs},data(){return{mailer:"amazonses",text_client_id_label:(0,l.__)("Access Key ID","easy-wp-smtp"),text_client_secret_label:(0,l.__)("Secret Access Key",{NODE_ENV:"production",VUE_APP_TEXTDOMAIN:"easy-wp-smtp",VUE_APP_PRODUCT_NAME:"EasyWPSMTP",BASE_URL:""}.VUE_APP_TEXTclient_id),text_region_label:(0,l.__)("Region","easy-wp-smtp"),text_identities_label:(0,l.__)("SES Identities","easy-wp-smtp"),text_region_description:(0,l.__)("Please select the Amazon SES API region which is the closest to where your website is hosted. This can help to decrease network latency between your site and Amazon SES, which will speed up email sending.","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, your specified From Name will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Amazon SES","easy-wp-smtp"),text_no_ssl:(0,l.__)("Amazon SES requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out ","easy-wp-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","easy-wp-smtp"),text_no_ssl_diff_mailer:(0,l.__)("If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please go back and select a different mailer option.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.amazonses.description.substr(0,this.$easywpsmtp.mailer_options.amazonses.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-amazon-ses-mailer/",{content:"Read how to set up Amazon SES"}),regionOptions:this.$easywpsmtp.mailer_options.amazonses.region_options||[],fetching_identities:!1,is_ssl:this.$easywpsmtp.is_ssl,field_errors:[]}},computed:{...(0,ne.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,ne.vn)("$_settings",{identities_columns:"amazonses_identities.columns",identities:"amazonses_identities.data",display_identities:"amazonses_display_identities"}),...(0,ne.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:Cs()((function(){this.getIdentities()}),500),areRequiredFieldsValid(){return""===this.client_id&&this.field_errors.push("client_id"),""===this.client_secret&&this.field_errors.push("client_secret"),""===this.region&&this.field_errors.push("region"),""===this.from_email&&this.field_errors.push("from_email"),0===this.field_errors.length},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}},mounted(){this.getIdentities(),this.$easywpsmtp.is_ssl||(this.blocked_step=!0)}},qs=Gs,Ks=(0,d.Z)(qs,Ss,Ps,!1,null,"14aed061",null),js=Ks.exports,Ys=function(){var e=this,t=e._self._c;return t("div",[e.license_verified||e.is_valid_license?e._e():t("div",{staticClass:"license-form",class:{"license-form-error":e.license_error}},[t("p",{domProps:{innerHTML:e._s(e.text_license_form)}}),t("div",{staticClass:"license-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"}],attrs:{name:"license",type:"password",placeholder:e.text_license_input_placeholder,"aria-label":e.text_aria_label_for_license_input},domProps:{value:e.license},on:{input:function(t){t.target.composing||(e.license=t.target.value)}}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.handleLicenseSubmit.apply(null,arguments)}}},[e._v(" "+e._s(e.text_license_button)+" ")])]),e.license_error?t("p",{staticClass:"error-message",domProps:{textContent:e._s(e.text_license_error)}}):e._e()]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-gmail",class:{"easy-wp-smtp-setup-wizard-step-configure-mailer-settings--blocked":!e.license_verified&&!e.is_valid_license}},[t("p",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("p",{staticClass:"mailer-description mailer-description-links"},[t("b",[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])])]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-o-auth-connection",{attrs:{label:e.text_authorization_label,mailer:e.mailer,connected_email:e.connected_email_address,is_auth_required:e.is_auth_required}}),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_name",constant:"EasyWPSMTP_MAIL_FROM_NAME",label:e.text_from_name_label,description:e.text_from_name_description},model:{value:e.from_name,callback:function(t){e.from_name=t},expression:"from_name"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_name_force",constant:"EasyWPSMTP_MAIL_FROM_NAME_FORCE",label:e.text_force_from_name_label,description:e.text_force_from_name_description},model:{value:e.from_name_force,callback:function(t){e.from_name_force=t},expression:"from_name_force"}}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})],1)])])},Js=[],Xs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-oauth-connection"},[t("label",{staticClass:"settings-input-label-container"},[t("span",{staticClass:"label"},[e._v(e._s(e.label))]),e.tooltip?t("settings-info-tooltip",{attrs:{content:e.tooltip}}):e._e()],1),e.is_auth_required?t("div",{staticClass:"add-authorization-container"},[t("p",{staticClass:"description",domProps:{textContent:e._s(e.text_authorization_button_description)}}),"gmail"===e.mailer?t("button",{staticClass:"easy-wp-smtp-google-sign-in-btn",attrs:{type:"button",disabled:!e.are_client_details_ready},on:{click:function(t){return t.preventDefault(),e.authorize.apply(null,arguments)}}},[t("span",{staticClass:"easy-wp-smtp-google-sign-in-btn__icon"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(214),width:"46",height:"46"}})],1),t("span",{staticClass:"easy-wp-smtp-google-sign-in-btn__text"},[e._v(" "+e._s(e.text_google_authorization_button)+" ")])]):t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main easy-wp-smtp-button-small",attrs:{type:"button",disabled:!e.are_client_details_ready},on:{click:function(t){return t.preventDefault(),e.authorize.apply(null,arguments)}}},[e._v(" "+e._s(e.text_authorization_button)+" ")])]):t("div",{staticClass:"remove-authorization-container"},[e.connected_email?t("p",{staticClass:"description connected-as"},[t("span",{domProps:{innerHTML:e._s(e.text_connected_as_with_email)}}),e._v(" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(2546),width:"16",height:"16"}})],1):e._e(),"gmail"===e.mailer?t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.text_remove_authorization_button_description_google)}}):e._e(),t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.text_remove_authorization_button_description)}}),t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-red easy-wp-smtp-button-small",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.removeAuthorization.apply(null,arguments)}}},[e._v(" "+e._s(e.text_remove_authorization_button)+" ")])])])},Qs=[],ei={name:"SettingsOAuthConnection",components:{SettingsInfoTooltip:Ie},props:{label:String,mailer:String,connected_email:String,is_auth_required:Boolean,client_id:String,client_secret:String,tooltip:String,disabled:Boolean},data(){return{text_allow_button:(0,l.__)("Connect to %s","easy-wp-smtp"),text_google_authorization_button:(0,l.__)("Sign in with Google","easy-wp-smtp"),text_authorization_button_description_general:(0,l.__)("Before continuing, you'll need to allow this plugin to send emails using your %s account.","easy-wp-smtp"),text_remove_authorization_button:(0,l.__)("Remove OAuth Connection","easy-wp-smtp"),text_remove_authorization_button_description_google:(0,l.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 input the alias address in the From Email section below.","easy-wp-smtp"),'<a href="'+this.$getUTMUrl("https://easywpsmtp.com/docs/sending-wordpress-emails-from-a-gmail-alias/",{content:"Gmail aliases description - Follow these instructions"})+'" target="_blank" rel="noopener noreferrer">',"</a>"),text_remove_authorization_button_desc_template:(0,l.__)("Removing this OAuth connection will give you the ability to redo the OAuth connection or connect to different %s account.","easy-wp-smtp"),text_connected_as:(0,l.__)("Connected as","easy-wp-smtp")}},computed:{are_client_details_ready:function(){return"gmail"===this.mailer||!!this.client_id&&!!this.client_secret},mailer_name:function(){let e="Google";return"outlook"===this.mailer&&(e="Microsoft Outlook"),e},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} <b>${this.connected_email}</b>`}},methods:{authorize:function(){this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/getAuthUrl",this.mailer).then((function(e){e.success&&e.data.oauth_url&&(window.location.href=e.data.oauth_url)})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},removeAuthorization:function(){this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/removeAuth",this.mailer).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},removeUrlParam:function(e,t,s){t.delete(s),e.search=t.toString(),window.history.replaceState({},document.title,e.toString())},catchAuthNotice:function(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);let s="",i="",a=!1;switch(t.has("success")?(s=t.get("success"),a=!0,this.removeUrlParam(e,t,"success")):t.has("error")&&(s=t.get("error"),this.removeUrlParam(e,t,"error")),s){case"oauth_invalid_state":i=(0,l.__)("There was an error while processing the authentication request. The state key is invalid. Please try again.","easy-wp-smtp");break;case"google_unsuccessful_oauth":i=(0,l.__)("There was an error while processing the authentication request.","easy-wp-smtp");break;case"microsoft_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.","easy-wp-smtp");break;case"microsoft_invalid_nonce":i=(0,l.__)("There was an error while processing the authentication request. The nonce is invalid. Please try again.","easy-wp-smtp");break;case"microsoft_no_code":i=(0,l.__)("There was an error while processing the authentication request. The authorization code is missing. Please try again.","easy-wp-smtp");break;case"google_site_linked":i=(0,l.__)("You have successfully connected your site with your Gmail account. This site will now send emails via your Gmail account.","easy-wp-smtp");break;case"microsoft_site_linked":i=(0,l.__)("You have successfully linked the current site with your Microsoft API project. Now you can start sending emails through Outlook.","easy-wp-smtp");break}i.length>0&&this.$swal({title:a?(0,l.__)("Successful Authorization","easy-wp-smtp"):(0,l.__)("Authorization Error!","easy-wp-smtp"),text:i,width:550,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})}},mounted(){this.catchAuthNotice()}},ti=ei,si=(0,d.Z)(ti,Xs,Qs,!1,null,null,null),ii=si.exports,ai={name:"WizardStepConfigureMailerGmail",components:{SettingsInputText:Le,SettingsInputSwitch:Rt,SettingsOAuthConnection:ii},data(){return{mailer:"gmail",text_authorization_label:(0,l.__)("Authorization","easy-wp-smtp"),text_from_name_label:(0,l.__)("From Name","easy-wp-smtp"),text_force_from_name_label:(0,l.__)("Force From Name","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_force_from_name_description:(0,l.__)("If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),text_from_name_description:(0,l.__)("The name that emails are sent from.","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, your specified From Email Address will be used for all outgoing emails, regardless of values set by other plugins.","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up the Gmail mailer","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.gmail.description.substr(0,this.$easywpsmtp.mailer_options.gmail.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-gmail-mailer/#create-app",{content:"Read how to set up the Gmail mailer"}),redirect_uri:this.$easywpsmtp.mailer_options.gmail.redirect_uri,possible_send_as_emails:[],field_errors:[],license_verified:!1,license:"",license_error:!1,text_license_form:(0,l.__)("Gmail mailer requires a valid Easy WP SMTP Pro license. Please activate your license key.","easy-wp-smtp"),text_license_input_placeholder:(0,l.__)("Paste your license key here","easy-wp-smtp"),text_aria_label_for_license_input:(0,l.__)("License key input","easy-wp-smtp"),text_license_button:(0,l.__)("Verify License Key","easy-wp-smtp"),text_license_error:(0,l.__)("The License Key format is incorrect. Please enter a valid key and try again.","easy-wp-smtp")}},computed:{...(0,ne.vn)("$_settings",["settings.gmail.relay_credentials","settings.mail.from_email","settings.mail.from_name","settings.mail.from_email_force","settings.mail.from_name_force"]),...(0,ne.vn)("$_wizard",["blocked_step"]),...(0,D.Se)({connected_email_address:"$_settings/gmail_email",is_valid_license:"$_settings/is_valid_license"}),is_auth_required:function(){return!this.relay_credentials?.key||!this.relay_credentials?.token}},watch:{is_auth_required:function(e){this.blocked_step=e}},methods:{areRequiredFieldsValid(){let e=!0;return""===this.from_email&&(e=!1,this.field_errors.push("from_email")),e},removeFieldError(e){this.field_errors=this.field_errors.filter((t=>t!==e))},handleLicenseSubmit(){if(this.license_error=!1,this.license.length<16)return this.license_error=!0,!1;this.$store.dispatch("$_app/start_loading"),this.$store.dispatch("$_settings/verifyLicense",this.license).then((e=>{e.success?(this.license_verified=!0,this.$swal({title:(0,l.__)("Successful Verification!","easy-wp-smtp"),html:(0,l.__)("Now you can continue mailer configuration.","easy-wp-smtp"),width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})):this.$swal({title:(0,l.__)("Verification Error!","easy-wp-smtp"),html:e.data,width:450,showCloseButton:!0,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"}})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))}},mounted(){this.is_auth_required&&(this.blocked_step=!0)}},ni=ai,ri=(0,d.Z)(ni,Ys,Js,!1,null,null,null),oi=ri.exports,li=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-configure-mailer-settings easy-wp-smtp-setup-wizard-step-configure-mailer-settings-outlook"},[t("div",{staticClass:"mailer-description",domProps:{innerHTML:e._s(e.description)}}),t("div",{staticClass:"mailer-description mailer-description-links"},[t("a",{staticClass:"easy-wp-smtp-link",attrs:{href:e.documentation_link_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(e._s(e.text_documentation_link))])]),e.is_ssl?t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("settings-input-text",{attrs:{name:"client_id",constant:"EasyWPSMTP_OUTLOOK_CLIENT_ID",label:e.text_client_id_label,is_error:e.field_errors.includes("client_id")},on:{is_error_update:function(t){return e.removeFieldError("client_id")}},model:{value:e.client_id,callback:function(t){e.client_id=t},expression:"client_id"}}),t("settings-input-text",{attrs:{name:"client_secret",type:"password",constant:"EasyWPSMTP_OUTLOOK_CLIENT_SECRET",label:e.text_client_secret_label,is_error:e.field_errors.includes("client_secret")},on:{is_error_update:function(t){return e.removeFieldError("client_secret")}},model:{value:e.client_secret,callback:function(t){e.client_secret=t},expression:"client_secret"}}),t("settings-input-text",{attrs:{value:e.redirect_uri,name:"redirect_uri",label:e.text_redirect_uri_label,copy:"",readonly:""}}),t("settings-o-auth-connection",{attrs:{label:e.text_authorization_label,mailer:e.mailer,connected_email:e.connected_email_address,is_auth_required:e.is_auth_required,client_id:e.client_id,client_secret:e.client_secret}}),e.is_auth_required?e._e():[t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-big-margin"}),t("settings-input-text",{attrs:{name:"from_email",type:"email",constant:"EasyWPSMTP_MAIL_FROM",label:e.text_from_email_label,description:e.text_from_email_description,is_error:e.field_errors.includes("from_email")},on:{is_error_update:function(t){return e.removeFieldError("from_email")},error_detected:t=>e.errorDetected(t,"from_email")},model:{value:e.from_email,callback:function(t){e.from_email=t},expression:"from_email"}}),t("settings-input-switch",{attrs:{classname:"sub_setting",name:"from_email_force",constant:"EasyWPSMTP_MAIL_FROM_FORCE",label:e.text_force_from_email_label,description:e.text_force_from_email_description},model:{value:e.from_email_force,callback:function(t){e.from_email_force=t},expression:"from_email_force"}})]],2):t("div",{staticClass:"easy-wp-smtp-setup-wizard-form"},[t("div",{staticClass:"easy-wp-smtp-notice easy-wp-smtp-notice--error"},[t("p",[t("span",[e._v(e._s(e.text_no_ssl))]),e._v(" "),t("a",{attrs:{href:"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/",target:"_blank",rel:"noopener"}},[e._v(e._s(e.text_no_ssl_link_text))]),e._v(".")]),t("p",[e._v(e._s(e.text_no_ssl_diff_mailer))])])])])},pi=[],_i={name:"WizardStepConfigureMailerOutlook",components:{SettingsInputText:Le,SettingsInputSwitch:Rt,SettingsOAuthConnection:ii},data(){return{mailer:"outlook",text_client_id_label:(0,l.__)("Application ID","easy-wp-smtp"),text_client_secret_label:(0,l.__)("Application Password","easy-wp-smtp"),text_redirect_uri_label:(0,l.__)("Redirect URI","easy-wp-smtp"),text_authorization_label:(0,l.__)("Authorization","easy-wp-smtp"),text_documentation_link:(0,l.__)("Read how to set up Microsoft Outlook / 365","easy-wp-smtp"),text_no_ssl:(0,l.__)("Outlook / 365 requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out ","easy-wp-smtp"),text_no_ssl_link_text:(0,l.__)("WPBeginner's tutorial on how to set up SSL","easy-wp-smtp"),text_no_ssl_diff_mailer:(0,l.__)("If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please go back and select a different mailer option.","easy-wp-smtp"),text_from_email_label:(0,l.__)("From Email","easy-wp-smtp"),text_from_email_description:(0,l.__)("The email address that emails are sent from.","easy-wp-smtp"),text_force_from_email_label:(0,l.__)("Force From Email","easy-wp-smtp"),text_force_from_email_description:(0,l.__)("If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.","easy-wp-smtp"),description:this.$easywpsmtp.mailer_options.outlook.description.substr(0,this.$easywpsmtp.mailer_options.outlook.description.lastIndexOf("<p>")),documentation_link_url:this.$getUTMUrl("https://easywpsmtp.com/docs/setting-up-the-outlook-mailer/#microsoft-setup",{content:"Read how to set up Microsoft Outlook / 365"}),redirect_uri:this.$easywpsmtp.mailer_options.outlook.redirect_uri,field_errors:[],is_ssl:this.$easywpsmtp.is_ssl}},computed:{...(0,ne.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,ne.vn)("$_wizard",["blocked_step"]),...(0,D.Se)({connected_email_address:"$_settings/outlook_email"}),is_auth_required:function(){return!this.access_token||!this.refresh_token}},watch:{is_auth_required:function(e){this.blocked_step=e}},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(e){this.field_errors=this.field_errors.filter((t=>t!==e))},errorDetected(e,t){this.field_errors.push(t)}},mounted(){this.is_auth_required&&(this.blocked_step=!0),this.$easywpsmtp.is_ssl||(this.blocked_step=!0)}},ci=_i,mi=(0,d.Z)(ci,li,pi,!1,null,"4eebd63c",null),di=mi.exports,ui=function(){var e=this,t=e._self._c;return t("div",{staticClass:"easy-wp-smtp-setup-wizard-step easy-wp-smtp-setup-wizard-step-configure-email-logs"},[t("div",{staticClass:"easy-wp-smtp-setup-wizard-content-container"},[t("div",{staticClass:"easy-wp-smtp-configure-email-logs-header"},[t("the-wizard-step-counter"),t("content-header",{attrs:{title:e.text_header_title,subtitle:e.text_header_subtitle}})],1),t("div",{staticClass:"easy-wp-smtp-plugin-configure-email-logs"},[t("settings-input-long-checkbox",{attrs:{name:"log_email_content",label:e.text_log_email_content,description:e.text_log_email_content_desc},model:{value:e.log_email_content,callback:function(t){e.log_email_content=t},expression:"log_email_content"}}),t("settings-input-long-checkbox",{attrs:{name:"save_attachments",label:e.text_save_attachments,description:e.text_save_attachments_desc},model:{value:e.save_attachments,callback:function(t){e.save_attachments=t},expression:"save_attachments"}}),t("settings-input-long-checkbox",{attrs:{name:"open_email_tracking",label:e.text_open_email_tracking,description:e.text_open_email_tracking_desc},model:{value:e.open_email_tracking,callback:function(t){e.open_email_tracking=t},expression:"open_email_tracking"}}),t("settings-input-long-checkbox",{attrs:{name:"click_link_tracking",label:e.text_click_link_tracking,description:e.text_click_link_tracking_desc},model:{value:e.click_link_tracking,callback:function(t){e.click_link_tracking=t},expression:"click_link_tracking"}})],1)]),t("div",{staticClass:"easy-wp-smtp-separator easy-wp-smtp-separator-no-margin"}),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previousStep.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-left"},[t("inline-svg",{staticClass:"icon",attrs:{src:s(9238),width:"16",height:"22"}}),e._v(e._s(e.text_previous_step)+" ")],1)]),t("div",{staticClass:"easy-wp-smtp-setup-wizard-step-footer-buttons"},[t("button",{staticClass:"easy-wp-smtp-button easy-wp-smtp-button-main",attrs:{type:"submit",name:"next_step"},on:{click:function(t){return t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("span",{staticClass:"text-with-arrow text-with-arrow-right"},[e._v(" "+e._s(e.text_save)+" "),t("inline-svg",{staticClass:"icon",attrs:{src:s(7706),width:"16",height:"19"}})],1)])])])])},hi=[],fi={name:"WizardStepConfigureEmailLogs",components:{ContentHeader:h,TheWizardStepCounter:X,SettingsInputLongCheckbox:ye},data(){return{text_header_title:(0,l.__)("Configure Email Logs","easy-wp-smtp"),text_header_subtitle:(0,l.__)("You’ve chosen to enable email logging. Please select which additional email logging features you would like to use.","easy-wp-smtp"),text_save:(0,l.__)("Save and Continue","easy-wp-smtp"),text_previous_step:(0,l.__)("Previous Step","easy-wp-smtp"),text_log_email_content:(0,l.__)("Store the content for all sent emails","easy-wp-smtp"),text_log_email_content_desc:(0,l.__)("Email content may include sensitive information, such as plain text passwords. For security purposes, consider carefully whether to enable this option. All email content will be stored in your site's database. To resend emails from our Email Log, this option must be enabled.","easy-wp-smtp"),text_save_attachments:(0,l.__)("Save file attachments sent from WordPress","easy-wp-smtp"),text_save_attachments_desc:(0,l.__)("When enabled, all sent attachments will be saved to your WordPress Uploads folder. For sites that send a high volume of unique large attachments, this option could result in a disk space issue.","easy-wp-smtp"),text_open_email_tracking:(0,l.__)("Track when an email is opened","easy-wp-smtp"),text_open_email_tracking_desc:(0,l.__)("When enabled, the email log will note whether or not an email has been opened.","easy-wp-smtp"),text_click_link_tracking:(0,l.__)("Track when a link in an email is clicked","easy-wp-smtp"),text_click_link_tracking_desc:(0,l.__)("When enabled, the email log will note whether or not a link has been clicked in the specified email.","easy-wp-smtp")}},computed:{...(0,ne.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 e={value:{logs:{log_email_content:this.log_email_content,save_attachments:this.save_attachments,open_email_tracking:this.open_email_tracking,click_link_tracking:this.click_link_tracking}}};this.$store.dispatch("$_settings/updateSettings",e).then((e=>{e.success?this.nextStep():this.$easywpsmtp_error_toast({})})).finally((()=>{this.$store.dispatch("$_app/stop_loading")}))},previousStep(){this.$previous_step()},nextStep(){this.$next_step()}}},yi=fi,gi=(0,d.Z)(yi,ui,hi,!1,null,null,null),wi=gi.exports,bi=new n.ZP({routes:[{path:"*",redirect:"/"},{path:"/",name:"welcome",component:P},{path:"/step",name:"step",component:R,children:[{path:"choose_mailer",name:"choose_mailer_step",component:se},{path:"configure_mailer",name:"configure_mailer_step",component:pe,children:[{path:"smtp",name:"configure_mailer_step_smtp",component:Zt},{path:"sendlayer",name:"configure_mailer_step_sendlayer",component:qt},{path:"smtpcom",name:"configure_mailer_step_smtpcom",component:Qt},{path:"sendinblue",name:"configure_mailer_step_sendinblue",component:ns},{path:"mailgun",name:"configure_mailer_step_mailgun",component:cs},{path:"sendgrid",name:"configure_mailer_step_sendgrid",component:ys},{path:"postmark",name:"configure_mailer_step_postmark",component:ks},{path:"amazoneses",name:"configure_mailer_step_amazonses",component:js},{path:"gmail",name:"configure_mailer_step_gmail",component:oi},{path:"outlook",name:"configure_mailer_step_outlook",component:di}]},{path:"plugin_features",name:"plugin_features_step",component:ve},{path:"configure_email_logs",name:"configure_email_logs_step",component:wi},{path:"help_improve",name:"help_improve_step",component:He},{path:"license",name:"license_step",component:Qe},{path:"check_configuration",name:"check_configuration_step",component:nt},{path:"successful_configuration",name:"check_configuration_step_success",component:ct},{path:"failed_configuration",name:"check_configuration_step_failure",component:yt}]}],scrollBehavior(){return{x:0,y:0}}}),vi={name:"SetupWizardApp",router:bi,computed:{...(0,D.Se)({blocked:"$_app/blocked",loading:"$_app/loading"})}},xi=vi,ki=(0,d.Z)(xi,i,a,!1,null,null,null),Si=ki.exports,Pi=s(144),$i=s(9516);const Ci={install(e){window.easy_wp_smtp_vue&&(e.prototype.$easywpsmtp=window.easy_wp_smtp_vue),e.prototype.$isPro=Ei,e.prototype.$addQueryArg=Ti,e.prototype.$getUTMUrl=Mi}};function Ei(){return window.easy_wp_smtp_vue.is_pro}function Ti(e,t,s){var i=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(e.match(i))return e.replace(i,"$1"+t+"="+s+"$2");var a="";-1!==e.indexOf("#")&&(a=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));var n=-1!==e.indexOf("?")?"&":"?";return e+n+t+"="+s+a}function Mi(e,t){t={source:"WordPress",medium:"setup-wizard",campaign:Ei()?"plugin":"liteplugin",content:"general",...t};for(const[s,i]of Object.entries(t))e=Ti(e,`utm_${s}`,encodeURIComponent(i));return e}var Ii=Ci;const zi={install(e){e.prototype.$next_step=function(t=0){const s=e.prototype.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))+1+t;this.$router.push({name:e.prototype.$wizard_steps[s]})},e.prototype.$previous_step=function(t=0){let s="welcome";const i=e.prototype.$wizard_steps.findIndex((e=>this.$route.name.includes(e)))-1-t;i>=0&&(s=e.prototype.$wizard_steps[i]),this.$router.push({name:s})},e.prototype.$swal&&(e.prototype.$easywpsmtp_success_toast=function(t){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:r="success",timer:o=3e3,showCloseButton:p=!0,title:_=(0,l.__)("Settings Updated","easy-wp-smtp"),showCancelButton:c=!1,confirmButtonText:m="",cancelButtonText:d="",text:u=""}=t;return e.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:r,showCloseButton:p,title:_,timer:o,showCancelButton:c,confirmButtonText:m,cancelButtonText:d,text:u})},e.prototype.$easywpsmtp_error_toast=function(t){let{animation:s=!1,toast:i=!0,position:a="top-end",showConfirmButton:n=!1,icon:r="error",showCloseButton:o=!0,title:p=(0,l.__)("Could Not Save Changes","easy-wp-smtp"),text:_=""}=t;return e.prototype.$swal({animation:s,toast:i,position:a,showConfirmButton:n,icon:r,showCloseButton:o,title:p,text:_,onOpen:function(){e.prototype.$swal.hideLoading()}})},e.prototype.$easywpsmtp_error_modal=function(t){let{position:s="center",width:i=650,showConfirmButton:a=!0,confirmButtonText:n=(0,l.__)("Return to Mailer Settings","easy-wp-smtp"),customClass:r={container:"easy-wp-smtp-swal easy-wp-smtp-swal-error"},showCloseButton:o=!0,title:p=(0,l.__)("Whoops, we found an issue!","easy-wp-smtp"),subtitle:_=(0,l.__)("It looks like something went wrong...","easy-wp-smtp"),detailedError:c=""}=t;return e.prototype.$swal({position:s,width:i,showConfirmButton:a,confirmButtonText:n,customClass:r,showCloseButton:o,title:p,html:`\n\t\t\t\t\t\t<p class="subtitle">${_}</p>\n\t\t\t\t\t\t<div class="detailed-error">\n\t\t\t\t\t\t\t<h3>${(0,l.__)("Error Message:","easy-wp-smtp")}</h3>\n\t\t\t\t\t\t\t<div>${c}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t`,allowEscapeKey:!1,allowOutsideClick:!1,onOpen:function(){e.prototype.$swal.hideLoading()}})},e.prototype.$required_fields_modal=function(){return e.prototype.$swal({position:"center",width:450,showConfirmButton:!0,confirmButtonText:(0,l.__)("OK","easy-wp-smtp"),customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"},showCloseButton:!0,title:(0,l.__)("Heads up!","easy-wp-smtp"),text:(0,l.__)("Please fill out all the required fields to continue.","easy-wp-smtp"),allowEscapeKey:!1,allowOutsideClick:!1})})}};var Ai=zi,Fi=s(5121);const Li=function(e,t){return new Promise(((s,i)=>{let a=new FormData;a.append("action","easy_wp_smtp_vue_install_plugin"),a.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),a.append("slug",t),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,a).then((t=>{if(t.data.success)e.commit("PLUGIN_INSTALLED",t.data);else{let e="";je()(t.data,"data[0].message")?e=t.data.data[0].message:je()(t.data,"data")&&(e=t.data.data),Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like the plugin installation failed!","easy-wp-smtp"),detailedError:e})}s(t.data)})).catch((function(e){if(i(e),e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't install the plugin.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline. Plugin not installed.","easy-wp-smtp")})}))}))},Wi=function(e){return new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_partner_plugins_info"),i.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,i).then((s=>{s.data.success?e.commit("PLUGINS_FETCHED",s.data):Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't fetch plugins information.","easy-wp-smtp")}),t(s.data)})).catch((function(e){if(s(e),e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't fetch plugins information.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline. Plugin information not retrieved.","easy-wp-smtp")})}))}))};var Ri={installPlugin:Li,fetchPlugins:Wi};const Ni=function(e,t){return Ri.installPlugin(e,t)},Oi=function(e){return Ri.fetchPlugins(e)};var Di={installPlugin:Ni,getPlugins:Oi};const Zi=e=>e.plugins,Bi=e=>e.plugins.filter((e=>"wpforms-lite"!==e.slug)),Ui=e=>e.contact_form_plugin_already_installed;var Vi={getField:ne.rz,plugins:Zi,partner_plugins:Bi,contact_form_plugin_already_installed:Ui};const Hi=(e,t)=>{e.plugins.map((s=>(s.slug===t.data.slug&&(s.is_installed=t.data.is_installed,s.is_activated=t.data.is_activated),"wpforms-lite"===t.data.slug&&(e.contact_form_plugin_already_installed=!0),s)))},Gi=(e,t)=>{e.plugins=t.data.plugins,e.contact_form_plugin_already_installed=t.data.contact_form_plugin_already_installed};var qi={updateField:ne.L4,PLUGIN_INSTALLED:Hi,PLUGINS_FETCHED:Gi};const Ki={plugins:[],contact_form_plugin_already_installed:!1,smart_contact_form_setting:!0};var ji={namespaced:!0,state:Ki,actions:Di,getters:Vi,mutations:qi};const Yi=e=>new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_settings"),i.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(t){if(e.dispatch("$_app/block",!1,{root:!0}),t.response){const e=t.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load the settings.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),e.status,e.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))})),Ji=(e,t)=>new Promise(((e,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_get_amazon_ses_identities"),i.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),!1!==t&&i.append("value",JSON.stringify(t)),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve Amazon SES Identities.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't retrieve Amazon SES Identities.","easy-wp-smtp")})}))})),Xi=(e,t)=>new Promise(((e,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_amazon_ses_identity_registration"),i.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),!1!==t.value&&i.append("value",t.value),!1!==t.value&&i.append("type",t.type),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,i).then((t=>{t.data.success?e(t.data):s(t.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Can't register the Amazon SES Identity","easy-wp-smtp")})}))})),Qi=(e,t)=>new Promise((e=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_update_settings"),s.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),void 0!==t.overwrite&&s.append("overwrite",t.overwrite),!1!==t.value&&s.append("value",JSON.stringify(t.value)),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,s).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't save the settings.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Network error encountered. Settings not saved.","easy-wp-smtp")})}))})),ea=(e,t)=>new Promise((e=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_import_settings"),s.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),!1!==t.value&&s.append("value",t.value),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,s).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't import the plugin settings.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("Network error encountered. SMTP plugin import failed!","easy-wp-smtp")})}))})),ta=function(e,t){return new Promise(((s,i)=>{let a=new FormData;a.append("action","easy_wp_smtp_vue_get_oauth_url"),a.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),!1!==e&&a.append("mailer",e),!1!==t&&a.append("settings",JSON.stringify(t)),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,a).then((e=>{e.data.success?s(e.data):i(e.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load authentication details.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))}))},sa=function(e){return new Promise(((t,s)=>{let i=new FormData;i.append("action","easy_wp_smtp_vue_remove_oauth_connection"),i.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),!1!==e&&i.append("mailer",e),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,i).then((e=>{e.data.success?t(e.data):s(e.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't remove OAuth connection.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))}))},ia=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_subscribe_to_newsletter"),s.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),s.append("email",e),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))},aa=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_verify_license_key"),s.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),s.append("license_key",e),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))},na=function(e){return new Promise((t=>{let s=new FormData;s.append("action","easy_wp_smtp_vue_upgrade_plugin"),s.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),s.append("license_key",e),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,s).then((e=>{t(e.data)}))}))};var ra={fetchSettings:Yi,saveSettings:Qi,importOtherPluginSettings:ea,fetchAmazonSESIdentities:Ji,amazonSESRegisterIdentity:Xi,getAuthRedirect:ta,removeAuth:sa,subscribeToNewsletter:ia,verifyLicense:aa,upgradePlugin:na};const oa=e=>ra.fetchSettings(e).then((t=>{e.commit("SETTINGS_UPDATED",t.data)})).catch((e=>{if(e.data)return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load existing settings.","easy-wp-smtp"),detailedError:e.data})})),la=e=>{const t=e.getters.settings.amazonses;if(0!==Object.keys(t).length)return ra.fetchAmazonSESIdentities(e,t).then((t=>{e.commit("AMAZONSES_IDENTITIES_UPDATED",t),Pi.ZP.swal.close()})).catch((e=>{Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't retrieve the Amazon SES Identities.","easy-wp-smtp"),detailedError:e.data?e.data:""})}))},pa=(e,t)=>ra.amazonSESRegisterIdentity(e,t).catch((e=>{Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't register the Amazon SES Identity.","easy-wp-smtp"),detailedError:e.data})})),_a=(e,t)=>{e.commit("MAILER_UPDATE",t)},ca=(e,t)=>new Promise((function(s){e.commit("LOGS_UPDATE",t),s({success:!0})})),ma=(e,t)=>new Promise((function(s){e.commit("SUMMARY_REPORT_EMAIL_UPDATE",t),s({success:!0})})),da=(e,t)=>{e.commit("SETTINGS_SAVE_START");let s=ra.saveSettings(e,t);return s.then((function(){e.commit("SETTINGS_SAVE_END")})),s},ua=e=>{const t=e.getters.settings;e.commit("SETTINGS_SAVE_START");let s=ra.saveSettings(e,{value:t});return s.then((function(){e.commit("SETTINGS_SAVE_END")})),s},ha=(e,t)=>(e.commit("SETTINGS_SAVE_START"),new Promise((function(s){ra.importOtherPluginSettings(e,t).then((function(t){e.commit("SETTINGS_SAVE_END"),t.success?oa(e).then((function(){s(!0)})):s(!1)}))}))),fa=(e,t)=>ra.getAuthRedirect(t,e.getters.settings[t]).catch((e=>{Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't load oAuth redirect.","easy-wp-smtp"),detailedError:e.data})})),ya=(e,t)=>ra.removeAuth(t).then((function(){e.commit("SETTINGS_REMOVE_AUTH",t)})).catch((e=>{Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't remove oAuth connection.","easy-wp-smtp"),detailedError:e.data})})),ga=(e,t)=>new Promise((s=>{e.commit("SETTINGS_SAVE_PLUGIN_FEATURES",t),s({success:!0,features:t})})),wa=(e,t)=>ra.subscribeToNewsletter(t),ba=(e,t)=>ra.verifyLicense(t),va=(e,t)=>ra.upgradePlugin(t);var xa={getSettings:oa,updateSettings:da,importOtherPlugin:ha,setMailer:_a,setLogs:ca,setSummaryReportEmail:ma,saveCurrentSettings:ua,getAmazonSESIdentities:la,amazonSESRegisterIdentity:pa,getAuthUrl:fa,removeAuth:ya,savePluginFeatures:ga,subscribeToNewsletter:wa,verifyLicense:ba,upgradePlugin:va};const ka=e=>e.settings,Sa=e=>e.settings.mail.mailer,Pa=e=>e.settings.outlook.user_details?e.settings.outlook.user_details.email:null,$a=e=>e.settings.gmail.user_details?e.settings.gmail.user_details.email:null,Ca=e=>e.plugin_features,Ea=e=>!!e.settings.logs.enabled&&e.settings.logs.enabled,Ta=e=>!e.settings.general.summary_report_email_disabled,Ma=e=>"string"===typeof e.settings.license.key&&e.settings.license.key.length>0&&!e.settings.license.is_expired&&!e.settings.license.is_disabled&&!e.settings.license.is_invalid,Ia=e=>t=>{let s=!1;const i=e.amazonses_identities.data,a=t.split("@").pop();return void 0!==i&&(i.forEach((e=>{("email"===e.type&&e.value===t||"domain"===e.type&&e.value===a)&&(s=!0)})),s)};var za={getField:ne.rz,settings:ka,mailer:Sa,outlook_email:Pa,gmail_email:$a,plugin_features:Ca,amazonses_is_email_registered:Ia,email_log_enabled:Ea,summary_report_email_enabled:Ta,is_valid_license:Ma},Aa=s(2378),Fa=s.n(Aa);const La=(e,t)=>{e.is_saving=!1,e.settings=Fa()(e.settings,t)},Wa=(e,t)=>{e.amazonses_identities=t.data},Ra=(e,t)=>{e.settings.mail.mailer=t},Na=(e,t)=>{e.settings.logs.enabled=t},Oa=(e,t)=>{e.settings.general.summary_report_email_disabled=t},Da=e=>{e.is_saving=!0},Za=e=>{e.is_saving=!1},Ba=(e,t)=>{const s=e.settings[t];e.settings[t]={client_id:s.client_id,client_secret:s.client_secret}},Ua=(e,t)=>{e.plugin_features=t};var Va={updateField:ne.L4,SETTINGS_UPDATED:La,SETTINGS_SAVE_START:Da,SETTINGS_SAVE_END:Za,MAILER_UPDATE:Ra,LOGS_UPDATE:Na,SUMMARY_REPORT_EMAIL_UPDATE:Oa,AMAZONSES_IDENTITIES_UPDATED:Wa,SETTINGS_REMOVE_AUTH:Ba,SETTINGS_SAVE_PLUGIN_FEATURES:Ua};const Ha={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:""},postmark:{server_api_token:"",message_stream:""},amazonses:{client_id:"",client_secret:"",region:"us-east-1"},outlook:{client_id:"",client_secret:"",access_token:{},refresh_token:"",user_details:{email:""}},gmail:{relay_credentials:{key:"",token:"",project_id:""},user_details:{email:""}},logs:{enabled:!1,log_email_content:!1,save_attachments:!1,open_email_tracking:!1,click_link_tracking:!1},general:{summary_report_email_disabled:!1},license:{key:"",is_expired:!1,is_disabled:!1,is_invalid:!1}},amazonses_identities:{},amazonses_display_identities:window.easy_wp_smtp_vue.mailer_options.amazonses.display_identities,plugin_features:[]};var Ga={namespaced:!0,state:Ha,actions:xa,getters:za,mutations:Va};const qa=()=>new Promise((e=>{let t=new FormData;t.append("action","easy_wp_smtp_vue_check_mailer_configuration"),t.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,t).then((t=>{e(t.data)})).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't perform the mailer configuration check.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))})),Ka=e=>{let t=new FormData;t.append("action","easy_wp_smtp_vue_send_feedback"),t.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),t.append("data",JSON.stringify(e)),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,t).catch((function(e){if(e.response){const t=e.response;return Pi.ZP.prototype.$easywpsmtp_error_modal({subtitle:(0,l.__)("It looks like we can't send the feedback.","easy-wp-smtp"),detailedError:(0,l.gB)((0,l.__)("%1$s, %2$s","easy-wp-smtp"),t.status,t.statusText)})}Pi.ZP.prototype.$easywpsmtp_error_toast({title:(0,l.__)("You appear to be offline.","easy-wp-smtp")})}))},ja=()=>{let e=new FormData;e.append("action","easy_wp_smtp_vue_wizard_steps_started"),e.append("nonce",Pi.ZP.prototype.$easywpsmtp.nonce),Fi.Z.post(Pi.ZP.prototype.$easywpsmtp.ajax_url,e)};var Ya={checkMailerConfiguration:qa,sendFeedback:Ka,started:ja};const Ja=()=>Ya.checkMailerConfiguration(),Xa=(e,t)=>{Ya.sendFeedback(t)},Qa=()=>{Ya.started()};var en={checkMailerConfiguration:Ja,sendFeedback:Xa,started:Qa};const tn=e=>e.blocked_step,sn=e=>e.current_user_email;var an={getField:ne.rz,blocked_step:tn,current_user_email:sn},nn={updateField:ne.L4};const rn={blocked_step:!1,current_user_email:window.easy_wp_smtp_vue.current_user_email};var on={namespaced:!0,state:rn,actions:en,getters:an,mutations:nn};const ln=e=>{e.commit("INIT")},pn=e=>{e.commit("BLOCK_APP")},_n=e=>{e.commit("UNBLOCK_APP")},cn=e=>{e.commit("APP_LOADING_START")},mn=e=>{e.commit("APP_LOADING_STOP")};var dn={init:ln,block:pn,unblock:_n,start_loading:cn,stop_loading:mn};const un=e=>e.blocked,hn=e=>e.loading,fn=e=>e.easywpsmtp;var yn={blocked:un,loading:hn,easywpsmtp:fn};const gn=()=>{},wn=e=>{e.blocked=!0},bn=e=>{e.blocked=!1},vn=e=>{e.loading=!0},xn=e=>{e.loading=!1};var kn={INIT:gn,BLOCK_APP:wn,UNBLOCK_APP:bn,APP_LOADING_START:vn,APP_LOADING_STOP:xn};const Sn={blocked:!1,loading:!1,easywpsmtp:window.easy_wp_smtp_vue?window.easy_wp_smtp_vue:{}};var Pn={namespaced:!0,state:Sn,actions:dn,getters:yn,mutations:kn};const $n=e=>{e.subscribe(((t,s)=>{if("$_app/INIT"===t.type){const t=s["$_app"].easywpsmtp.versions;let i="",a="";t.wp_version_below_52&&(i=(0,l.__)("Yikes! WordPress Update Required","easy-wp-smtp"),a=(0,l.gB)((0,l.__)("Easy WP SMTP has detected that your site is running an outdated version of WordPress (%s). Easy WP SMTP requires at least WordPress version 5.2.","easy-wp-smtp"),t.wp_version)),Pi.ZP.prototype.$swal&&i.length&&(e.dispatch("$_app/block"),Pi.ZP.prototype.$swal.close(),Pi.ZP.prototype.$swal({title:i,html:`<p>${a}</p><p><a href="${Pi.ZP.prototype.$easywpsmtp.exit_url}">${(0,l.__)("Return to Plugin Settings","easy-wp-smtp")}</a></p>`,customClass:{container:"easy-wp-smtp-swal easy-wp-smtp-swal-alert"},allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,showConfirmButton:!1,onOpen:function(){Pi.ZP.prototype.$swal.hideLoading()}}))}}))};var Cn=$n;Pi.ZP.use(D.ZP);const En=[Cn];var Tn=new D.ZP.Store({modules:{$_app:Pn,$_plugins:ji,$_settings:Ga,$_wizard:on},plugins:En}),Mn=s(7575),In=(s(528),s(4952));const zn=document.getElementById("easy-wp-smtp-vue-setup-wizard");Pi.ZP.config.productionTip=!1,s.p=window.easy_wp_smtp_vue.public_url,Pi.ZP.use(In.InlineSvgPlugin),Pi.ZP.use(n.ZP),Pi.ZP.use($i.Z),Pi.ZP.use(Mn.ZP,{defaultTemplate:'<div class="easy-wp-smtp-tooltip" role="tooltip"><div class="easy-wp-smtp-tooltip-arrow"></div><div class="easy-wp-smtp-tooltip-inner"></div></div>',defaultArrowSelector:".easy-wp-smtp-tooltip-arrow, .easy-wp-smtp-tooltip__arrow",defaultInnerSelector:".easy-wp-smtp-tooltip-inner, .easy-wp-smtp-tooltip__inner"}),Pi.ZP.use(Ii),(0,l.l5)(window.easy_wp_smtp_vue.translations,"easy-wp-smtp");const An={install(e){e.prototype.$wizard_steps=[],e.prototype.$wizard_steps.push("choose_mailer_step"),e.prototype.$wizard_steps.push("configure_mailer_step"),e.prototype.$wizard_steps.push("plugin_features_step"),e.prototype.$easywpsmtp&&e.prototype.$easywpsmtp.is_pro&&e.prototype.$wizard_steps.push("configure_email_logs_step"),e.prototype.$easywpsmtp&&!e.prototype.$easywpsmtp.is_pro&&e.prototype.$wizard_steps.push("help_improve_step"),e.prototype.$wizard_steps.push("license_step"),e.prototype.$wizard_steps.push("check_configuration_step")}};Pi.ZP.use(An),Pi.ZP.use(Ai),new Pi.ZP({store:Tn,mounted:()=>{Tn.dispatch("$_app/init")},render:e=>e(Si)}).$mount(zn)},7630:function(e,t,s){var i={"./loading-white.svg":9438,"./loading.svg":7061};function a(e){var t=n(e);return s(t)}function n(e){if(!s.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=n,e.exports=a,a.id=7630},5016:function(e,t,s){var i={"./amazonses.svg":7557,"./brevo.svg":2451,"./gmail.svg":7526,"./mailgun.svg":5567,"./outlook.svg":6703,"./postmark.svg":5699,"./sendgrid.svg":2763,"./sendlayer.svg":9857,"./smtp.svg":450,"./smtpcom.svg":7536};function a(e){var t=n(e);return s(t)}function n(e){if(!s.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=n,e.exports=a,a.id=5016},9438:function(e,t,s){"use strict";e.exports=s.p+"img/loading-white.svg"},7061:function(e,t,s){"use strict";e.exports=s.p+"img/loading.svg"},6520:function(e,t,s){"use strict";e.exports=s.p+"img/loading-ESMTP.svg"},1122:function(e,t,s){"use strict";e.exports=s.p+"img/arrow.svg"},214:function(e,t,s){"use strict";e.exports=s.p+"img/gmail-sign-in-btn.svg"},5561:function(e,t,s){"use strict";e.exports=s.p+"img/check-circle-solid-white.svg"},2546:function(e,t,s){"use strict";e.exports=s.p+"img/check-circle-solid.svg"},1151:function(e,t,s){"use strict";e.exports=s.p+"img/check-solid-thin.svg"},7579:function(e,t,s){"use strict";e.exports=s.p+"img/check-solid.svg"},8098:function(e,t,s){"use strict";e.exports=s.p+"img/copy-solid.svg"},4186:function(e,t,s){"use strict";e.exports=s.p+"img/exclamation-circle-solid.svg"},2411:function(e,t,s){"use strict";e.exports=s.p+"img/info-circle-solid.svg"},4523:function(e,t,s){"use strict";e.exports=s.p+"img/lock-solid.svg"},9238:function(e,t,s){"use strict";e.exports=s.p+"img/long-arrow-alt-left-regular.svg"},7706:function(e,t,s){"use strict";e.exports=s.p+"img/long-arrow-alt-right-regular.svg"},8021:function(e,t,s){"use strict";e.exports=s.p+"img/question-circle.svg"},3481:function(e,t,s){"use strict";e.exports=s.p+"img/star-solid.svg"},3531:function(e,t,s){"use strict";e.exports=s.p+"img/times-solid.svg"},6375:function(e,t,s){"use strict";e.exports=s.p+"img/logo.svg"},7557:function(e,t,s){"use strict";e.exports=s.p+"img/amazonses.svg"},2451:function(e,t,s){"use strict";e.exports=s.p+"img/brevo.svg"},7526:function(e,t,s){"use strict";e.exports=s.p+"img/gmail.svg"},5567:function(e,t,s){"use strict";e.exports=s.p+"img/mailgun.svg"},6703:function(e,t,s){"use strict";e.exports=s.p+"img/outlook.svg"},5699:function(e,t,s){"use strict";e.exports=s.p+"img/postmark.svg"},2763:function(e,t,s){"use strict";e.exports=s.p+"img/sendgrid.svg"},9857:function(e,t,s){"use strict";e.exports=s.p+"img/sendlayer.svg"},450:function(e,t,s){"use strict";e.exports=s.p+"img/smtp.svg"},7536:function(e,t,s){"use strict";e.exports=s.p+"img/smtpcom.svg"},330:function(e,t,s){"use strict";e.exports=s.p+"img/pro-badge.svg"},5134:function(e,t,s){"use strict";e.exports=s.p+"img/success-configuration.svg"},7764:function(e,t,s){"use strict";e.exports=s.p+"img/working.svg"}},t={};function s(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=e,function(){var e=[];s.O=function(t,i,a,n){if(!i){var r=1/0;for(_=0;_<e.length;_++){i=e[_][0],a=e[_][1],n=e[_][2];for(var o=!0,l=0;l<i.length;l++)(!1&n||r>=n)&&Object.keys(s.O).every((function(e){return s.O[e](i[l])}))?i.splice(l--,1):(o=!1,n<r&&(r=n));if(o){e.splice(_--,1);var p=a();void 0!==p&&(t=p)}}return t}n=n||0;for(var _=e.length;_>0&&e[_-1][2]>n;_--)e[_]=e[_-1];e[_]=[i,a,n]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){s.p=""}(),function(){var e={32:0};s.O.j=function(t){return 0===e[t]};var t=function(t,i){var a,n,r=i[0],o=i[1],l=i[2],p=0;if(r.some((function(t){return 0!==e[t]}))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);if(l)var _=l(s)}for(t&&t(i);p<r.length;p++)n=r[p],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(_)},i=self["easywpsmtpjsonp"]=self["easywpsmtpjsonp"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}();var i=s.O(void 0,[998],(function(){return s(4126)}));i=s.O(i)})();