FluentSMTP – WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin - Version 2.1.2

Version Description

(Date: July 05, 2022) = * Google/Gmail API Upgrade * UI Improvements

Download this release

Release Info

Developer techjewel
Plugin Icon FluentSMTP – WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

app/Http/Controllers/SettingsController.php CHANGED
@@ -485,10 +485,19 @@ class SettingsController extends Controller
485
  ]);
486
  }
487
 
488
- $authUrl = 'https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=' . $clientId . '&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth/gmail.compose';
 
 
 
 
 
 
 
 
 
489
 
490
  return $this->sendSuccess([
491
- 'auth_url' => $authUrl
492
  ]);
493
  }
494
 
485
  ]);
486
  }
487
 
488
+ $authUrl = add_query_arg([
489
+ 'response_type' => 'code',
490
+ 'access_type' => 'offline',
491
+ 'client_id' => $clientId,
492
+ 'redirect_uri' => apply_filters('fluentsmtp_gapi_callback', 'https://fluentsmtp.com/gapi/'),
493
+ 'state' => admin_url('options-general.php?page=fluent-mail&gapi=1'),
494
+ 'scope' => 'https://mail.google.com/',
495
+ 'approval_prompt' => 'force',
496
+ 'include_granted_scopes' => 'true'
497
+ ], 'https://accounts.google.com/o/oauth2/auth');
498
 
499
  return $this->sendSuccess([
500
+ 'auth_url' => filter_var($authUrl, FILTER_SANITIZE_URL)
501
  ]);
502
  }
503
 
app/Services/Mailer/Providers/Gmail/Handler.php CHANGED
@@ -141,7 +141,7 @@ class Handler extends BaseHandler
141
  $body = [
142
  'code' => $authToken,
143
  'grant_type' => 'authorization_code',
144
- 'redirect_uri' => 'urn:ietf:wg:oauth:2.0:oob',
145
  'client_id' => $clientId,
146
  'client_secret' => $clientSecret
147
  ];
@@ -164,7 +164,7 @@ class Handler extends BaseHandler
164
  $con['connection']['auth_token'] = '';
165
  $con['connection']['expire_stamp'] = time() + $tokens['expires_in'];
166
  $con['connection']['expires_in'] = $tokens['expires_in'];
167
-
168
  return $con;
169
  }, 10, 2);
170
  }
141
  $body = [
142
  'code' => $authToken,
143
  'grant_type' => 'authorization_code',
144
+ 'redirect_uri' => apply_filters('fluentsmtp_gapi_callback', 'https://fluentsmtp.com/gapi/'), // 'urn:ietf:wg:oauth:2.0:oob'
145
  'client_id' => $clientId,
146
  'client_secret' => $clientSecret
147
  ];
164
  $con['connection']['auth_token'] = '';
165
  $con['connection']['expire_stamp'] = time() + $tokens['expires_in'];
166
  $con['connection']['expires_in'] = $tokens['expires_in'];
167
+ $con['connection']['version'] = 2;
168
  return $con;
169
  }, 10, 2);
170
  }
