Files
roi-theme/wp-content/plugins/fluent-smtp/assets/admin/js/fluent-mail-admin-app.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

2 lines
180 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see fluent-mail-admin-app.js.LICENSE.txt */
(()=>{var t={3956:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var s=n(5564),i=n.n(s)()((function(t){return t[1]}));i.push([t.id,".fss_wid_day_by_day{max-width:100%;overflow-x:auto}.fss_wid_day_by_day .fss_wid_widget_body{min-width:750px}.fss_wid_day_by_day .fss_wid_label_info{align-items:center;color:#6080a0;display:flex;gap:10px;margin-top:20px}.fss_wid_day_by_day .fss_wid_label_info .fss_wid_level{height:20px;width:20px}.fss_wid_day_by_day .fss_wid_sub_headers{display:block;margin-bottom:5px;text-align:center}.fss_wid_day_by_day .fss_wid_sub_headers .fss_wid_sub_header{float:left;font-size:11px;text-align:left;width:12.5%}.fss_wid_day_by_day .fss_wid_sub_headers .fss_wid_sub_header:first-child{text-align:center}.fss_wid_day_by_day .fss_wid_level_5{background:#1c00a6}.fss_wid_day_by_day .fss_wid_level_4{background:#2900f3}.fss_wid_day_by_day .fss_wid_level_3{background:#6040ff}.fss_wid_day_by_day .fss_wid_level_2{background:#a08dff}.fss_wid_day_by_day .fss_wid_level_1{background:#dfd9ff}.fss_wid_day_by_day .fss_wid_level_0{background:#f0f0f0}.fcraft_time_widget{display:flex;flex-direction:row}.fcraft_time_widget .fcraft_time_widget_header{display:flex;flex-direction:column;justify-content:space-between;padding:0 10px}.fcraft_time_widget .fcraft_time_widget_header>div{border:2px solid #fff;height:20px}.fcraft_time_widget .fcraft_time_widget_body{display:flex;flex-direction:column}.fcraft_time_widget .fcraft_time_widget_body .fcraft_time_day{display:flex;flex-direction:row;justify-content:space-between}.fcraft_time_widget .fcraft_time_widget_body .fcraft_time_day .fcraft_time_hour{border:3px solid #fff;display:flex;flex-direction:column;height:22px;opacity:.9;text-align:center;width:22px}.fcraft_time_widget .fcraft_time_widget_body .fcraft_time_day .fcraft_time_hour .fcraft_time_hour_value{cursor:pointer;font-size:10px;font-weight:300;opacity:0}",""]);const o=i},5564:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,s){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(s)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);s&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},7269:(t,e,n)=>{var s=n(7758)(n(9165),"DataView");t.exports=s},8987:(t,e,n)=>{var s=n(1519),i=n(2999),o=n(6111),r=n(506),a=n(845);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},175:(t,e,n)=>{var s=n(2173),i=n(3752),o=n(548),r=n(3410),a=n(3564);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},5922:(t,e,n)=>{var s=n(7758)(n(9165),"Map");t.exports=s},9440:(t,e,n)=>{var s=n(7140),i=n(6504),o=n(8833),r=n(953),a=n(724);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},6795:(t,e,n)=>{var s=n(7758)(n(9165),"Promise");t.exports=s},1956:(t,e,n)=>{var s=n(7758)(n(9165),"Set");t.exports=s},8188:(t,e,n)=>{var s=n(9440),i=n(6659),o=n(7230);function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new s;++e<n;)this.add(t[e])}r.prototype.add=r.prototype.push=i,r.prototype.has=o,t.exports=r},5929:(t,e,n)=>{var s=n(175),i=n(551),o=n(4090),r=n(7694),a=n(6220),c=n(8958);function l(t){var e=this.__data__=new s(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=c,t.exports=l},4396:(t,e,n)=>{var s=n(9165).Symbol;t.exports=s},2210:(t,e,n)=>{var s=n(9165).Uint8Array;t.exports=s},9477:(t,e,n)=>{var s=n(7758)(n(9165),"WeakMap");t.exports=s},1662:t=>{t.exports=function(t,e){for(var n=-1,s=null==t?0:t.length;++n<s&&!1!==e(t[n],n,t););return t}},8969:t=>{t.exports=function(t,e){for(var n=-1,s=null==t?0:t.length,i=0,o=[];++n<s;){var r=t[n];e(r,n,t)&&(o[i++]=r)}return o}},3370:(t,e,n)=>{var s=n(9739),i=n(353),o=n(4669),r=n(1563),a=n(1010),c=n(3806),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),_=!n&&!u&&r(t),d=!n&&!u&&!_&&c(t),f=n||u||_||d,p=f?s(t.length,String):[],v=p.length;for(var m in t)!e&&!l.call(t,m)||f&&("length"==m||_&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||p.push(m);return p}},5697:t=>{t.exports=function(t,e){for(var n=-1,s=null==t?0:t.length,i=Array(s);++n<s;)i[n]=e(t[n],n,t);return i}},8486:t=>{t.exports=function(t,e){for(var n=-1,s=e.length,i=t.length;++n<s;)t[i+n]=e[n];return t}},4229:(t,e,n)=>{var s=n(7017);t.exports=function(t){var e=t.length;return e?t[s(0,e-1)]:void 0}},4330:t=>{t.exports=function(t,e){for(var n=-1,s=null==t?0:t.length;++n<s;)if(e(t[n],n,t))return!0;return!1}},2718:(t,e,n)=>{var s=n(2448);t.exports=function(t,e){for(var n=t.length;n--;)if(s(t[n][0],e))return n;return-1}},438:(t,e,n)=>{var s=n(1343),i=n(8202)(s);t.exports=i},8286:(t,e,n)=>{var s=n(438);t.exports=function(t,e){var n=[];return s(t,(function(t,s,i){e(t,s,i)&&n.push(t)})),n}},1030:(t,e,n)=>{var s=n(29)();t.exports=s},1343:(t,e,n)=>{var s=n(1030),i=n(579);t.exports=function(t,e){return t&&s(t,e,i)}},7499:(t,e,n)=>{var s=n(399),i=n(7817);t.exports=function(t,e){for(var n=0,o=(e=s(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8084:(t,e,n)=>{var s=n(8486),i=n(4669);t.exports=function(t,e,n){var o=e(t);return i(t)?o:s(o,n(t))}},732:(t,e,n)=>{var s=n(4396),i=n(1239),o=n(7058),r=s?s.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?i(t):o(t)}},1664:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},4742:(t,e,n)=>{var s=n(732),i=n(5073);t.exports=function(t){return i(t)&&"[object Arguments]"==s(t)}},6620:(t,e,n)=>{var s=n(3977),i=n(5073);t.exports=function t(e,n,o,r,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:s(e,n,o,r,t,a))}},3977:(t,e,n)=>{var s=n(5929),i=n(2684),o=n(7456),r=n(8120),a=n(1887),c=n(4669),l=n(1563),u=n(3806),_="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,m,h){var g=c(t),y=c(e),b=g?d:a(t),w=y?d:a(e),k=(b=b==_?f:b)==f,$=(w=w==_?f:w)==f,x=b==w;if(x&&l(t)){if(!l(e))return!1;g=!0,k=!1}if(x&&!k)return h||(h=new s),g||u(t)?i(t,e,n,v,m,h):o(t,e,b,n,v,m,h);if(!(1&n)){var S=k&&p.call(t,"__wrapped__"),C=$&&p.call(e,"__wrapped__");if(S||C){var P=S?t.value():t,T=C?e.value():e;return h||(h=new s),m(P,T,n,v,h)}}return!!x&&(h||(h=new s),r(t,e,n,v,m,h))}},7122:(t,e,n)=>{var s=n(5929),i=n(6620);t.exports=function(t,e,n,o){var r=n.length,a=r,c=!o;if(null==t)return!a;for(t=Object(t);r--;){var l=n[r];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<a;){var u=(l=n[r])[0],_=t[u],d=l[1];if(c&&l[2]){if(void 0===_&&!(u in t))return!1}else{var f=new s;if(o)var p=o(_,d,u,t,e,f);if(!(void 0===p?i(d,_,3,o,f):p))return!1}}return!0}},8939:(t,e,n)=>{var s=n(2042),i=n(654),o=n(6838),r=n(1059),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,_=l.hasOwnProperty,d=RegExp("^"+u.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(s(t)?d:a).test(r(t))}},2882:(t,e,n)=>{var s=n(732),i=n(7216),o=n(5073),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!r[s(t)]}},5673:(t,e,n)=>{var s=n(3772),i=n(493),o=n(8148),r=n(4669),a=n(1798);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?r(t)?i(t[0],t[1]):s(t):a(t)}},7473:(t,e,n)=>{var s=n(2963),i=n(4457),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!s(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},3772:(t,e,n)=>{var s=n(7122),i=n(7487),o=n(8857);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||s(n,t,e)}}},493:(t,e,n)=>{var s=n(6620),i=n(5439),o=n(8281),r=n(2610),a=n(2769),c=n(8857),l=n(7817);t.exports=function(t,e){return r(t)&&a(e)?c(l(t),e):function(n){var r=i(n,t);return void 0===r&&r===e?o(n,t):s(e,r,3)}}},7498:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},1e3:(t,e,n)=>{var s=n(7499);t.exports=function(t){return function(e){return s(e,t)}}},7017:t=>{var e=Math.floor,n=Math.random;t.exports=function(t,s){return t+e(n()*(s-t+1))}},3381:(t,e,n)=>{var s=n(4229),i=n(1017);t.exports=function(t){return s(i(t))}},9739:t=>{t.exports=function(t,e){for(var n=-1,s=Array(t);++n<t;)s[n]=e(n);return s}},3150:(t,e,n)=>{var s=n(4396),i=n(5697),o=n(4669),r=n(6764),a=s?s.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},8792:t=>{t.exports=function(t){return function(e){return t(e)}}},4290:(t,e,n)=>{var s=n(5697);t.exports=function(t,e){return s(e,(function(e){return t[e]}))}},9880:t=>{t.exports=function(t,e){return t.has(e)}},7008:(t,e,n)=>{var s=n(8148);t.exports=function(t){return"function"==typeof t?t:s}},399:(t,e,n)=>{var s=n(4669),i=n(2610),o=n(6365),r=n(8389);t.exports=function(t,e){return s(t)?t:i(t,e)?[t]:o(r(t))}},6633:(t,e,n)=>{var s=n(9165)["__core-js_shared__"];t.exports=s},8202:(t,e,n)=>{var s=n(7428);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!s(n))return t(n,i);for(var o=n.length,r=e?o:-1,a=Object(n);(e?r--:++r<o)&&!1!==i(a[r],r,a););return n}}},29:t=>{t.exports=function(t){return function(e,n,s){for(var i=-1,o=Object(e),r=s(e),a=r.length;a--;){var c=r[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},2684:(t,e,n)=>{var s=n(8188),i=n(4330),o=n(9880);t.exports=function(t,e,n,r,a,c){var l=1&n,u=t.length,_=e.length;if(u!=_&&!(l&&_>u))return!1;var d=c.get(t),f=c.get(e);if(d&&f)return d==e&&f==t;var p=-1,v=!0,m=2&n?new s:void 0;for(c.set(t,e),c.set(e,t);++p<u;){var h=t[p],g=e[p];if(r)var y=l?r(g,h,p,e,t,c):r(h,g,p,t,e,c);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(h===t||a(h,t,n,r,c)))return m.push(e)}))){v=!1;break}}else if(h!==g&&!a(h,g,n,r,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},7456:(t,e,n)=>{var s=n(4396),i=n(2210),o=n(2448),r=n(2684),a=n(7523),c=n(9967),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;t.exports=function(t,e,n,s,l,_,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!_(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a;case"[object Set]":var p=1&s;if(f||(f=c),t.size!=e.size&&!p)return!1;var v=d.get(t);if(v)return v==e;s|=2,d.set(t,e);var m=r(f(t),f(e),s,l,_,d);return d.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},8120:(t,e,n)=>{var s=n(9698),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,r,a){var c=1&n,l=s(t),u=l.length;if(u!=s(e).length&&!c)return!1;for(var _=u;_--;){var d=l[_];if(!(c?d in e:i.call(e,d)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=c;++_<u;){var h=t[d=l[_]],g=e[d];if(o)var y=c?o(g,h,d,e,t,a):o(h,g,d,t,e,a);if(!(void 0===y?h===g||r(h,g,n,o,a):y)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(v=!1)}return a.delete(t),a.delete(e),v}},6476:(t,e,n)=>{var s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=s},9698:(t,e,n)=>{var s=n(8084),i=n(7482),o=n(579);t.exports=function(t){return s(t,o,i)}},7707:(t,e,n)=>{var s=n(3880);t.exports=function(t,e){var n=t.__data__;return s(e)?n["string"==typeof e?"string":"hash"]:n.map}},7487:(t,e,n)=>{var s=n(2769),i=n(579);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,s(r)]}return e}},7758:(t,e,n)=>{var s=n(8939),i=n(9149);t.exports=function(t,e){var n=i(t,e);return s(n)?n:void 0}},1239:(t,e,n)=>{var s=n(4396),i=Object.prototype,o=i.hasOwnProperty,r=i.toString,a=s?s.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var s=!0}catch(t){}var i=r.call(t);return s&&(e?t[a]=n:delete t[a]),i}},7482:(t,e,n)=>{var s=n(8969),i=n(8036),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,a=r?function(t){return null==t?[]:(t=Object(t),s(r(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},1887:(t,e,n)=>{var s=n(7269),i=n(5922),o=n(6795),r=n(1956),a=n(9477),c=n(732),l=n(1059),u="[object Map]",_="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",v=l(s),m=l(i),h=l(o),g=l(r),y=l(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=p||i&&b(new i)!=u||o&&b(o.resolve())!=_||r&&b(new r)!=d||a&&b(new a)!=f)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,s=n?l(n):"";if(s)switch(s){case v:return p;case m:return u;case h:return _;case g:return d;case y:return f}return e}),t.exports=b},9149:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},8554:(t,e,n)=>{var s=n(399),i=n(353),o=n(4669),r=n(1010),a=n(7216),c=n(7817);t.exports=function(t,e,n){for(var l=-1,u=(e=s(e,t)).length,_=!1;++l<u;){var d=c(e[l]);if(!(_=null!=t&&n(t,d)))break;t=t[d]}return _||++l!=u?_:!!(u=null==t?0:t.length)&&a(u)&&r(d,u)&&(o(t)||i(t))}},1519:(t,e,n)=>{var s=n(7722);t.exports=function(){this.__data__=s?s(null):{},this.size=0}},2999:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6111:(t,e,n)=>{var s=n(7722),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(s){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},506:(t,e,n)=>{var s=n(7722),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return s?void 0!==e[t]:i.call(e,t)}},845:(t,e,n)=>{var s=n(7722);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=s&&void 0===e?"__lodash_hash_undefined__":e,this}},1010:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var s=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==s||"symbol"!=s&&e.test(t))&&t>-1&&t%1==0&&t<n}},2610:(t,e,n)=>{var s=n(4669),i=n(6764),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(s(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},3880:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},654:(t,e,n)=>{var s,i=n(6633),o=(s=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";t.exports=function(t){return!!o&&o in t}},2963:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},2769:(t,e,n)=>{var s=n(6838);t.exports=function(t){return t==t&&!s(t)}},2173:t=>{t.exports=function(){this.__data__=[],this.size=0}},3752:(t,e,n)=>{var s=n(2718),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=s(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},548:(t,e,n)=>{var s=n(2718);t.exports=function(t){var e=this.__data__,n=s(e,t);return n<0?void 0:e[n][1]}},3410:(t,e,n)=>{var s=n(2718);t.exports=function(t){return s(this.__data__,t)>-1}},3564:(t,e,n)=>{var s=n(2718);t.exports=function(t,e){var n=this.__data__,i=s(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},7140:(t,e,n)=>{var s=n(8987),i=n(175),o=n(5922);t.exports=function(){this.size=0,this.__data__={hash:new s,map:new(o||i),string:new s}}},6504:(t,e,n)=>{var s=n(7707);t.exports=function(t){var e=s(this,t).delete(t);return this.size-=e?1:0,e}},8833:(t,e,n)=>{var s=n(7707);t.exports=function(t){return s(this,t).get(t)}},953:(t,e,n)=>{var s=n(7707);t.exports=function(t){return s(this,t).has(t)}},724:(t,e,n)=>{var s=n(7707);t.exports=function(t,e){var n=s(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},7523:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,s){n[++e]=[s,t]})),n}},8857:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},5171:(t,e,n)=>{var s=n(4736);t.exports=function(t){var e=s(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},7722:(t,e,n)=>{var s=n(7758)(Object,"create");t.exports=s},4457:(t,e,n)=>{var s=n(5542)(Object.keys,Object);t.exports=s},8478:(t,e,n)=>{t=n.nmd(t);var s=n(6476),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,r=o&&o.exports===i&&s.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=a},7058:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5542:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},9165:(t,e,n)=>{var s=n(6476),i="object"==typeof self&&self&&self.Object===Object&&self,o=s||i||Function("return this")();t.exports=o},6659:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},7230:t=>{t.exports=function(t){return this.__data__.has(t)}},9967:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},551:(t,e,n)=>{var s=n(175);t.exports=function(){this.__data__=new s,this.size=0}},4090:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7694:t=>{t.exports=function(t){return this.__data__.get(t)}},6220:t=>{t.exports=function(t){return this.__data__.has(t)}},8958:(t,e,n)=>{var s=n(175),i=n(5922),o=n(9440);t.exports=function(t,e){var n=this.__data__;if(n instanceof s){var r=n.__data__;if(!i||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},6365:(t,e,n)=>{var s=n(5171),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=s((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,s,i){e.push(s?i.replace(o,"$1"):n||t)})),e}));t.exports=r},7817:(t,e,n)=>{var s=n(6764);t.exports=function(t){if("string"==typeof t||s(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},1059:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5828:(t,e,n)=>{t.exports=n(7489)},2448:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3149:(t,e,n)=>{var s=n(8969),i=n(8286),o=n(5673),r=n(4669);t.exports=function(t,e){return(r(t)?s:i)(t,o(e,3))}},7489:(t,e,n)=>{var s=n(1662),i=n(438),o=n(7008),r=n(4669);t.exports=function(t,e){return(r(t)?s:i)(t,o(e))}},5439:(t,e,n)=>{var s=n(7499);t.exports=function(t,e,n){var i=null==t?void 0:s(t,e);return void 0===i?n:i}},8281:(t,e,n)=>{var s=n(1664),i=n(8554);t.exports=function(t,e){return null!=t&&i(t,e,s)}},8148:t=>{t.exports=function(t){return t}},353:(t,e,n)=>{var s=n(4742),i=n(5073),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(t){return i(t)&&r.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},4669:t=>{var e=Array.isArray;t.exports=e},7428:(t,e,n)=>{var s=n(2042),i=n(7216);t.exports=function(t){return null!=t&&i(t.length)&&!s(t)}},1563:(t,e,n)=>{t=n.nmd(t);var s=n(9165),i=n(4193),o=e&&!e.nodeType&&e,r=o&&t&&!t.nodeType&&t,a=r&&r.exports===o?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c},2691:(t,e,n)=>{var s=n(7473),i=n(1887),o=n(353),r=n(4669),a=n(7428),c=n(1563),l=n(2963),u=n(3806),_=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(r(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!s(t).length;for(var n in t)if(_.call(t,n))return!1;return!0}},2042:(t,e,n)=>{var s=n(732),i=n(6838);t.exports=function(t){if(!i(t))return!1;var e=s(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},7216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6838:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5073:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},6764:(t,e,n)=>{var s=n(732),i=n(5073);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==s(t)}},3806:(t,e,n)=>{var s=n(2882),i=n(8792),o=n(8478),r=o&&o.isTypedArray,a=r?i(r):s;t.exports=a},579:(t,e,n)=>{var s=n(3370),i=n(7473),o=n(7428);t.exports=function(t){return o(t)?s(t):i(t)}},4736:(t,e,n)=>{var s=n(9440);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var s=arguments,i=e?e.apply(this,s):s[0],o=n.cache;if(o.has(i))return o.get(i);var r=t.apply(this,s);return n.cache=o.set(i,r)||o,r};return n.cache=new(i.Cache||s),n}i.Cache=s,t.exports=i},1798:(t,e,n)=>{var s=n(7498),i=n(1e3),o=n(2610),r=n(7817);t.exports=function(t){return o(t)?s(r(t)):i(t)}},2052:(t,e,n)=>{var s=n(4229),i=n(3381),o=n(4669);t.exports=function(t){return(o(t)?s:i)(t)}},8036:t=>{t.exports=function(){return[]}},4193:t=>{t.exports=function(){return!1}},8389:(t,e,n)=>{var s=n(3150);t.exports=function(t){return null==t?"":s(t)}},1017:(t,e,n)=>{var s=n(4290),i=n(579);t.exports=function(t){return null==t?[]:s(t,i(t))}},1490:(t,e,n)=>{"use strict";var s,i=function(){return void 0===s&&(s=Boolean(window&&document&&document.all&&!window.atob)),s},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),r=[];function a(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},s=[],i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var _=a(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==_?(r[_].references++,r[_].updater(d)):r.push({identifier:u,updater:m(d,e),references:1}),s.push(u)}return s}function l(t){var e=document.createElement("style"),s=t.attributes||{};if(void 0===s.nonce){var i=n.nc;i&&(s.nonce=i)}if(Object.keys(s).forEach((function(t){e.setAttribute(t,s[t])})),"function"==typeof t.insert)t.insert(e);else{var r=o(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var u,_=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,s){var i=n?"":s.media?"@media ".concat(s.media," {").concat(s.css,"}"):s.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var o=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function f(t,e,n){var s=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}var p=null,v=0;function m(t,e){var n,s,i;if(e.singleton){var o=v++;n=p||(p=l(e)),s=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(e),s=f.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return s(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;s(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var s=0;s<n.length;s++){var i=a(n[s]);r[i].references--}for(var o=c(t,e),l=0;l<n.length;l++){var u=a(n[l]);0===r[u].references&&(r[u].updater(),r.splice(u,1))}n=o}}}},5267:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const s={name:"FluentMailApplication",data:function(){return{logo:"",items:[],active:null}},watch:{$route:function(t,e){this.$route.name&&this.setActive()}},methods:{defaultRoutes:function(){return[{route:"connections",title:this.$t("Settings")},{route:"test",title:this.$t("Email Test")},{route:"logs",title:this.$t("Email Logs")},{route:"notification_settings",title:this.$t("Alerts")},{route:"support",title:this.$t("About")},{route:"docs",title:this.$t("Documentation")}]},setMenus:function(){this.items=this.applyFilters("fluentmail_top_menus",this.defaultRoutes()),this.setActive()},setActive:function(){this.active=this.$route.meta.parent||this.$route.name}},computed:{brandLogo:function(){var t=this.appVars.brand_logo;return'<img style="width:140px;" src="'.concat(t,'" />')}},created:function(){jQuery(".update-nag,.notice:not(.fluentsmtp_urgent), #wpbody-content > .updated, #wpbody-content > .error").remove(),this.logo="<div class='logo'>".concat(this.brandLogo,"</div>"),this.setMenus()}};const i=(0,n(5581).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-mail-app"},[e("div",{staticClass:"fluent-mail-main-menu-items"},[e("el-menu",{staticClass:"fluent-mail-navigation",attrs:{router:!0,mode:"horizontal","default-active":t.active}},[e("el-menu-item",{attrs:{index:"dashboard",route:{name:"dashboard"}},domProps:{innerHTML:t._s(t.logo)}}),t._v(" "),t._l(t.items,(function(n){return e("el-menu-item",{key:n.route,attrs:{index:n.route,route:{name:n.route}},domProps:{innerHTML:t._s(n.title)}})}))],2)],1),t._v(" "),e("div",{staticClass:"fluent-mail-body"},[e("router-view",{key:t.$route.name})],1)])}),[],!1,null,null,null).exports},5581:(t,e,n)=>{"use strict";function s(t,e,n,s,i,o,r,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),s&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var _=l.beforeCreate;l.beforeCreate=_?[].concat(_,c):[c]}return{exports:t,options:l}}n.d(e,{Z:()=>s})}},e={};function n(s){var i=e[s];if(void 0!==i)return i.exports;var o=e[s]={id:s,loaded:!1,exports:{}};return t[s](o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.nc=void 0,(()=>{"use strict";var t=n(2691),e=n.n(t);const s={name:"InputPassword",props:["value","id","placeholder","disabled"],data:function(){return{type:"password",styleObject:{"text-decoration":"line-through"},src:window.FluentMail.appVars.image_url+"/eye-cross.png"}},methods:{toggle:function(){this.type="text"===this.type?"password":"text",this.styleObject["text-decoration"]="text"===this.type?"none":"line-through"}}};var i=n(5581);const o=(0,i.Z)(s,(function(){var t=this,e=t._self._c;return e("div",[e("el-input",{attrs:{id:t.id,type:t.type,value:t.value,placeholder:t.placeholder,disabled:t.disabled},on:{input:function(e){return t.$emit("input",e)}}}),t._v(" "),e("p",{staticClass:"small-help-text",staticStyle:{"font-size":"80%",margin:"3px 0 0 0"}},[t._v("\n "+t._s(t.$t("__PASSWORD_ENCRYPT_HELP"))+"\n "),e("el-popover",{attrs:{width:"400",trigger:"hover"}},[e("p",[t._v(t._s(t.$t("__PASSWORD_ENCRYPT_TIP")))]),t._v(" "),e("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)],1)}),[],!1,null,null,null).exports;const r={name:"Error",props:["error"]};const a=(0,i.Z)(r,(function(){var t=this,e=t._self._c;return t.error?e("span",{staticClass:"el-form-item__error"},[t._v("\n "+t._s(t.error)+"\n")]):t._e()}),[],!1,null,null,null).exports,c={name:"MailGun",props:["connection","errors"],components:{InputPassword:o,Error:a},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="",this.connection.domain_name="")}},data:function(){return{}}};const l=(0,i.Z)(c,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Mailgun API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"key"}},[t._v("\n "+t._s(t.$t("Private API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),e("span",{staticClass:"small-help-text"},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key from Mailgun:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/account/security/api_keys"}},[t._v(t._s(t.$t("Get a Private API Key.")))])])],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{for:"domain"}},[e("label",{attrs:{for:"domain"}},[t._v("\n "+t._s(t.$t("Domain Name"))+"\n ")]),t._v(" "),e("el-input",{attrs:{id:"domain"},model:{value:t.connection.domain_name,callback:function(e){t.$set(t.connection,"domain_name",e)},expression:"connection.domain_name"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("domain_name")}}),t._v(" "),e("span",{staticClass:"small-help-text"},[t._v("\n "+t._s(t.$t("Follow this link to get a Domain Name from Mailgun:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/domains"}},[t._v("\n "+t._s(t.$t("Get a Domain Name."))+"\n ")])])],1)],1)],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_MAILGUN_API_KEY', '********************' );\ndefine( 'FLUENTMAIL_MAILGUN_DOMAIN', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),e("error",{attrs:{error:t.errors.get("domain_name")}})],1)],1):t._e(),t._v(" "),e("el-form-item",[e("label",{staticStyle:{"vertical-align":"baseline"},attrs:{for:"region"}},[t._v("\n "+t._s(t.$t("Select Region"))+"    \n ")]),t._v(" "),e("el-radio",{attrs:{label:"us"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("US")]),t._v(" "),e("el-radio",{attrs:{label:"eu"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("EU")]),t._v(" "),e("el-alert",{attrs:{closable:!1}},[e("span",[t._v("\n "+t._s(t.$t("__MAILGUN_URL_TIP"))+"\n ")]),t._v(" "),e("span",{domProps:{innerHTML:t._s(t.$t("__MAILGUN_REGION"))}})])],1)],1)}),[],!1,null,null,null).exports;const u={name:"PepiPost",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const _=(0,i.Z)(u,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Pepipost API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"pepipost-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"pepipost-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_PEPIPOST_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("__PEPIPOST_HELP"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.pepipost.com/app/settings/integration"}},[t._v(t._s(t.$t("Get API Key.")))])])],1)}),[],!1,null,null,null).exports;const d={name:"SendGrid",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const f=(0,i.Z)(d,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("SendGrid API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"sendgrid-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"sendgrid-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDGRID_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key from SendGrid:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.sendgrid.com/settings/api_keys"}},[t._v(t._s(t.$t("Create API Key.")))]),t._v("\n "+t._s(t.$t("To send emails you will need only a Mail Send access level for this API key."))+"\n ")])],1)}),[],!1,null,null,null).exports;const p={name:"SendInBlue",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const v=(0,i.Z)(p,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sendinblue API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"sendinblue-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"sendinblue-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDINBLUE_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.brevo.com/settings/keys/api"}},[t._v(t._s(t.$t("Get v3 API Key.")))])])],1)}),[],!1,null,null,null).exports;const m={name:"AmazonSes",props:["connection","provider","errors"],components:{InputPassword:o,Error:a},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.access_key="",this.connection.secret_key="")}},data:function(){return{}}};const h=(0,i.Z)(m,(function(){var t=this,e=t._self._c;return e("div",[e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store Access Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Access Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{for:"access_key"}},[e("label",{attrs:{for:"access_key"}},[t._v("\n "+t._s(t.$t("Access Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"access_key"},model:{value:t.connection.access_key,callback:function(e){t.$set(t.connection,"access_key",e)},expression:"connection.access_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("access_key")}})],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"ses-key"}},[t._v("\n "+t._s(t.$t("Secret Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"ses-key"},model:{value:t.connection.secret_key,callback:function(e){t.$set(t.connection,"secret_key",e)},expression:"connection.secret_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1)],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("access_key")}}),t._v(" "),e("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1):t._e(),t._v(" "),e("el-form-item",[e("label",{attrs:{for:"ses-region"}},[t._v("\n "+t._s(t.$t("Region "))),e("span",{staticClass:"small-help-text"},[t._v(t._s(t.$t("(Default: US East(N.Virginia) / us - east - 1)")))])]),t._v(" "),e("el-select",{attrs:{id:"ses-region",placeholder:t.$t("Select Region")},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},t._l(t.provider.regions,(function(t,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1),t._v(" "),e("span",{staticClass:"el-form-item__error",staticStyle:{"margin-top":"10px"}},[t._v(t._s(t.errors.errors.api_error))])],1)],1)}),[],!1,null,null,null).exports;const g={name:"SparkPost",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const y=(0,i.Z)(g,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("SparkPost API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"sparkpost-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"sparkpost-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SPARKPOST_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app.sparkpost.com/account/api-keys"}},[t._v(t._s(t.$t("Get API Key.")))])])],1)}),[],!1,null,null,null).exports;const b={name:"Smtp",props:["connection","errors"],components:{InputPassword:o,Error:a},data:function(){return{app_ready:!1}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.password="",this.connection.username="")}},computed:{isDisabledUsername:function(){return"no"===this.connection.auth},isDisabledPassword:function(){return"no"===this.connection.auth}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const w=(0,i.Z)(b,(function(){var t=this,e=t._self._c;return e("div",[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"host"}},[t._v("\n "+t._s(t.$t("SMTP Host"))+"\n ")]),t._v(" "),e("el-input",{attrs:{placeholder:t.$t("SMTP Host"),id:"host"},model:{value:t.connection.host,callback:function(e){t.$set(t.connection,"host",e)},expression:"connection.host"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("host")}})],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"port"}},[t._v("\n "+t._s(t.$t("SMTP Port"))+"\n ")]),t._v(" "),e("el-input",{attrs:{placeholder:t.$t("SMTP Port"),id:"port"},model:{value:t.connection.port,callback:function(e){t.$set(t.connection,"port",e)},expression:"connection.port"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("port")}})],1)],1)],1),t._v(" "),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{staticStyle:{margin:"20px 0"}},[e("label",[t._v("\n "+t._s(t.$t("Encryption"))+"\n ")]),t._v(" "),e("div",{staticClass:"small-help-text",staticStyle:{display:"inline-block"}},[t._v("\n Select "),e("strong",[t._v("ssl")]),t._v(" on port "),e("strong",[t._v("465")]),t._v(", or "),e("strong",[t._v("tls")]),t._v(" on port "),e("strong",[t._v("25")]),t._v(" or "),e("strong",[t._v("587")])]),t._v(" "),e("div",{staticStyle:{display:"inline-block","margin-left":"20px"}},[e("el-radio",{attrs:{label:"none"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v(t._s(t.$t("None")))]),t._v(" "),e("el-radio",{attrs:{label:"ssl"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v(t._s(t.$t("SSL")))]),t._v(" "),e("el-radio",{attrs:{label:"tls"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v(t._s(t.$t("TLS")))])],1)])],1)],1),t._v(" "),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",[e("label",{attrs:{for:"auth"}},[t._v("\n "+t._s(t.$t("Use Auto TLS"))+"\n ")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auto_tls,callback:function(e){t.$set(t.connection,"auto_tls",e)},expression:"connection.auto_tls"}}),t._v(" "),e("span",{staticClass:"small-help-text"},[t._v("\n "+t._s(t.$t("__TLS_HELP"))+"\n ")])],1)],1)],1),t._v(" "),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",[e("label",{attrs:{for:"auth"}},[t._v("\n "+t._s(t.$t("Authentication"))+"\n ")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auth,callback:function(e){t.$set(t.connection,"auth",e)},expression:"connection.auth"}}),t._v(" "),e("span",{staticClass:"small-help-text"},[t._v("\n "+t._s(t.$t("__SMTP_CRED_HELP"))+"\n ")])],1)],1)],1),t._v(" "),"yes"==t.connection.auth?[e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v(t._s(t.$t("Store Access Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v(t._s(t.$t("Access Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-row",{class:{disabled:"no"===t.connection.auth},attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",[e("label",{attrs:{for:"username"}},[t._v("\n "+t._s(t.$t("SMTP Username"))+"\n ")]),t._v(" "),e("el-input",{attrs:{type:"text",id:"username",placeholder:t.$t("Your SMTP Username"),disabled:t.isDisabledUsername},model:{value:t.connection.username,callback:function(e){t.$set(t.connection,"username",e)},expression:"connection.username"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("username")}})],1)],1),t._v(" "),e("el-col",{attrs:{span:12}},[e("el-form-item",[e("label",{attrs:{for:"smtp-password"}},[t._v("\n "+t._s(t.$t("SMTP Password"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"smtp-password",disabled:t.isDisabledPassword},model:{value:t.connection.password,callback:function(e){t.$set(t.connection,"password",e)},expression:"connection.password"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("password")}})],1)],1)],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP_USERNAME', '********************' );\ndefine( 'FLUENTMAIL_SMTP_PASSWORD', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("username")}}),t._v(" "),e("error",{attrs:{error:t.errors.get("password")}})],1)],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;const k={name:"Gmail",props:["connection","errors"],components:{InputPassword:o,Error:a},data:function(){return{AuthorizedRedirectURI:"https://fluentsmtp.com/gapi/",app_ready:!1,gettingRedirect:!1,redirectUrl:"",connection_key:this.$route.query.connection_key}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.client_id="",this.connection.client_secret="")}},methods:{redirectToGoogle:function(){var t=this;this.gettingRedirect=!0,this.$post("settings/gmail_auth_url",{connection:this.connection}).then((function(e){t.redirectUrl=e.data.auth_url,window.open(e.data.auth_url,"_blank")})).catch((function(e){t.errors.record(e.responseJSON.data)})).always((function(){t.gettingRedirect=!1}))}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const $=(0,i.Z)(k,(function(){var t=this,e=t._self._c;return e("div",[t.connection_key&&!t.connection.version?e("div",{staticClass:"ff_smtp_warn",domProps:{innerHTML:t._s(t.$t("__GCP_INTRO"))}}):t._e(),t._v(" "),e("h3",[t._v(t._s(t.$t("Gmail / Google Workspace API Settings")))]),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.$t("__GCP_API_INST"))}}),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v(t._s(t.$t("Store Application Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v(t._s(t.$t("Application Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"client_id"}},[t._v("\n "+t._s(t.$t("Application Client ID"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"client_secret"}},[t._v("\n "+t._s(t.$t("Application Client Secret"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__GMAIL_CODE_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_GMAIL_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_GMAIL_CLIENT_SECRET', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Authorized Redirect URI")}},[e("el-input",{attrs:{readonly:!0},model:{value:t.AuthorizedRedirectURI,callback:function(e){t.AuthorizedRedirectURI=e},expression:"AuthorizedRedirectURI"}}),t._v(" "),e("p",[t._v(t._s(t.$t("*** It is very important to put "))),e("b",[t._v("https://fluentsmtp.com/gapi/")]),t._v(t._s(t.$t(" in the "))+" "),e("b",[t._v(t._s(t.$t("Authorized Redirect URIs")))]),t._v(t._s(t.$t(" option in the Google Cloud Project.")))])],1),t._v(" "),t.connection.access_token?e("div",{staticStyle:{"text-align":"center"}},[e("h3",[t._v(t._s(t.$t("__GMAIL_SUCCESS"))+" "),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v(t._s(t.$t("click here")))])])]):e("div",[e("div",{staticStyle:{"text-align":"center"}},[e("h3",[t._v(t._s(t.$t("Please authenticate with Google to get "))),e("b",[t._v(t._s(t.$t("Access Token")))])]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToGoogle()}}},[t._v(t._s(t.$t("Authenticate with Google & Get Access Token")))])],1),t._v(" "),t.redirectUrl?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",[e("label",{attrs:{for:"application_token"}},[t._v("\n "+t._s(t.$t("Access Token"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),e("p",[t._v(t._s(t.$t("Please send test email to confirm if the connection is working or not.")))])],1)],1)],1):t._e()],1)],1)}),[],!1,null,null,null).exports;const x={name:"OutLook",props:["connection","provider","errors"],components:{InputPassword:o,Error:a},data:function(){return{app_ready:!1,gettingRedirect:!1,redirectUrl:""}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.client_id="",this.connection.client_secret="")}},methods:{redirectToMS:function(){var t=this;this.gettingRedirect=!0,this.$post("settings/outlook_auth_url",{connection:this.connection}).then((function(e){t.redirectUrl=e.data.auth_url,window.open(e.data.auth_url,"_blank")})).catch((function(e){t.errors.record(e.responseJSON.data)})).always((function(){t.gettingRedirect=!1}))}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const S=(0,i.Z)(x,(function(){var t=this,e=t._self._c;return e("div",[e("h3",[t._v(t._s(t.$t("Outlook / Office365 API Settings")))]),t._v(" "),e("p",[t._v(t._s(t.$t("Please "))),e("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/setup-outlook-with-fluentsmtp/"}},[t._v(t._s(t.$t("check the documentation first to create API keys at Microsoft")))])]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v(t._s(t.$t("Store Application Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v(t._s(t.$t("Application Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"client_id"}},[t._v("\n "+t._s(t.$t("Application Client ID"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",[e("label",{attrs:{for:"client_secret"}},[t._v("\n "+t._s(t.$t("Application Client Secret"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_OUTLOOK_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_OUTLOOK_CLIENT_SECRET', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),e("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),e("el-form-item",[e("label",[t._v(t._s(t.$t("App Callback URL(Use this URL to your APP)")))]),t._v(" "),e("el-input",{attrs:{readonly:!0},model:{value:t.provider.callback_url,callback:function(e){t.$set(t.provider,"callback_url",e)},expression:"provider.callback_url"}})],1),t._v(" "),t.connection.access_token?e("div",{staticStyle:{"text-align":"center"}},[e("h3",[t._v(t._s("Your Outlook / Office365 Authentication has been enabled.No further action is needed.If you want to re-authenticate, ")),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v(t._s("click here"))])])]):e("div",[e("div",{staticStyle:{"text-align":"center"}},[e("h3",[t._v(t._s(t.$t("Please authenticate with Office365 to get "))),e("b",[t._v(t._s(t.$t("Access Token")))])]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToMS()}}},[t._v(t._s(t.$t("Authenticate with Office365 & Get Access Token")))])],1),t._v(" "),t.redirectUrl?e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",[e("label",{attrs:{for:"application_token"}},[t._v("\n "+t._s(t.$t("Access Token"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),e("p",[t._v(t._s(t.$t("Please send test email to confirm if the connection is working or not.")))])],1)],1)],1):t._e()],1)],1)}),[],!1,null,null,null).exports;const C={name:"PostMark",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const P=(0,i.Z)(C,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Postmark API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"postmark-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"postmark-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_POSTMARK_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("__POSTMARK_HELP"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://account.postmarkapp.com/servers"}},[t._v("Postmark Server.")])]),t._v(" "),e("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{label:t.$t("Track Opens")}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.track_opens,callback:function(e){t.$set(t.connection,"track_opens",e)},expression:"connection.track_opens"}},[t._v("\n "+t._s(t.$t("Enable email opens tracking on postmark(For HTML Emails only)."))+"\n "),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("__POSTMARK_OPEN"))+"\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Message Stream")}},[e("el-input",{attrs:{type:"text",size:"small"},model:{value:t.connection.message_stream,callback:function(e){t.$set(t.connection,"message_stream",e)},expression:"connection.message_stream"}})],1)],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{label:"Track Links"}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.track_links,callback:function(e){t.$set(t.connection,"track_links",e)},expression:"connection.track_links"}},[t._v("\n "+t._s(t.$t("Enable link tracking on postmark (For HTML Emails only)."))+"\n "),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("__POSTMARK_CLICK"))+"\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports;const T={name:"PostMark",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const O=(0,i.Z)(T,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("ElasticEmail API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"elasticmail-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"elasticmail-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_ELASTICMAIL_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key from ElasticEmail: "))+"\n "),e("a",{attrs:{target:"_blank",href:"https://elasticemail.com/account#/settings/new/manage-api"}},[t._v(t._s("Get API Key."))])]),t._v(" "),e("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("Email Type")}},[e("el-radio-group",{model:{value:t.connection.mail_type,callback:function(e){t.$set(t.connection,"mail_type",e)},expression:"connection.mail_type"}},[e("el-radio",{attrs:{label:"transactional"}},[t._v(t._s(t.$t("Transactional")))]),t._v(" "),e("el-radio",{attrs:{label:"marketing"}},[t._v(t._s(t.$t("Marketing")))])],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports;const A={name:"Smtp2Go",props:["connection","errors"],components:{InputPassword:o,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const E=(0,i.Z)(A,(function(){var t=this,e=t._self._c;return e("div",[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("SMTP2GO API Settings")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[e("el-radio-button",{attrs:{label:"db"}},[t._v(t._s(t.$t("Store API Keys in DB")))]),t._v(" "),e("el-radio-button",{attrs:{label:"wp_config"}},[t._v(t._s(t.$t("Store API Keys in Config File")))])],1),t._v(" "),"db"==t.connection.key_store?e("el-form-item",[e("label",{attrs:{for:"smtp2go-key"}},[t._v("\n "+t._s(t.$t("API Key"))+"\n ")]),t._v(" "),e("InputPassword",{attrs:{id:"smtp2go-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?e("div",{staticClass:"fss_condesnippet_wrapper"},[e("el-form-item",[e("label",[t._v(t._s(t.$t("__WP_CONFIG_INSTRUCTION")))]),t._v(" "),e("div",{staticClass:"code_snippet"},[e("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP2GO_API_KEY', '********************' );")])]),t._v(" "),e("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Follow this link to get an API Key from SMTP2GO:"))+"\n "),e("a",{attrs:{target:"_blank",href:"https://app-eu.smtp2go.com/sending/apikeys/"}},[t._v(t._s(t.$t("Create API Key.")))])])],1)}),[],!1,null,null,null).exports;function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function N(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,L(s.key),s)}}function L(t){var e=function(t,e){if("object"!=I(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=I(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==I(e)?e:String(e)}const F=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.errors={}}var e,n,s;return e=t,(n=[{key:"get",value:function(t){if(this.errors[t])return Object.values(this.errors[t])[0]}},{key:"has",value:function(t){return!!this.errors[t]}},{key:"record",value:function(t){this.errors=t}},{key:"clear",value:function(){this.errors={}}}])&&N(e.prototype,n),s&&N(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}();var j=n(5828),M=n.n(j);const D={name:"ConnectionSelector",props:["connection","providers"],data:function(){return{showAll:!this.connection.provider}}};const R={name:"ConnectionWizard",props:["connection","is_new","providers","connection_key","connections"],components:{ses:h,mailgun:l,pepipost:_,sendgrid:f,sendinblue:v,sparkpost:y,smtp:w,gmail:$,outlook:S,postmark:P,elasticmail:O,smtp2go:E,Error:a,ConnectionProvider:(0,i.Z)(D,(function(){var t=this,e=t._self._c;return e("div",[t.connection.provider&&!t.showAll?e("div",[e("div",{staticClass:"fsmtp_conncection_selected",class:"con_"+t.connection.provider},[e("img",{staticStyle:{"max-width":"100px",height:"auto"},attrs:{title:t.providers[t.connection.provider].title,src:t.providers[t.connection.provider].image}}),t._v(" "),e("i",{staticClass:"fstmp_check_icon"},[e("svg",{attrs:{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",width:"26px",height:"26px"}},[e("path",{attrs:{d:"M 13 1 C 6.382813 1 1 6.382813 1 13 C 1 19.617188 6.382813 25 13 25 C 19.617188 25 25 19.617188 25 13 C 25 6.382813 19.617188 1 13 1 Z M 13 3 C 18.535156 3 23 7.464844 23 13 C 23 18.535156 18.535156 23 13 23 C 7.464844 23 3 18.535156 3 13 C 3 7.464844 7.464844 3 13 3 Z M 17.1875 7.0625 C 17.039063 7.085938 16.914063 7.164063 16.8125 7.3125 L 11.90625 14.59375 L 9.59375 12.3125 C 9.394531 12.011719 9.011719 11.988281 8.8125 12.1875 L 7.90625 13.09375 C 7.707031 13.394531 7.707031 13.800781 7.90625 14 L 11.40625 17.5 C 11.605469 17.601563 11.886719 17.8125 12.1875 17.8125 C 12.386719 17.8125 12.707031 17.707031 12.90625 17.40625 L 18.90625 8.59375 C 19.105469 8.292969 18.992188 8.011719 18.59375 7.8125 L 17.59375 7.09375 C 17.492188 7.042969 17.335938 7.039063 17.1875 7.0625 Z"}})])])]),t._v(" "),e("el-button",{attrs:{size:"small",icon:"el-icon-edit",type:"default"},on:{click:function(e){t.showAll=!t.showAll}}},[t._v(t._s(t.$t("change")))])],1):e("el-radio-group",{staticClass:"fss_connections",on:{change:function(e){t.showAll=!1}},model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(t,n){return e("el-radio-button",{key:n,class:"con_"+n,attrs:{label:n}},[e("img",{attrs:{title:t.title,src:t.image}})])})),1)],1)}),[],!1,null,null,null).exports},data:function(){return{saving:!1,errors:new F,api_error:"",has_error:!1}},computed:{is_conflicted:function(){var t=this;if(!this.connections)return!1;var e=!1;return M()(this.connections,(function(n,s){t.connection_key!=s&&n.provider_settings.sender_email==t.connection.sender_email&&(e=!0)})),e}},watch:{"connection.provider":function(t){var e=this;if(!t)return!1;var n=JSON.parse(JSON.stringify(this.providers[t].options));n.provider=t,M()(n,(function(t,n){e.$set(e.connection,n,t)}))}},methods:{saveConnectionSettings:function(){var t=this;this.saving=!0,this.api_error="",this.has_error=!1,this.$post("settings",{connection:this.connection,connection_key:this.connection_key}).then((function(e){t.$notify.success(e.data.message),t.$set(t.settings,"connections",e.data.connections),t.$set(t.settings,"mappings",e.data.mappings),t.$set(t.settings,"misc",e.data.misc),t.$router.push({name:"connections"})})).fail((function(e){t.errors.record(e.responseJSON.data),t.api_error=e.responseJSON.data.api_error,t.has_error=!0})).always((function(){t.saving=!1}))}}},z=R;const U=(0,i.Z)(z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fss_connection_wizard"},[e("el-form",{attrs:{data:t.connection,"label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Connection Provider")}},[e("connection-provider",{attrs:{providers:t.providers,connection:t.connection}})],1),t._v(" "),t.connection.provider?[e("div",{staticClass:"fss_config_section"},[e("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sender Settings")))]),t._v(" "),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{label:t.$t("From Email")}},[e("error",{attrs:{error:t.errors.get("sender_email")}}),t._v(" "),e("el-input",{attrs:{type:"email",placeholder:t.$t("From Email")},model:{value:t.connection.sender_email,callback:function(e){t.$set(t.connection,"sender_email",e)},expression:"connection.sender_email"}}),t._v(" "),t.is_conflicted?e("p",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("__ANOTHER_CONNECTION_NOTICE")))]):t._e()],1),t._v(" "),null!=t.connection.force_from_email?e("div",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_email,callback:function(e){t.$set(t.connection,"force_from_email",e)},expression:"connection.force_from_email"}},[t._v("\n "+t._s(t.$t("Force From Email (Recommended Settings: Enable)"))+"\n "),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("__from_email_tooltip"))+"\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1)],1):t._e(),t._v(" "),null!=t.connection.return_path?e("div",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.return_path,callback:function(e){t.$set(t.connection,"return_path",e)},expression:"connection.return_path"}},[t._v("\n "+t._s(t.$t("Set the return-path to match the From Email"))+"\n "),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.$t("__RETURN_PATH_TOOLTIP"))},slot:"content"}),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1)],1):t._e()],1),t._v(" "),e("el-col",{attrs:{md:12,sm:24}},[e("el-form-item",{attrs:{label:t.$t("From Name")}},[e("el-input",{attrs:{type:"text",placeholder:t.$t("From Name")},model:{value:t.connection.sender_name,callback:function(e){t.$set(t.connection,"sender_name",e)},expression:"connection.sender_name"}}),t._v(" "),e("error",{attrs:{error:t.errors.get("sender_name")}})],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_name,callback:function(e){t.$set(t.connection,"force_from_name",e)},expression:"connection.force_from_name"}},[t._v("\n "+t._s(t.$t("Force Sender Name"))+"\n "),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("force_sender_tooltip"))+"\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1),t._v(" "),"default"!=t.connection.provider?e("div",{staticClass:"fss_config_section"},[e(t.connection.provider,{tag:"component",attrs:{errors:t.errors,connection:t.connection,provider:t.providers[t.connection.provider]}})],1):t._e(),t._v(" "),t.providers[t.connection.provider].note?e("p",{staticStyle:{padding:"5px 0px","font-size":"16px",color:"#ff5722"},domProps:{innerHTML:t._s(t.providers[t.connection.provider].note)}}):t._e(),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveConnectionSettings()}}},[t._v(t._s(t.$t("Save Connection Settings")))])]:e("div",[e("h3",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("save_connection_error_1")))])]),t._v(" "),t.saving?e("p",[t._v(t._s(t.$t("Validating Data. Please wait...")))]):t._e(),t._v(" "),t.has_error?e("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{type:"error"}},[t._v(t._s(t.$t("save_connection_error_2")))]):t._e()],2)],1)}),[],!1,null,null,null).exports;const V={name:"email-sendings",props:["date_range"],components:{GrowthChart:{extends:window.VueChartJs.Bar,mixins:[window.VueChartJs.mixins.reactiveProp],props:["stats","maxCumulativeValue"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{id:"byDate",type:"linear",position:"left",gridLines:{drawOnChartArea:!1},ticks:{beginAtZero:!0,userCallback:function(t,e,n){if(Math.floor(t)===t)return t}}},{id:"byCumulative",type:"linear",position:"right",gridLines:{drawOnChartArea:!0},ticks:{beginAtZero:!0,userCallback:function(t,e,n){if(Math.floor(t)===t)return t}}}],xAxes:[{gridLines:{drawOnChartArea:!1},ticks:{beginAtZero:!0,autoSkip:!0,maxTicksLimit:10}}]},drawBorder:!1,layout:{padding:{left:0,right:0,top:0,bottom:20}}}}},methods:{},mounted:function(){this.renderChart(this.chartData,this.options)}}},data:function(){return{fetching:!1,stats:{},chartData:{},maxCumulativeValue:0}},computed:{},methods:{fetchReport:function(){var t=this;this.fetching=!0,this.$get("sending_stats",{date_range:this.date_range}).then((function(e){t.stats=e.stats,t.setupChartItems()})).fail((function(t){console.log(t)})).always((function(){t.fetching=!1}))},setupChartItems:function(){var t=[],e={label:this.$t("By Date"),yAxisID:"byDate",backgroundColor:"rgba(81, 52, 178, 0.5)",borderColor:"#b175eb",data:[],fill:!1,gridLines:{display:!1}},n={label:this.$t("Cumulative"),backgroundColor:"rgba(55, 162, 235, 0.1)",borderColor:"#37a2eb",data:[],yAxisID:"byCumulative",type:"line"},s=0;M()(this.stats,(function(i,o){e.data.push(i),t.push(o),s+=parseInt(i),n.data.push(s)})),this.maxCumulativeValue=s+10,this.chartData={labels:t,datasets:[e,n]}}},mounted:function(){this.fetchReport()}};const G=(0,i.Z)(V,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"fss_body fss_chart_box"},[e("growth-chart",{attrs:{maxCumulativeValue:t.maxCumulativeValue,"chart-data":t.chartData}})],1)}),[],!1,null,null,null).exports;const B={name:"SubscriberForm",data:function(){return{formData:{email:window.FluentMailAdmin.user_email,display_name:window.FluentMailAdmin.user_display_name},share_details:"yes",saving:!1,subscribed:!1}},methods:{subscribeToEmail:function(){var t=this;if(!this.formData.email)return this.$notify.error(this.$t("Please Provide an email")),!1;this.saving=!0,this.$post("settings/subscribe",{email:this.formData.email,display_name:this.formData.display_name,share_essentials:this.share_details}).then((function(e){t.subscribed=!0,setTimeout((function(){t.appVars.require_optin="no"}),15e3),t.$notify.success(e.data.message)})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.saving=!1}))}}};const K=(0,i.Z)(B,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fst_subscribe_form"},[t.subscribed?e("div",{staticStyle:{"text-align":"center"}},[e("p",[t._v(t._s(t.$t("Awesome! Please check your email inbox and confirm your subscription.")))])]):[e("p",{staticStyle:{"margin-top":"0"}},[t._v("\n "+t._s(t.$t("__SUBSCRIBE_INTRO"))+"\n ")]),t._v(" "),e("div",{staticClass:"fsmtp_subscribe"},[e("el-form",{attrs:{"label-position":"right","label-width":"100px"}},[e("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$t("Your Name")}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Your Name")},model:{value:t.formData.display_name,callback:function(e){t.$set(t.formData,"display_name",e)},expression:"formData.display_name"}})],1),t._v(" "),e("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$t("Your Email")}},[e("el-input",{attrs:{size:"small",placeholder:t.$t("Your Email Address")},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1)],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.share_details,callback:function(e){t.share_details=e},expression:"share_details"}},[t._v("\n "+t._s(t.$t("(Optional) Share Non - Sensitive Data. It will help us to improve the integrations"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("Access Data: Active SMTP Connection Provider, installed plugin names, php & mysql version"),placement:"top-end"}},[e("i",{staticClass:"el-icon el-icon-info"})])],1),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],staticStyle:{"margin-top":"10px"},attrs:{disabled:t.saving,type:"success",size:"small"},on:{click:function(e){return t.subscribeToEmail()}}},[t._v("\n "+t._s(t.$t("Subscribe To Updates"))+"\n ")])],1)]],2)}),[],!1,null,null,null).exports;const q={name:"SubscribeDismiss",methods:{dismiss:function(){var t=this;this.$post("settings/subscribe-dismiss").then((function(e){t.appVars.require_optin="no"})).catch((function(e){t.$notify.error(e.responseJSON.data.message)}))}}};const Z=(0,i.Z)(q,(function(){var t=this;return(0,t._self._c)("i",{staticClass:"el-icon el-icon-close",on:{click:function(e){return t.dismiss()}}})}),[],!1,null,null,null).exports;const H={name:"SubmissionByDayGraph",props:[],data:function(){return{last_day:30,appReady:!1,dataItems:{},days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],filledSlots:["0:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"],tipIndexes:["1am","4am","7am","10am","1pm","4pm","7pm","10pm"]}},computed:{maxValue:function(){var t=0;for(var e in this.dataItems)for(var n in this.dataItems[e])this.dataItems[e][n]>t&&(t=this.dataItems[e][n]);return t<5?5:t}},methods:{getLevel:function(t){if(!(t=parseInt(t)))return"level_0";var e=Math.round(t/this.maxValue*100);return e>80?"level_5":e>60?"level_4":e>40?"level_3":e>20?"level_2":"level_1"},fetchStats:function(){var t=this;this.appReady=!1,this.$get("day-time-stats",{last_day:this.last_day}).then((function(e){t.dataItems=e.stats})).fail((function(t){console.log(t)})).always((function(){t.appReady=!0}))}},mounted:function(){this.fetchStats()}};var W=n(1490),Y=n.n(W),J=n(3956),Q={insert:"head",singleton:!1};Y()(J.Z,Q);J.Z.locals;const X={name:"Dashboard",components:{ConnectionWizard:U,EmailsChart:G,EmailSubscriber:K,SubscribeDismiss:Z,ByDayTimeSending:(0,i.Z)(H,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fss_wid_widget fss_wid_day_by_day",staticStyle:{margin:"20px 0",background:"white"}},[e("div",{staticClass:"fss_header fss_widget_header"},[e("h3",[t._v(t._s(t.$t("Sending by time of day")))]),t._v(" "),e("div",{staticClass:"widget_actions fss_to_right"},[e("el-select",{attrs:{size:"small"},on:{change:t.fetchStats},model:{value:t.last_day,callback:function(e){t.last_day=e},expression:"last_day"}},[e("el-option",{attrs:{value:7,label:t.$t("Last 7 Days")}}),t._v(" "),e("el-option",{attrs:{value:30,label:t.$t("Last 30 Days")}}),t._v(" "),e("el-option",{attrs:{value:0,label:t.$t("All Time")}})],1)],1)]),t._v(" "),e("div",{staticClass:"fss_content"},[t.appReady?e("div",{staticClass:"fcraft_time_widget"},[e("div",{staticClass:"fcraft_time_widget_header"},[e("div",{staticClass:"fcraft_time_day"}),t._v(" "),t._l(t.days,(function(n){return e("div",{key:n,staticClass:"fcraft_time_day"},[t._v(t._s(n))])}))],2),t._v(" "),e("div",{staticClass:"fcraft_time_widget_body"},[e("div",{staticClass:"fss_wid_sub_headers"},t._l(t.tipIndexes,(function(n){return e("div",{key:n,staticClass:"fss_wid_sub_header"},[t._v("\n "+t._s(n)+"\n ")])})),0),t._v(" "),t._l(t.days,(function(n){return e("div",{key:n,staticClass:"fcraft_time_day"},t._l(t.filledSlots,(function(s){return e("div",{key:s,staticClass:"fcraft_time_hour",class:"fss_wid_"+t.getLevel(t.dataItems[n][s])},[t.dataItems[n][s]?e("el-tooltip",{attrs:{content:t.dataItems[n][s]+" emails sent ",placement:"top"}},[e("div",{staticClass:"fcraft_time_hour_value"},[e("span",[t._v(t._s(t.dataItems[n][s]))])])]):t._e()],1)})),0)}))],2)]):e("el-skeleton",{staticClass:"fss_content",attrs:{rows:5}}),t._v(" "),e("div",{staticClass:"fss_wid_label_info"},[e("span",{staticClass:"fss_wid_dir"},[t._v(t._s(t.$t("Less")))]),t._v(" "),e("span",{staticClass:"fss_wid_level fss_wid_level_1"}),t._v(" "),e("span",{staticClass:"fss_wid_level fss_wid_level_2"}),t._v(" "),e("span",{staticClass:"fss_wid_level fss_wid_level_3"}),t._v(" "),e("span",{staticClass:"fss_wid_level fss_wid_level_4"}),t._v(" "),e("span",{staticClass:"fss_wid_level fss_wid_level_5"}),t._v(" "),e("span",{staticClass:"fss_wid_dir"},[t._v(t._s(t.$t("More")))])])],1)])}),[],!1,null,null,null).exports},data:function(){return{stats:{},new_connection:{},settings_stat:{},date_range:"",showing_chart:!0,pickerOptions:{disabledDate:function(t){return t>new Date},shortcuts:[{text:this.$t("Last week"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:this.$t("Last month"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:this.$t("Last 3 months"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-7776e6),t.$emit("pick",[n,e])}}]},loading:!0,skip_recommended:!1}},computed:{is_new:function(){return e()(this.settings.connections)},recommended:function(){return!!this.is_new&&this.appVars.recommended}},methods:{fetch:function(){var t=this;this.loading=!0,this.$get("/").then((function(e){t.stats=e.stats,t.settings_stat=e.settings_stat})).fail((function(t){console.log(t)})).always((function(){t.loading=!1}))},filterReport:function(){var t=this;this.showing_chart=!1,this.$nextTick((function(){t.showing_chart=!0}))},setRecommendation:function(){this.new_connection=JSON.parse(JSON.stringify(this.recommended.settings)),this.skip_recommended=!0}},created:function(){this.fetch()}};const tt=(0,i.Z)(X,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard"},[t.is_new?e("div",{staticClass:"fss_content"},[e("div",{staticClass:"fss_connection_intro"},[e("div",{staticClass:"fss_intro"},[e("h1",[t._v(t._s(t.$t("__wizard_title")))]),t._v(" "),e("p",[t._v(t._s(t.$t("__wizard_sub")))])]),t._v(" "),t.recommended&&!t.skip_recommended?e("div",{staticClass:"fsmtp_recommened"},[e("h2",[t._v(t._s(t.recommended.title))]),t._v(" "),e("p",[t._v(t._s(t.recommended.subtitle))]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.setRecommendation()}}},[t._v(t._s(t.recommended.button_text))]),t._v(" "),e("el-button",{attrs:{type:"info"},on:{click:function(e){t.skip_recommended=!0}}},[t._v("Skip")])],1):[e("h2",[t._v(t._s(t.$t("__wizard_instruction")))]),t._v(" "),e("connection-wizard",{attrs:{connection:t.new_connection,is_new:!0,connection_key:!1,providers:t.settings.providers}})]],2)]):e("div",[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{sm:24,md:16}},[e("div",{staticClass:"fss_dashboard_widget"},[e("div",{staticClass:"fss_header fss_widget_header"},[e("h3",[t._v(t._s(t.$t("Sending Stats")))]),t._v(" "),e("div",{staticClass:"fss_to_right"},[e("el-date-picker",{attrs:{size:"small",type:"daterange","picker-options":t.pickerOptions,"range-separator":"To","start-placeholder":t.$t("Start date"),"end-placeholder":t.$t("End date"),"value-format":"yyyy-MM-dd"},model:{value:t.date_range,callback:function(e){t.date_range=e},expression:"date_range"}}),t._v(" "),e("el-button",{staticStyle:{padding:"8px 15px"},attrs:{size:"small",type:"primary",plain:""},on:{click:t.filterReport}},[t._v("Apply")])],1)]),t._v(" "),e("div",{staticClass:"fss_content"},[t.showing_chart?e("emails-chart",{attrs:{date_range:t.date_range}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"fss_dashboard_widget"},[e("ByDayTimeSending")],1)]),t._v(" "),e("el-col",{attrs:{sm:24,md:8}},[e("div",{staticClass:"fsm_card"},[e("div",{staticClass:"fss_header"},[t._v("\n "+t._s(t.$t("Quick Overview"))+"\n ")]),t._v(" "),t.loading?e("el-skeleton",{staticClass:"fss_content",attrs:{rows:8}}):e("div",{staticClass:"fss_content"},[e("ul",{staticClass:"fss_dash_lists"},["yes"==t.settings_stat.log_enabled?e("li",[t._v("\n "+t._s(t.$t("Total Email Sent (Logged):"))+" "),e("span",[t._v(t._s(t.stats.sent))])]):t._e(),t._v(" "),t.stats.failed>0?e("li",{staticStyle:{color:"red"}},[e("router-link",{staticStyle:{color:"red"},attrs:{to:{name:"logs",query:{filterBy:"status",filterValue:"failed"}}}},[t._v("\n "+t._s(t.$t("Email Failed:"))+" "),e("span",[t._v(t._s(t.stats.failed))])])],1):t._e(),t._v(" "),e("li",[t._v("\n "+t._s(t.$t("Active Connections:"))+" "),e("span",[t._v(t._s(t.settings_stat.connection_counts))])]),t._v(" "),e("li",[t._v("\n "+t._s(t.$t("Active Senders:"))+" "),e("span",[t._v(t._s(t.settings_stat.active_senders))])]),t._v(" "),e("li",[t._v("\n "+t._s(t.$t("Save Email Logs:"))+"\n "),e("span",{staticStyle:{"text-transform":"capitalize"}},[t._v("\n "+t._s(t.settings_stat.log_enabled)+"\n ")])]),t._v(" "),"yes"==t.settings_stat.log_enabled?e("li",[t._v("\n "+t._s(t.$t("Delete Logs:"))+"\n "),e("span",[t._v("After "+t._s(t.settings_stat.auto_delete_days)+" "+t._s(t.$t("Days")))])]):t._e()])])],1),t._v(" "),"yes"==t.appVars.require_optin&&t.stats.sent>9?e("div",{staticClass:"fsm_card",staticStyle:{"margin-top":"20px"}},[e("div",{staticClass:"fss_header"},[t._v("\n "+t._s(t.$t("Subscribe To Updates"))+"\n "),e("span",{staticClass:"fss_header_action_right"},[e("subscribe-dismiss")],1)]),t._v(" "),e("div",{staticClass:"fss_content"},[e("email-subscriber")],1)]):t._e()])],1)],1)])}),[],!1,null,null,null).exports;const et={name:"Confirm",props:{placement:{default:"top-end"},message:{default:"Are you sure to delete this?"}},data:function(){return{visible:!1}},methods:{hide:function(){this.visible=!1},confirm:function(){this.hide(),this.$emit("yes")},cancel:function(){this.hide(),this.$emit("no")}}};const nt=(0,i.Z)(et,(function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{width:"170",placement:t.placement},on:{hide:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("p",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),e("div",{staticClass:"action-buttons"},[e("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){return t.cancel()}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.confirm()}}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1),t._v(" "),e("template",{slot:"reference"},[t._t("reference",(function(){return[e("i",{staticClass:"el-icon-delete"})]}))],2)],2)}),[],!1,null,null,null).exports;const st={name:"FluentMailGeneralSettings",data:function(){return{saving:!1,logging_days:{7:this.$t("After 7 Days"),14:this.$t("After 14 Days"),30:this.$t("After 30 Days"),60:this.$t("After 60 Days"),90:this.$t("After 90 Days"),180:this.$t("After 6 Months"),365:this.$t("After 1 Year"),730:this.$t("After 2 Years")}}},computed:{connectionsCount:function(){return Object.keys(this.settings.connections).length}},methods:{saveMiscSettings:function(){var t=this;this.settings.misc.fallback_connection&&this.settings.misc.default_connection&&this.settings.misc.default_connection==this.settings.misc.fallback_connection?this.$notify.error(this.$t("__DEFAULT_CONNECTION_CONFLICT")):(this.saving=!0,this.$post("misc-settings",{settings:this.settings.misc}).then((function(e){t.$notify.success(e.data.message)})).fail((function(t){console.log(t)})).always((function(){t.saving=!1})))}}};const it={name:"connection_details",props:["connection_id"],data:function(){return{loading:!1,connection_content:"",verificationSettings:null,showEmailManageModal:!1,newSender:"",addingNew:!1}},methods:{fetchDetails:function(){var t=this;this.loading=!0,this.$get("settings/connection_info",{connection_id:this.connection_id}).then((function(e){t.connection_content=e.data.info,t.verificationSettings=e.data.verificationSettings})).catch((function(e){t.connection_content=e.responseText,console.log(e)})).always((function(){t.loading=!1}))},addNewSender:function(){var t=this;this.newSender?this.verificationSettings.all_senders.indexOf(this.newSender)>-1?this.$notify.error({title:"Error",message:this.$t("The email address already exists in the list")}):this.newSender.split("@")[1]===this.verificationSettings.verified_domain?(this.addingNew=!0,this.$post("settings/add_new_sender_email",{connection_id:this.connection_id,new_sender:this.newSender}).then((function(e){t.$notify.success(e.data.message),t.newSender="",t.fetchDetails()})).catch((function(e){t.$notify.error({title:"Validation Failed",message:e.responseJSON.data.message})})).always((function(){t.addingNew=!1}))):this.$notify.error({title:"Error",message:this.$t("The email address must match the domain: ")+this.verificationSettings.verified_domain}):this.$notify.error({title:"Error",message:this.$t("Please enter a valid email address")})},removeSender:function(t){var e=this;this.$confirm(this.$t("Are you sure you want to remove this email address?"),"Warning",{confirmButtonText:"Yes",cancelButtonText:"No",type:"warning"}).then((function(){e.loading=!0,e.$post("settings/remove_sender_email",{connection_id:e.connection_id,email:t}).then((function(t){e.$notify.success(t.data.message)})).catch((function(t){e.$notify.error({title:"Validation Failed",message:t.responseJSON.data.message})})).always((function(){e.loading=!1,e.fetchDetails()}))}))}},created:function(){this.fetchDetails()}};function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function at(t,e,n){var s;return s=function(t,e){if("object"!=ot(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=ot(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ot(s)?s:String(s))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(){ct=function(){return e};var t,e={},n=Object.prototype,s=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,s){var o=e&&e.prototype instanceof h?e:h,r=Object.create(o.prototype),a=new A(s||[]);return i(r,"_invoke",{value:C(t,n,a)}),r}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",v="completed",m={};function h(){}function g(){}function y(){}var b={};l(b,r,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(E([])));k&&k!==n&&s.call(k,r)&&(b=k);var $=y.prototype=h.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,r,a){var c=_(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==ot(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,r,a)}),(function(t){n("throw",t,r,a)})):e.resolve(u).then((function(t){l.value=t,r(l)}),(function(t){return n("throw",t,r,a)}))}a(c.arg)}var o;i(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){n(t,s,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,s){var i=d;return function(o,r){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw r;return{value:t,done:!0}}for(s.method=o,s.arg=r;;){var a=s.delegate;if(a){var c=P(a,s);if(c){if(c===m)continue;return c}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===d)throw i=v,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=p;var l=_(e,n,s);if("normal"===l.type){if(i=s.done?v:f,l.arg===m)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(i=v,s.method="throw",s.arg=l.arg)}}}function P(e,n){var s=n.method,i=e.iterator[s];if(i===t)return n.delegate=null,"throw"===s&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==s&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=_(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var r=o.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(s.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(ot(e)+" is not iterable")}return g.prototype=y,i($,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:g,configurable:!0}),g.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},x(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,s,i,o){void 0===o&&(o=Promise);var r=new S(u(t,n,s,i),o);return e.isGeneratorFunction(n)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},x($),l($,c,"Generator"),l($,r,(function(){return this})),l($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var s in e)n.push(s);return n.reverse(),function t(){for(;n.length;){var s=n.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},e.values=E,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(s,i){return a.type="throw",a.arg=e,n.next=s,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var c=s.call(r,"catchLoc"),l=s.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=t,r.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=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:E(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)}function ut(t){return 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 _t={name:"Connections",components:{Confirm:nt,GeneralSettings:(0,i.Z)(st,(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.settings.misc,"label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Log Emails")}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.misc.log_emails,callback:function(e){t.$set(t.settings.misc,"log_emails",e)},expression:"settings.misc.log_emails"}},[t._v(t._s(t.$t("Log All Emails for Reporting")))])],1),t._v(" "),"yes"==t.settings.misc.log_emails&&t.appVars.has_fluentcrm?e("el-form-item",{attrs:{label:t.$t("FluentCRM Email Logging")}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.misc.disable_fluentcrm_logs,callback:function(e){t.$set(t.settings.misc,"disable_fluentcrm_logs",e)},expression:"settings.misc.disable_fluentcrm_logs"}},[t._v(t._s(t.$t("Disable Logging for FluentCRM Emails")))])],1):t._e(),t._v(" "),"yes"==t.settings.misc.log_emails?e("el-form-item",[e("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Delete Logs"))+"\n "),e("el-popover",{attrs:{width:"400",trigger:"hover"}},[e("p",[t._v(t._s(t.$t("delete_logs_info")))]),t._v(" "),e("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),e("el-select",{model:{value:t.settings.misc.log_saved_interval_days,callback:function(e){t.$set(t.settings.misc,"log_saved_interval_days",e)},expression:"settings.misc.log_saved_interval_days"}},t._l(t.logging_days,(function(t,n){return e("el-option",{key:n,attrs:{value:n,label:t}})})),1)],1):t._e(),t._v(" "),e("el-form-item",[e("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Default Connection"))+"\n "),e("el-popover",{attrs:{width:"400",trigger:"hover"}},[e("p",[t._v(t._s(t.$t("__default_connection_popover")))]),t._v(" "),e("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),e("el-select",{model:{value:t.settings.misc.default_connection,callback:function(e){t.$set(t.settings.misc,"default_connection",e)},expression:"settings.misc.default_connection"}},t._l(t.settings.connections,(function(t,n){return e("el-option",{key:n,attrs:{value:n,label:t.title+" - "+t.provider_settings.sender_email}})})),1)],1),t._v(" "),e("el-form-item",[e("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Fallback Connection"))+"\n "),e("el-popover",{attrs:{width:"400",trigger:"hover"}},[e("p",[t._v(t._s(t.$t("__fallback_connection_popover")))]),t._v(" "),e("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),t.connectionsCount>1?e("el-select",{attrs:{clearable:""},model:{value:t.settings.misc.fallback_connection,callback:function(e){t.$set(t.settings.misc,"fallback_connection",e)},expression:"settings.misc.fallback_connection"}},t._l(t.settings.connections,(function(n,s){return e("el-option",{key:s,attrs:{disabled:t.settings.misc.default_connection==s,value:s,label:n.title+" - "+n.provider_settings.sender_email}})})),1):e("p",{staticStyle:{color:"#6d6b6b",margin:"0"}},[t._v(t._s(t.$t("Please add another connection to use fallback feature")))])],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Email Simulation")}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.misc.simulate_emails,callback:function(e){t.$set(t.settings.misc,"simulate_emails",e)},expression:"settings.misc.simulate_emails"}},[t._v(t._s(t.$t("__Email_Simulation_Label")))]),t._v(" "),"yes"==t.settings.misc.simulate_emails?e("p",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("__Email_Simulation_Yes")))]):t._e(),t._v(" "),t.appVars.is_disabled_defined?e("p",{staticStyle:{color:"red"}},[t._v(t._s("Emails are being simulated due to the definition of ")+" "),e("b",[t._v("FLUENTMAIL_SIMULATE_EMAILS")]),t._v(t._s(" in your PHP code."))]):t._e()],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("Add Multi-Part Plain Text for HTML Emails (beta)")}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.misc.send_as_text,callback:function(e){t.$set(t.settings.misc,"send_as_text",e)},expression:"settings.misc.send_as_text"}},[t._v(t._s(t.$t("__Email_TEXT_PART_Label")))])],1),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveMiscSettings()}}},[t._v(t._s(t.$t("Save Settings")))])],1)],1)}),[],!1,null,null,null).exports,ConnectionDetails:(0,i.Z)(it,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"fss_connection_details",staticStyle:{"min-height":"200px"},attrs:{"element-loading-text":"Loading Details..."}},[e("div",{domProps:{innerHTML:t._s(t.connection_content)}}),t._v(" "),t.verificationSettings&&t.verificationSettings.verified_domain?[e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.showEmailManageModal=!0}}},[t._v(t._s(t.$t("Add Additional Senders")))]),t._v(" "),e("el-dialog",{attrs:{visible:t.showEmailManageModal,title:t.$t("Manage Additional Senders"),width:"50%"},on:{"update:visible":function(e){t.showEmailManageModal=e}}},[e("p",{staticStyle:{"font-size":"16px"}},[t._v(t._s(t.$t("You may add additional sending emails in this"))+"\n "+t._s(t.verificationSettings.connection_name)+" "+t._s(t.$t(" connection.")))]),t._v(" "),e("el-input",{attrs:{type:"text",placeholder:t.$t("Enter new email address ex: new_sender@")+t.verificationSettings.verified_domain},model:{value:t.newSender,callback:function(e){t.newSender=e},expression:"newSender"}},[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.addingNew,expression:"addingNew"}],attrs:{slot:"append",disabled:t.addingNew,type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.addNewSender()}},slot:"append"},[t._v("\n "+t._s(t.$t("Add")))])],1),t._v(" "),e("p",[t._v(t._s(t.$t("The email address must match the domain: "))),e("code",[t._v(t._s(t.verificationSettings.verified_domain))])]),t._v(" "),e("hr"),t._v(" "),e("h3",[t._v(t._s(t.$t("Current verified senders:")))]),t._v(" "),e("table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp-list-table widefat striped"},[e("tbody",t._l(t.verificationSettings.all_senders,(function(n){return e("tr",{key:n},[e("th",[t._v("\n "+t._s(n)+"\n "),-1===t.verificationSettings.verified_senders.indexOf(n)?e("el-button",{attrs:{plain:"",type:"danger",size:"mini"},on:{click:function(e){return t.removeSender(n)}}},[t._v("\n "+t._s(t.$t("Remove")))]):t._e()],1)])})),0)])],1)]:t._e()],2)}),[],!1,null,null,null).exports},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return ut(ct().mark((function n(){var s;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$get("settings");case 2:s=n.sent,t.settings.mappings=s.data.settings.mappings,t.settings.connections=s.data.settings.connections,e()(t.settings.connections)&&t.$router.push({name:"dashboard",query:{is_redirect:"yes"}});case 6:case"end":return n.stop()}}),n)})))()},addConnection:function(){this.$router.push({name:"connection"})},editConnection:function(t){this.$router.push({name:"connection",query:{connection_key:t.unique_key}})},deleteConnection:function(t){var e=this;return ut(ct().mark((function n(){var s;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$post("settings/delete",{key:t.unique_key});case 2:s=n.sent,e.settings.connections=s.data.connections,e.settings.misc.default_connection=s.data.misc.default_connection,e.$notify.success({title:"Great!",message:e.$t("Connection deleted Successfully."),offset:19});case 6:case"end":return n.stop()}}),n)})))()},showConnection:function(t){var e=this;this.showing_connection="",this.$nextTick((function(){e.showing_connection=t.unique_key}))}},computed:{connections:function(){var t=[];return jQuery.each(this.settings.connections,(function(e,n){t.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({unique_key:e,title:n.title},n.provider_settings))})),t}},created:function(){this.fetch()}};const dt=(0,i.Z)(_t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluentmail_connections"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:14,sm:24}},[e("div",{staticClass:"fss_content_box"},[e("div",{staticClass:"fss_header"},[e("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Active Email Connections"))+"\n ")]),t._v(" "),e("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:t.addConnection}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("Add Another Connection"))+"\n ")])]),t._v(" "),e("div",{staticClass:"fss_content"},[e("el-table",{attrs:{stripe:"",border:"",data:t.connections}},[e("el-table-column",{attrs:{label:t.$t("Provider")},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(t.settings.providers[n.row.provider].title)+"\n "),"gmail"!=n.row.provider||n.row.version?t._e():e("span",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("(Re Authentication Required)")))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"sender_email",label:t.$t("From Email")},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.showConnection(n.row)}}},[t._v(t._s(n.row.sender_email))])]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"120",label:t.$t("Actions"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.editConnection(n.row)}}}),t._v(" "),e("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-view"},on:{click:function(e){return t.showConnection(n.row)}}}),t._v(" "),e("confirm",{on:{yes:function(e){return t.deleteConnection(n.row)}}},[e("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}])})],1),t._v(" "),t.connections.length>1?e("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{closable:!1,type:"info"}},[t._v("\n "+t._s(t.$t("__routing_info"))+"\n ")]):t._e()],1)]),t._v(" "),t.showing_connection?e("div",{staticClass:"fss_content_box"},[e("div",{staticClass:"fss_header"},[e("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Connection Details"))+"\n ")]),t._v(" "),e("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:function(e){t.showing_connection=""}}},[t._v("\n "+t._s(t.$t("Close"))+"\n ")])]),t._v(" "),e("div",{staticClass:"fss_content"},[e("connection-details",{attrs:{connection_id:t.showing_connection}})],1)]):t._e()]),t._v(" "),e("el-col",{attrs:{md:10,sm:24}},[e("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"general"==t.active_settings},staticStyle:{"margin-bottom":"0px"}},[e("div",{staticClass:"fss_header",on:{click:function(e){t.active_settings="general"}}},[t._v("\n "+t._s(t.$t("General Settings"))+"\n ")]),t._v(" "),"general"==t.active_settings?e("div",{staticClass:"fss_content"},[e("general-settings")],1):t._e()])])],1)],1)}),[],!1,null,null,null).exports;const ft={name:"Connection",components:{ConnectionWizard:U},data:function(){return{active:1,title:"Add Connection",provider:{},provider_key:""}},methods:{},created:function(){var t=this.$route.query.connection_key;t&&"0"!==t&&(this.title=this.$t("Edit Connection"),this.provider=this.settings.connections[t].provider_settings,this.provider_key=t)}};const pt=(0,i.Z)(ft,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"connection"},[e("div",{staticClass:"fss_header"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),e("div",{staticClass:"fss_content"},[e("div",{staticClass:"fss_connection_intro"},[e("connection-wizard",{attrs:{connection:t.provider,connection_key:t.provider_key,providers:t.settings.providers,connections:t.settings.connections}})],1)])])}),[],!1,null,null,null).exports;const vt={name:"Pagination",props:{pagination:{required:!0,type:Object}},computed:{page_sizes:function(){return[10,20,50,80,100,120,150]}},methods:{changePage:function(t){this.pagination.current_page=t,this.$emit("fetch")},changeSize:function(t){this.pagination.per_page=t,this.$emit("fetch")}}};const mt=(0,i.Z)(vt,(function(){var t=this;return(0,t._self._c)("el-pagination",{staticClass:"fluentcrm-pagination",attrs:{background:!1,layout:"total, sizes, prev, pager, next","hide-on-single-page":!1,"current-page":t.pagination.current_page,"page-sizes":t.page_sizes,"page-size":t.pagination.per_page,total:t.pagination.total},on:{"current-change":t.changePage,"size-change":t.changeSize,"update:currentPage":function(e){return t.$set(t.pagination,"current_page",e)},"update:current-page":function(e){return t.$set(t.pagination,"current_page",e)}}})}),[],!1,null,null,null).exports;const ht={name:"LogFilter",props:["filter_query"],data:function(){return{pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()},shortcuts:[{text:this.$t("Today"),onClick:function(t){var e=new Date;t.$emit("pick",[e,e])}},{text:this.$t("Last week"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:this.$t("Last month"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:this.$t("Last 3 months"),onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-7776e6),t.$emit("pick",[n,e])}}]}}},methods:{applyFilter:function(){this.$emit("on-filter",this.filter_query)}},mounted:function(){var t=this.$route.query.filterBy,e=this.$route.query.filterValue;t&&(this.filterBy=t,this.filterValue=e,this.applyFilter())}};const gt=(0,i.Z)(ht,(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{float:"left","margin-left":"10px"}},[e("el-row",{staticStyle:{"margin-right":"-20px"},attrs:{gutter:10}},[e("el-col",{attrs:{span:10}},[e("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.applyFilter()}},model:{value:t.filter_query.status,callback:function(e){t.$set(t.filter_query,"status",e)},expression:"filter_query.status"}},[e("el-radio-button",{attrs:{label:""}},[t._v(t._s(t.$t("All Statuses")))]),t._v(" "),e("el-radio-button",{attrs:{label:"sent"}},[t._v(t._s(t.$t("Successful")))]),t._v(" "),e("el-radio-button",{attrs:{label:"failed"}},[t._v(t._s(t.$t("Failed")))])],1)],1),t._v(" "),e("el-col",{attrs:{span:10}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",size:"small","picker-options":t.pickerOptions,type:"daterange",placeholder:t.$t("Select date and time"),"range-separator":t.$t("To"),"start-placeholder":t.$t("Start date"),"end-placeholder":t.$t("End date")},model:{value:t.filter_query.date_range,callback:function(e){t.$set(t.filter_query,"date_range",e)},expression:"filter_query.date_range"}})],1),t._v(" "),e("el-col",{attrs:{span:4}},[e("el-button",{attrs:{plain:"",size:"small",type:"primary"},on:{click:t.applyFilter}},[t._v(t._s(t.$t("Filter"))+"\n ")])],1)],1)],1)}),[],!1,null,null,null).exports;const yt={name:"EmailbodyContainer",props:["content"],data:function(){return{}},methods:{setBody:function(t){var e=this;t||(t=" "),this.$nextTick((function(){var n=e.$refs.ifr;(n.contentDocument||n.contentWindow.document).body.innerHTML=t}))},fullScreen:function(){var t=document,e=this.$refs.ifr;(t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled)&&(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen())}},watch:{content:{immediate:!0,handler:"setBody"}}};function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function kt(t,e,n){var s;return s=function(t,e){if("object"!=bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=bt(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==bt(s)?s:String(s))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const $t={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,i.Z)(yt,(function(){var t=this,e=t._self._c;return e("div",[e("iframe",{ref:"ifr",staticStyle:{width:"100%",height:"400px"},attrs:{frameborder:"0",allowFullScreen:"",mozallowfullscreen:"",webkitallowfullscreen:""}}),t._v(" "),e("el-button",{ref:"fullscreen",attrs:{size:"small",type:"primary",icon:"el-icon-full-screen"},on:{click:t.fullScreen}},[t._v("\n "+t._s(t.$t("Enter Full Screen"))+"\n ")])],1)}),[],!1,null,null,null).exports},data:function(){return{activeName:"email_body",loading:!1,next:!1,prev:!1,retrying:!1}},methods:{navigate:function(t){var e=this,n={dir:t,id:this.log.id,query:this.logViewerProps.query,filter_by:this.logViewerProps.filterBy,filter_by_value:this.logViewerProps.filterByValue};this.loading=!0,this.$get("logs/show",n).then((function(n){if(!t)return e.next=n.data.next.length,void(e.prev=n.data.prev.length);e.logViewerProps.log=n.data.log,e.next=n.data.next,e.prev=n.data.prev})).fail((function(t){console.log(t)})).always((function(){e.loading=!1}))},getAttachments:function(t){if(!t)return[];if(!t.attachments)return[];if(!Array.isArray(t.attachments))return[t.attachments];var e=[];return t.attachments.forEach((function(t,n){e[n]=t})),e},closed:function(){this.next=!0,this.prev=!0,this.activeName="email_body"},getAttachmentName:function(t){if(t&&t[0])return(t=t[0].replace(/\\/g,"/")).split("/").pop()},handleRetry:function(t,e){var n=this;this.retrying=!0,this.$post("logs/retry",{id:t.id,type:e}).then((function(t){n.logViewerProps.retries=t.data.email.retries,n.logViewerProps.log.status=t.data.email.status,n.logViewerProps.log.updated_at=t.data.email.updated_at,n.logViewerProps.log.resent_count=t.data.email.resent_count})).fail((function(t){n.$notify.error({offset:19,title:"Oops!!",message:t.responseJSON.data.message})})).always((function(){n.retrying=!1}))},sanitize:function(t){return window.DOMPurify.sanitize(t)}},computed:{log:{get:function(){var t;return this.logViewerProps.log&&(t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.logViewerProps.log),t.headers||(t.headers={}),t.response||(t.response={}),t.extra||(t.extra={})),t},set:function(t){this.logViewerProps.log=t}}}};const xt={name:"BulkAction",props:["selected"],data:function(){return{action:"",resending:!1}},computed:{is_failed_selected:function(){return!!this.selected.length}},methods:{applyBulkAction:function(){this.$emit("on-bulk-action",{action:this.action}),this.action=""}},watch:{selected:function(t){"deleteselected"===this.action&&(this.action=t.length?this.action:"")}}};const St={name:"EmailLog",components:{Confirm:nt,Pagination:mt,LogFilter:gt,LogViewer:(0,i.Z)($t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"log-viewer"},[t.log?e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.retrying,expression:"retrying"}],attrs:{title:t.$t("Email Log"),visible:t.logViewerProps.dialogVisible},on:{closed:t.closed,"update:visible":function(e){return t.$set(t.logViewerProps,"dialogVisible",e)}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("ul",{staticClass:"fss_log_items"},[e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Status:")))]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",{class:{success:"sent"==t.log.status,resent:"resent"==t.log.status,fail:"failed"==t.log.status}},[e("span",{staticStyle:{"text-transform":"capitalize","margin-right":"10px"}},[t._v(t._s(t.log.status))]),t._v(" "),"failed"==t.log.status?e("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh",plain:!0},on:{click:function(e){return t.handleRetry(t.log,"retry")}}},[t._v(t._s(t.$t("Retry")))]):t._e(),t._v(" "),"sent"==t.log.status?e("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh-right"},on:{click:function(e){return t.handleRetry(t.log,"resend")}}},[t._v("\n "+t._s(t.$t("Resend"))+"\n ")]):t._e()],1)])]),t._v(" "),e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Date-Time"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[t._v(t._s(t.log.created_at))])]),t._v(" "),e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("From"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",{domProps:{innerHTML:t._s(t.log.from)}})])]),t._v(" "),e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("To"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",{domProps:{innerHTML:t._s(t.log.to)}})])]),t._v(" "),t.log.resent_count>0?e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Resent Count"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",{domProps:{innerHTML:t._s(t.log.resent_count)}})])]):t._e(),t._v(" "),e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Subject"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",[t._v(t._s(t.log.subject))])])]),t._v(" "),t.log.extra&&t.log.extra.provider&&t.settings.providers[t.log.extra.provider]?e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Mailer"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",[t._v(t._s(t.settings.providers[t.log.extra.provider].title))])])]):t.log.extra&&t.log.extra.provider?e("li",[e("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Mailer"))+":")]),t._v(" "),e("div",{staticClass:"item_content"},[e("span",[t._v(t._s(t.log.extra.provider))])])]):t._e()]),t._v(" "),e("el-collapse",{staticStyle:{"margin-top":"10px"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-collapse-item",{attrs:{name:"email_body"}},[e("template",{slot:"title"},[e("strong",{staticStyle:{color:"#606266"}},[t._v(t._s(t.$t("Email Body"))+" (sanitized)")])]),t._v(" "),e("hr",{staticClass:"log-border"}),t._v(" "),e("EmailbodyContainer",{attrs:{content:t.sanitize(t.log.body)}}),t._v(" "),e("hr")],2),t._v(" "),e("p",[e("strong",[t._v(t._s(t.$t("Server Response")))])]),t._v(" "),e("el-row",[e("el-col",[e("pre",[t._v(t._s(t.log.response))])])],1),t._v(" "),e("hr"),t._v(" "),e("el-collapse-item",{attrs:{name:"tech_info"}},[e("template",{slot:"title"},[e("strong",{staticStyle:{color:"#606266"}},[t._v(t._s(t.$t("Email Headers")))])]),t._v(" "),e("div",[e("pre",[t._v(t._s(t.log.headers))]),t._v(" "),t.log.extra.custom_headers?e("pre",[t._v(t._s(t.log.extra.custom_headers))]):t._e()])],2),t._v(" "),e("el-collapse-item",{attrs:{name:"attachments"}},[e("template",{slot:"title"},[e("strong",{staticStyle:{color:"#606266"}},[t._v("\n "+t._s(t.$t("Attachments"))+" ("+t._s(t.getAttachments(t.log).length)+")\n ")])]),t._v(" "),e("hr",{staticClass:"log-border"}),t._v(" "),t._l(t.getAttachments(t.log),(function(n,s){return e("div",{key:s,staticStyle:{margin:"5px 0 10px 0"}},[t._v("\n ("+t._s(s+1)+") "+t._s(t.getAttachmentName(n))+"\n ")])}))],2)],1),t._v(" "),e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"prev nav",attrs:{size:"small",disabled:!t.prev},on:{click:function(e){return t.navigate("prev")}}},[e("i",{staticClass:"el-icon-arrow-left"}),t._v(" "+t._s(t.$t("Prev"))+"\n ")])],1),t._v(" "),e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"next nav",attrs:{size:"small",disabled:!t.next},on:{click:function(e){return t.navigate("next")}}},[t._v("\n "+t._s(t.$t("Next"))+" "),e("i",{staticClass:"el-icon-arrow-right"})])],1)],1)],1)]):t._e()],1)}),[],!1,null,null,null).exports,LogBulkAction:(0,i.Z)(xt,(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{float:"left","margin-left":"10px"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:12}},[e("el-select",{attrs:{clearable:"",size:"small",placeholder:t.$t("Bulk Action")},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[t.selected.length?e("el-option",{attrs:{value:"deleteselected",label:t.$t("Delete Selected")}}):t._e(),t._v(" "),t.is_failed_selected?e("el-option",{attrs:{value:"resend_selected",label:t.$t("Resend Selected Emails")}}):t._e()],1)],1),t._v(" "),e("el-col",{attrs:{span:2}},[e("el-button",{attrs:{plain:"",size:"small",type:"primary",disabled:!t.action},on:{click:t.applyBulkAction}},[t._v(t._s(t.$t("Apply")))])],1)],1)],1)}),[],!1,null,null,null).exports},data:function(){return{log:null,logs:[],saving:!1,loading:!1,deleting:!1,logViewerProps:{log:null,dialogVisible:!1},pagination:{total:0,per_page:10,current_page:1},filter_query:{status:"",date_range:[],search:""},selectedLogs:[],form:null,logAlertInfo:null}},methods:{tableRowClassName:function(t){return"row_type_"+t.row.status},pageChanged:function(){this.fetch()},fetch:function(){var t=this;this.loading=!0;var e={per_page:this.pagination.per_page,page:this.pagination.current_page,status:this.filter_query.status,date_range:this.filter_query.date_range,search:this.filter_query.search};this.$router.replace({query:e}).catch((function(t){"NavigationDuplicated"!==t.name&&console.error(t)})),this.$get("logs",e).then((function(e){t.logs=t.formatLogs(e.data),t.pagination.total=e.total;var n=Number(t.$route.query.page);t.pagination.current_page=n||t.pagination.current_page})).fail((function(t){console.log(t)})).always((function(){t.loading=!1}))},formatLogs:function(t){var e=this;return jQuery.each(t,(function(n,s){t[n]=e.formatLog(s)})),t},formatLog:function(t){return t.to=this.formatAddresses(t.to),t},formatAddresses:function(t){var n=this;if(!t)return"";if(e()(t))return"";if("string"==typeof t)return t;var s=[];return jQuery.each(t,(function(t,e){e.name?s[t]=n.escapeHtml("".concat(e.name," <").concat(e.email,">")):s[t]=n.escapeHtml(e.email)})),s.join(", ")},onFilter:function(t){this.pagination.current_page=1,this.pageChanged()},onSearch:function(t){this.query=t,this.pagination.current_page=1,this.pageChanged(),this.fetch()},onSearchChange:function(t){this.query=t,this.fetch()},handleBulkAction:function(t){var e=t.action;return"deleteall"===e?this.handleDelete("all"):"deleteselected"===e?this.handleDelete(this.selectedLogs):"resend_selected"===e?this.handleResendBulk(this.selectedLogs):void 0},handleRetry:function(t,e){var n=this;this.loading=!0,this.$post("logs/retry",{id:t.id,type:e}).then((function(e){if(!e.data.email)return n.$notify.error({offset:19,title:"Oops!!",message:e.data.message}),!1;t.status=e.data.email.status,t.retries=e.data.email.retries,t.resent_count=e.data.email.resent_count,t.updated_at=e.data.email.updated_at,n.$notify.success({offset:19,title:"Great!",message:e.data.message})})).fail((function(t){n.$notify.error({offset:19,title:"Oops!!",message:t.responseJSON.data.message})})).always((function(){n.loading=!1}))},handleView:function(t){var e=this;this.logViewerProps.log=t,this.logViewerProps.dialogVisible=!0,this.$nextTick((function(){e.logViewerProps.query=e.query,e.logViewerProps.filterBy=e.filterBy,e.logViewerProps.filterByValue=e.filterByValue;var t=e.$children.find((function(t){return"LogViewer"===t.$options._componentTag}));t&&t.navigate()}))},handleDelete:function(t){var e=this;this.deleting=!0,this.$post("logs/delete",{id:t}).then((function(t){e.fetch(),e.$notify.success({offset:19,title:"Great!",message:t.data.message})})).fail((function(t){console.log(t)})).always((function(){e.deleting=!1}))},handleSelectionChange:function(t){this.selectedLogs=t.map((function(t){return Number(t.id)}))},saveMisc:function(){var t=this;this.loading=!0,this.$post("misc-settings",{settings:this.form}).then((function(e){t.$notify.success(e.data.message)})).catch((function(t){console.log(t)})).always((function(){t.loading=!1}))},dontShowStatusInfo:function(t){"icons"===t?this.logAlertInfo.show_status_info=!1:this.logAlertInfo.show_status_warning=!1,window.localStorage.setItem("log-settings",JSON.stringify(this.logAlertInfo))},turnOnEmailLogging:function(){this.form.log_emails="yes",this.saveMisc()},handleResendBulk:function(t){var e=this;if(t.length>20)return this.$notify.error({offset:19,title:"Oops!!",message:"Sorry, You can not resend more than 20 emails at once"}),!1;this.loading=!0,this.$post("logs/retry-bulk",{log_ids:t}).then((function(t){e.$notify.success({offset:19,title:"Result",message:t.data.message}),e.selectedLogs=[],e.fetch()})).fail((function(t){e.$notify.error({offset:19,title:"Oops!!",message:t.responseJSON.data.message})})).always((function(){e.loading=!1}))}},computed:{isLogsOn:function(){return"yes"===this.form.log_emails},logStatusInfo:function(){return this.logAlertInfo.show_status_info},logStatusWarning:function(){return this.logAlertInfo.show_status_warning}},created:function(){var t=this.$route.query.page;t&&(this.pagination.current_page=Number(t)),this.$route.query.status&&(this.filter_query.status=this.$route.query.status),this.$route.query.search&&(this.filter_query.search=this.$route.query.search),this.form=this.appVars.settings.misc,this.logAlertInfo=window.localStorage.getItem("log-settings"),this.logAlertInfo||window.localStorage.setItem("log-settings",JSON.stringify({show_status_info:!0,show_status_warning:!0})),this.logAlertInfo=JSON.parse(window.localStorage.getItem("log-settings")),this.fetch()}};const Ct=(0,i.Z)(St,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"logs"},[e("div",[t.isLogsOn?t._e():e("div",[e("div",{staticClass:"fss_content"},[e("el-alert",{attrs:{closable:!1,"show-icon":"",center:""}},[t._v("\n "+t._s(t.$t("__EMAIL_LOGGING_OFF"))+"\n "),e("el-button",{attrs:{type:"text"},on:{click:t.turnOnEmailLogging}},[t._v(t._s(t.$t("Turn On")))]),t._v("\n .\n ")],1)],1)]),t._v(" "),e("div",{staticClass:"fss_header"},[t.selectedLogs.length?e("LogBulkAction",{attrs:{selected:t.selectedLogs},on:{"on-bulk-action":t.handleBulkAction}}):t._e(),t._v(" "),e("div",{staticStyle:{float:"left","margin-top":"6px"}},[t._v(t._s(t.$t("Email Logs")))]),t._v(" "),e("div",{staticStyle:{float:"right","margin-left":"6px"}},[e("el-button",{attrs:{type:"success",size:"small"},on:{click:t.fetch}},[e("i",{staticClass:"el-icon-refresh"})])],1),t._v(" "),e("LogFilter",{attrs:{filter_query:t.filter_query},on:{"on-filter":function(e){return t.fetch()},"reset-page":function(e){t.pagination.current_page=1}}}),t._v(" "),e("div",{staticStyle:{float:"right"}},[e("el-input",{attrs:{clearable:"",size:"small",placeholder:t.$t("Type & press enter...")},on:{clear:function(e){t.filter_query.search=""}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fetch.apply(null,arguments)}},model:{value:t.filter_query.search,callback:function(e){t.$set(t.filter_query,"search",e)},expression:"filter_query.search"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.fetch},slot:"append"})],1)],1)],1),t._v(" "),t.loading?e("el-skeleton",{staticClass:"fss_content",attrs:{animated:!0,rows:15}}):e("div",{staticClass:"fss_content"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{stripe:"",data:t.logs,"row-class-name":t.tableRowClassName},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Subject")},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.handleView(n.row)}}},[t._v(t._s(n.row.subject))]),t._v(" "),n.row.extra&&"Simulator"==n.row.extra.provider?e("span",{staticStyle:{color:"#ff0000"}},[t._v(t._s(t.$t(" - Simulated")))]):t._e()]}}],null,!1,419057081)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("To")},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{domProps:{innerHTML:t._s(n.row.to)}})]}}],null,!1,521936248)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Status"),width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.status)+"\n ")]}}],null,!1,1326110409)}),t._v(" "),e("el-table-column",{attrs:{prop:"created_at",label:t.$t("Date-Time"),width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.$dateFormat(e.row.created_at,"DD MMM YYYY LT"))+"\n ")]}}],null,!1,4055430332)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Actions"),width:"200px",align:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return["failed"==n.row.status?e("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh",plain:!0},on:{click:function(e){return t.handleRetry(n.row,"retry")}}},[t._v(t._s(t.$t("Retry"))+"\n ")]):t._e(),t._v(" "),"sent"==n.row.status?e("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh-right"},on:{click:function(e){return t.handleRetry(n.row,"resend")}}},[t._v("\n "+t._s(t.$t("Resend"))+"\n "),n.row.resent_count>0?e("span",[t._v("("+t._s(n.row.resent_count)+")")]):t._e()]):t._e(),t._v(" "),e("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-view"},on:{click:function(e){return t.handleView(n.row)}}}),t._v(" "),e("confirm",{on:{yes:function(e){return t.handleDelete(n.row.id)}}},[e("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}],null,!1,3019120824)})],1),t._v(" "),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[t.logs.length?e("div",{staticStyle:{"margin-top":"20px"}},[e("confirm",{attrs:{placement:"right",message:t.$t("Are you sure, you want to delete all the logs?")},on:{yes:function(e){return t.handleDelete(["all"])}}},[e("el-button",{attrs:{slot:"reference",size:"mini",type:"info"},slot:"reference"},[t._v(t._s(t.$t("Delete All Logs")))])],1)],1):e("span",[t._v(" ")])]),t._v(" "),e("el-col",{attrs:{span:12}},[e("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[e("pagination",{attrs:{pagination:t.pagination},on:{fetch:t.pageChanged}})],1)])],1)],1),t._v(" "),e("LogViewer",{attrs:{logViewerProps:t.logViewerProps}})],1)])}),[],!1,null,null,null).exports;function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ot(t,e,n){var s;return s=function(t,e){if("object"!=Pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=Pt(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Pt(s)?s:String(s))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const At={name:"EmailTest",components:{EmailSubscriber:K},data:function(){return{loading:!1,debug_info:"",form:{from:"",email:"",isHtml:!0},email_success:!1}},methods:{sendEmail:function(){var t=this;this.loading=!0,this.debug_info="",this.$post("settings/test",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.form)).then((function(e){t.$notify.success({title:t.$t("Great!"),offset:19,message:e.data.message}),t.email_success=!0})).fail((function(e){if(504===Number(e.status))return t.$notify.error({title:t.$t("Oops!"),offset:19,message:"504 Gateway Time-out."});var n=e.responseJSON;if(n.data.email_error)return t.$notify.error({title:t.$t("Oops!"),offset:19,message:n.data.email_error});t.debug_info=n.data})).always((function(){t.loading=!1}))}},computed:{active:function(){return"yes"!==this.settings.misc.is_inactive},inactiveMessage:function(){return"Plugin is not configured properly."},maybeEnabled:function(){return!e()(this.settings.connections)},sender_emails:function(){return this.settings.mappings}},created:function(){this.form.email=this.settings.user_email}};const Et=(0,i.Z)(At,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"fss_header"},[t._v("\n "+t._s(t.$t("Send Test Email"))+"\n ")]),t._v(" "),e("div",{staticClass:"fss_content"},[t.email_success?e("div",{staticClass:"success_wrapper"},[t._m(0),t._v(" "),e("h3",[t._v(t._s(t.$t("Test Email Has been successfully sent")))]),t._v(" "),e("hr"),t._v(" "),"yes"==t.appVars.require_optin?e("div",{staticStyle:{"margin-top":"10px"}},[e("email-subscriber")],1):e("el-button",{directives:[{name:"else",rawName:"v-else"}],on:{click:function(e){t.email_success=!1}}},[t._v(t._s(t.$t("Run Another Test Email")))]),t._v(" "),"yes"!=t.appVars.require_optin?e("div",{staticStyle:{"margin-top":"50px"}},[t._v("\n "+t._s(t.$t("If you have a minute, consider "))+" "),e("a",{attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5"}},[t._v(t._s(t.$t("write a review for FluentSMTP")))])]):t._e()],1):e("div",{staticClass:"test_form"},[e("el-form",{ref:"form",attrs:{model:t.form,"label-position":"left","label-width":"120px"}},[e("el-form-item",{attrs:{for:"email",label:t.$t("From")}},[e("el-select",{attrs:{placeholder:t.$t("Select Email or Type"),"allow-create":!0,filterable:!0},model:{value:t.form.from,callback:function(e){t.$set(t.form,"from",e)},expression:"form.from"}},t._l(t.sender_emails,(function(t,n){return e("el-option",{key:n,attrs:{label:n,value:n}})})),1),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Enter the sender email address(optional)."))+"\n ")])],1),t._v(" "),e("el-form-item",{attrs:{for:"from",label:t.$t("Send To")}},[e("el-input",{attrs:{id:"from"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("__TEST_EMAIL_INST"))+"\n ")])],1),t._v(" "),e("el-form-item",{attrs:{for:"isHtml",label:"HTML"}},[e("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6","active-text":t.$t("On"),"inactive-text":t.$t("Off")},model:{value:t.form.isHtml,callback:function(e){t.$set(t.form,"isHtml",e)},expression:"form.isHtml"}}),t._v(" "),e("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n "+t._s(t.$t("Send this email in HTML or in plain text format."))+"\n ")])],1),t._v(" "),e("el-form-item",{attrs:{align:"left"}},[e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-s-promotion",loading:t.loading,disabled:!t.maybeEnabled},on:{click:t.sendEmail}},[t._v(t._s(t.$t("Send Test Email")))]),t._v(" "),t.maybeEnabled?t._e():e("el-alert",{staticStyle:{display:"inline","margin-left":"20px"},attrs:{closable:!1,type:"warning"}},[t._v(t._s(t.inactiveMessage))])],1)],1),t._v(" "),t.debug_info?e("el-alert",{attrs:{type:"error",title:t.debug_info.message,"show-icon":""}}):t._e()],1)])])}),[function(){var t=this._self._c;return t("h1",[t("i",{staticClass:"el-icon el-icon-success"})])}],!1,null,null,null).exports;var It=n(2052),Nt=n.n(It);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Ft(){Ft=function(){return e};var t,e={},n=Object.prototype,s=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,s){var o=e&&e.prototype instanceof h?e:h,r=Object.create(o.prototype),a=new A(s||[]);return i(r,"_invoke",{value:C(t,n,a)}),r}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",v="completed",m={};function h(){}function g(){}function y(){}var b={};l(b,r,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(E([])));k&&k!==n&&s.call(k,r)&&(b=k);var $=y.prototype=h.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,r,a){var c=_(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Lt(u)&&s.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,r,a)}),(function(t){n("throw",t,r,a)})):e.resolve(u).then((function(t){l.value=t,r(l)}),(function(t){return n("throw",t,r,a)}))}a(c.arg)}var o;i(this,"_invoke",{value:function(t,s){function i(){return new e((function(e,i){n(t,s,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,s){var i=d;return function(o,r){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw r;return{value:t,done:!0}}for(s.method=o,s.arg=r;;){var a=s.delegate;if(a){var c=P(a,s);if(c){if(c===m)continue;return c}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===d)throw i=v,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=p;var l=_(e,n,s);if("normal"===l.type){if(i=s.done?v:f,l.arg===m)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(i=v,s.method="throw",s.arg=l.arg)}}}function P(e,n){var s=n.method,i=e.iterator[s];if(i===t)return n.delegate=null,"throw"===s&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==s&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=_(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var r=o.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(s.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Lt(e)+" is not iterable")}return g.prototype=y,i($,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:g,configurable:!0}),g.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},x(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,s,i,o){void 0===o&&(o=Promise);var r=new S(u(t,n,s,i),o);return e.isGeneratorFunction(n)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},x($),l($,c,"Generator"),l($,r,(function(){return this})),l($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var s in e)n.push(s);return n.reverse(),function t(){for(;n.length;){var s=n.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},e.values=E,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(s,i){return a.type="throw",a.arg=e,n.next=s,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var c=s.call(r,"catchLoc"),l=s.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=t,r.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=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:E(e),resultName:n,nextLoc:s},"next"===this.method&&(this.arg=t),m}},e}function jt(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 Mt={name:"FluentMailSupport",data:function(){return{plugins:{fluentform:{slug:"fluentform",title:"Fluent Forms",subtitle:this.$t("Fastest Contact Form Builder Plugin for WordPress"),description:'<p><a href="https://wordpress.org/plugins/fluentform" target="_blank" rel="nofollow">Fluent Forms</a><span> </span> '.concat(this.$t("__FF_DESC"),"</p>"),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:'<p><a href="https://wordpress.org/plugins/fluent-crm/" target="_blank" rel="nofollow">FluentCRM</a> '.concat(this.$t("__FC_DESC"),"</p>"),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:"<p>".concat(this.$t("__NT_DESC"),"</p><p>").concat(this.$t("Meet "),'<a href="https://wordpress.org/plugins/ninja-tables/" target="_blank" rel="nofollow">Ninja Tables</a>,').concat(this.$t("__NT_DESC_EXT"),"</p>"),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&&Nt()(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=Ft().mark((function t(){return Ft().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){jt(o,s,i,r,a,"next",t)}function a(t){jt(o,s,i,r,a,"throw",t)}r(void 0)}))})()}}};const Dt=(0,i.Z)(Mt,(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":t.$t("Installing... Please wait")}},[e("div",{staticClass:"fss_header"},[t._v(t._s(t.$t("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(t._s(t.$t("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 appreciated 😊)")))])]),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 Rt=n(3149),zt=n.n(Rt);const Ut={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:this.$t("Getting Started"),docs:[]},item_5:{label:this.$t("Connect With Your Email Providers"),docs:[]},item_6:{label:this.$t("Functionalities"),docs:[]}};return M()(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?zt()(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 Vt=(0,i.Z)(Ut,(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 Gt={name:"NotificationSettings",props:{notification_settings:{type:Object,required:!0}},data:function(){return{sending_days:{Mon:this.$t("Monday"),Tue:this.$t("Tuesday"),Wed:this.$t("Wednesday"),Thu:this.$t("Thursday"),Fri:this.$t("Friday"),Sat:this.$t("Saturday"),Sun:this.$t("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 Bt=(0,i.Z)(Gt,(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 Kt={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 qt={name:"TelegramNotification",components:{ConnectionInfo:(0,i.Z)(Kt,(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",{domProps:{innerHTML:t._s(t.$t("__TELEGRAM_NOTIFICATION_ENABLED"))}}),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 Zt=(0,i.Z)(qt,(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 Ht={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 Wt={name:"SlackNotification",components:{SlackInfo:(0,i.Z)(Ht,(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 Yt=(0,i.Z)(Wt,(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 Jt={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 Qt={name:"SlackNotification",components:{DiscordInfo:(0,i.Z)(Jt,(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 Xt={name:"NotificationManager",components:{TelegramNotification:Zt,SlackNotification:Yt,DiscordNotification:(0,i.Z)(Qt,(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 te={name:"NotificationSettingsRoot",components:{EmailSummaryForm:Bt,NotificationManager:(0,i.Z)(Xt,(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(t._s(t.$t("Real-Time Email Failure Notifications")))]),t._v(" "),e("p",[t._v(t._s(t.$t("__REAL_NOTIFCATION_DESC")))]),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 ee=[{name:"dashboard",path:"/",meta:{},component:tt},{name:"connections",path:"/connections",meta:{},component:dt},{name:"connection",path:"/connection",meta:{},component:pt},{name:"test",path:"/test",meta:{},component:Et},{name:"support",path:"/support",meta:{},component:Dt},{name:"logs",path:"/logs",meta:{},component:Ct},{name:"docs",path:"/documentation",meta:{},component:Vt},{name:"notification_settings",path:"/notification-settings",meta:{},component:(0,i.Z)(te,(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 ne=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",ee)});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:ne})})()})();