=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var s=n.completion;if("throw"===s.type){var i=s.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,s){return this.delegate={iterator:A(e),resultName:n,nextLoc:s},"next"===this.method&&(this.arg=t),m}},e}function Lt(t,e,n,s,i,o,r){try{var a=t[o](r),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(s,i)}const jt={name:"FluentMailSupport",data:function(){return{plugins:{fluentform:{slug:"fluentform",title:"Fluent Forms",subtitle:this.$t("Fastest Contact Form Builder Plugin for WordPress"),description:'Fluent Forms '.concat(this.$t("__FF_DESC"),"
"),btn_text:this.$t("Install Fluent Forms (Free)"),btn_class:"",plugin_url:"https://wordpress.org/plugins/fluentform"},fluent_crm:{slug:"fluent-crm",title:"FluentCRM",subtitle:this.$t("Email Marketing Automation and CRM Plugin for WordPress"),description:'FluentCRM '.concat(this.$t("__FC_DESC"),"
"),btn_text:this.$t("Install FluentCRM (Free)"),btn_class:"fss_fluentcrm_btn",plugin_url:"https://wordpress.org/plugins/fluent-crm/"},ninja_tables:{slug:"ninja-tables",title:"Ninja Tables",subtitle:this.$t("Best WP DataTables Plugin for WordPress"),description:"".concat(this.$t("__NT_DESC"),"
").concat(this.$t("Meet "),'Ninja Tables,').concat(this.$t("__NT_DESC_EXT"),"
"),btn_text:this.$t("Install Ninja Tables (Free)"),btn_class:"fss_ninjatables_btn",plugin_url:"https://wordpress.org/plugins/ninja-tables/"}},installing:!1,installed_info:!1,installed_message:"",contributors:[],contributorsLoading:!1}},mounted:function(){this.fetchContributors()},computed:{plugin:function(){if(this.appVars.disable_recommendation)return!1;var t=[];return this.appVars.has_fluentform||t.push(this.plugins.fluentform),this.appVars.has_ninja_tables||t.push(this.plugins.ninja_tables),this.appVars.has_fluentcrm||t.push(this.plugins.fluent_crm),!!t.length&&At()(t)}},methods:{installPlugin:function(t){var e=this;this.installing=!0,this.$post("install_plugin",{plugin_slug:t}).then((function(t){e.installed_info=t.info,e.installed_message=t.message})).fail((function(t){e.$notify.error(t.responseJSON.data.message),alert(t.responseJSON.data.message)})).always((function(){e.installing=!1}))},fetchContributors:function(){var t,e=this;return(t=Nt().mark((function t(){return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.contributorsLoading=!0,t.prev=1,t.next=4,fetch("https://api.github.com/repos/WPManageNinja/fluent-smtp/contributors").then((function(t){return t.json()})).then((function(t){e.contributors=t.slice(0,20),e.contributorsLoading=!1}));case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e.contributorsLoading=!1;case 9:case"end":return t.stop()}}),t,null,[[1,6]])})),function(){var e=this,n=arguments;return new Promise((function(s,i){var o=t.apply(e,n);function r(t){Lt(o,s,i,r,a,"next",t)}function a(t){Lt(o,s,i,r,a,"throw",t)}r(void 0)}))})()}}};const Ft=(0,i.Z)(jt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fss_support"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{sm:24,md:12}},[e("div",{staticClass:"fss_about"},[e("div",{staticClass:"fss_header"},[t._v("About")]),t._v(" "),e("div",{staticClass:"fss_content"},[e("p",[e("a",{attrs:{href:t.appVars.plugin_url,target:"_blank",rel:"noopener"}},[t._v("FluentSMTP")]),t._v(" "),e("span"),t._v(t._s(t.$t("__ABOUT_INTRO"))+"\n ")]),t._v(" "),e("p",[t._v("\n "+t._s(t.$t("__ABOUT_BY"))+"\n ")]),t._v(" "),e("div",[e("p",[t._v(t._s(t.$t("FluentSMTP is built using the following open-source libraries and software")))]),t._v(" "),e("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[e("li",[t._v("VueJS")]),t._v(" "),e("li",[t._v("ChartJS")]),t._v(" "),e("li",[t._v("Lodash")]),t._v(" "),e("li",[t._v("WordPress API")])]),t._v(" "),e("p",[t._v("\n "+t._s(t.$t("If you find an issue or have a suggestion please "))+"\n "),e("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://github.com/WPManageNinja/fluent-smtp/issues"}},[t._v("\n "+t._s(t.$t("open an issue on GitHub"))+"\n ")]),t._v(".\n "),e("br")]),e("p",{domProps:{innerHTML:t._s(t.$t("__GIT_CONTRIBUTE"))}}),t._v(" "),e("p"),t._v(" "),e("p",[t._v(t._s(t.$t("Please "))),e("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v(t._s(t.$t("read the documentation here")))])])])])]),t._v(" "),e("div",{staticClass:"fss_about"},[e("div",{staticClass:"fss_header"},[t._v(t._s(t.$t("Contributors")))]),t._v(" "),e("div",{staticClass:"fss_content"},[e("p",[t._v(t._s(t.$t("__ABOUT_POWERED")))]),t._v(" "),t.contributorsLoading?e("el-skeleton",{attrs:{rows:4,animated:!0}}):t._e(),t._v(" "),e("a",{attrs:{target:"_blank",href:"https://github.com/WPManageNinja/fluent-smtp/graphs/contributors"}},[t.contributors.length>0?e("ul",{directives:[{name:"loading",rawName:"v-loading",value:t.contributorsLoading,expression:"contributorsLoading"}],staticStyle:{"list-style":"none",display:"flex","flex-direction":"row","flex-wrap":"wrap"}},t._l(t.contributors,(function(t){return e("li",{key:t.id},[e("p",{attrs:{title:t.login}},[e("img",{staticStyle:{width:"60px",height:"60px","border-radius":"50%"},attrs:{src:t.avatar_url,alt:t.login}})])])})),0):t.contributorsLoading||t.contributors.length?t._e():e("div",{staticStyle:{"text-align":"center"}},[e("img",{attrs:{title:"Contributors",src:t.appVars.images_url+"contributors.png"}})])])],1)])]),t._v(" "),e("el-col",{attrs:{sm:24,md:12}},[t.plugin||t.installed_info?e("div",[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],staticClass:"fss_about",attrs:{"element-loading-text":"Installing... Please wait"}},[e("div",{staticClass:"fss_header"},[t._v("Recommended Plugin")]),t._v(" "),e("div",{staticClass:"fss_content"},[t.installed_info?e("div",{staticClass:"install_success"},[e("h3",[t._v(t._s(t.installed_message))]),t._v(" "),e("a",{staticClass:"el-button el-button--success installed_dashboard_url",attrs:{href:t.installed_info.admin_url}},[t._v(t._s(t.installed_info.title))])]):e("div",{staticClass:"fss_plugin_block"},[e("div",{staticClass:"fss_plugin_title"},[e("h3",[t._v(t._s(t.plugin.title))]),t._v(" "),e("p",[t._v(t._s(t.plugin.subtitle))])]),t._v(" "),e("div",{staticClass:"fss_plugin_body"},[e("div",{domProps:{innerHTML:t._s(t.plugin.description)}}),t._v(" "),e("div",{staticClass:"fss_install_btn"},[t.appVars.disable_installation?e("a",{staticClass:"el-button el-button--success fss_ninjatables_btn",attrs:{href:t.plugin.plugin_url,target:"_blank",rel:"noopener"}},[e("span",[t._v("View "+t._s(t.plugin.title))])]):e("el-button",{class:t.plugin.btn_class,attrs:{type:"success"},on:{click:function(e){return t.installPlugin(t.plugin.slug)}}},[t._v(t._s(t.plugin.btn_text)+"\n ")])],1)])])])])]):t._e(),t._v(" "),e("div",{staticClass:"fss_about"},[e("div",{staticClass:"fss_header"},[t._v("Community")]),t._v(" "),e("div",{staticClass:"fss_content"},[e("p",[t._v(t._s(t.$t("__ABOUT_COMMUNITY")))]),t._v(" "),e("p",[t._v(t._s(t.$t("__ABOUT_JOIN")))]),t._v(" "),e("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[e("li",[e("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentforms"}},[t._v(t._s(t.$t("Join FluentForms Facebook Community")))])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentcrm"}},[t._v(t._s(t.$t("Join FluentCRM Facebook Community")))])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5"}},[t._v(t._s(t.$t("Write a review (really appreciate 😊)")))])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v(t._s(t.$t("Read the documentation")))])])])])])])],1)],1)}),[],!1,null,null,null).exports;var Mt=n(3149),Dt=n.n(Mt);const Rt={name:"Documentations",data:function(){return{search:"",fetching:!1,docs:[],utl_param:"?utm_source=wp&utm_medium=doc&utm_campaign=doc"}},computed:{doc_cats:function(){if(!this.docs.length)return[];var t={item_4:{label:"Getting Started",docs:[]},item_5:{label:"Connect With Your Email Providers",docs:[]},item_6:{label:"Functionalities",docs:[]}};return j()(this.docs,(function(e){var n="item_"+e.category.value;t[n]||(t[n]={label:e.category.label,cat_id:e.category.value,docs:[]}),t[n].docs.push(e)})),Object.values(t)},search_items:function(){var t=this;return this.search&&this.docs.length?Dt()(this.docs,(function(e){return e.title.includes(t.search)||e.content.includes(t.search)})):[]}},methods:{openSearch:function(){},fetchDocs:function(){var t=this;this.fetching=!0,this.$get("docs").then((function(e){t.docs=e.docs})).catch((function(t){console.log(t)})).always((function(){t.fetching=!1}))}},mounted:function(){this.fetchDocs()}};const zt=(0,i.Z)(Rt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fc_docs"},[e("div",{staticClass:"fc_doc_header text-align-center",staticStyle:{"max-width":"800px",margin:"50px auto",padding:"0px 20px","text-align":"center"}},[e("h1",[t._v(t._s(t.$t("How can we help you?")))]),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.$t("__SUPPORT_INTRO"))}}),t._v(" "),e("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],attrs:{clearable:"",disabled:t.fetching,size:"large",placeholder:t.$t("Search Type and Enter...")},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1),t._v(" "),t.search?e("div",{staticClass:"search_result"},[e("div",{staticClass:"fc_doc_items"},[e("div",{staticClass:"fc_doc_header"},[e("h3",[t._v(t._s(t.$t("Search Results for"))+": "+t._s(t.search))])]),t._v(" "),e("div",{staticClass:"fc_doc_lists"},[t.search_items.length?e("ul",t._l(t.search_items,(function(n){return e("li",{key:n.id},[e("a",{attrs:{target:"_blank",href:n.link+t.utl_param},domProps:{innerHTML:t._s(n.title)}})])})),0):e("p",[t._v(t._s(t.$t("Sorry! No docs found")))])])])]):t._e()],1),t._v(" "),t.fetching?e("el-skeleton",{staticClass:"doc_body fss_content",attrs:{animated:!0,rows:8}}):e("div",{staticClass:"doc_body"},t._l(t.doc_cats,(function(n,s){return e("div",{key:s,staticClass:"doc_each_items"},[e("div",{staticClass:"fc_doc_items"},[e("div",{staticClass:"fc_doc_header"},[e("h3",[t._v(t._s(n.label))])]),t._v(" "),e("div",{staticClass:"fc_doc_lists"},[e("ul",t._l(n.docs,(function(n){return e("li",{key:n.id},[e("a",{attrs:{target:"_blank",href:n.link+t.utl_param},domProps:{innerHTML:t._s(n.title)}})])})),0)])])])})),0)],1)}),[],!1,null,null,null).exports;const Vt={name:"NotificationSettings",props:{notification_settings:{type:Object,required:!0}},data:function(){return{sending_days:{Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"},saving:!1}},methods:{saveSettings:function(){var t=this;this.saving=!0,this.$post("settings/notification-settings",{settings:this.notification_settings}).then((function(e){t.$notify.success(e.data.message)})).catch((function(t){console.log(t)})).always((function(){t.saving=!1}))}},mounted:function(){}};const Ut=(0,i.Z)(Vt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fss_general_settings"},[e("el-form",{staticClass:"fss_compact_form",attrs:{data:t.notification_settings,"label-position":"top"}},[e("p",[t._v("\n "+t._s(t.$t("__EMAIL_SUMMARY_INTRO"))+"\n ")]),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.notification_settings.enabled,callback:function(e){t.$set(t.notification_settings,"enabled",e)},expression:"notification_settings.enabled"}},[t._v(t._s(t.$t("Enable Email Summary")))])],1),t._v(" "),"yes"==t.notification_settings.enabled?[e("el-form-item",{attrs:{label:t.$t("Notification Email Addresses")}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Email Address")},model:{value:t.notification_settings.notify_email,callback:function(e){t.$set(t.notification_settings,"notify_email",e)},expression:"notification_settings.notify_email"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Notification Days")}},[e("el-checkbox-group",{model:{value:t.notification_settings.notify_days,callback:function(e){t.$set(t.notification_settings,"notify_days",e)},expression:"notification_settings.notify_days"}},t._l(t.sending_days,(function(n,s){return e("el-checkbox",{key:n,attrs:{value:n,label:t.$t(s)}})})),1)],1)]:t._e(),t._v(" "),e("el-form-item",[e("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:t.saveSettings}},[t._v("\n "+t._s(t.$t("Save Settings"))+"\n ")])],1)],2)],1)}),[],!1,null,null,null).exports;const Gt={name:"TelegramConnectionInfo",data:function(){return{status:"",receiver:null,loading:!1,disconnecting:!1,sending_test:!1,errors:null}},methods:{getInfo:function(){var t=this;this.loading=!0,this.$get("settings/telegram/info").then((function(e){t.status=e.data.telegram_notify_status,e.data.telegram_receiver?t.receiver=e.data.telegram_receiver:t.errors=errors.responseJSON.data.errors})).catch((function(e){t.$notify.error(e.responseJSON.data.message),t.errors=e.responseJSON.data.errors})).always((function(){t.loading=!1}))},disconnect:function(){var t=this;this.$confirm(this.$t("Are you sure you want to disconnect Telegram notifications?"),"Warning",{confirmButtonText:this.$t("Yes, Disconnect"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then((function(){t.disconnecting=!0,t.$post("settings/telegram/disconnect").then((function(e){t.$notify.success(e.data.message),window.location.reload()})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.disconnecting=!1}))}))},sendTest:function(){var t=this;this.sending_test=!0,this.$post("settings/telegram/send-test").then((function(e){t.$notify.success(e.data.message)})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.sending_test=!1}))}},mounted:function(){this.getInfo()}};const Bt={name:"TelegramNotification",components:{ConnectionInfo:(0,i.Z)(Gt,(function(){var t=this,e=t._self._c;return e("div",[t.loading?e("el-skeleton",{attrs:{animated:!0,rows:3}}):["yes"==t.status?e("div",[e("img",{staticStyle:{"max-height":"50px"},attrs:{src:"".concat(t.appVars.images_url,"tele.svg")}}),t._v(" "),e("h3",[t._v(t._s(t.$t("Telegram Notifications Enable"))+"d")]),t._v(" "),e("p",[t._v("\n "+t._s(t.$t("__TELEGRAM_NOTIFICATION_ENABLED"))+"\n ")]),t._v(" "),e("p",[t._v(t._s(t.$t("Receiver's Telegram Username: "))+"@"+t._s(t.receiver.username))]),t._v(" "),e("p",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.sending_test,expression:"sending_test"}],attrs:{disabled:t.sending_test,size:"mini",type:"text"},on:{click:function(e){return t.sendTest()}}},[t._v(t._s(t.$t("Send Test Message"))+"\n ")]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.disconnecting,expression:"disconnecting"}],staticStyle:{float:"right"},attrs:{size:"mini",type:"text"},on:{click:function(e){return t.disconnect()}}},[t._v(t._s(t.$t("Disconnect"))+"\n ")])],1)]):e("div",[e("img",{staticStyle:{"max-height":"50px"},attrs:{src:"".concat(t.appVars.images_url,"tele.svg")}}),t._v("d\n "),e("h3",[t._v(t._s(t.$t("Telegram Connection Status: "))+t._s(t.status))]),t._v(" "),e("p",[t._v(t._s(t.$t("__TELE_RESPONSE_ERROR")))]),t._v(" "),e("pre",[t._v(t._s(t.errors))]),t._v(" "),e("p",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.sending_test,expression:"sending_test"}],attrs:{disabled:t.sending_test,size:"mini",type:"text"},on:{click:function(e){return t.getInfo()}}},[t._v("\n "+t._s(t.$t("Try Again"))+"\n ")]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.disconnecting,expression:"disconnecting"}],staticStyle:{float:"right"},attrs:{size:"mini",type:"text"},on:{click:function(e){return t.disconnect()}}},[t._v(t._s(t.$t("Disconnect & Reconnect"))+"\n ")])],1)])]],2)}),[],!1,null,null,null).exports},props:{notification_settings:{type:Object,default:function(){return{}}}},data:function(){return{configure_state:"form",processing:!1,newForm:{user_email:"",terms:"no",site_pin:"wp.lab-327372",site_token:""}}},methods:{issuePinCode:function(){var t=this;this.processing=!0,this.$post("settings/telegram/issue-pin-code",{settings:this.newForm}).then((function(e){t.$notify.success(e.data.message),t.newForm.site_token=e.data.site_token,t.newForm.site_pin=e.data.site_pin,t.configure_state="pin"})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.processing=!1}))},confirmConnection:function(){var t=this;this.processing=!0,this.$post("settings/telegram/confirm",{site_token:this.newForm.site_token}).then((function(e){t.$notify.success(e.data.message),window.location.reload()})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.processing=!1}))},copyPin:function(){var t=document.createElement("textarea");t.value="activate "+this.newForm.site_pin,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$notify.success(this.$t("Pin copied to clipboard"))}},mounted:function(){this.newForm.user_email=this.appVars.user_email}};const qt=(0,i.Z)(Bt,(function(){var t=this,e=t._self._c;return e("div",[t.notification_settings.telegram&&"yes"==t.notification_settings.telegram.status?e("div",[e("connection-info")],1):e("div",["form"==t.configure_state?e("div",[e("p",{domProps:{innerHTML:t._s(t.$t("__TELE_INTRO"))}}),t._v(" "),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://fluentsmtp.com/docs/email-sending-error-notification-telegram/"}},[t._v(t._s(t.$t("Read the documentation")))]),t._v(".\n\n "),e("el-form",{staticClass:"fss_compact_form",attrs:{data:t.newForm,"label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Your Email Address")}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Email Address")},model:{value:t.newForm.user_email,callback:function(e){t.$set(t.newForm,"user_email",e)},expression:"newForm.user_email"}})],1),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.newForm.terms,callback:function(e){t.$set(t.newForm,"terms",e)},expression:"newForm.terms"}},[e("div",{domProps:{innerHTML:t._s(t.$t("__TELE_TERMS"))}})])],1),t._v(" "),e("el-form-item",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.processing,expression:"processing"}],attrs:{disabled:"yes"!=t.newForm.terms||!t.newForm.user_email||t.processing,type:"primary"},on:{click:function(e){return t.issuePinCode()}}},[t._v("\n "+t._s(t.$t("Continue"))+"\n ")])],1),t._v(" "),e("p",[t._v(t._s(t.$t("FluentSMTP does not store your email notifications data.")))])],1)],1):"pin"==t.configure_state?e("div",[e("h3",[t._v(t._s(t.$t("Last step!")))]),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.$t("__TELE_LAST_STEP"))}}),t._v(" "),e("h3",[t._v(t._s(t.$t("Activation Pin")))]),t._v(" "),e("p",{staticStyle:{"font-size":"20px","font-weight":"bold",padding:"10px",margin:"15px 0",background:"rgb(248 250 252)","border-radius":"5px",border:"2px dashed #e8d100"}},[t._v("\n "+t._s(t.$t("activate "))+" "+t._s(t.newForm.site_pin)+"\n "),e("span",{staticStyle:{float:"right","user-select":"none","font-size":"14px",border:"1px solid #f0f0f1",padding:"2px 10px","line-height":"14px",background:"white","border-radius":"5px",cursor:"pointer"},on:{click:function(e){return t.copyPin()}}},[t._v(t._s(t.$t("copy")))])]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.processing,expression:"processing"}],attrs:{disabled:t.processing,size:"medium",type:"success"},on:{click:function(e){return t.confirmConnection()}}},[t._v(t._s(t.$t("I have sent the code")))])],1):t._e()])])}),[],!1,null,null,null).exports;const Kt={name:"TelegramConnectionInfo",props:{notification_settings:{type:Object,default:function(){return{}}}},data:function(){return{disconnecting:!1,sending_test:!1}},methods:{disconnect:function(){var t=this;this.$confirm(this.$t("Are you sure you want to disconnect Slack notifications?"),"Warning",{confirmButtonText:this.$t("Yes, Disconnect"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then((function(){t.disconnecting=!0,t.$post("settings/slack/disconnect").then((function(e){t.$notify.success(e.data.message),window.location.reload()})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.disconnecting=!1}))}))},sendTest:function(){var t=this;this.sending_test=!0,this.$post("settings/slack/send-test").then((function(e){t.$notify.success(e.data.message)})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.sending_test=!1}))}}};const Zt={name:"SlackNotification",components:{SlackInfo:(0,i.Z)(Kt,(function(){var t=this,e=t._self._c;return e("div",[e("img",{staticStyle:{"max-height":"50px"},attrs:{src:"".concat(t.appVars.images_url,"slack.svg")}}),t._v(" "),e("h3",[t._v(t._s(t.$t("Slack Notifications Enabled")))]),t._v(" "),e("p",[t._v("\n "+t._s(t.$t("__SLACK_NOTIFICATION_ENABLED"))+"\n ")]),t._v(" "),e("p",[t._v(t._s(t.$t("Slack Channel Details: "))+"@"+t._s(t.notification_settings.slack.slack_team))]),t._v(" "),e("p",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.sending_test,expression:"sending_test"}],attrs:{disabled:t.sending_test,size:"mini",type:"text"},on:{click:function(e){return t.sendTest()}}},[t._v("\n "+t._s(t.$t("Send Test Message"))+"\n ")]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.disconnecting,expression:"disconnecting"}],staticStyle:{float:"right"},attrs:{size:"mini",type:"text"},on:{click:function(e){return t.disconnect()}}},[t._v("\n "+t._s(t.$t("Disconnect"))+"\n ")])],1)])}),[],!1,null,null,null).exports},props:{notification_settings:{type:Object,default:function(){return{}}}},computed:{isConfigured:function(){return this.notification_settings.slack&&"yes"==this.notification_settings.slack.status&&this.notification_settings.slack.webhook_url}},data:function(){return{configure_state:"form",processing:!1,newForm:{user_email:"",terms:"no",site_pin:"",site_token:""}}},methods:{registerSite:function(){var t=this;this.processing=!0,this.$post("settings/slack/register",{settings:this.newForm}).then((function(e){t.$notify.success(e.data.message),window.location.href=e.data.redirect_url})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.processing=!1}))}},mounted:function(){this.newForm.user_email=this.appVars.user_email}};const Ht=(0,i.Z)(Zt,(function(){var t=this,e=t._self._c;return e("div",[t.isConfigured?e("div",[e("slack-info",{attrs:{notification_settings:t.notification_settings}})],1):e("div",["form"==t.configure_state?e("div",[e("p",[t._v("\n "+t._s(t.$t("__SLACK_INTRO"))+" "),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://fluentsmtp.com/docs/email-sending-error-notification-slack/"}},[t._v(t._s(t.$t("Read the documentation")))]),t._v(".\n ")]),t._v(" "),e("el-form",{staticClass:"fss_compact_form",attrs:{data:t.newForm,"label-position":"top"}},[e("el-form-item",{attrs:{label:"Your Email Address"}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Email Address")},model:{value:t.newForm.user_email,callback:function(e){t.$set(t.newForm,"user_email",e)},expression:"newForm.user_email"}})],1),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.newForm.terms,callback:function(e){t.$set(t.newForm,"terms",e)},expression:"newForm.terms"}},[e("div",{domProps:{innerHTML:t._s(t.$t("__SLACK_TERMS"))}})])],1),t._v(" "),e("el-form-item",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.processing,expression:"processing"}],attrs:{disabled:"yes"!=t.newForm.terms||!t.newForm.user_email||t.processing,type:"primary"},on:{click:function(e){return t.registerSite()}}},[t._v("\n "+t._s(t.$t("Continue to Slack"))+"\n ")])],1),t._v(" "),e("p",[t._v(t._s(t.$t("FluentSMTP does not store your email notifications data. "))+" "),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://fluentsmtp.com/docs/email-sending-error-notification-slack/"}},[t._v(t._s(t.$t("Read the documentation")))]),t._v(".")])],1)],1):t._e()])])}),[],!1,null,null,null).exports;const Wt={name:"TelegramConnectionInfo",props:{notification_settings:{type:Object,default:function(){return{}}}},data:function(){return{disconnecting:!1,sending_test:!1}},methods:{disconnect:function(){var t=this;this.$confirm(this.$t("Are you sure you want to disconnect Discord notifications?"),"Warning",{confirmButtonText:this.$t("Yes, Disconnect"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then((function(){t.disconnecting=!0,t.$post("settings/discord/disconnect").then((function(e){t.$notify.success(e.data.message),window.location.reload()})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.disconnecting=!1}))}))},sendTest:function(){var t=this;this.sending_test=!0,this.$post("settings/discord/send-test").then((function(e){t.$notify.success(e.data.message)})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.sending_test=!1}))}}};const Jt={name:"SlackNotification",components:{DiscordInfo:(0,i.Z)(Wt,(function(){var t=this,e=t._self._c;return e("div",[e("img",{staticStyle:{"max-height":"50px"},attrs:{src:"".concat(t.appVars.images_url,"disc.svg")}}),t._v(" "),e("h3",[t._v(t._s(t.$t("Discord Notifications Enabled")))]),t._v(" "),e("p",[t._v("\n "+t._s(t.$t("__DISCORD_NOTIFICATION_ENABLED"))+"\n ")]),t._v(" "),e("p",[t._v(t._s(t.$t("Discord Channel Details: "))+t._s(t.notification_settings.discord.channel_name))]),t._v(" "),e("p",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.sending_test,expression:"sending_test"}],attrs:{disabled:t.sending_test,size:"mini",type:"text"},on:{click:function(e){return t.sendTest()}}},[t._v("\n "+t._s(t.$t("Send Test Message"))+"\n ")]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.disconnecting,expression:"disconnecting"}],staticStyle:{float:"right"},attrs:{size:"mini",type:"text"},on:{click:function(e){return t.disconnect()}}},[t._v("\n "+t._s(t.$t("Disconnect"))+"\n ")])],1)])}),[],!1,null,null,null).exports},props:{notification_settings:{type:Object,default:function(){return{}}}},computed:{isConfigured:function(){return this.notification_settings.discord&&"yes"==this.notification_settings.discord.status&&this.notification_settings.discord.webhook_url}},data:function(){return{configure_state:"form",processing:!1,newForm:{webhook_url:"",channel_name:""}}},methods:{registerSite:function(){var t=this;this.processing=!0,this.$post("settings/discord/register",{settings:this.newForm}).then((function(e){t.$notify.success(e.data.message),window.location.reload()})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.processing=!1}))}}};const Yt={name:"NotificationManager",components:{TelegramNotification:qt,SlackNotification:Ht,DiscordNotification:(0,i.Z)(Jt,(function(){var t=this,e=t._self._c;return e("div",[t.isConfigured?e("div",[e("discord-info",{attrs:{notification_settings:t.notification_settings}})],1):e("div",[e("div",[e("p",[t._v("\n "+t._s(t.$t("__DISCORD_INTRO"))),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://fluentsmtp.com/docs/email-sending-error-notification-discord/"}},[t._v(t._s(t.$t("Read the documentation")))]),t._v(".\n ")]),t._v(" "),e("el-form",{staticClass:"fss_compact_form",attrs:{data:t.newForm,"label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Your Discord Channel Name (For Internal Use)")}},[e("el-input",{attrs:{size:"small"},model:{value:t.newForm.channel_name,callback:function(e){t.$set(t.newForm,"channel_name",e)},expression:"newForm.channel_name"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Your Discord Channel Webhook URL")}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Discord Webhook URL")},model:{value:t.newForm.webhook_url,callback:function(e){t.$set(t.newForm,"webhook_url",e)},expression:"newForm.webhook_url"}})],1),t._v(" "),e("el-form-item",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.processing,expression:"processing"}],attrs:{disabled:!t.newForm.webhook_url||!t.newForm.channel_name,type:"primary"},on:{click:function(e){return t.registerSite()}}},[t._v("\n "+t._s(t.$t("Configure Discord Notification"))+"\n ")])],1)],1)],1)])])}),[],!1,null,null,null).exports},props:{notification_settings:{type:Object,required:!0}},computed:{selectedDriver:function(){return this.selectedChannel?this.selectedChannel:this.notification_settings.telegram&&"yes"==this.notification_settings.telegram.status?"telegram":this.notification_settings.slack&&"yes"==this.notification_settings.slack.status?"slack":this.notification_settings.discord&&"yes"==this.notification_settings.discord.status?"discord":"unknown"}},data:function(){return{channels:{telegram:{name:"Telegram",logo_name:"tele.svg"},slack:{name:"Slack",logo_name:"slack.svg"},discord:{name:"Discord",logo_name:"disc.svg"}},selectedChannel:null}},methods:{configureChannel:function(t){this.selectedChannel=t}}};const Qt={name:"NotificationSettingsRoot",components:{EmailSummaryForm:Ut,NotificationManager:(0,i.Z)(Yt,(function(){var t=this,e=t._self._c;return t.notification_settings.telegram?e("div",["telegram"==t.selectedDriver?[e("telegram-notification",{attrs:{notification_settings:t.notification_settings}})]:"slack"==t.selectedDriver?[e("slack-notification",{attrs:{notification_settings:t.notification_settings}})]:"discord"==t.selectedDriver?[e("discord-notification",{attrs:{notification_settings:t.notification_settings}})]:e("div",{staticStyle:{"text-align":"center"}},[e("h3",[t._v("Real-Time Email Failure Notifications")]),t._v(" "),e("p",[t._v("Get real-time notification on your favorite messaging channel on any email sending failure. Configure any\n of the following channel to start getting real time notifications.")]),t._v(" "),e("div",{staticClass:"fss_notification_channels"},t._l(t.channels,(function(n,s){return e("div",{key:s,staticClass:"fss_notification_channel"},[e("div",{staticClass:"fss_notification_item",on:{click:function(e){return t.configureChannel(s)}}},[e("img",{attrs:{src:"".concat(t.appVars.images_url).concat(n.logo_name)}}),t._v(" "),e("span",[t._v(t._s(n.name))])])])})),0)])],2):t._e()}),[],!1,null,null,null).exports},data:function(){return{notification_settings:{},loading:!1}},methods:{getSettings:function(){var t=this;this.loading=!0,this.$get("settings/notification-settings").then((function(e){t.notification_settings=e.data.settings})).catch((function(t){console.log(t)})).always((function(){t.loading=!1}))}},mounted:function(){this.getSettings()}};const Xt=[{name:"dashboard",path:"/",meta:{},component:Q},{name:"connections",path:"/connections",meta:{},component:ut},{name:"connection",path:"/connection",meta:{},component:dt},{name:"test",path:"/test",meta:{},component:Ot},{name:"support",path:"/support",meta:{},component:Ft},{name:"logs",path:"/logs",meta:{},component:$t},{name:"docs",path:"/documentation",meta:{},component:zt},{name:"notification_settings",path:"/notification-settings",meta:{},component:(0,i.Z)(Qt,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"fss_support"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{sm:24,md:12}},[e("div",{staticClass:"fss_about"},[e("div",{staticClass:"fss_header"},[t._v(t._s(t.$t("Summary Email")))]),t._v(" "),e("div",{staticClass:"fss_content"},[e("email-summary-form",{attrs:{notification_settings:t.notification_settings}})],1)])]),t._v(" "),e("el-col",{attrs:{sm:24,md:12}},[e("div",{staticClass:"fss_about"},[e("div",{staticClass:"fss_header"},[t._v(t._s(t.$t("Email Sending Error Notifications")))]),t._v(" "),e("div",{staticClass:"fss_content"},[e("notification-manager",{attrs:{notification_settings:t.notification_settings}})],1)])])],1)],1)}),[],!1,null,null,null).exports}];var te=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",Xt)});window.FluentMail.Vue.prototype.$rest=window.FluentMail.$rest,window.FluentMail.Vue.prototype.$get=window.FluentMail.$get,window.FluentMail.Vue.prototype.$post=window.FluentMail.$post,window.FluentMail.Vue.prototype.$bus=new window.FluentMail.Vue,new window.FluentMail.Vue({el:"#fluent_mail_app",render:function(t){return t(n(5267).Z)},router:te})})()})();