assets/admin/js/fluent-mail-admin-app.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t={7757:(t,e,n)=>{t.exports=n(5666)},8552:(t,e,n)=>{var o=n(852)(n(5639),"DataView");t.exports=o},1989:(t,e,n)=>{var o=n(1789),r=n(401),s=n(7667),i=n(1327),a=n(1866);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},8407:(t,e,n)=>{var o=n(7040),r=n(4125),s=n(2117),i=n(7529),a=n(4705);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},7071:(t,e,n)=>{var o=n(852)(n(5639),"Map");t.exports=o},3369:(t,e,n)=>{var o=n(4785),r=n(1285),s=n(6e3),i=n(9916),a=n(5265);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},3818:(t,e,n)=>{var o=n(852)(n(5639),"Promise");t.exports=o},8525:(t,e,n)=>{var o=n(852)(n(5639),"Set");t.exports=o},8668:(t,e,n)=>{var o=n(3369),r=n(619),s=n(2385);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e<n;)this.add(t[e])}i.prototype.add=i.prototype.push=r,i.prototype.has=s,t.exports=i},6384:(t,e,n)=>{var o=n(8407),r=n(7465),s=n(3779),i=n(7599),a=n(4758),l=n(4309);function c(t){var e=this.__data__=new o(t);this.size=e.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,t.exports=c},2705:(t,e,n)=>{var o=n(5639).Symbol;t.exports=o},1149:(t,e,n)=>{var o=n(5639).Uint8Array;t.exports=o},577:(t,e,n)=>{var o=n(852)(n(5639),"WeakMap");t.exports=o},7412:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s}},4636:(t,e,n)=>{var o=n(2545),r=n(5694),s=n(1469),i=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=s(t),u=!n&&r(t),p=!n&&!u&&i(t),_=!n&&!u&&!p&&l(t),d=n||u||p||_,f=d?o(t.length,String):[],v=f.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||_&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||f.push(m);return f}},9932:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}},2488:t=>{t.exports=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}},4311:(t,e,n)=>{var o=n(9877);t.exports=function(t){var e=t.length;return e?t[o(0,e-1)]:void 0}},2908:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}},8470:(t,e,n)=>{var o=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}},9881:(t,e,n)=>{var o=n(7816),r=n(9291)(o);t.exports=r},760:(t,e,n)=>{var o=n(9881);t.exports=function(t,e){var n=[];return o(t,(function(t,o,r){e(t,o,r)&&n.push(t)})),n}},8483:(t,e,n)=>{var o=n(5063)();t.exports=o},7816:(t,e,n)=>{var o=n(8483),r=n(3674);t.exports=function(t,e){return t&&o(t,e,r)}},7786:(t,e,n)=>{var o=n(1811),r=n(327);t.exports=function(t,e){for(var n=0,s=(e=o(e,t)).length;null!=t&&n<s;)t=t[r(e[n++])];return n&&n==s?t:void 0}},8866:(t,e,n)=>{var o=n(2488),r=n(1469);t.exports=function(t,e,n){var s=e(t);return r(t)?s:o(s,n(t))}},4239:(t,e,n)=>{var o=n(2705),r=n(9607),s=n(2333),i=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?r(t):s(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},9454:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return r(t)&&"[object Arguments]"==o(t)}},939:(t,e,n)=>{var o=n(2492),r=n(7005);t.exports=function t(e,n,s,i,a){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:o(e,n,s,i,t,a))}},2492:(t,e,n)=>{var o=n(6384),r=n(7114),s=n(8351),i=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),p="[object Arguments]",_="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,m,h){var g=l(t),y=l(e),b=g?_:a(t),w=y?_:a(e),k=(b=b==p?d:b)==d,x=(w=w==p?d:w)==d,S=b==w;if(S&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(S&&!k)return h||(h=new o),g||u(t)?r(t,e,n,v,m,h):s(t,e,b,n,v,m,h);if(!(1&n)){var C=k&&f.call(t,"__wrapped__"),$=x&&f.call(e,"__wrapped__");if(C||$){var P=C?t.value():t,E=$?e.value():e;return h||(h=new o),m(P,E,n,v,h)}}return!!S&&(h||(h=new o),i(t,e,n,v,m,h))}},2958:(t,e,n)=>{var o=n(6384),r=n(939);t.exports=function(t,e,n,s){var i=n.length,a=i,l=!s;if(null==t)return!a;for(t=Object(t);i--;){var c=n[i];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<a;){var u=(c=n[i])[0],p=t[u],_=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var d=new o;if(s)var f=s(p,_,u,t,e,d);if(!(void 0===f?r(_,p,3,s,d):f))return!1}}return!0}},8458:(t,e,n)=>{var o=n(3560),r=n(5346),s=n(3218),i=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,_=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||r(t))&&(o(t)?_:a).test(i(t))}},8749:(t,e,n)=>{var o=n(4239),r=n(1780),s=n(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&r(t.length)&&!!i[o(t)]}},7206:(t,e,n)=>{var o=n(1573),r=n(6432),s=n(6557),i=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?i(t)?r(t[0],t[1]):o(t):a(t)}},280:(t,e,n)=>{var o=n(5726),r=n(6916),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return r(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},1573:(t,e,n)=>{var o=n(2958),r=n(1499),s=n(2634);t.exports=function(t){var e=r(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}},6432:(t,e,n)=>{var o=n(939),r=n(7361),s=n(9095),i=n(5403),a=n(9162),l=n(2634),c=n(327);t.exports=function(t,e){return i(t)&&a(e)?l(c(t),e):function(n){var i=r(n,t);return void 0===i&&i===e?s(n,t):o(e,i,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var o=n(7786);t.exports=function(t){return function(e){return o(e,t)}}},9877:t=>{var e=Math.floor,n=Math.random;t.exports=function(t,o){return t+e(n()*(o-t+1))}},4992:(t,e,n)=>{var o=n(4311),r=n(2628);t.exports=function(t){return o(r(t))}},2545:t=>{t.exports=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}},531:(t,e,n)=>{var o=n(2705),r=n(9932),s=n(1469),i=n(3448),a=o?o.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return r(e,t)+"";if(i(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var o=n(9932);t.exports=function(t,e){return o(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var o=n(6557);t.exports=function(t){return"function"==typeof t?t:o}},1811:(t,e,n)=>{var o=n(1469),r=n(5403),s=n(5514),i=n(9833);t.exports=function(t,e){return o(t)?t:r(t,e)?[t]:s(i(t))}},4429:(t,e,n)=>{var o=n(5639)["__core-js_shared__"];t.exports=o},9291:(t,e,n)=>{var o=n(8612);t.exports=function(t,e){return function(n,r){if(null==n)return n;if(!o(n))return t(n,r);for(var s=n.length,i=e?s:-1,a=Object(n);(e?i--:++i<s)&&!1!==r(a[i],i,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,o){for(var r=-1,s=Object(e),i=o(e),a=i.length;a--;){var l=i[t?a:++r];if(!1===n(s[l],l,s))break}return e}}},7114:(t,e,n)=>{var o=n(8668),r=n(2908),s=n(4757);t.exports=function(t,e,n,i,a,l){var c=1&n,u=t.length,p=e.length;if(u!=p&&!(c&&p>u))return!1;var _=l.get(t),d=l.get(e);if(_&&d)return _==e&&d==t;var f=-1,v=!0,m=2&n?new o:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var h=t[f],g=e[f];if(i)var y=c?i(g,h,f,e,t,l):i(h,g,f,t,e,l);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!r(e,(function(t,e){if(!s(m,e)&&(h===t||a(h,t,n,i,l)))return m.push(e)}))){v=!1;break}}else if(h!==g&&!a(h,g,n,i,l)){v=!1;break}}return l.delete(t),l.delete(e),v}},8351:(t,e,n)=>{var o=n(2705),r=n(1149),s=n(7813),i=n(7114),a=n(8776),l=n(1814),c=o?o.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,o,c,p,_){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||!p(new r(t),new r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+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 d=a;case"[object Set]":var f=1&o;if(d||(d=l),t.size!=e.size&&!f)return!1;var v=_.get(t);if(v)return v==e;o|=2,_.set(t,e);var m=i(d(t),d(e),o,c,p,_);return _.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,n)=>{var o=n(8234),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,i,a){var l=1&n,c=o(t),u=c.length;if(u!=o(e).length&&!l)return!1;for(var p=u;p--;){var _=c[p];if(!(l?_ in e:r.call(e,_)))return!1}var d=a.get(t),f=a.get(e);if(d&&f)return d==e&&f==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=l;++p<u;){var h=t[_=c[p]],g=e[_];if(s)var y=l?s(g,h,_,e,t,a):s(h,g,_,t,e,a);if(!(void 0===y?h===g||i(h,g,n,s,a):y)){v=!1;break}m||(m="constructor"==_)}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}},1957:(t,e,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},8234:(t,e,n)=>{var o=n(8866),r=n(9551),s=n(3674);t.exports=function(t){return o(t,s,r)}},5050:(t,e,n)=>{var o=n(7019);t.exports=function(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var o=n(9162),r=n(3674);t.exports=function(t){for(var e=r(t),n=e.length;n--;){var s=e[n],i=t[s];e[n]=[s,i,o(i)]}return e}},852:(t,e,n)=>{var o=n(8458),r=n(7801);t.exports=function(t,e){var n=r(t,e);return o(n)?n:void 0}},9607:(t,e,n)=>{var o=n(2705),r=Object.prototype,s=r.hasOwnProperty,i=r.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(t){}var r=i.call(t);return o&&(e?t[a]=n:delete t[a]),r}},9551:(t,e,n)=>{var o=n(4963),r=n(479),s=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(t){return null==t?[]:(t=Object(t),o(i(t),(function(e){return s.call(t,e)})))}:r;t.exports=a},4160:(t,e,n)=>{var o=n(8552),r=n(7071),s=n(3818),i=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",p="[object Promise]",_="[object Set]",d="[object WeakMap]",f="[object DataView]",v=c(o),m=c(r),h=c(s),g=c(i),y=c(a),b=l;(o&&b(new o(new ArrayBuffer(1)))!=f||r&&b(new r)!=u||s&&b(s.resolve())!=p||i&&b(new i)!=_||a&&b(new a)!=d)&&(b=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,o=n?c(n):"";if(o)switch(o){case v:return f;case m:return u;case h:return p;case g:return _;case y:return d}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var o=n(1811),r=n(5694),s=n(1469),i=n(5776),a=n(1780),l=n(327);t.exports=function(t,e,n){for(var c=-1,u=(e=o(e,t)).length,p=!1;++c<u;){var _=l(e[c]);if(!(p=null!=t&&n(t,_)))break;t=t[_]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&a(u)&&i(_,u)&&(s(t)||r(t))}},1789:(t,e,n)=>{var o=n(4536);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(o){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return o?void 0!==e[t]:r.call(e,t)}},1866:(t,e,n)=>{var o=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var o=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&e.test(t))&&t>-1&&t%1==0&&t<n}},5403:(t,e,n)=>{var o=n(1469),r=n(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(i.test(t)||!s.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var o,r=n(4429),s=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!s&&s in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var o=n(3218);t.exports=function(t){return t==t&&!o(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var o=n(8470),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},2117:(t,e,n)=>{var o=n(8470);t.exports=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}},7529:(t,e,n)=>{var o=n(8470);t.exports=function(t){return o(this.__data__,t)>-1}},4705:(t,e,n)=>{var o=n(8470);t.exports=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},4785:(t,e,n)=>{var o=n(1989),r=n(8407),s=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(s||r),string:new o}}},1285:(t,e,n)=>{var o=n(5050);t.exports=function(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).get(t)}},9916:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).has(t)}},5265:(t,e,n)=>{var o=n(5050);t.exports=function(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4523:(t,e,n)=>{var o=n(8306);t.exports=function(t){var e=o(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var o=n(852)(Object,"create");t.exports=o},6916:(t,e,n)=>{var o=n(5569)(Object.keys,Object);t.exports=o},1167:(t,e,n)=>{t=n.nmd(t);var o=n(1957),r=e&&!e.nodeType&&e,s=r&&t&&!t.nodeType&&t,i=s&&s.exports===r&&o.process,a=function(){try{var t=s&&s.require&&s.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5639:(t,e,n)=>{var o=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,s=o||r||Function("return this")();t.exports=s},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},7465:(t,e,n)=>{var o=n(8407);t.exports=function(){this.__data__=new o,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var o=n(8407),r=n(7071),s=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof o){var i=n.__data__;if(!r||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(t,e),this.size=n.size,this}},5514:(t,e,n)=>{var o=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,i=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,o,r){e.push(o?r.replace(s,"$1"):n||t)})),e}));t.exports=i},327:(t,e,n)=>{var o=n(3448);t.exports=function(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346: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""}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3105:(t,e,n)=>{var o=n(4963),r=n(760),s=n(7206),i=n(1469);t.exports=function(t,e){return(i(t)?o:r)(t,s(e,3))}},4486:(t,e,n)=>{var o=n(7412),r=n(9881),s=n(4290),i=n(1469);t.exports=function(t,e){return(i(t)?o:r)(t,s(e))}},7361:(t,e,n)=>{var o=n(7786);t.exports=function(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}},9095:(t,e,n)=>{var o=n(13),r=n(222);t.exports=function(t,e){return null!=t&&r(t,e,o)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var o=n(9454),r=n(7005),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return r(t)&&i.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var o=n(3560),r=n(1780);t.exports=function(t){return null!=t&&r(t.length)&&!o(t)}},4144:(t,e,n)=>{t=n.nmd(t);var o=n(5639),r=n(5062),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,a=i&&i.exports===s?o.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;t.exports=l},1609:(t,e,n)=>{var o=n(280),r=n(4160),s=n(5694),i=n(1469),a=n(8612),l=n(4144),c=n(5726),u=n(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||s(t)))return!t.length;var e=r(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!o(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var o=n(4239),r=n(3218);t.exports=function(t){if(!r(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},6719:(t,e,n)=>{var o=n(8749),r=n(7518),s=n(1167),i=s&&s.isTypedArray,a=i?r(i):o;t.exports=a},3674:(t,e,n)=>{var o=n(4636),r=n(280),s=n(8612);t.exports=function(t){return s(t)?o(t):r(t)}},8306:(t,e,n)=>{var o=n(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(r.Cache||o),n}r.Cache=o,t.exports=r},9601:(t,e,n)=>{var o=n(371),r=n(9152),s=n(5403),i=n(327);t.exports=function(t){return s(t)?o(i(t)):r(t)}},5534:(t,e,n)=>{var o=n(4311),r=n(4992),s=n(1469);t.exports=function(t){return(s(t)?o:r)(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,n)=>{var o=n(531);t.exports=function(t){return null==t?"":o(t)}},2628:(t,e,n)=>{var o=n(7415),r=n(3674);t.exports=function(t){return null==t?[]:o(t,r(t))}},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.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 c(t,e,n,o){var r=e&&e.prototype instanceof m?e:m,s=Object.create(r.prototype),i=new E(o||[]);return s._invoke=function(t,e,n){var o=p;return function(r,s){if(o===d)throw new Error("Generator is already running");if(o===f){if("throw"===r)throw s;return O()}for(n.method=r,n.arg=s;;){var i=n.delegate;if(i){var a=C(i,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=u(t,e,n);if("normal"===l.type){if(o=n.done?f:_,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=f,n.method="throw",n.arg=l.arg)}}}(t,n,i),s}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p="suspendedStart",_="suspendedYield",d="executing",f="completed",v={};function m(){}function h(){}function g(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&o.call(w,s)&&(y=w);var k=g.prototype=m.prototype=Object.create(y);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(r,s,i,a){var l=u(t[r],t,s);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(p).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,a)}))}a(l.arg)}var r;this._invoke=function(t,o){function s(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(s,s):s()}}function C(t,n){var o=t.iterator[n.method];if(o===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=u(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var s=r.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function $(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function A(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:e,done:!0}}return h.prototype=g,l(k,"constructor",g),l(g,"constructor",h),h.displayName=l(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,a,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},x(S.prototype),l(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,s){void 0===s&&(s=Promise);var i=new S(c(e,n,o,r),s);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(k),l(k,a,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return a.type="throw",a.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var i=this.tryEntries[s],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var i=s?s.completion:{};return i.type=t,i.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(i)},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),v},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),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;P(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8109:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const o={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:"Email Test"},{route:"logs",title:"Email Logs"},{route:"support",title:"Support"},{route:"docs",title:"Docs"}]},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, #wpbody-content > .updated, #wpbody-content > .error").remove(),this.logo="<div class='logo'>".concat(this.brandLogo,"</div>"),this.setMenus()}};const r=(0,n(1900).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-mail-app"},[n("div",{staticClass:"fluent-mail-main-menu-items"},[n("el-menu",{staticClass:"fluent-mail-navigation",attrs:{router:!0,mode:"horizontal","default-active":t.active}},[n("el-menu-item",{attrs:{index:"dashboard",route:{name:"dashboard"}},domProps:{innerHTML:t._s(t.logo)}}),t._v(" "),t._l(t.items,(function(e){return n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}},domProps:{innerHTML:t._s(e.title)}})}))],2)],1),t._v(" "),n("div",{staticClass:"fluent-mail-body"},[n("router-view",{key:t.$route.name})],1)])}),[],!1,null,null,null).exports},1900:(t,e,n)=>{"use strict";function o(t,e,n,o,r,s,i,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),i?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>o})}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={id:o,loaded:!1,exports:{}};return t[o](s,s.exports,n),s.loaded=!0,s.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 o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},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),(()=>{"use strict";var t=n(1609),e=n.n(t);const o={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 r=n(1900);const s=(0,r.Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-input",{attrs:{id:t.id,type:t.type,value:t.value,"place-holder":t.placeholder,disabled:t.disabled},on:{input:function(e){return t.$emit("input",e)}}})],1)}),[],!1,null,null,null).exports;const i={name:"Error",props:["error"]};const a=(0,r.Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.error?n("span",{staticClass:"el-form-item__error"},[t._v("\n "+t._s(t.error)+"\n")]):t._e()}),[],!1,null,null,null).exports,l={name:"MailGun",props:["connection","errors"],components:{InputPassword:s,Error:a},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="",this.connection.domain_name="")}},data:function(){return{}}};const c=(0,r.Z)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Mailgun API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"key"}},[t._v("\n Private API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get an API Key from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/account/security/api_keys"}},[t._v("Get a Private API Key.")])])],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"domain"}},[n("label",{attrs:{for:"domain"}},[t._v("\n Domain Name\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("domain_name")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get a Domain Name from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/domains"}},[t._v("\n Get a Domain Name.\n ")])])],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_MAILGUN_API_KEY', '********************' );\ndefine( 'FLUENTMAIL_MAILGUN_DOMAIN', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{staticStyle:{"vertical-align":"baseline"},attrs:{for:"region"}},[t._v("\n Select Region    \n ")]),t._v(" "),n("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(" "),n("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(" "),n("el-alert",{attrs:{closable:!1}},[n("span",[t._v("\n Define which endpoint you want to use for sending messages.\n ")]),t._v(" "),n("span",[t._v("\n If you are operating under EU laws, you may be required to use EU region.\n "),n("a",{attrs:{target:"_blank",href:"https://www.mailgun.com/regions"}},[t._v("More information")]),t._v("\n on Mailgun.com.\n ")])])],1)],1)}),[],!1,null,null,null).exports;const u={name:"PepiPost",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const p=(0,r.Z)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Pepipost API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"pepipost-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_PEPIPOST_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from Pepipost (Click Show button on Settings Page):\n "),n("a",{attrs:{target:"_blank",href:"https://app.pepipost.com/app/settings/integration"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;const _={name:"SendGrid",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const d=(0,r.Z)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("SendGrid API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sendgrid-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDGRID_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from SendGrid:\n "),n("a",{attrs:{target:"_blank",href:"https://app.sendgrid.com/settings/api_keys"}},[t._v("Create API Key.")]),t._v("\n To send emails you will need only a Mail Send access level for this API key.\n ")])}],!1,null,null,null).exports;const f={name:"SendInBlue",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const v=(0,r.Z)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Sendinblue API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sendinblue-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDINBLUE_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key:\n "),n("a",{attrs:{target:"_blank",href:"https://account.sendinblue.com/advanced/api"}},[t._v("Get v3 API Key.")])])}],!1,null,null,null).exports;const m={name:"AmazonSes",props:["connection","provider","errors"],components:{InputPassword:s,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,r.Z)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"access_key"}},[n("label",{attrs:{for:"access_key"}},[t._v("\n Access Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("access_key")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"ses-key"}},[t._v("\n Secret Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{for:"ses-region"}},[t._v("\n Region "),n("span",{staticClass:"small-help-text"},[t._v("(Default: US East (N. Virginia)/us-east-1)")])]),t._v(" "),n("el-select",{attrs:{id:"ses-region",placeholder:"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,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),n("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:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const y=(0,r.Z)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("SparkPost API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sparkpost-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SPARKPOST_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key:\n "),n("a",{attrs:{target:"_blank",href:"https://app.sparkpost.com/account/api-keys"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;const b={name:"Smtp",props:["connection","errors"],components:{InputPassword:s,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,r.Z)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"host"}},[t._v("\n SMTP Host\n ")]),t._v(" "),n("el-input",{attrs:{id:"host"},model:{value:t.connection.host,callback:function(e){t.$set(t.connection,"host",e)},expression:"connection.host"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("host")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"port"}},[t._v("\n SMTP Port\n ")]),t._v(" "),n("el-input",{attrs:{id:"port"},model:{value:t.connection.port,callback:function(e){t.$set(t.connection,"port",e)},expression:"connection.port"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("port")}})],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticStyle:{margin:"20px 0"}},[n("label",[t._v("\n Encryption\n ")]),t._v(" "),n("div",{staticClass:"small-help-text",staticStyle:{display:"inline-block"}},[t._v("\n (Select "),n("strong",[t._v("ssl")]),t._v(" on port "),n("strong",[t._v("465")]),t._v(",\n or "),n("strong",[t._v("tls")]),t._v(" on port "),n("strong",[t._v("25")]),t._v(" or "),n("strong",[t._v("587")]),t._v(")\n ")]),t._v(" "),n("div",{staticStyle:{display:"inline-block","margin-left":"20px"}},[n("el-radio",{attrs:{label:"none"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"ssl"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("SSL")]),t._v(" "),n("el-radio",{attrs:{label:"tls"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("TLS")])],1)])],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Use Auto TLS\n ")]),t._v(" "),n("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(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (By default, the TLS encryption would be used if the server supports it. On some srvers, it could be a problem and may need to be disabled.)\n ")])],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Authentication\n ")]),t._v(" "),n("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(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (If you need to provide your SMTP server's credentials (username and password) enable the authentication, in most cases this is required.)\n ")])],1)],1)],1),t._v(" "),"yes"==t.connection.auth?[n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{class:{disabled:"no"===t.connection.auth},attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"username"}},[t._v("\n SMTP Username\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"username",disabled:t.isDisabledUsername},model:{value:t.connection.username,callback:function(e){t.$set(t.connection,"username",e)},expression:"connection.username"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"smtp-password"}},[t._v("\n SMTP Password\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP_USERNAME', '********************' );\ndefine( 'FLUENTMAIL_SMTP_PASSWORD', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;const k={name:"Gamil",props:["connection","errors"],components:{InputPassword:s,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:{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 x=(0,r.Z)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Gmail/Google Workspace API Settings")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_GMAIL_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_GMAIL_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Gmail/Google Workspace Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("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("Authenticate with Google & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/connect-gmail-or-google-workspace-emails-with-fluentsmtp/"}},[t._v("check the documentation first")]),t._v(" or "),n("b",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.youtube.com/watch?v=_d78bscNaX8"}},[t._v("Watch the video tutorial")])]),t._v(" to create API keys at Google")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Google to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const S={name:"OutLook",props:["connection","provider","errors"],components:{InputPassword:s,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 C=(0,r.Z)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Outlook/Office365 API Settings")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_OUTLOOK_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_OUTLOOK_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",[t._v("App Callback URL (Use this URL to your APP)")]),t._v(" "),n("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?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Outlook/Office365 Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("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("Authenticate with Office365 & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/setup-outlook-with-fluentsmtp/"}},[t._v("check the documentation first to create API keys at Microsoft")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Office365 to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const $={name:"PostMark",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const P=(0,r.Z)($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Postmark API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"postmark-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_POSTMARK_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0),t._v(" "),n("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Track Opens"}},[n("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 Enable email opens tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then open tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"Message Stream"}},[n("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(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Track Links"}},[n("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 Enable link tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then link tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from Postmark (Your API key is in the API Tokens tab of your):\n "),n("a",{attrs:{target:"_blank",href:"https://account.postmarkapp.com/servers"}},[t._v("Postmark Server.")])])}],!1,null,null,null).exports;const E={name:"PostMark",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const A=(0,r.Z)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("ElasticMail API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"elasticmail-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_ELASTICMAIL_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0),t._v(" "),n("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Email Type"}},[n("el-radio-group",{model:{value:t.connection.mail_type,callback:function(e){t.$set(t.connection,"mail_type",e)},expression:"connection.mail_type"}},[n("el-radio",{attrs:{label:"transactional"}},[t._v("Transactional")]),t._v(" "),n("el-radio",{attrs:{label:"marketing"}},[t._v("Marketing")])],1)],1)],1)],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from ElasticMail:\n "),n("a",{attrs:{target:"_blank",href:"https://elasticemail.com/account#/settings/new/manage-api"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;function O(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}const j=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,o;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={}}}])&&O(e.prototype,n),o&&O(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();var T=n(6073),I=n.n(T);const L={name:"ConnectionWizard",props:["connection","is_new","providers","connection_key","connections"],components:{ses:h,mailgun:c,pepipost:p,sendgrid:d,sendinblue:v,sparkpost:y,smtp:w,gmail:x,outlook:C,postmark:P,elasticmail:A,Error:a},data:function(){return{saving:!1,errors:new j,api_error:"",has_error:!1}},computed:{is_conflicted:function(){var t=this;if(!this.connections)return!1;var e=!1;return I()(this.connections,(function(n,o){t.connection_key!=o&&n.provider_settings.sender_email==t.connection.sender_email&&(e=!0)})),e}},watch:{"connection.provider":function(t){if(!t)return!1;var e=JSON.parse(JSON.stringify(this.providers[t].options));e.provider=t,this.connection=e}},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}))}}};const M=(0,r.Z)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_connection_wizard"},[n("el-form",{attrs:{data:t.connection,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Connection Provider"}},[n("el-radio-group",{staticClass:"fss_connections",model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(t,e){return n("el-radio-button",{key:e,class:"con_"+e,attrs:{label:e}},[n("img",{staticStyle:{"max-width":"80px",height:"32px"},attrs:{title:t.title,src:t.image}})])})),1)],1),t._v(" "),t.connection.provider?[n("div",{staticClass:"fss_config_section"},[n("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sender Settings")))]),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Email")}},[n("error",{attrs:{error:t.errors.get("sender_email")}}),t._v(" "),n("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?n("p",{staticStyle:{color:"red"}},[t._v("Another connection with same email address exist. This connection will replace that connection")]):t._e()],1),t._v(" "),null!=t.connection.force_from_email?n("div",[n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("from_email_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e(),t._v(" "),null!=t.connection.return_path?n("div",[n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n Return Path indicates where non-delivery receipts - or bounce messages -"),n("br"),t._v("\n are to be sent. If unchecked, bounce messages may be lost. With this enabled,"),n("br"),t._v('\n you’ll be emailed using "From Email" if any messages bounce as a result of issues with the recipient’s email.\n ')]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Name")}},[n("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(" "),n("error",{attrs:{error:t.errors.get("sender_name")}})],1),t._v(" "),n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("force_sender_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1),t._v(" "),"default"!=t.connection.provider?n("div",{staticClass:"fss_config_section"},[n(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?n("p",{staticStyle:{padding:"20px 0px"},domProps:{innerHTML:t._s(t.providers[t.connection.provider].note)}}):t._e(),t._v(" "),n("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")))])]:n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("save_connection_error_1")))])]),t._v(" "),t.saving?n("p",[t._v(t._s(t.$t("Validating Data.Please wait")))]):t._e(),t._v(" "),t.has_error?n("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 F={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:"Cumulative",backgroundColor:"rgba(55, 162, 235, 0.1)",borderColor:"#37a2eb",data:[],yAxisID:"byCumulative",type:"line"},o=0;I()(this.stats,(function(r,s){e.data.push(r),t.push(s),o+=parseInt(r),n.data.push(o)})),this.maxCumulativeValue=o+10,this.chartData={labels:t,datasets:[e,n]}}},mounted:function(){this.fetchReport()}};const D=(0,r.Z)(F,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"fss_body fss_chart_box"},[n("growth-chart",{attrs:{maxCumulativeValue:t.maxCumulativeValue,"chart-data":t.chartData}})],1)}),[],!1,null,null,null).exports;const N={name:"SubscriberForm",data:function(){return{formData:{email:window.FluentMailAdmin.user_email,display_name:window.FluentMailAdmin.user_display_name},share_details:"no",saving:!1,subscribed:!1}},methods:{subscribeToEmail:function(){var t=this;if(!this.formData.email)return this.$notify.error("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 z=(0,r.Z)(N,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fst_subscribe_form"},[t.subscribed?n("div",{staticStyle:{"text-align":"center"}},[n("p",[t._v("Awesome! Please check your email inbox and confirm your subscription.")])]):[n("p",{staticStyle:{"margin-top":"0"}},[t._v("\n Subscribe with your email to know about this plugin updates, releases and useful tips.\n ")]),t._v(" "),n("div",{staticClass:"fsmtp_subscribe"},[n("el-form",{attrs:{"label-position":"right","label-width":"100px"}},[n("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"Your Name"}},[n("el-input",{attrs:{size:"small",placeholder:"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(" "),n("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"Your Email"}},[n("el-input",{attrs:{size:"small",placeholder:"Your Email Address"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1)],1),t._v(" "),n("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 (Optional) Share Non-Sensitive Data. It will help us to improve the integrations\n "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Access Data: Active SMTP Connection Provider, installed plugin names, php & mysql version",placement:"top-end"}},[n("i",{staticClass:"el-icon el-icon-info"})])],1),t._v(" "),n("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 Subscribe To Updates\n ")])],1)]],2)}),[],!1,null,null,null).exports;const R={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 V={name:"Dashboard",components:{ConnectionWizard:M,EmailsChart:D,EmailSubscriber:z,SubscribeDismiss:(0,r.Z)(R,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"el-icon el-icon-close",on:{click:function(e){return t.dismiss()}}})}),[],!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 q=(0,r.Z)(V,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard"},[t.is_new?n("div",{staticClass:"content"},[n("div",{staticClass:"fss_connection_intro"},[n("div",{staticClass:"fss_intro"},[n("h1",[t._v(t._s(t.$t("wizard_title")))]),t._v(" "),n("p",[t._v(t._s(t.$t("wizard_sub")))])]),t._v(" "),t.recommended&&!t.skip_recommended?n("div",{staticClass:"fsmtp_recommened"},[n("h2",[t._v(t._s(t.recommended.title))]),t._v(" "),n("p",[t._v(t._s(t.recommended.subtitle))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.setRecommendation()}}},[t._v(t._s(t.recommended.button_text))]),t._v(" "),n("el-button",{attrs:{type:"info"},on:{click:function(e){t.skip_recommended=!0}}},[t._v("Skip")])],1):[n("h2",[t._v(t._s(t.$t("wizard_instruction")))]),t._v(" "),n("connection-wizard",{attrs:{connection:t.new_connection,is_new:!0,connection_key:!1,providers:t.settings.providers}})]],2)]):n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{sm:24,md:16}},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Sending Stats"))+"\n "),n("span",{staticClass:"fss_to_right"},[n("el-date-picker",{attrs:{size:"small",type:"daterange","picker-options":t.pickerOptions,"range-separator":"To","start-placeholder":"Start date","end-placeholder":"End date","value-format":"yyyy-MM-dd"},model:{value:t.date_range,callback:function(e){t.date_range=e},expression:"date_range"}}),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:t.filterReport}},[t._v("Apply")])],1)]),t._v(" "),n("div",{staticClass:"content"},[t.showing_chart?n("emails-chart",{attrs:{date_range:t.date_range}}):t._e()],1)]),t._v(" "),n("el-col",{attrs:{sm:24,md:8}},[n("div",{staticClass:"fsm_card"},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Quick Overview"))+"\n ")]),t._v(" "),t.loading?n("el-skeleton",{staticClass:"content",attrs:{rows:8}}):n("div",{staticClass:"content"},[n("ul",{staticClass:"fss_dash_lists"},["yes"==t.settings_stat.log_enabled?n("li",[t._v("\n "+t._s(t.$t("Total Email Sent (Logged):"))+" "),n("span",[t._v(t._s(t.stats.sent))])]):t._e(),t._v(" "),t.stats.failed>0?n("li",{staticStyle:{color:"red"}},[n("router-link",{staticStyle:{color:"red"},attrs:{to:{name:"logs",query:{filterBy:"status",filterValue:"failed"}}}},[t._v("\n "+t._s(t.$t("Email Failed:"))+" "),n("span",[t._v(t._s(t.stats.failed))])])],1):t._e(),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Active Connections:"))+" "),n("span",[t._v(t._s(t.settings_stat.connection_counts))])]),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Active Senders:"))+" "),n("span",[t._v(t._s(t.settings_stat.active_senders))])]),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Save Email Logs:"))+"\n "),n("span",{staticStyle:{"text-transform":"capitalize"}},[t._v("\n "+t._s(t.settings_stat.log_enabled)+"\n ")])]),t._v(" "),"yes"==t.settings_stat.log_enabled?n("li",[t._v("\n "+t._s(t.$t("Delete Logs:"))+"\n "),n("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?n("div",{staticClass:"fsm_card",staticStyle:{"margin-top":"20px"}},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Subscribe To Updates"))+"\n "),n("span",{staticClass:"header_action_right"},[n("subscribe-dismiss")],1)]),t._v(" "),n("div",{staticClass:"content"},[n("email-subscriber")],1)]):t._e()])],1)],1)])}),[],!1,null,null,null).exports;var K=n(7757),B=n.n(K);const U={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 G=(0,r.Z)(U,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",{attrs:{width:"170",placement:t.placement},on:{hide:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("div",{staticClass:"action-buttons"},[n("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(" "),n("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(" "),n("template",{slot:"reference"},[t._t("reference",(function(){return[n("i",{staticClass:"el-icon-delete"})]}))],2)],2)}),[],!1,null,null,null).exports;const W={name:"FluentMailGeneralSettings",data:function(){return{saving:!1,logging_days:{7:"After 7 Days",14:"After 14 Days",30:"After 30 Days",60:"After 60 Days",90:"After 90 Days",180:"After 6 Months",365:"After 1 Year",730:"After 2 Years"}}},computed:{connectionsCount:function(){return Object.keys(this.settings.connections).length}},methods:{saveMiscSettings:function(){var t=this;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 Z=(0,r.Z)(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_general_settings"},[n("el-form",{staticClass:"fss_compact_form",attrs:{data:t.settings.misc,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Log Emails"}},[n("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?n("el-form-item",{attrs:{label:t.$t("FluentCRM Email Logging")}},[n("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?n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Delete Logs"))+"\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("delete_logs_info")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),n("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,e){return n("el-option",{key:e,attrs:{value:e,label:t}})})),1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Default Connection"))+"\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("default_connection_popover")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),n("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(e,o){return n("el-option",{key:o,attrs:{value:o,disabled:t.settings.misc.fallback_connection==o,label:e.title+" - "+e.provider_settings.sender_email}})})),1)],1),t._v(" "),n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n Fallback Connection\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("fallback_connection_popover")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),t.connectionsCount>1?n("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(e,o){return n("el-option",{key:o,attrs:{disabled:t.settings.misc.default_connection==o,value:o,label:e.title+" - "+e.provider_settings.sender_email}})})),1):n("p",{staticStyle:{color:"#6d6b6b",margin:"0"}},[t._v(t._s(t.$t("Please add another connection to use fallback feature")))])],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("Email Simulation")}},[n("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?n("p",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("Email_Simulation_Yes")))]):t._e()],1),t._v(" "),n("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;const H={name:"NotificationSettings",data:function(){return{notification_settings:{},loading:!0,saving:!1,sending_days:{Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"}}},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}))},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(){this.getSettings()}};const Y=(0,r.Z)(H,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"fss_general_settings"},[n("el-form",{staticClass:"fss_compact_form",attrs:{data:t.notification_settings,"label-position":"top"}},[n("el-form-item",{attrs:{label:t.$t("Enable Email Summary Notification")}},[n("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?[n("el-form-item",{attrs:{label:t.$t("Notification Email Addresses")}},[n("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(" "),n("el-form-item",{attrs:{label:t.$t("Notification Days")}},[n("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(t,e){return n("el-checkbox",{key:t,attrs:{value:t,label:e}})})),1)],1)]:t._e(),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveSettings()}}},[t._v(t._s(t.$t("Save Settings")))])],2)],1)}),[],!1,null,null,null).exports;function J(t,e,n,o,r,s,i){try{var a=t[s](i),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}const Q={name:"connection_details",props:["connection_id"],data:function(){return{loading:!1,connection_content:""}},methods:{fetchDetails:function(){var t,e=this;return(t=B().mark((function t(){var n;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$get("settings/connection_info",{connection_id:e.connection_id});case 3:n=t.sent,e.connection_content=n.data.info,e.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,r){var s=t.apply(e,n);function i(t){J(s,o,r,i,a,"next",t)}function a(t){J(s,o,r,i,a,"throw",t)}i(void 0)}))})()}},created:function(){this.fetchDetails()}};function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function et(t,e,n,o,r,s,i){try{var a=t[s](i),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}function nt(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var s=t.apply(e,n);function i(t){et(s,o,r,i,a,"next",t)}function a(t){et(s,o,r,i,a,"throw",t)}i(void 0)}))}}const ot={name:"Connections",components:{Confirm:G,GeneralSettings:Z,ConnectionDetails:(0,r.Z)(Q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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..."}},[n("div",{domProps:{innerHTML:t._s(t.connection_content)}})])}),[],!1,null,null,null).exports,NotificationSettings:Y},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return nt(B().mark((function n(){var o;return B().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$get("settings");case 2:o=n.sent,t.settings.mappings=o.data.settings.mappings,t.settings.connections=o.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 nt(B().mark((function n(){var o;return B().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:o=n.sent,e.settings.connections=o.data.connections,e.settings.misc.default_connection=o.data.misc.default_connection,e.$notify.success({title:"Great!",message:"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?X(Object(n),!0).forEach((function(e){tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(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 rt=(0,r.Z)(ot,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connections"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Active Email Connections"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:t.addConnection}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("Add Another Connection"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("el-table",{attrs:{stripe:"",border:"",data:t.connections}},[n("el-table-column",{attrs:{label:t.$t("Provider")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.settings.providers[e.row.provider].title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sender_email",label:t.$t("From Email")}}),t._v(" "),n("el-table-column",{attrs:{width:"120",label:t.$t("Actions"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(n){return t.editConnection(e.row)}}}),t._v(" "),n("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-view"},on:{click:function(n){return t.showConnection(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.deleteConnection(e.row)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}])})],1),t._v(" "),t.connections.length>1?n("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?n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Connection Details"))+"\n ")]),t._v(" "),n("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(" "),n("div",{staticClass:"content"},[n("connection-details",{attrs:{connection_id:t.showing_connection}})],1)]):t._e()]),t._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"general"==t.active_settings},staticStyle:{"margin-bottom":"0px"}},[n("div",{staticClass:"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?n("div",{staticClass:"content"},[n("general-settings")],1):t._e()]),t._v(" "),n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"notification"==t.active_settings}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="notification"}}},[t._v("\n "+t._s(t.$t("Notification Settings"))+"\n ")]),t._v(" "),"notification"==t.active_settings?n("div",{staticClass:"content"},[n("notification-settings")],1):t._e()])])],1)],1)}),[],!1,null,null,null).exports;const st={name:"Connection",components:{ConnectionWizard:M},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 it=(0,r.Z)(st,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connection"},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"fss_connection_intro"},[n("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 at={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 lt=(0,r.Z)(at,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("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 ct={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 ut=(0,r.Z)(ct,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{staticStyle:{"margin-right":"-20px"},attrs:{gutter:10}},[n("el-col",{attrs:{span:10}},[n("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",placeholder:t.$t("Select Status")},model:{value:t.filter_query.status,callback:function(e){t.$set(t.filter_query,"status",e)},expression:"filter_query.status"}},[n("el-option",{attrs:{label:t.$t("All Statuses"),value:""}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Successful"),value:"sent"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Failed"),value:"failed"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:10}},[n("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":"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(" "),n("el-col",{attrs:{span:4}},[n("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 pt={name:"EmailbodyContainer",props:["content"],data:function(){return{}},methods:{setBody:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.ifr;(n.contentDocument||n.contentWindow.document).body.innerHTML=t}))},onMouseOver:function(){this.$refs.fullscreen.classList.add("show")},onMouseOut:function(){this.$refs.fullscreen.classList.remove("show")},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 _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ft={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,r.Z)(pt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mouseover:t.onMouseOver,mouseleave:t.onMouseOut}},[n("span",{ref:"fullscreen",staticClass:"full-screen-text",on:{click:t.fullScreen}},[t._v("\n "+t._s(t.$t("Enter Full Screen"))+"\n ")]),t._v(" "),n("iframe",{ref:"ifr",staticStyle:{width:"100%",height:"400px"},attrs:{frameborder:"0",allowFullScreen:"",mozallowfullscreen:"",webkitallowfullscreen:""}})])}),[],!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}))}},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?_t(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_t(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 vt={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 mt={name:"EmailLog",components:{Confirm:G,Pagination:lt,LogFilter:ut,LogViewer:(0,r.Z)(ft,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"log-viewer"},[t.log?n("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.retrying,expression:"retrying"}],attrs:{title:"Email Log",visible:t.logViewerProps.dialogVisible},on:{closed:t.closed,"update:visible":function(e){return t.$set(t.logViewerProps,"dialogVisible",e)}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("ul",{staticClass:"fss_log_items"},[n("li",[n("div",{staticClass:"item_header"},[t._v("Status:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{class:{success:"sent"==t.log.status,resent:"resent"==t.log.status,fail:"failed"==t.log.status}},[n("span",{staticStyle:{"text-transform":"capitalize","margin-right":"10px"}},[t._v(t._s(t.log.status))]),t._v(" "),"failed"==t.log.status?n("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?n("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(" "),n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Date-Time"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[t._v(t._s(t.log.created_at))])]),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v("From:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.from)}})])]),t._v(" "),t.log.headers&&t.log.headers["Reply-To"]?n("li",[n("div",{staticClass:"item_header"},[t._v("Reply To:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers["Reply-To"])}})])]):t._e(),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v("To:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.to)}})])]),t._v(" "),t.log.headers?[t.log.headers.Cc?n("li",[n("div",{staticClass:"item_header"},[t._v("CC:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers.Cc)}})])]):t._e(),t._v(" "),t.log.headers.Bcc?n("li",[n("div",{staticClass:"item_header"},[t._v("BCC:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers.Bcc)}})])]):t._e()]:t._e(),t._v(" "),t.log.resent_count>0?n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Resent Count"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.resent_count)}})])]):t._e(),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Subject"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.subject)}})])]),t._v(" "),t.log.extra&&t.log.extra.provider&&t.settings.providers[t.log.extra.provider]?n("li",[n("div",{staticClass:"item_header"},[t._v("Mailer:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",[t._v(t._s(t.settings.providers[t.log.extra.provider].title))])])]):t.log.extra&&t.log.extra.provider?n("li",[n("div",{staticClass:"item_header"},[t._v("Mailer:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",[t._v(t._s(t.log.extra.provider))])])]):t._e()],2),t._v(" "),n("el-collapse",{staticStyle:{"margin-top":"10px"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-collapse-item",{attrs:{name:"email_body"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v(t._s(t.$t("Email Body")))])]),t._v(" "),n("hr",{staticClass:"log-border"}),t._v(" "),n("EmailbodyContainer",{attrs:{content:t.log.body}})],2),t._v(" "),n("el-collapse-item",{attrs:{name:"attachments"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v("\n "+t._s(t.$t("Attachments"))+" ("+t._s(t.getAttachments(t.log).length)+")\n ")])]),t._v(" "),n("hr",{staticClass:"log-border"}),t._v(" "),t._l(t.getAttachments(t.log),(function(e,o){return n("div",{key:o,staticStyle:{margin:"5px 0 10px 0"}},[t._v("\n ("+t._s(o+1)+") "+t._s(t.getAttachmentName(e))+"\n ")])}))],2),t._v(" "),n("el-collapse-item",{attrs:{name:"tech_info"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v("Technical Information")])]),t._v(" "),n("div",[n("hr"),n("strong",[t._v("Response\n ")]),n("hr"),t._v(" "),n("el-row",[n("el-col",[n("pre",[t._v(t._s(t.log.response))])])],1),t._v(" "),n("hr"),t._v(" "),n("strong",[t._v("Headers")]),n("hr"),t._v(" "),n("el-row",[n("el-col",[n("pre",{domProps:{innerHTML:t._s(Object.assign({},t.log.headers,t.log.extra.custom_headers))}})])],1)],1)],2)],1),t._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-button",{staticClass:"prev nav",attrs:{size:"small",disabled:!t.prev},on:{click:function(e){return t.navigate("prev")}}},[n("i",{staticClass:"el-icon-arrow-left"}),t._v(" "+t._s(t.$t("Prev"))+"\n ")])],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("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"))+" "),n("i",{staticClass:"el-icon-arrow-right"})])],1)],1)],1)]):t._e()],1)}),[],!1,null,null,null).exports,LogBulkAction:(0,r.Z)(vt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-select",{attrs:{clearable:"",size:"small",tplaceholder:t.$t("Bulk Action")},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[t.selected.length?n("el-option",{attrs:{value:"deleteselected",label:"Delete Selected"}}):t._e(),t._v(" "),t.is_failed_selected?n("el-option",{attrs:{value:"resend_selected",label:t.$t("Resend Selected Emails")}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{span:2}},[n("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}),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,o){t[n]=e.formatLog(o)})),t},formatLog:function(t){var e=this;t.to=this.formatAddresses(t.to),t.headers?(t.headers.cc=this.formatAddresses(t.headers.cc),t.headers.bcc=this.formatAddresses(t.headers.bcc),t.headers["reply-to"]=this.formatAddresses(t.headers["reply-to"])):t.headers={};var n={};return t.headers&&jQuery.each(t.headers,(function(t,o){t&&"string"==typeof t&&(t=t.split("-").map((function(t){return e.ucFirst(t)})).join("-"),n[t]=o)})),t.headers=n,t},formatAddresses:function(t){var n=this;if(!t)return"";if(e()(t))return"";var o=[];return jQuery.each(t,(function(t,e){e.name?o[t]=n.escapeHtml("".concat(e.name," <").concat(e.email,">")):o[t]=n.escapeHtml(e.email)})),o.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.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")),console.log("mounted"),this.fetch()}};const ht=(0,r.Z)(mt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logs"},[n("div",[t.isLogsOn?t._e():n("div",[n("div",{staticClass:"content"},[n("el-alert",{attrs:{closable:!1,"show-icon":"",center:""}},[t._v("\n Email Logging is currently turned off. Only Failed and resent emails will be shown here\n "),n("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(" "),n("div",{staticClass:"header"},[t.selectedLogs.length?n("LogBulkAction",{attrs:{selected:t.selectedLogs},on:{"on-bulk-action":t.handleBulkAction}}):t._e(),t._v(" "),n("div",{staticStyle:{float:"left","margin-top":"6px"}},[t._v(t._s(t.$t("Email Logs")))]),t._v(" "),n("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(" "),n("div",{staticStyle:{float:"right"}},[n("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"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.fetch},slot:"append"})],1)],1)],1),t._v(" "),t.loading?n("el-skeleton",{staticClass:"content",attrs:{rows:15}}):n("div",{staticClass:"content"},[n("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}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Subject")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.subject))]),t._v(" "),e.row.extra&&"Simulator"==e.row.extra.provider?n("span",{staticStyle:{color:"#ff0000"}},[t._v(" - Simulated")]):t._e()]}}],null,!1,2375038685)}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("To")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{domProps:{innerHTML:t._s(e.row.to)}})]}}],null,!1,521936248)}),t._v(" "),n("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(" "),n("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(" "),n("el-table-column",{attrs:{label:t.$t("Actions"),width:"190px",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["failed"==e.row.status?n("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh",plain:!0},on:{click:function(n){return t.handleRetry(e.row,"retry")}}},[t._v(t._s(t.$t("Retry"))+"\n ")]):t._e(),t._v(" "),"sent"==e.row.status?n("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh-right"},on:{click:function(n){return t.handleRetry(e.row,"resend")}}},[t._v("\n "+t._s(t.$t("Resend"))+"\n "),e.row.resent_count>0?n("span",[t._v("("+t._s(e.row.resent_count)+")")]):t._e()]):t._e(),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-view"},on:{click:function(n){return t.handleView(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.handleDelete(e.row.id)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}],null,!1,3019120824)})],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[t.logs.length?n("div",{staticStyle:{"margin-top":"20px"}},[n("confirm",{attrs:{placement:"right",message:"Are you sure, you want to delete all the logs?"},on:{yes:function(e){return t.handleDelete(["all"])}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"info"},slot:"reference"},[t._v("Delete All Logs")])],1)],1):n("span",[t._v(" ")])]),t._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[n("pagination",{attrs:{pagination:t.pagination},on:{fetch:t.pageChanged}})],1)])],1)],1),t._v(" "),n("LogViewer",{attrs:{logViewerProps:t.logViewerProps}})],1)])}),[],!1,null,null,null).exports;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const bt={name:"EmailTest",components:{EmailSubscriber:z},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?gt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.form)).then((function(e){t.$notify.success({title:"Great!",offset:19,message:e.data.message}),t.email_success=!0})).fail((function(e){if(504===Number(e.status))return t.$notify.error({title:"Oops!",offset:19,message:"504 Gateway Time-out."});var n=e.responseJSON;if(n.data.email_error)return t.$notify.error({title:"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 wt=(0,r.Z)(bt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"header"},[t._v("\n Send Test Email\n ")]),t._v(" "),n("div",{staticClass:"content"},[t.email_success?n("div",{staticClass:"success_wrapper"},[t._m(0),t._v(" "),n("h3",[t._v("Test Email Has been successfully sent")]),t._v(" "),n("hr"),t._v(" "),"yes"==t.appVars.require_optin?n("div",{staticStyle:{"margin-top":"10px"}},[n("email-subscriber")],1):n("el-button",{directives:[{name:"else",rawName:"v-else"}],on:{click:function(e){t.email_success=!1}}},[t._v("Run Another Test Email")])],1):n("div",{staticClass:"test_form"},[n("el-form",{ref:"form",attrs:{model:t.form,"label-position":"left","label-width":"120px"}},[n("el-form-item",{attrs:{for:"email",label:"From"}},[n("el-select",{attrs:{placeholder:"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,e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Enter the sender email address (optional).\n ")])],1),t._v(" "),n("el-form-item",{attrs:{for:"from",label:"Send To"}},[n("el-input",{attrs:{id:"from"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Enter email address where test email will be sent (By default, logged in user email will be used if email address is not provided).\n ")])],1),t._v(" "),n("el-form-item",{attrs:{for:"isHtml",label:"HTML"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6","active-text":"On","inactive-text":"Off"},model:{value:t.form.isHtml,callback:function(e){t.$set(t.form,"isHtml",e)},expression:"form.isHtml"}}),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Send this email in HTML or in plain text format.\n ")])],1),t._v(" "),n("el-form-item",{attrs:{align:"left"}},[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-s-promotion",loading:t.loading,disabled:!t.maybeEnabled},on:{click:t.sendEmail}},[t._v("Send Test Email")]),t._v(" "),t.maybeEnabled?t._e():n("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?n("el-alert",{attrs:{type:"error",title:t.debug_info.message,"show-icon":""}}):t._e()],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("h1",[e("i",{staticClass:"el-icon el-icon-success"})])}],!1,null,null,null).exports;var kt=n(5534),xt=n.n(kt);const St={name:"FluentMailSupport",data:function(){return{plugins:{fluentform:{slug:"fluentform",title:"Fluent Forms",subtitle:"Fastest Contact Form Builder Plugin for WordPress",description:'<p><a href="https://wordpress.org/plugins/fluentform" target="_blank" rel="nofollow">Fluent Forms</a> is the ultimate user-friendly, fast, customizable drag-and-drop WordPress Contact Form Plugin that offers you all the premium features, plus many more completely unique additional features.</p>',btn_text:"Install Fluent Forms (Free)",btn_class:"",plugin_url:"https://wordpress.org/plugins/fluentform"},fluent_crm:{slug:"fluent-crm",title:"FluentCRM",subtitle:"Email Marketing Automation and CRM Plugin for WordPress",description:'<p><a href="https://wordpress.org/plugins/fluent-crm/" target="_blank" rel="nofollow">FluentCRM</a> is the best and complete feature-rich Email Marketing & CRM solution. It is also the simplest and fastest CRM and Marketing Plugin on WordPress. Manage your customer relationships, build your email lists, send email campaigns, build funnels, and make more profit and increase your conversion rates. (Yes, It’s Free!)</p>',btn_text:"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:"Best WP DataTables Plugin for WordPress",description:'<p>Looking for a WordPress table plugin for your website? Then you’re in the right place.</p><p>Meet <a href="https://wordpress.org/plugins/ninja-tables/" target="_blank" rel="nofollow">Ninja Tables</a>, the best WP table plugin that comes with all the solutions to the problems you face while creating tables on your posts/pages.</p>',btn_text:"Install Ninja Tables (Free)",btn_class:"fss_ninjatables_btn",plugin_url:"https://wordpress.org/plugins/ninja-tables/"}},installing:!1,installed_info:!1,installed_message:""}},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&&xt()(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}))}}};const Ct=(0,r.Z)(St,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_support"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:8,sm:24}},[n("div",{staticClass:"fss_about"},[n("div",{staticClass:"header"},[t._v("About")]),t._v(" "),n("div",{staticClass:"content"},[n("p",[n("a",{attrs:{href:t.appVars.plugin_url,target:"_blank",rel:"noopener"}},[t._v("FluentSMTP")]),t._v(" is a free and opensource WordPress Plugin. Our mission is to provide the ultimate\n email delivery solution with your favorite Email sending service. FluentSMTP is built for performance and speed.\n ")]),t._v(" "),n("p",[t._v("\n FluentSMTP is free and will be always free. This is our pledge to WordPress community from WPManageNinja LLC.\n ")]),t._v(" "),n("div",[n("p",[t._v("FluentSMTP is built using the following opensorce libraries and softwares")]),t._v(" "),n("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[n("li",[t._v("VueJS")]),t._v(" "),n("li",[t._v("ChartJS")]),t._v(" "),n("li",[t._v("Lodash")]),t._v(" "),n("li",[t._v("WordPress API")])]),t._v(" "),n("p",[t._v("\n If you find an issue or have a suggestion please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://github.com/WPManageNinja/fluent-smtp/issues"}},[t._v("open an issue on GitHub")]),t._v(".\n "),n("br"),t._v("If you are a developer and would like to contribute to the project, Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://github.com/WPManageNinja/fluent-smtp/"}},[t._v("contribute on GitHub")]),t._v(".\n ")]),t._v(" "),n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v("read the documentation here")])])])])])]),t._v(" "),t.plugin||t.installed_info?n("el-col",{attrs:{md:8,sm:24}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],staticClass:"fss_about",attrs:{"element-loading-text":"Installing... Please wait"}},[n("div",{staticClass:"header"},[t._v("Recommended Plugin")]),t._v(" "),n("div",{staticClass:"content"},[t.installed_info?n("div",{staticClass:"install_success"},[n("h3",[t._v(t._s(t.installed_message))]),t._v(" "),n("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))])]):n("div",{staticClass:"fss_plugin_block"},[n("div",{staticClass:"fss_plugin_title"},[n("h3",[t._v(t._s(t.plugin.title))]),t._v(" "),n("p",[t._v(t._s(t.plugin.subtitle))])]),t._v(" "),n("div",{staticClass:"fss_plugin_body"},[n("div",{domProps:{innerHTML:t._s(t.plugin.description)}}),t._v(" "),n("div",{staticClass:"fss_install_btn"},[t.appVars.disable_installation?n("a",{staticClass:"el-button el-button--success fss_ninjatables_btn",attrs:{href:t.plugin.plugin_url,target:"_blank",rel:"noopener"}},[n("span",[t._v("View "+t._s(t.plugin.title))])]):n("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))])],1)])])])])]):t._e(),t._v(" "),n("el-col",{attrs:{md:8,sm:24}},[n("div",{staticClass:"fss_about"},[n("div",{staticClass:"header"},[t._v("Community")]),t._v(" "),n("div",{staticClass:"content"},[n("p",[t._v("FluentSMTP is powered by community. We listen to our community users and build products that add values to businesses and save time.")]),t._v(" "),n("p",[t._v("Join our communities and participate in great conversations.")]),t._v(" "),n("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentforms"}},[t._v("Join FluentForms Facebook Community")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentcrm"}},[t._v("Join FluentCRM Facebook Community")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5"}},[t._v("Write a review (really appreciate 😊)")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v("Read the documentation")])])])])])])],1)],1)}),[],!1,null,null,null).exports;var $t=n(3105),Pt=n.n($t);const Et={name:"Documentations",data:function(){return{search:"",fetching:!1,docs:[],utl_param:"?utm_source=wp&utm_medium=doc&utm_campaign=doc"}},computed:{doc_cats:function(){if(!this.docs.length)return[];var t={item_4:{label:"Getting Started",docs:[]},item_5:{label:"Connect With Your Email Providers",docs:[]},item_6:{label:"Functionalities",docs:[]}};return I()(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?Pt()(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}))},$t:function(t){return t}},mounted:function(){this.fetchDocs()}};const At=[{name:"dashboard",path:"/",meta:{},component:q},{name:"connections",path:"/connections",meta:{},component:rt},{name:"connection",path:"/connection",meta:{},component:it},{name:"test",path:"/test",meta:{},component:wt},{name:"support",path:"/support",meta:{},component:Ct},{name:"logs",path:"/logs",meta:{},component:ht},{name:"docs",path:"/documentation",meta:{},component:(0,r.Z)(Et,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fc_docs"},[n("div",{staticClass:"fc_doc_header text-align-center",staticStyle:{"max-width":"800px",margin:"50px auto",padding:"0px 20px","text-align":"center"}},[n("h1",[t._v("How can we help you?")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1),t._v(" "),t.search?n("div",{staticClass:"search_result"},[n("div",{staticClass:"fc_doc_items"},[n("div",{staticClass:"fc_doc_header"},[n("h3",[t._v(t._s(t.$t("Search Results for"))+": "+t._s(t.search))])]),t._v(" "),n("div",{staticClass:"fc_doc_lists"},[t.search_items.length?n("ul",t._l(t.search_items,(function(e){return n("li",{key:e.id},[n("a",{attrs:{target:"_blank",href:e.link+t.utl_param},domProps:{innerHTML:t._s(e.title)}})])})),0):n("p",[t._v("Sorry! No docs found")])])])]):t._e()],1),t._v(" "),t.fetching?n("el-skeleton",{staticClass:"doc_body content",attrs:{rows:8}}):n("div",{staticClass:"doc_body"},t._l(t.doc_cats,(function(e,o){return n("div",{key:o,staticClass:"doc_each_items"},[n("div",{staticClass:"fc_doc_items"},[n("div",{staticClass:"fc_doc_header"},[n("h3",[t._v(t._s(e.label))])]),t._v(" "),n("div",{staticClass:"fc_doc_lists"},[n("ul",t._l(e.docs,(function(e){return n("li",{key:e.id},[n("a",{attrs:{target:"_blank",href:e.link+t.utl_param},domProps:{innerHTML:t._s(e.title)}})])})),0)])])])})),0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please view the "),n("a",{attrs:{href:"https://fluentsmtp.com/docs",target:"_blank",rel:"noopener"}},[t._v("documentation")]),t._v(" first. If you still can't find the\n answer "),n("a",{attrs:{href:"https://wpmanageninja.com/support-tickets/",target:"_blank",rel:"noopener"}},[t._v("open a support ticket")]),t._v(" and we will be\n happy to answer your questions and assist you with any problems.")])}],!1,null,null,null).exports}];var Ot=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",At)});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(8109).Z)},router:Ot})})()})();
1
+ (()=>{var t={7757:(t,e,n)=>{t.exports=n(5666)},8552:(t,e,n)=>{var o=n(852)(n(5639),"DataView");t.exports=o},1989:(t,e,n)=>{var o=n(1789),r=n(401),s=n(7667),i=n(1327),a=n(1866);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},8407:(t,e,n)=>{var o=n(7040),r=n(4125),s=n(2117),i=n(7529),a=n(4705);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},7071:(t,e,n)=>{var o=n(852)(n(5639),"Map");t.exports=o},3369:(t,e,n)=>{var o=n(4785),r=n(1285),s=n(6e3),i=n(9916),a=n(5265);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},3818:(t,e,n)=>{var o=n(852)(n(5639),"Promise");t.exports=o},8525:(t,e,n)=>{var o=n(852)(n(5639),"Set");t.exports=o},8668:(t,e,n)=>{var o=n(3369),r=n(619),s=n(2385);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e<n;)this.add(t[e])}i.prototype.add=i.prototype.push=r,i.prototype.has=s,t.exports=i},6384:(t,e,n)=>{var o=n(8407),r=n(7465),s=n(3779),i=n(7599),a=n(4758),l=n(4309);function c(t){var e=this.__data__=new o(t);this.size=e.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,t.exports=c},2705:(t,e,n)=>{var o=n(5639).Symbol;t.exports=o},1149:(t,e,n)=>{var o=n(5639).Uint8Array;t.exports=o},577:(t,e,n)=>{var o=n(852)(n(5639),"WeakMap");t.exports=o},7412:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s}},4636:(t,e,n)=>{var o=n(2545),r=n(5694),s=n(1469),i=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=s(t),u=!n&&r(t),p=!n&&!u&&i(t),_=!n&&!u&&!p&&l(t),d=n||u||p||_,f=d?o(t.length,String):[],v=f.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||_&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||f.push(m);return f}},9932:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}},2488:t=>{t.exports=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}},4311:(t,e,n)=>{var o=n(9877);t.exports=function(t){var e=t.length;return e?t[o(0,e-1)]:void 0}},2908:t=>{t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}},8470:(t,e,n)=>{var o=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}},9881:(t,e,n)=>{var o=n(7816),r=n(9291)(o);t.exports=r},760:(t,e,n)=>{var o=n(9881);t.exports=function(t,e){var n=[];return o(t,(function(t,o,r){e(t,o,r)&&n.push(t)})),n}},8483:(t,e,n)=>{var o=n(5063)();t.exports=o},7816:(t,e,n)=>{var o=n(8483),r=n(3674);t.exports=function(t,e){return t&&o(t,e,r)}},7786:(t,e,n)=>{var o=n(1811),r=n(327);t.exports=function(t,e){for(var n=0,s=(e=o(e,t)).length;null!=t&&n<s;)t=t[r(e[n++])];return n&&n==s?t:void 0}},8866:(t,e,n)=>{var o=n(2488),r=n(1469);t.exports=function(t,e,n){var s=e(t);return r(t)?s:o(s,n(t))}},4239:(t,e,n)=>{var o=n(2705),r=n(9607),s=n(2333),i=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?r(t):s(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},9454:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return r(t)&&"[object Arguments]"==o(t)}},939:(t,e,n)=>{var o=n(2492),r=n(7005);t.exports=function t(e,n,s,i,a){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:o(e,n,s,i,t,a))}},2492:(t,e,n)=>{var o=n(6384),r=n(7114),s=n(8351),i=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),p="[object Arguments]",_="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,m,h){var g=l(t),y=l(e),b=g?_:a(t),w=y?_:a(e),k=(b=b==p?d:b)==d,x=(w=w==p?d:w)==d,S=b==w;if(S&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(S&&!k)return h||(h=new o),g||u(t)?r(t,e,n,v,m,h):s(t,e,b,n,v,m,h);if(!(1&n)){var C=k&&f.call(t,"__wrapped__"),$=x&&f.call(e,"__wrapped__");if(C||$){var P=C?t.value():t,A=$?e.value():e;return h||(h=new o),m(P,A,n,v,h)}}return!!S&&(h||(h=new o),i(t,e,n,v,m,h))}},2958:(t,e,n)=>{var o=n(6384),r=n(939);t.exports=function(t,e,n,s){var i=n.length,a=i,l=!s;if(null==t)return!a;for(t=Object(t);i--;){var c=n[i];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<a;){var u=(c=n[i])[0],p=t[u],_=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var d=new o;if(s)var f=s(p,_,u,t,e,d);if(!(void 0===f?r(_,p,3,s,d):f))return!1}}return!0}},8458:(t,e,n)=>{var o=n(3560),r=n(5346),s=n(3218),i=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,_=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||r(t))&&(o(t)?_:a).test(i(t))}},8749:(t,e,n)=>{var o=n(4239),r=n(1780),s=n(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&r(t.length)&&!!i[o(t)]}},7206:(t,e,n)=>{var o=n(1573),r=n(6432),s=n(6557),i=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?i(t)?r(t[0],t[1]):o(t):a(t)}},280:(t,e,n)=>{var o=n(5726),r=n(6916),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return r(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},1573:(t,e,n)=>{var o=n(2958),r=n(1499),s=n(2634);t.exports=function(t){var e=r(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}},6432:(t,e,n)=>{var o=n(939),r=n(7361),s=n(9095),i=n(5403),a=n(9162),l=n(2634),c=n(327);t.exports=function(t,e){return i(t)&&a(e)?l(c(t),e):function(n){var i=r(n,t);return void 0===i&&i===e?s(n,t):o(e,i,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var o=n(7786);t.exports=function(t){return function(e){return o(e,t)}}},9877:t=>{var e=Math.floor,n=Math.random;t.exports=function(t,o){return t+e(n()*(o-t+1))}},4992:(t,e,n)=>{var o=n(4311),r=n(2628);t.exports=function(t){return o(r(t))}},2545:t=>{t.exports=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}},531:(t,e,n)=>{var o=n(2705),r=n(9932),s=n(1469),i=n(3448),a=o?o.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return r(e,t)+"";if(i(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var o=n(9932);t.exports=function(t,e){return o(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var o=n(6557);t.exports=function(t){return"function"==typeof t?t:o}},1811:(t,e,n)=>{var o=n(1469),r=n(5403),s=n(5514),i=n(9833);t.exports=function(t,e){return o(t)?t:r(t,e)?[t]:s(i(t))}},4429:(t,e,n)=>{var o=n(5639)["__core-js_shared__"];t.exports=o},9291:(t,e,n)=>{var o=n(8612);t.exports=function(t,e){return function(n,r){if(null==n)return n;if(!o(n))return t(n,r);for(var s=n.length,i=e?s:-1,a=Object(n);(e?i--:++i<s)&&!1!==r(a[i],i,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,o){for(var r=-1,s=Object(e),i=o(e),a=i.length;a--;){var l=i[t?a:++r];if(!1===n(s[l],l,s))break}return e}}},7114:(t,e,n)=>{var o=n(8668),r=n(2908),s=n(4757);t.exports=function(t,e,n,i,a,l){var c=1&n,u=t.length,p=e.length;if(u!=p&&!(c&&p>u))return!1;var _=l.get(t),d=l.get(e);if(_&&d)return _==e&&d==t;var f=-1,v=!0,m=2&n?new o:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var h=t[f],g=e[f];if(i)var y=c?i(g,h,f,e,t,l):i(h,g,f,t,e,l);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!r(e,(function(t,e){if(!s(m,e)&&(h===t||a(h,t,n,i,l)))return m.push(e)}))){v=!1;break}}else if(h!==g&&!a(h,g,n,i,l)){v=!1;break}}return l.delete(t),l.delete(e),v}},8351:(t,e,n)=>{var o=n(2705),r=n(1149),s=n(7813),i=n(7114),a=n(8776),l=n(1814),c=o?o.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,o,c,p,_){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||!p(new r(t),new r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+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 d=a;case"[object Set]":var f=1&o;if(d||(d=l),t.size!=e.size&&!f)return!1;var v=_.get(t);if(v)return v==e;o|=2,_.set(t,e);var m=i(d(t),d(e),o,c,p,_);return _.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,n)=>{var o=n(8234),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,i,a){var l=1&n,c=o(t),u=c.length;if(u!=o(e).length&&!l)return!1;for(var p=u;p--;){var _=c[p];if(!(l?_ in e:r.call(e,_)))return!1}var d=a.get(t),f=a.get(e);if(d&&f)return d==e&&f==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=l;++p<u;){var h=t[_=c[p]],g=e[_];if(s)var y=l?s(g,h,_,e,t,a):s(h,g,_,t,e,a);if(!(void 0===y?h===g||i(h,g,n,s,a):y)){v=!1;break}m||(m="constructor"==_)}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}},1957:(t,e,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},8234:(t,e,n)=>{var o=n(8866),r=n(9551),s=n(3674);t.exports=function(t){return o(t,s,r)}},5050:(t,e,n)=>{var o=n(7019);t.exports=function(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var o=n(9162),r=n(3674);t.exports=function(t){for(var e=r(t),n=e.length;n--;){var s=e[n],i=t[s];e[n]=[s,i,o(i)]}return e}},852:(t,e,n)=>{var o=n(8458),r=n(7801);t.exports=function(t,e){var n=r(t,e);return o(n)?n:void 0}},9607:(t,e,n)=>{var o=n(2705),r=Object.prototype,s=r.hasOwnProperty,i=r.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(t){}var r=i.call(t);return o&&(e?t[a]=n:delete t[a]),r}},9551:(t,e,n)=>{var o=n(4963),r=n(479),s=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(t){return null==t?[]:(t=Object(t),o(i(t),(function(e){return s.call(t,e)})))}:r;t.exports=a},4160:(t,e,n)=>{var o=n(8552),r=n(7071),s=n(3818),i=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",p="[object Promise]",_="[object Set]",d="[object WeakMap]",f="[object DataView]",v=c(o),m=c(r),h=c(s),g=c(i),y=c(a),b=l;(o&&b(new o(new ArrayBuffer(1)))!=f||r&&b(new r)!=u||s&&b(s.resolve())!=p||i&&b(new i)!=_||a&&b(new a)!=d)&&(b=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,o=n?c(n):"";if(o)switch(o){case v:return f;case m:return u;case h:return p;case g:return _;case y:return d}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var o=n(1811),r=n(5694),s=n(1469),i=n(5776),a=n(1780),l=n(327);t.exports=function(t,e,n){for(var c=-1,u=(e=o(e,t)).length,p=!1;++c<u;){var _=l(e[c]);if(!(p=null!=t&&n(t,_)))break;t=t[_]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&a(u)&&i(_,u)&&(s(t)||r(t))}},1789:(t,e,n)=>{var o=n(4536);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(o){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var o=n(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return o?void 0!==e[t]:r.call(e,t)}},1866:(t,e,n)=>{var o=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var o=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&e.test(t))&&t>-1&&t%1==0&&t<n}},5403:(t,e,n)=>{var o=n(1469),r=n(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(i.test(t)||!s.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var o,r=n(4429),s=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!s&&s in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var o=n(3218);t.exports=function(t){return t==t&&!o(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var o=n(8470),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},2117:(t,e,n)=>{var o=n(8470);t.exports=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}},7529:(t,e,n)=>{var o=n(8470);t.exports=function(t){return o(this.__data__,t)>-1}},4705:(t,e,n)=>{var o=n(8470);t.exports=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},4785:(t,e,n)=>{var o=n(1989),r=n(8407),s=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(s||r),string:new o}}},1285:(t,e,n)=>{var o=n(5050);t.exports=function(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).get(t)}},9916:(t,e,n)=>{var o=n(5050);t.exports=function(t){return o(this,t).has(t)}},5265:(t,e,n)=>{var o=n(5050);t.exports=function(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4523:(t,e,n)=>{var o=n(8306);t.exports=function(t){var e=o(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var o=n(852)(Object,"create");t.exports=o},6916:(t,e,n)=>{var o=n(5569)(Object.keys,Object);t.exports=o},1167:(t,e,n)=>{t=n.nmd(t);var o=n(1957),r=e&&!e.nodeType&&e,s=r&&t&&!t.nodeType&&t,i=s&&s.exports===r&&o.process,a=function(){try{var t=s&&s.require&&s.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5639:(t,e,n)=>{var o=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,s=o||r||Function("return this")();t.exports=s},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},7465:(t,e,n)=>{var o=n(8407);t.exports=function(){this.__data__=new o,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var o=n(8407),r=n(7071),s=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof o){var i=n.__data__;if(!r||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(t,e),this.size=n.size,this}},5514:(t,e,n)=>{var o=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,i=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,o,r){e.push(o?r.replace(s,"$1"):n||t)})),e}));t.exports=i},327:(t,e,n)=>{var o=n(3448);t.exports=function(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346: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""}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3105:(t,e,n)=>{var o=n(4963),r=n(760),s=n(7206),i=n(1469);t.exports=function(t,e){return(i(t)?o:r)(t,s(e,3))}},4486:(t,e,n)=>{var o=n(7412),r=n(9881),s=n(4290),i=n(1469);t.exports=function(t,e){return(i(t)?o:r)(t,s(e))}},7361:(t,e,n)=>{var o=n(7786);t.exports=function(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}},9095:(t,e,n)=>{var o=n(13),r=n(222);t.exports=function(t,e){return null!=t&&r(t,e,o)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var o=n(9454),r=n(7005),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return r(t)&&i.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var o=n(3560),r=n(1780);t.exports=function(t){return null!=t&&r(t.length)&&!o(t)}},4144:(t,e,n)=>{t=n.nmd(t);var o=n(5639),r=n(5062),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,a=i&&i.exports===s?o.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;t.exports=l},1609:(t,e,n)=>{var o=n(280),r=n(4160),s=n(5694),i=n(1469),a=n(8612),l=n(4144),c=n(5726),u=n(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||s(t)))return!t.length;var e=r(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!o(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var o=n(4239),r=n(3218);t.exports=function(t){if(!r(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},6719:(t,e,n)=>{var o=n(8749),r=n(7518),s=n(1167),i=s&&s.isTypedArray,a=i?r(i):o;t.exports=a},3674:(t,e,n)=>{var o=n(4636),r=n(280),s=n(8612);t.exports=function(t){return s(t)?o(t):r(t)}},8306:(t,e,n)=>{var o=n(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(r.Cache||o),n}r.Cache=o,t.exports=r},9601:(t,e,n)=>{var o=n(371),r=n(9152),s=n(5403),i=n(327);t.exports=function(t){return s(t)?o(i(t)):r(t)}},5534:(t,e,n)=>{var o=n(4311),r=n(4992),s=n(1469);t.exports=function(t){return(s(t)?o:r)(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,n)=>{var o=n(531);t.exports=function(t){return null==t?"":o(t)}},2628:(t,e,n)=>{var o=n(7415),r=n(3674);t.exports=function(t){return null==t?[]:o(t,r(t))}},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.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 c(t,e,n,o){var r=e&&e.prototype instanceof m?e:m,s=Object.create(r.prototype),i=new A(o||[]);return s._invoke=function(t,e,n){var o=p;return function(r,s){if(o===d)throw new Error("Generator is already running");if(o===f){if("throw"===r)throw s;return O()}for(n.method=r,n.arg=s;;){var i=n.delegate;if(i){var a=C(i,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=u(t,e,n);if("normal"===l.type){if(o=n.done?f:_,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=f,n.method="throw",n.arg=l.arg)}}}(t,n,i),s}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p="suspendedStart",_="suspendedYield",d="executing",f="completed",v={};function m(){}function h(){}function g(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==n&&o.call(w,s)&&(y=w);var k=g.prototype=m.prototype=Object.create(y);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(r,s,i,a){var l=u(t[r],t,s);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(p).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,a)}))}a(l.arg)}var r;this._invoke=function(t,o){function s(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(s,s):s()}}function C(t,n){var o=t.iterator[n.method];if(o===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=u(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var s=r.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function $(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function E(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:e,done:!0}}return h.prototype=g,l(k,"constructor",g),l(g,"constructor",h),h.displayName=l(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,a,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},x(S.prototype),l(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,s){void 0===s&&(s=Promise);var i=new S(c(e,n,o,r),s);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(k),l(k,a,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return a.type="throw",a.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var i=this.tryEntries[s],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var i=s?s.completion:{};return i.type=t,i.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(i)},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),v},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),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;P(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:E(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8109:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const o={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:"Email Test"},{route:"logs",title:"Email Logs"},{route:"support",title:"Support"},{route:"docs",title:"Docs"}]},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, #wpbody-content > .updated, #wpbody-content > .error").remove(),this.logo="<div class='logo'>".concat(this.brandLogo,"</div>"),this.setMenus()}};const r=(0,n(1900).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-mail-app"},[n("div",{staticClass:"fluent-mail-main-menu-items"},[n("el-menu",{staticClass:"fluent-mail-navigation",attrs:{router:!0,mode:"horizontal","default-active":t.active}},[n("el-menu-item",{attrs:{index:"dashboard",route:{name:"dashboard"}},domProps:{innerHTML:t._s(t.logo)}}),t._v(" "),t._l(t.items,(function(e){return n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}},domProps:{innerHTML:t._s(e.title)}})}))],2)],1),t._v(" "),n("div",{staticClass:"fluent-mail-body"},[n("router-view",{key:t.$route.name})],1)])}),[],!1,null,null,null).exports},1900:(t,e,n)=>{"use strict";function o(t,e,n,o,r,s,i,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),i?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>o})}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={id:o,loaded:!1,exports:{}};return t[o](s,s.exports,n),s.loaded=!0,s.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 o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},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),(()=>{"use strict";var t=n(1609),e=n.n(t);const o={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 r=n(1900);const s=(0,r.Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-input",{attrs:{id:t.id,type:t.type,value:t.value,"place-holder":t.placeholder,disabled:t.disabled},on:{input:function(e){return t.$emit("input",e)}}})],1)}),[],!1,null,null,null).exports;const i={name:"Error",props:["error"]};const a=(0,r.Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.error?n("span",{staticClass:"el-form-item__error"},[t._v("\n "+t._s(t.error)+"\n")]):t._e()}),[],!1,null,null,null).exports,l={name:"MailGun",props:["connection","errors"],components:{InputPassword:s,Error:a},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="",this.connection.domain_name="")}},data:function(){return{}}};const c=(0,r.Z)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Mailgun API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"key"}},[t._v("\n Private API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get an API Key from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/account/security/api_keys"}},[t._v("Get a Private API Key.")])])],1)],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{for:"domain"}},[n("label",{attrs:{for:"domain"}},[t._v("\n Domain Name\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("domain_name")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get a Domain Name from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/domains"}},[t._v("\n Get a Domain Name.\n ")])])],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_MAILGUN_API_KEY', '********************' );\ndefine( 'FLUENTMAIL_MAILGUN_DOMAIN', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{staticStyle:{"vertical-align":"baseline"},attrs:{for:"region"}},[t._v("\n Select Region    \n ")]),t._v(" "),n("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(" "),n("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(" "),n("el-alert",{attrs:{closable:!1}},[n("span",[t._v("\n Define which endpoint you want to use for sending messages.\n ")]),t._v(" "),n("span",[t._v("\n If you are operating under EU laws, you may be required to use EU region.\n "),n("a",{attrs:{target:"_blank",href:"https://www.mailgun.com/regions"}},[t._v("More information")]),t._v("\n on Mailgun.com.\n ")])])],1)],1)}),[],!1,null,null,null).exports;const u={name:"PepiPost",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const p=(0,r.Z)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Pepipost API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"pepipost-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_PEPIPOST_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from Pepipost (Click Show button on Settings Page):\n "),n("a",{attrs:{target:"_blank",href:"https://app.pepipost.com/app/settings/integration"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;const _={name:"SendGrid",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const d=(0,r.Z)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("SendGrid API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sendgrid-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDGRID_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from SendGrid:\n "),n("a",{attrs:{target:"_blank",href:"https://app.sendgrid.com/settings/api_keys"}},[t._v("Create API Key.")]),t._v("\n To send emails you will need only a Mail Send access level for this API key.\n ")])}],!1,null,null,null).exports;const f={name:"SendInBlue",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const v=(0,r.Z)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Sendinblue API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sendinblue-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SENDINBLUE_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key:\n "),n("a",{attrs:{target:"_blank",href:"https://account.sendinblue.com/advanced/api"}},[t._v("Get v3 API Key.")])])}],!1,null,null,null).exports;const m={name:"AmazonSes",props:["connection","provider","errors"],components:{InputPassword:s,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,r.Z)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{for:"access_key"}},[n("label",{attrs:{for:"access_key"}},[t._v("\n Access Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("access_key")}})],1)],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"ses-key"}},[t._v("\n Secret Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{for:"ses-region"}},[t._v("\n Region "),n("span",{staticClass:"small-help-text"},[t._v("(Default: US East (N. Virginia)/us-east-1)")])]),t._v(" "),n("el-select",{attrs:{id:"ses-region",placeholder:"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,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),n("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:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const y=(0,r.Z)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("SparkPost API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"sparkpost-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SPARKPOST_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key:\n "),n("a",{attrs:{target:"_blank",href:"https://app.sparkpost.com/account/api-keys"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;const b={name:"Smtp",props:["connection","errors"],components:{InputPassword:s,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,r.Z)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"host"}},[t._v("\n SMTP Host\n ")]),t._v(" "),n("el-input",{attrs:{id:"host"},model:{value:t.connection.host,callback:function(e){t.$set(t.connection,"host",e)},expression:"connection.host"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("host")}})],1)],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"port"}},[t._v("\n SMTP Port\n ")]),t._v(" "),n("el-input",{attrs:{id:"port"},model:{value:t.connection.port,callback:function(e){t.$set(t.connection,"port",e)},expression:"connection.port"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("port")}})],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticStyle:{margin:"20px 0"}},[n("label",[t._v("\n Encryption\n ")]),t._v(" "),n("div",{staticClass:"small-help-text",staticStyle:{display:"inline-block"}},[t._v("\n (Select "),n("strong",[t._v("ssl")]),t._v(" on port "),n("strong",[t._v("465")]),t._v(",\n or "),n("strong",[t._v("tls")]),t._v(" on port "),n("strong",[t._v("25")]),t._v(" or "),n("strong",[t._v("587")]),t._v(")\n ")]),t._v(" "),n("div",{staticStyle:{display:"inline-block","margin-left":"20px"}},[n("el-radio",{attrs:{label:"none"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"ssl"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("SSL")]),t._v(" "),n("el-radio",{attrs:{label:"tls"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("TLS")])],1)])],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Use Auto TLS\n ")]),t._v(" "),n("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(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (By default, the TLS encryption would be used if the server supports it. On some servers, it could be a problem and may need to be disabled.)\n ")])],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Authentication\n ")]),t._v(" "),n("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(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (If you need to provide your SMTP server's credentials (username and password) enable the authentication, in most cases this is required.)\n ")])],1)],1)],1),t._v(" "),"yes"==t.connection.auth?[n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{class:{disabled:"no"===t.connection.auth},attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"username"}},[t._v("\n SMTP Username\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"username",disabled:t.isDisabledUsername},model:{value:t.connection.username,callback:function(e){t.$set(t.connection,"username",e)},expression:"connection.username"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"smtp-password"}},[t._v("\n SMTP Password\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP_USERNAME', '********************' );\ndefine( 'FLUENTMAIL_SMTP_PASSWORD', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;const k={name:"Gamil",props:["connection","errors"],components:{InputPassword:s,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 x=(0,r.Z)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.connection_key&&!t.connection.version?n("div",{staticClass:"ff_smtp_warn"},[t._v("\n Google API version has been upgraded. Please "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://fluentsmtp.com/docs/connect-gmail-or-google-workspace-emails-with-fluentsmtp/"}},[t._v("read the doc and upgrade your API connection")]),t._v(".\n ")]):t._e(),t._v(" "),n("h3",[t._v("Gmail/Google Workspace API Settings")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_GMAIL_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_GMAIL_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"Authorized Redirect URI"}},[n("el-input",{attrs:{readonly:!0},model:{value:t.AuthorizedRedirectURI,callback:function(e){t.AuthorizedRedirectURI=e},expression:"AuthorizedRedirectURI"}})],1),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Gmail/Google Workspace Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("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("Authenticate with Google & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/connect-gmail-or-google-workspace-emails-with-fluentsmtp/"}},[t._v("check the documentation first")]),t._v(" or "),n("b",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.youtube.com/watch?v=_d78bscNaX8"}},[t._v("Watch the video tutorial")])]),t._v(" to create API keys at Google")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Google to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const S={name:"OutLook",props:["connection","provider","errors"],components:{InputPassword:s,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 C=(0,r.Z)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Outlook/Office365 API Settings")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_OUTLOOK_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_OUTLOOK_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",[t._v("App Callback URL (Use this URL to your APP)")]),t._v(" "),n("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?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Outlook/Office365 Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("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("Authenticate with Office365 & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/setup-outlook-with-fluentsmtp/"}},[t._v("check the documentation first to create API keys at Microsoft")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Office365 to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const $={name:"PostMark",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const P=(0,r.Z)($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Postmark API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"postmark-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_POSTMARK_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0),t._v(" "),n("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{label:"Track Opens"}},[n("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 Enable email opens tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then open tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"Message Stream"}},[n("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(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{label:"Track Links"}},[n("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 Enable link tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then link tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from Postmark (Your API key is in the API Tokens tab of your):\n "),n("a",{attrs:{target:"_blank",href:"https://account.postmarkapp.com/servers"}},[t._v("Postmark Server.")])])}],!1,null,null,null).exports;const A={name:"PostMark",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const E=(0,r.Z)(A,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("ElasticMail API Settings")]),t._v(" "),n("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"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"elasticmail-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("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(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_ELASTICMAIL_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0),t._v(" "),n("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Email Type"}},[n("el-radio-group",{model:{value:t.connection.mail_type,callback:function(e){t.$set(t.connection,"mail_type",e)},expression:"connection.mail_type"}},[n("el-radio",{attrs:{label:"transactional"}},[t._v("Transactional")]),t._v(" "),n("el-radio",{attrs:{label:"marketing"}},[t._v("Marketing")])],1)],1)],1)],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from ElasticMail:\n "),n("a",{attrs:{target:"_blank",href:"https://elasticemail.com/account#/settings/new/manage-api"}},[t._v("Get API Key.")])])}],!1,null,null,null).exports;function O(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}const j=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,o;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={}}}])&&O(e.prototype,n),o&&O(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();var I=n(6073),T=n.n(I);const L={name:"ConnectionWizard",props:["connection","is_new","providers","connection_key","connections"],components:{ses:h,mailgun:c,pepipost:p,sendgrid:d,sendinblue:v,sparkpost:y,smtp:w,gmail:x,outlook:C,postmark:P,elasticmail:E,Error:a},data:function(){return{saving:!1,errors:new j,api_error:"",has_error:!1}},computed:{is_conflicted:function(){var t=this;if(!this.connections)return!1;var e=!1;return T()(this.connections,(function(n,o){t.connection_key!=o&&n.provider_settings.sender_email==t.connection.sender_email&&(e=!0)})),e}},watch:{"connection.provider":function(t){if(!t)return!1;var e=JSON.parse(JSON.stringify(this.providers[t].options));e.provider=t,this.connection=e}},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}))}}};const M=(0,r.Z)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_connection_wizard"},[n("el-form",{attrs:{data:t.connection,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Connection Provider"}},[n("el-radio-group",{staticClass:"fss_connections",model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(t,e){return n("el-radio-button",{key:e,class:"con_"+e,attrs:{label:e}},[n("img",{staticStyle:{"max-width":"80px",height:"32px"},attrs:{title:t.title,src:t.image}})])})),1)],1),t._v(" "),t.connection.provider?[n("div",{staticClass:"fss_config_section"},[n("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sender Settings")))]),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{label:t.$t("From Email")}},[n("error",{attrs:{error:t.errors.get("sender_email")}}),t._v(" "),n("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?n("p",{staticStyle:{color:"red"}},[t._v("Another connection with same email address exist. This connection will replace that connection")]):t._e()],1),t._v(" "),null!=t.connection.force_from_email?n("div",[n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("from_email_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e(),t._v(" "),null!=t.connection.return_path?n("div",[n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n Return Path indicates where non-delivery receipts - or bounce messages -"),n("br"),t._v("\n are to be sent. If unchecked, bounce messages may be lost. With this enabled,"),n("br"),t._v('\n you’ll be emailed using "From Email" if any messages bounce as a result of issues with the recipient’s email.\n ')]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e()],1),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("el-form-item",{attrs:{label:t.$t("From Name")}},[n("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(" "),n("error",{attrs:{error:t.errors.get("sender_name")}})],1),t._v(" "),n("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 "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("force_sender_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1),t._v(" "),"default"!=t.connection.provider?n("div",{staticClass:"fss_config_section"},[n(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?n("p",{staticStyle:{padding:"20px 0px"},domProps:{innerHTML:t._s(t.providers[t.connection.provider].note)}}):t._e(),t._v(" "),n("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")))])]:n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("save_connection_error_1")))])]),t._v(" "),t.saving?n("p",[t._v(t._s(t.$t("Validating Data.Please wait")))]):t._e(),t._v(" "),t.has_error?n("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 F={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:"Cumulative",backgroundColor:"rgba(55, 162, 235, 0.1)",borderColor:"#37a2eb",data:[],yAxisID:"byCumulative",type:"line"},o=0;T()(this.stats,(function(r,s){e.data.push(r),t.push(s),o+=parseInt(r),n.data.push(o)})),this.maxCumulativeValue=o+10,this.chartData={labels:t,datasets:[e,n]}}},mounted:function(){this.fetchReport()}};const D=(0,r.Z)(F,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"fss_body fss_chart_box"},[n("growth-chart",{attrs:{maxCumulativeValue:t.maxCumulativeValue,"chart-data":t.chartData}})],1)}),[],!1,null,null,null).exports;const N={name:"SubscriberForm",data:function(){return{formData:{email:window.FluentMailAdmin.user_email,display_name:window.FluentMailAdmin.user_display_name},share_details:"no",saving:!1,subscribed:!1}},methods:{subscribeToEmail:function(){var t=this;if(!this.formData.email)return this.$notify.error("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 R=(0,r.Z)(N,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fst_subscribe_form"},[t.subscribed?n("div",{staticStyle:{"text-align":"center"}},[n("p",[t._v("Awesome! Please check your email inbox and confirm your subscription.")])]):[n("p",{staticStyle:{"margin-top":"0"}},[t._v("\n Subscribe with your email to know about this plugin updates, releases and useful tips.\n ")]),t._v(" "),n("div",{staticClass:"fsmtp_subscribe"},[n("el-form",{attrs:{"label-position":"right","label-width":"100px"}},[n("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"Your Name"}},[n("el-input",{attrs:{size:"small",placeholder:"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(" "),n("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"Your Email"}},[n("el-input",{attrs:{size:"small",placeholder:"Your Email Address"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1)],1),t._v(" "),n("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 (Optional) Share Non-Sensitive Data. It will help us to improve the integrations\n "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Access Data: Active SMTP Connection Provider, installed plugin names, php & mysql version",placement:"top-end"}},[n("i",{staticClass:"el-icon el-icon-info"})])],1),t._v(" "),n("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 Subscribe To Updates\n ")])],1)]],2)}),[],!1,null,null,null).exports;const z={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 V={name:"Dashboard",components:{ConnectionWizard:M,EmailsChart:D,EmailSubscriber:R,SubscribeDismiss:(0,r.Z)(z,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"el-icon el-icon-close",on:{click:function(e){return t.dismiss()}}})}),[],!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 q=(0,r.Z)(V,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard"},[t.is_new?n("div",{staticClass:"content"},[n("div",{staticClass:"fss_connection_intro"},[n("div",{staticClass:"fss_intro"},[n("h1",[t._v(t._s(t.$t("wizard_title")))]),t._v(" "),n("p",[t._v(t._s(t.$t("wizard_sub")))])]),t._v(" "),t.recommended&&!t.skip_recommended?n("div",{staticClass:"fsmtp_recommened"},[n("h2",[t._v(t._s(t.recommended.title))]),t._v(" "),n("p",[t._v(t._s(t.recommended.subtitle))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.setRecommendation()}}},[t._v(t._s(t.recommended.button_text))]),t._v(" "),n("el-button",{attrs:{type:"info"},on:{click:function(e){t.skip_recommended=!0}}},[t._v("Skip")])],1):[n("h2",[t._v(t._s(t.$t("wizard_instruction")))]),t._v(" "),n("connection-wizard",{attrs:{connection:t.new_connection,is_new:!0,connection_key:!1,providers:t.settings.providers}})]],2)]):n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{sm:24,md:16}},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Sending Stats"))+"\n "),n("span",{staticClass:"fss_to_right"},[n("el-date-picker",{attrs:{size:"small",type:"daterange","picker-options":t.pickerOptions,"range-separator":"To","start-placeholder":"Start date","end-placeholder":"End date","value-format":"yyyy-MM-dd"},model:{value:t.date_range,callback:function(e){t.date_range=e},expression:"date_range"}}),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:t.filterReport}},[t._v("Apply")])],1)]),t._v(" "),n("div",{staticClass:"content"},[t.showing_chart?n("emails-chart",{attrs:{date_range:t.date_range}}):t._e()],1)]),t._v(" "),n("el-col",{attrs:{sm:24,md:8}},[n("div",{staticClass:"fsm_card"},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Quick Overview"))+"\n ")]),t._v(" "),t.loading?n("el-skeleton",{staticClass:"content",attrs:{rows:8}}):n("div",{staticClass:"content"},[n("ul",{staticClass:"fss_dash_lists"},["yes"==t.settings_stat.log_enabled?n("li",[t._v("\n "+t._s(t.$t("Total Email Sent (Logged):"))+" "),n("span",[t._v(t._s(t.stats.sent))])]):t._e(),t._v(" "),t.stats.failed>0?n("li",{staticStyle:{color:"red"}},[n("router-link",{staticStyle:{color:"red"},attrs:{to:{name:"logs",query:{filterBy:"status",filterValue:"failed"}}}},[t._v("\n "+t._s(t.$t("Email Failed:"))+" "),n("span",[t._v(t._s(t.stats.failed))])])],1):t._e(),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Active Connections:"))+" "),n("span",[t._v(t._s(t.settings_stat.connection_counts))])]),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Active Senders:"))+" "),n("span",[t._v(t._s(t.settings_stat.active_senders))])]),t._v(" "),n("li",[t._v("\n "+t._s(t.$t("Save Email Logs:"))+"\n "),n("span",{staticStyle:{"text-transform":"capitalize"}},[t._v("\n "+t._s(t.settings_stat.log_enabled)+"\n ")])]),t._v(" "),"yes"==t.settings_stat.log_enabled?n("li",[t._v("\n "+t._s(t.$t("Delete Logs:"))+"\n "),n("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?n("div",{staticClass:"fsm_card",staticStyle:{"margin-top":"20px"}},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.$t("Subscribe To Updates"))+"\n "),n("span",{staticClass:"header_action_right"},[n("subscribe-dismiss")],1)]),t._v(" "),n("div",{staticClass:"content"},[n("email-subscriber")],1)]):t._e()])],1)],1)])}),[],!1,null,null,null).exports;var K=n(7757),U=n.n(K);const B={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 G=(0,r.Z)(B,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",{attrs:{width:"170",placement:t.placement},on:{hide:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("div",{staticClass:"action-buttons"},[n("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(" "),n("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(" "),n("template",{slot:"reference"},[t._t("reference",(function(){return[n("i",{staticClass:"el-icon-delete"})]}))],2)],2)}),[],!1,null,null,null).exports;const W={name:"FluentMailGeneralSettings",data:function(){return{saving:!1,logging_days:{7:"After 7 Days",14:"After 14 Days",30:"After 30 Days",60:"After 60 Days",90:"After 90 Days",180:"After 6 Months",365:"After 1 Year",730:"After 2 Years"}}},computed:{connectionsCount:function(){return Object.keys(this.settings.connections).length}},methods:{saveMiscSettings:function(){var t=this;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 Z=(0,r.Z)(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_general_settings"},[n("el-form",{staticClass:"fss_compact_form",attrs:{data:t.settings.misc,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Log Emails"}},[n("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?n("el-form-item",{attrs:{label:t.$t("FluentCRM Email Logging")}},[n("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?n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Delete Logs"))+"\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("delete_logs_info")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),n("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,e){return n("el-option",{key:e,attrs:{value:e,label:t}})})),1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("Default Connection"))+"\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("default_connection_popover")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),n("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(e,o){return n("el-option",{key:o,attrs:{value:o,disabled:t.settings.misc.fallback_connection==o,label:e.title+" - "+e.provider_settings.sender_email}})})),1)],1),t._v(" "),n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[t._v("\n Fallback Connection\n "),n("el-popover",{attrs:{width:"400",trigger:"hover"}},[n("p",[t._v(t._s(t.$t("fallback_connection_popover")))]),t._v(" "),n("i",{staticClass:"el-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),t.connectionsCount>1?n("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(e,o){return n("el-option",{key:o,attrs:{disabled:t.settings.misc.default_connection==o,value:o,label:e.title+" - "+e.provider_settings.sender_email}})})),1):n("p",{staticStyle:{color:"#6d6b6b",margin:"0"}},[t._v(t._s(t.$t("Please add another connection to use fallback feature")))])],1),t._v(" "),n("el-form-item",{attrs:{label:t.$t("Email Simulation")}},[n("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?n("p",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("Email_Simulation_Yes")))]):t._e()],1),t._v(" "),n("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;const H={name:"NotificationSettings",data:function(){return{notification_settings:{},loading:!0,saving:!1,sending_days:{Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"}}},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}))},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(){this.getSettings()}};const Y=(0,r.Z)(H,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"fss_general_settings"},[n("el-form",{staticClass:"fss_compact_form",attrs:{data:t.notification_settings,"label-position":"top"}},[n("el-form-item",{attrs:{label:t.$t("Enable Email Summary Notification")}},[n("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?[n("el-form-item",{attrs:{label:t.$t("Notification Email Addresses")}},[n("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(" "),n("el-form-item",{attrs:{label:t.$t("Notification Days")}},[n("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(t,e){return n("el-checkbox",{key:t,attrs:{value:t,label:e}})})),1)],1)]:t._e(),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveSettings()}}},[t._v(t._s(t.$t("Save Settings")))])],2)],1)}),[],!1,null,null,null).exports;function J(t,e,n,o,r,s,i){try{var a=t[s](i),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}const Q={name:"connection_details",props:["connection_id"],data:function(){return{loading:!1,connection_content:""}},methods:{fetchDetails:function(){var t,e=this;return(t=U().mark((function t(){var n;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$get("settings/connection_info",{connection_id:e.connection_id});case 3:n=t.sent,e.connection_content=n.data.info,e.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,r){var s=t.apply(e,n);function i(t){J(s,o,r,i,a,"next",t)}function a(t){J(s,o,r,i,a,"throw",t)}i(void 0)}))})()}},created:function(){this.fetchDetails()}};function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function et(t,e,n,o,r,s,i){try{var a=t[s](i),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}function nt(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var s=t.apply(e,n);function i(t){et(s,o,r,i,a,"next",t)}function a(t){et(s,o,r,i,a,"throw",t)}i(void 0)}))}}const ot={name:"Connections",components:{Confirm:G,GeneralSettings:Z,ConnectionDetails:(0,r.Z)(Q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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..."}},[n("div",{domProps:{innerHTML:t._s(t.connection_content)}})])}),[],!1,null,null,null).exports,NotificationSettings:Y},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return nt(U().mark((function n(){var o;return U().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$get("settings");case 2:o=n.sent,t.settings.mappings=o.data.settings.mappings,t.settings.connections=o.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 nt(U().mark((function n(){var o;return U().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:o=n.sent,e.settings.connections=o.data.connections,e.settings.misc.default_connection=o.data.misc.default_connection,e.$notify.success({title:"Great!",message:"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?X(Object(n),!0).forEach((function(e){tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(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 rt=(0,r.Z)(ot,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connections"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Active Email Connections"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:t.addConnection}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("Add Another Connection"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("el-table",{attrs:{stripe:"",border:"",data:t.connections}},[n("el-table-column",{attrs:{label:t.$t("Provider")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.settings.providers[e.row.provider].title)+"\n "),"gmail"!=e.row.provider||e.row.version?t._e():n("span",{staticStyle:{color:"red"}},[t._v("(Re Authentication Required)")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sender_email",label:t.$t("From Email")}}),t._v(" "),n("el-table-column",{attrs:{width:"120",label:t.$t("Actions"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(n){return t.editConnection(e.row)}}}),t._v(" "),n("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-view"},on:{click:function(n){return t.showConnection(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.deleteConnection(e.row)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}])})],1),t._v(" "),t.connections.length>1?n("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?n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Connection Details"))+"\n ")]),t._v(" "),n("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(" "),n("div",{staticClass:"content"},[n("connection-details",{attrs:{connection_id:t.showing_connection}})],1)]):t._e()]),t._v(" "),n("el-col",{attrs:{md:12,sm:24}},[n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"general"==t.active_settings},staticStyle:{"margin-bottom":"0px"}},[n("div",{staticClass:"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?n("div",{staticClass:"content"},[n("general-settings")],1):t._e()]),t._v(" "),n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"notification"==t.active_settings}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="notification"}}},[t._v("\n "+t._s(t.$t("Notification Settings"))+"\n ")]),t._v(" "),"notification"==t.active_settings?n("div",{staticClass:"content"},[n("notification-settings")],1):t._e()])])],1)],1)}),[],!1,null,null,null).exports;const st={name:"Connection",components:{ConnectionWizard:M},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 it=(0,r.Z)(st,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connection"},[n("div",{staticClass:"header"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"fss_connection_intro"},[n("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 at={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 lt=(0,r.Z)(at,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("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 ct={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 ut=(0,r.Z)(ct,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{staticStyle:{"margin-right":"-20px"},attrs:{gutter:10}},[n("el-col",{attrs:{span:10}},[n("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"}},[n("el-radio-button",{attrs:{label:""}},[t._v(t._s(t.$t("All Statuses")))]),t._v(" "),n("el-radio-button",{attrs:{label:"sent"}},[t._v(t._s(t.$t("Successful")))]),t._v(" "),n("el-radio-button",{attrs:{label:"failed"}},[t._v(t._s(t.$t("Failed")))])],1)],1),t._v(" "),n("el-col",{attrs:{span:10}},[n("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":"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(" "),n("el-col",{attrs:{span:4}},[n("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 pt={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}))},onMouseOver:function(){this.$refs.fullscreen.classList.add("show")},onMouseOut:function(){this.$refs.fullscreen.classList.remove("show")},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 _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ft={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,r.Z)(pt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mouseover:t.onMouseOver,mouseleave:t.onMouseOut}},[n("iframe",{ref:"ifr",staticStyle:{width:"100%",height:"400px"},attrs:{frameborder:"0",allowFullScreen:"",mozallowfullscreen:"",webkitallowfullscreen:""}}),t._v(" "),n("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}))}},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?_t(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_t(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 vt={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 mt={name:"EmailLog",components:{Confirm:G,Pagination:lt,LogFilter:ut,LogViewer:(0,r.Z)(ft,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"log-viewer"},[t.log?n("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.retrying,expression:"retrying"}],attrs:{title:"Email Log",visible:t.logViewerProps.dialogVisible},on:{closed:t.closed,"update:visible":function(e){return t.$set(t.logViewerProps,"dialogVisible",e)}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("ul",{staticClass:"fss_log_items"},[n("li",[n("div",{staticClass:"item_header"},[t._v("Status:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{class:{success:"sent"==t.log.status,resent:"resent"==t.log.status,fail:"failed"==t.log.status}},[n("span",{staticStyle:{"text-transform":"capitalize","margin-right":"10px"}},[t._v(t._s(t.log.status))]),t._v(" "),"failed"==t.log.status?n("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?n("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(" "),n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Date-Time"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[t._v(t._s(t.log.created_at))])]),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v("From:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.from)}})])]),t._v(" "),t.log.headers&&t.log.headers["Reply-To"]?n("li",[n("div",{staticClass:"item_header"},[t._v("Reply To:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers["Reply-To"])}})])]):t._e(),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v("To:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.to)}})])]),t._v(" "),t.log.headers?[t.log.headers.Cc?n("li",[n("div",{staticClass:"item_header"},[t._v("CC:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers.Cc)}})])]):t._e(),t._v(" "),t.log.headers.Bcc?n("li",[n("div",{staticClass:"item_header"},[t._v("BCC:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.headers.Bcc)}})])]):t._e()]:t._e(),t._v(" "),t.log.resent_count>0?n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Resent Count"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.resent_count)}})])]):t._e(),t._v(" "),n("li",[n("div",{staticClass:"item_header"},[t._v(t._s(t.$t("Subject"))+":")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",{domProps:{innerHTML:t._s(t.log.subject)}})])]),t._v(" "),t.log.extra&&t.log.extra.provider&&t.settings.providers[t.log.extra.provider]?n("li",[n("div",{staticClass:"item_header"},[t._v("Mailer:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",[t._v(t._s(t.settings.providers[t.log.extra.provider].title))])])]):t.log.extra&&t.log.extra.provider?n("li",[n("div",{staticClass:"item_header"},[t._v("Mailer:")]),t._v(" "),n("div",{staticClass:"item_content"},[n("span",[t._v(t._s(t.log.extra.provider))])])]):t._e()],2),t._v(" "),n("el-collapse",{staticStyle:{"margin-top":"10px"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-collapse-item",{attrs:{name:"email_body"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v(t._s(t.$t("Email Body")))])]),t._v(" "),n("hr",{staticClass:"log-border"}),t._v(" "),n("EmailbodyContainer",{attrs:{content:t.log.body}})],2),t._v(" "),n("el-collapse-item",{attrs:{name:"attachments"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v("\n "+t._s(t.$t("Attachments"))+" ("+t._s(t.getAttachments(t.log).length)+")\n ")])]),t._v(" "),n("hr",{staticClass:"log-border"}),t._v(" "),t._l(t.getAttachments(t.log),(function(e,o){return n("div",{key:o,staticStyle:{margin:"5px 0 10px 0"}},[t._v("\n ("+t._s(o+1)+") "+t._s(t.getAttachmentName(e))+"\n ")])}))],2),t._v(" "),n("el-collapse-item",{attrs:{name:"tech_info"}},[n("template",{slot:"title"},[n("strong",{staticStyle:{color:"#606266"}},[t._v("Technical Information")])]),t._v(" "),n("div",[n("hr"),n("strong",[t._v("Response\n ")]),n("hr"),t._v(" "),n("el-row",[n("el-col",[n("pre",[t._v(t._s(t.log.response))])])],1),t._v(" "),n("hr"),t._v(" "),n("strong",[t._v("Headers")]),n("hr"),t._v(" "),n("el-row",[n("el-col",[n("pre",{domProps:{innerHTML:t._s(Object.assign({},t.log.headers,t.log.extra.custom_headers))}})])],1)],1)],2)],1),t._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-button",{staticClass:"prev nav",attrs:{size:"small",disabled:!t.prev},on:{click:function(e){return t.navigate("prev")}}},[n("i",{staticClass:"el-icon-arrow-left"}),t._v(" "+t._s(t.$t("Prev"))+"\n ")])],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("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"))+" "),n("i",{staticClass:"el-icon-arrow-right"})])],1)],1)],1)]):t._e()],1)}),[],!1,null,null,null).exports,LogBulkAction:(0,r.Z)(vt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-select",{attrs:{clearable:"",size:"small",tplaceholder:t.$t("Bulk Action")},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[t.selected.length?n("el-option",{attrs:{value:"deleteselected",label:"Delete Selected"}}):t._e(),t._v(" "),t.is_failed_selected?n("el-option",{attrs:{value:"resend_selected",label:t.$t("Resend Selected Emails")}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{span:2}},[n("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}),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,o){t[n]=e.formatLog(o)})),t},formatLog:function(t){var e=this;t.to=this.formatAddresses(t.to),t.headers?(t.headers.cc=this.formatAddresses(t.headers.cc),t.headers.bcc=this.formatAddresses(t.headers.bcc),t.headers["reply-to"]=this.formatAddresses(t.headers["reply-to"])):t.headers={};var n={};return t.headers&&jQuery.each(t.headers,(function(t,o){t&&"string"==typeof t&&(t=t.split("-").map((function(t){return e.ucFirst(t)})).join("-"),n[t]=o)})),t.headers=n,t},formatAddresses:function(t){var n=this;if(!t)return"";if(e()(t))return"";var o=[];return jQuery.each(t,(function(t,e){e.name?o[t]=n.escapeHtml("".concat(e.name," <").concat(e.email,">")):o[t]=n.escapeHtml(e.email)})),o.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.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")),console.log("mounted"),this.fetch()}};const ht=(0,r.Z)(mt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logs"},[n("div",[t.isLogsOn?t._e():n("div",[n("div",{staticClass:"content"},[n("el-alert",{attrs:{closable:!1,"show-icon":"",center:""}},[t._v("\n Email Logging is currently turned off. Only Failed and resent emails will be shown here\n "),n("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(" "),n("div",{staticClass:"header"},[t.selectedLogs.length?n("LogBulkAction",{attrs:{selected:t.selectedLogs},on:{"on-bulk-action":t.handleBulkAction}}):t._e(),t._v(" "),n("div",{staticStyle:{float:"left","margin-top":"6px"}},[t._v(t._s(t.$t("Email Logs")))]),t._v(" "),n("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(" "),n("div",{staticStyle:{float:"right"}},[n("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"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.fetch},slot:"append"})],1)],1)],1),t._v(" "),t.loading?n("el-skeleton",{staticClass:"content",attrs:{rows:15}}):n("div",{staticClass:"content"},[n("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}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Subject")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.subject))]),t._v(" "),e.row.extra&&"Simulator"==e.row.extra.provider?n("span",{staticStyle:{color:"#ff0000"}},[t._v(" - Simulated")]):t._e()]}}],null,!1,2375038685)}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("To")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{domProps:{innerHTML:t._s(e.row.to)}})]}}],null,!1,521936248)}),t._v(" "),n("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(" "),n("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(" "),n("el-table-column",{attrs:{label:t.$t("Actions"),width:"190px",align:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["failed"==e.row.status?n("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh",plain:!0},on:{click:function(n){return t.handleRetry(e.row,"retry")}}},[t._v(t._s(t.$t("Retry"))+"\n ")]):t._e(),t._v(" "),"sent"==e.row.status?n("el-button",{attrs:{size:"mini",type:"success",icon:"el-icon-refresh-right"},on:{click:function(n){return t.handleRetry(e.row,"resend")}}},[t._v("\n "+t._s(t.$t("Resend"))+"\n "),e.row.resent_count>0?n("span",[t._v("("+t._s(e.row.resent_count)+")")]):t._e()]):t._e(),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-view"},on:{click:function(n){return t.handleView(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.handleDelete(e.row.id)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}],null,!1,3019120824)})],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[t.logs.length?n("div",{staticStyle:{"margin-top":"20px"}},[n("confirm",{attrs:{placement:"right",message:"Are you sure, you want to delete all the logs?"},on:{yes:function(e){return t.handleDelete(["all"])}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"info"},slot:"reference"},[t._v("Delete All Logs")])],1)],1):n("span",[t._v(" ")])]),t._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[n("pagination",{attrs:{pagination:t.pagination},on:{fetch:t.pageChanged}})],1)])],1)],1),t._v(" "),n("LogViewer",{attrs:{logViewerProps:t.logViewerProps}})],1)])}),[],!1,null,null,null).exports;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const bt={name:"EmailTest",components:{EmailSubscriber:R},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?gt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.form)).then((function(e){t.$notify.success({title:"Great!",offset:19,message:e.data.message}),t.email_success=!0})).fail((function(e){if(504===Number(e.status))return t.$notify.error({title:"Oops!",offset:19,message:"504 Gateway Time-out."});var n=e.responseJSON;if(n.data.email_error)return t.$notify.error({title:"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 wt=(0,r.Z)(bt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"header"},[t._v("\n Send Test Email\n ")]),t._v(" "),n("div",{staticClass:"content"},[t.email_success?n("div",{staticClass:"success_wrapper"},[t._m(0),t._v(" "),n("h3",[t._v("Test Email Has been successfully sent")]),t._v(" "),n("hr"),t._v(" "),"yes"==t.appVars.require_optin?n("div",{staticStyle:{"margin-top":"10px"}},[n("email-subscriber")],1):n("el-button",{directives:[{name:"else",rawName:"v-else"}],on:{click:function(e){t.email_success=!1}}},[t._v("Run Another Test Email")])],1):n("div",{staticClass:"test_form"},[n("el-form",{ref:"form",attrs:{model:t.form,"label-position":"left","label-width":"120px"}},[n("el-form-item",{attrs:{for:"email",label:"From"}},[n("el-select",{attrs:{placeholder:"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,e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Enter the sender email address (optional).\n ")])],1),t._v(" "),n("el-form-item",{attrs:{for:"from",label:"Send To"}},[n("el-input",{attrs:{id:"from"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Enter email address where test email will be sent (By default, logged in user email will be used if email address is not provided).\n ")])],1),t._v(" "),n("el-form-item",{attrs:{for:"isHtml",label:"HTML"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6","active-text":"On","inactive-text":"Off"},model:{value:t.form.isHtml,callback:function(e){t.$set(t.form,"isHtml",e)},expression:"form.isHtml"}}),t._v(" "),n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Send this email in HTML or in plain text format.\n ")])],1),t._v(" "),n("el-form-item",{attrs:{align:"left"}},[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-s-promotion",loading:t.loading,disabled:!t.maybeEnabled},on:{click:t.sendEmail}},[t._v("Send Test Email")]),t._v(" "),t.maybeEnabled?t._e():n("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?n("el-alert",{attrs:{type:"error",title:t.debug_info.message,"show-icon":""}}):t._e()],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("h1",[e("i",{staticClass:"el-icon el-icon-success"})])}],!1,null,null,null).exports;var kt=n(5534),xt=n.n(kt);const St={name:"FluentMailSupport",data:function(){return{plugins:{fluentform:{slug:"fluentform",title:"Fluent Forms",subtitle:"Fastest Contact Form Builder Plugin for WordPress",description:'<p><a href="https://wordpress.org/plugins/fluentform" target="_blank" rel="nofollow">Fluent Forms</a> is the ultimate user-friendly, fast, customizable drag-and-drop WordPress Contact Form Plugin that offers you all the premium features, plus many more completely unique additional features.</p>',btn_text:"Install Fluent Forms (Free)",btn_class:"",plugin_url:"https://wordpress.org/plugins/fluentform"},fluent_crm:{slug:"fluent-crm",title:"FluentCRM",subtitle:"Email Marketing Automation and CRM Plugin for WordPress",description:'<p><a href="https://wordpress.org/plugins/fluent-crm/" target="_blank" rel="nofollow">FluentCRM</a> is the best and complete feature-rich Email Marketing & CRM solution. It is also the simplest and fastest CRM and Marketing Plugin on WordPress. Manage your customer relationships, build your email lists, send email campaigns, build funnels, and make more profit and increase your conversion rates. (Yes, It’s Free!)</p>',btn_text:"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:"Best WP DataTables Plugin for WordPress",description:'<p>Looking for a WordPress table plugin for your website? Then you’re in the right place.</p><p>Meet <a href="https://wordpress.org/plugins/ninja-tables/" target="_blank" rel="nofollow">Ninja Tables</a>, the best WP table plugin that comes with all the solutions to the problems you face while creating tables on your posts/pages.</p>',btn_text:"Install Ninja Tables (Free)",btn_class:"fss_ninjatables_btn",plugin_url:"https://wordpress.org/plugins/ninja-tables/"}},installing:!1,installed_info:!1,installed_message:""}},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&&xt()(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}))}}};const Ct=(0,r.Z)(St,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_support"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:8,sm:24}},[n("div",{staticClass:"fss_about"},[n("div",{staticClass:"header"},[t._v("About")]),t._v(" "),n("div",{staticClass:"content"},[n("p",[n("a",{attrs:{href:t.appVars.plugin_url,target:"_blank",rel:"noopener"}},[t._v("FluentSMTP")]),t._v(" is a free and opensource WordPress Plugin. Our mission is to provide the ultimate\n email delivery solution with your favorite Email sending service. FluentSMTP is built for performance and speed.\n ")]),t._v(" "),n("p",[t._v("\n FluentSMTP is free and will be always free. This is our pledge to WordPress community from WPManageNinja LLC.\n ")]),t._v(" "),n("div",[n("p",[t._v("FluentSMTP is built using the following opensorce libraries and softwares")]),t._v(" "),n("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[n("li",[t._v("VueJS")]),t._v(" "),n("li",[t._v("ChartJS")]),t._v(" "),n("li",[t._v("Lodash")]),t._v(" "),n("li",[t._v("WordPress API")])]),t._v(" "),n("p",[t._v("\n If you find an issue or have a suggestion please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://github.com/WPManageNinja/fluent-smtp/issues"}},[t._v("open an issue on GitHub")]),t._v(".\n "),n("br"),t._v("If you are a developer and would like to contribute to the project, Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://github.com/WPManageNinja/fluent-smtp/"}},[t._v("contribute on GitHub")]),t._v(".\n ")]),t._v(" "),n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v("read the documentation here")])])])])])]),t._v(" "),t.plugin||t.installed_info?n("el-col",{attrs:{md:8,sm:24}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],staticClass:"fss_about",attrs:{"element-loading-text":"Installing... Please wait"}},[n("div",{staticClass:"header"},[t._v("Recommended Plugin")]),t._v(" "),n("div",{staticClass:"content"},[t.installed_info?n("div",{staticClass:"install_success"},[n("h3",[t._v(t._s(t.installed_message))]),t._v(" "),n("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))])]):n("div",{staticClass:"fss_plugin_block"},[n("div",{staticClass:"fss_plugin_title"},[n("h3",[t._v(t._s(t.plugin.title))]),t._v(" "),n("p",[t._v(t._s(t.plugin.subtitle))])]),t._v(" "),n("div",{staticClass:"fss_plugin_body"},[n("div",{domProps:{innerHTML:t._s(t.plugin.description)}}),t._v(" "),n("div",{staticClass:"fss_install_btn"},[t.appVars.disable_installation?n("a",{staticClass:"el-button el-button--success fss_ninjatables_btn",attrs:{href:t.plugin.plugin_url,target:"_blank",rel:"noopener"}},[n("span",[t._v("View "+t._s(t.plugin.title))])]):n("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))])],1)])])])])]):t._e(),t._v(" "),n("el-col",{attrs:{md:8,sm:24}},[n("div",{staticClass:"fss_about"},[n("div",{staticClass:"header"},[t._v("Community")]),t._v(" "),n("div",{staticClass:"content"},[n("p",[t._v("FluentSMTP is powered by community. We listen to our community users and build products that add values to businesses and save time.")]),t._v(" "),n("p",[t._v("Join our communities and participate in great conversations.")]),t._v(" "),n("ul",{staticStyle:{"list-style":"disc","margin-left":"30px"}},[n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentforms"}},[t._v("Join FluentForms Facebook Community")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.facebook.com/groups/fluentcrm"}},[t._v("Join FluentCRM Facebook Community")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5"}},[t._v("Write a review (really appreciate 😊)")])]),t._v(" "),n("li",[n("a",{attrs:{target:"_blank",rel:"noopener",href:"http://fluentsmtp.com/docs"}},[t._v("Read the documentation")])])])])])])],1)],1)}),[],!1,null,null,null).exports;var $t=n(3105),Pt=n.n($t);const At={name:"Documentations",data:function(){return{search:"",fetching:!1,docs:[],utl_param:"?utm_source=wp&utm_medium=doc&utm_campaign=doc"}},computed:{doc_cats:function(){if(!this.docs.length)return[];var t={item_4:{label:"Getting Started",docs:[]},item_5:{label:"Connect With Your Email Providers",docs:[]},item_6:{label:"Functionalities",docs:[]}};return T()(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?Pt()(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}))},$t:function(t){return t}},mounted:function(){this.fetchDocs()}};const Et=[{name:"dashboard",path:"/",meta:{},component:q},{name:"connections",path:"/connections",meta:{},component:rt},{name:"connection",path:"/connection",meta:{},component:it},{name:"test",path:"/test",meta:{},component:wt},{name:"support",path:"/support",meta:{},component:Ct},{name:"logs",path:"/logs",meta:{},component:ht},{name:"docs",path:"/documentation",meta:{},component:(0,r.Z)(At,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fc_docs"},[n("div",{staticClass:"fc_doc_header text-align-center",staticStyle:{"max-width":"800px",margin:"50px auto",padding:"0px 20px","text-align":"center"}},[n("h1",[t._v("How can we help you?")]),t._v(" "),t._m(0),t._v(" "),n("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"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1),t._v(" "),t.search?n("div",{staticClass:"search_result"},[n("div",{staticClass:"fc_doc_items"},[n("div",{staticClass:"fc_doc_header"},[n("h3",[t._v(t._s(t.$t("Search Results for"))+": "+t._s(t.search))])]),t._v(" "),n("div",{staticClass:"fc_doc_lists"},[t.search_items.length?n("ul",t._l(t.search_items,(function(e){return n("li",{key:e.id},[n("a",{attrs:{target:"_blank",href:e.link+t.utl_param},domProps:{innerHTML:t._s(e.title)}})])})),0):n("p",[t._v("Sorry! No docs found")])])])]):t._e()],1),t._v(" "),t.fetching?n("el-skeleton",{staticClass:"doc_body content",attrs:{rows:8}}):n("div",{staticClass:"doc_body"},t._l(t.doc_cats,(function(e,o){return n("div",{key:o,staticClass:"doc_each_items"},[n("div",{staticClass:"fc_doc_items"},[n("div",{staticClass:"fc_doc_header"},[n("h3",[t._v(t._s(e.label))])]),t._v(" "),n("div",{staticClass:"fc_doc_lists"},[n("ul",t._l(e.docs,(function(e){return n("li",{key:e.id},[n("a",{attrs:{target:"_blank",href:e.link+t.utl_param},domProps:{innerHTML:t._s(e.title)}})])})),0)])])])})),0)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please view the "),n("a",{attrs:{href:"https://fluentsmtp.com/docs",target:"_blank",rel:"noopener"}},[t._v("documentation")]),t._v(" first. If you still can't find the\n answer "),n("a",{attrs:{href:"https://wpmanageninja.com/support-tickets/",target:"_blank",rel:"noopener"}},[t._v("open a support ticket")]),t._v(" and we will be\n happy to answer your questions and assist you with any problems.")])}],!1,null,null,null).exports}];var Ot=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",Et)});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(8109).Z)},router:Ot})})()})();
assets/libs/chartjs/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // silence is golden
boot.php CHANGED
@@ -3,7 +3,7 @@
3
  !defined('WPINC') && die;
4
 
5
  define('FLUENTMAIL', 'fluentmail');
6
- define('FLUENTMAIL_PLUGIN_VERSION', '2.1.1');
7
  define('FLUENTMAIL_UPLOAD_DIR', '/fluentmail');
8
  define('FLUENT_MAIL_DB_PREFIX', 'fsmpt_');
9
  define('FLUENTMAIL_PLUGIN_URL', plugin_dir_url(__FILE__));
3
  !defined('WPINC') && die;
4
 
5
  define('FLUENTMAIL', 'fluentmail');
6
+ define('FLUENTMAIL_PLUGIN_VERSION', '2.1.2');
7
  define('FLUENTMAIL_UPLOAD_DIR', '/fluentmail');
8
  define('FLUENT_MAIL_DB_PREFIX', 'fsmpt_');
9
  define('FLUENTMAIL_PLUGIN_URL', plugin_dir_url(__FILE__));
fluent-smtp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FluentSMTP
4
  Plugin URI: https://fluentsmtp.com
5
  Description: The Ultimate SMTP Connection Plugin for WordPress.
6
- Version: 2.1.1
7
  Author: FluentSMTP & WPManageNinja Team
8
  Author URI: https://fluentsmtp.com
9
  License: GPL2
3
  Plugin Name: FluentSMTP
4
  Plugin URI: https://fluentsmtp.com
5
  Description: The Ultimate SMTP Connection Plugin for WordPress.
6
+ Version: 2.1.2
7
  Author: FluentSMTP & WPManageNinja Team
8
  Author URI: https://fluentsmtp.com
9
  License: GPL2
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: techjewel, wpmanageninja, heera, adreastrian
3
  Tags: smtp, amazon ses, fluent smtp, wordpress smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, sendinblue, wp smtp
4
  Requires at least: 5.5
5
- Tested up to: 5.9
6
- Stable tag: 2.1.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -274,6 +274,10 @@ Please <a href="https://wpmanageninja.com/support-tickets/">submit an issue in o
274
 
275
  == Changelog ==
276
 
 
 
 
 
277
  = 2.1.1 (Date: March 12, 2022) =
278
  * Improved Email Logging Screen
279
  * Improved UI and Settings
2
  Contributors: techjewel, wpmanageninja, heera, adreastrian
3
  Tags: smtp, amazon ses, fluent smtp, wordpress smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, sendinblue, wp smtp
4
  Requires at least: 5.5
5
+ Tested up to: 6.0
6
+ Stable tag: 2.1.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
274
 
275
  == Changelog ==
276
 
277
+ = 2.1.2 (Date: July 05, 2022) =
278
+ * Google/Gmail API Upgrade
279
+ * UI Improvements
280
+
281
  = 2.1.1 (Date: March 12, 2022) =
282
  * Improved Email Logging Screen
283
  * Improved UI and Settings