Version Description
(Date: Aug 21, 2022) = * Added Elastic Mail API * PHP 8.0 & 8.1 compatibility * UI Improvements
Download this release
Release Info
Developer | techjewel |
Plugin | FluentSMTP – WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.2.0
- app/Bindings.php +1 -1
- app/Models/Logger.php +3 -1
- app/Services/Converter.php +11 -2
- app/Services/Mailer/Providers/ElasticMail/Handler.php +243 -101
- app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php +1 -2
- app/Services/Mailer/Providers/config.php +15 -15
- assets/admin/css/fluent-mail-admin.css +1 -1
- assets/admin/js/fluent-mail-admin-app.js +1 -1
- assets/images/ee2.svg +102 -0
- assets/libs/chartjs/index.php +0 -1
- assets/mix-manifest.json +1 -0
- boot.php +1 -1
- database/FluentMailDBMigrator.php +1 -1
- fluent-smtp.php +1 -1
- includes/Core/Container.php +6 -2
- language/fluent-smtp.pot +7 -3
- readme.txt +13 -1
app/Bindings.php
CHANGED
@@ -13,7 +13,7 @@ $singletons = [
|
|
13 |
'gmail' => 'FluentMail\App\Services\Mailer\Providers\Gmail\Handler',
|
14 |
'outlook' => 'FluentMail\App\Services\Mailer\Providers\Outlook\Handler',
|
15 |
'postmark' => 'FluentMail\App\Services\Mailer\Providers\Postmark\Handler',
|
16 |
-
|
17 |
];
|
18 |
|
19 |
foreach ($singletons as $key => $className) {
|
13 |
'gmail' => 'FluentMail\App\Services\Mailer\Providers\Gmail\Handler',
|
14 |
'outlook' => 'FluentMail\App\Services\Mailer\Providers\Outlook\Handler',
|
15 |
'postmark' => 'FluentMail\App\Services\Mailer\Providers\Postmark\Handler',
|
16 |
+
'elasticmail' => 'FluentMail\App\Services\Mailer\Providers\ElasticMail\Handler'
|
17 |
];
|
18 |
|
19 |
foreach ($singletons as $key => $className) {
|
app/Models/Logger.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace FluentMail\App\Models;
|
4 |
|
5 |
use Exception;
|
|
|
6 |
|
7 |
class Logger extends Model
|
8 |
{
|
@@ -215,8 +216,9 @@ class Logger extends Model
|
|
215 |
|
216 |
public function navigate($data)
|
217 |
{
|
|
|
218 |
foreach (['date', 'daterange', 'datetime', 'datetimerange'] as $field) {
|
219 |
-
if ($
|
220 |
$data['filter_by'] = 'created_at';
|
221 |
}
|
222 |
}
|
3 |
namespace FluentMail\App\Models;
|
4 |
|
5 |
use Exception;
|
6 |
+
use FluentMail\Includes\Support\Arr;
|
7 |
|
8 |
class Logger extends Model
|
9 |
{
|
216 |
|
217 |
public function navigate($data)
|
218 |
{
|
219 |
+
$filterBy = Arr::get($data, 'filter_by');
|
220 |
foreach (['date', 'daterange', 'datetime', 'datetimerange'] as $field) {
|
221 |
+
if ($filterBy == $field) {
|
222 |
$data['filter_by'] = 'created_at';
|
223 |
}
|
224 |
}
|
app/Services/Converter.php
CHANGED
@@ -336,7 +336,6 @@ class Converter
|
|
336 |
}
|
337 |
break;
|
338 |
}
|
339 |
-
|
340 |
break;
|
341 |
|
342 |
case 'pepipostapi':
|
@@ -347,6 +346,16 @@ class Converter
|
|
347 |
}
|
348 |
break;
|
349 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
|
351 |
break;
|
352 |
}
|
@@ -472,4 +481,4 @@ class Converter
|
|
472 |
|
473 |
}
|
474 |
|
475 |
-
}
|
336 |
}
|
337 |
break;
|
338 |
}
|
|
|
339 |
break;
|
340 |
|
341 |
case 'pepipostapi':
|
346 |
}
|
347 |
break;
|
348 |
}
|
349 |
+
break;
|
350 |
+
|
351 |
+
case 'elasticmail':
|
352 |
+
switch ($key) {
|
353 |
+
case 'api_key':
|
354 |
+
if (defined('FLUENTMAIL_ELASTICMAIL_API_KEY') && FLUENTMAIL_ELASTICMAIL_API_KEY) {
|
355 |
+
$value = FLUENTMAIL_ELASTICMAIL_API_KEY;
|
356 |
+
}
|
357 |
+
break;
|
358 |
+
}
|
359 |
|
360 |
break;
|
361 |
}
|
481 |
|
482 |
}
|
483 |
|
484 |
+
}
|
app/Services/Mailer/Providers/ElasticMail/Handler.php
CHANGED
@@ -9,13 +9,15 @@ class Handler extends BaseHandler
|
|
9 |
{
|
10 |
use ValidatorTrait;
|
11 |
|
12 |
-
protected $
|
13 |
|
14 |
-
protected $
|
|
|
|
|
15 |
|
16 |
public function send()
|
17 |
{
|
18 |
-
if ($this->preSend()
|
19 |
return $this->postSend();
|
20 |
}
|
21 |
|
@@ -24,173 +26,313 @@ class Handler extends BaseHandler
|
|
24 |
|
25 |
public function postSend()
|
26 |
{
|
27 |
-
$
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
];
|
33 |
|
34 |
-
if ($
|
35 |
-
$
|
|
|
|
|
36 |
}
|
37 |
|
38 |
-
|
39 |
-
$
|
|
|
40 |
}
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
$body['HtmlBody'] = $this->getParam('message');
|
48 |
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
$
|
69 |
-
'headers' => $this->getRequestHeaders(),
|
70 |
-
'body' => preg_replace($from_regex, "'", wp_json_encode($body), 1),
|
71 |
-
);
|
72 |
|
73 |
-
$
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
-
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
];
|
90 |
} else {
|
91 |
-
$
|
92 |
}
|
|
|
93 |
}
|
94 |
|
95 |
-
$
|
96 |
|
97 |
-
return
|
98 |
}
|
99 |
|
100 |
-
|
101 |
{
|
102 |
-
|
103 |
-
|
|
|
104 |
}
|
105 |
|
106 |
-
$
|
107 |
-
return $this;
|
108 |
-
}
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
115 |
}
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
-
protected function
|
119 |
{
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
|
123 |
protected function getCarbonCopy()
|
124 |
{
|
125 |
-
return $this->
|
126 |
}
|
127 |
|
128 |
protected function getBlindCarbonCopy()
|
129 |
{
|
130 |
-
return $this->
|
131 |
}
|
132 |
|
133 |
-
protected function
|
134 |
{
|
135 |
-
$
|
136 |
-
return isset($recipient['name'])
|
137 |
-
? $recipient['name'] . ' <' . $recipient['email'] . '>'
|
138 |
-
: $recipient['email'];
|
139 |
-
}, $recipients);
|
140 |
-
|
141 |
-
return implode(', ', $array);
|
142 |
}
|
143 |
|
144 |
-
protected function
|
145 |
{
|
146 |
-
$
|
147 |
|
148 |
-
|
149 |
-
|
|
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
$file = file_get_contents($attachment[0]);
|
155 |
-
}
|
156 |
-
} catch (\Exception $e) {
|
157 |
-
$file = false;
|
158 |
}
|
159 |
|
160 |
-
if ($
|
161 |
continue;
|
162 |
}
|
163 |
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
|
|
170 |
|
171 |
-
|
|
|
|
|
172 |
}
|
173 |
|
174 |
protected function getRequestHeaders()
|
175 |
{
|
176 |
return [
|
177 |
-
'
|
178 |
-
'
|
179 |
-
'X-Postmark-Server-Token' => $this->getSetting('api_key'),
|
180 |
];
|
181 |
}
|
182 |
|
183 |
-
|
184 |
{
|
185 |
-
if (
|
186 |
-
|
187 |
-
} elseif (function_exists('finfo_open')) {
|
188 |
-
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
189 |
-
$mime_type = finfo_file($finfo, $filename);
|
190 |
-
finfo_close($finfo);
|
191 |
-
return $mime_type;
|
192 |
-
} else {
|
193 |
-
return 'application/octet-stream';
|
194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
}
|
9 |
{
|
10 |
use ValidatorTrait;
|
11 |
|
12 |
+
protected $boundary = '';
|
13 |
|
14 |
+
protected $postbody = [];
|
15 |
+
|
16 |
+
protected $url = 'https://api.elasticemail.com/v2/';
|
17 |
|
18 |
public function send()
|
19 |
{
|
20 |
+
if ($this->preSend()) {
|
21 |
return $this->postSend();
|
22 |
}
|
23 |
|
26 |
|
27 |
public function postSend()
|
28 |
{
|
29 |
+
$this->boundary = hash('sha256', uniqid('', true));
|
30 |
+
$this->postbody = [];
|
31 |
+
|
32 |
+
$replyTo = $this->getReplyTo();
|
33 |
+
|
34 |
+
$postData = [
|
35 |
+
'subject' => $this->getSubject(),
|
36 |
+
'from' => $this->getParam('sender_email'),
|
37 |
+
'fromName' => $this->getParam('sender_name'),
|
38 |
+
'replyTo' => Arr::get($replyTo, 'email'),
|
39 |
+
'replyToName' => Arr::get($replyTo, 'name'),
|
40 |
+
'msgTo' => $this->getToFormatted(),
|
41 |
+
'msgCC' => $this->getCcFormatted(), // with ; separated or null
|
42 |
+
'msgBcc' => $this->getBccFormatted(), // with ; separated or null
|
43 |
+
'bodyHtml' => '',
|
44 |
+
'bodyText' => '',
|
45 |
+
'charset' => $this->phpMailer->CharSet,
|
46 |
+
'encodingType' => 0,
|
47 |
+
'isTransactional' => ($this->getSetting('mail_type') == 'transactional') ? true : false
|
48 |
];
|
49 |
|
50 |
+
if ($this->phpMailer->ContentType == 'text/html') {
|
51 |
+
$postData['bodyHtml'] = $this->getBody();
|
52 |
+
} else {
|
53 |
+
$postData['bodyText'] = $this->getBody();
|
54 |
}
|
55 |
|
56 |
+
foreach ($this->getParam('custom_headers') as $header) {
|
57 |
+
$key = trim($header['key']);
|
58 |
+
$postData['headers_' . $key] = $key . ': ' . trim($header['value']);
|
59 |
}
|
60 |
|
61 |
+
$this->parseAllPostData($postData);
|
62 |
+
$this->setAttachments();
|
63 |
+
$this->postbody[] = '--' . $this->boundary . '--';
|
64 |
|
65 |
+
$actualData = implode('', $this->postbody);
|
|
|
66 |
|
67 |
+
try {
|
68 |
+
$response = wp_remote_post($this->url . 'email/send?apikey=' . $this->getSetting('api_key'), array(
|
69 |
+
'method' => 'POST',
|
70 |
+
'headers' => array(
|
71 |
+
'content-type' => 'multipart/form-data; boundary=' . $this->boundary
|
72 |
+
),
|
73 |
+
'body' => $actualData
|
74 |
+
)
|
75 |
+
);
|
76 |
+
|
77 |
+
if (is_wp_error($response)) {
|
78 |
+
$returnResponse = new \WP_Error($response->get_error_code(), $response->get_error_message(), $response->get_error_messages());
|
79 |
+
} else {
|
80 |
+
$responseBody = wp_remote_retrieve_body($response);
|
81 |
+
$responseBody = \json_decode($responseBody, true);
|
82 |
+
|
83 |
+
if (!$responseBody['success']) {
|
84 |
+
$returnResponse = new \WP_Error('api_error', $responseBody['error'], $responseBody);
|
85 |
+
} else {
|
86 |
+
$returnResponse = [
|
87 |
+
'code' => 200,
|
88 |
+
'message' => $responseBody
|
89 |
+
];
|
90 |
+
}
|
91 |
}
|
92 |
+
} catch (\Exception $exception) {
|
93 |
+
$returnResponse = new \WP_Error($exception->getCode(), $exception->getMessage(), []);
|
94 |
+
}
|
95 |
+
|
96 |
+
$this->response = $returnResponse;
|
97 |
+
|
98 |
+
return $this->handleResponse($this->response);
|
99 |
+
}
|
100 |
|
101 |
+
protected function parseAllPostData($data)
|
102 |
+
{
|
103 |
+
foreach ($data as $key => $item) {
|
104 |
+
if (empty($item)) {
|
105 |
+
continue;
|
106 |
}
|
107 |
+
if (is_array($item)) {
|
108 |
+
$this->parseAllPostData($item);
|
109 |
+
} else {
|
110 |
+
$this->postbody[] = '--' . $this->boundary . "\r\n" . 'Content-Disposition: form-data; name=' . $key . "\r\n\r\n" . $item . "\r\n";
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
|
115 |
+
protected function getFrom()
|
116 |
+
{
|
117 |
+
$from = [
|
118 |
+
'email' => $this->getParam('sender_email')
|
119 |
+
];
|
120 |
+
|
121 |
+
if ($name = $this->getParam('sender_name')) {
|
122 |
+
$from['name'] = $name;
|
123 |
}
|
124 |
|
125 |
+
return $from;
|
126 |
+
}
|
127 |
+
|
128 |
+
protected function getReplyTo()
|
129 |
+
{
|
130 |
+
if ($replyTo = $this->getParam('headers.reply-to')) {
|
131 |
+
return reset($replyTo);
|
132 |
}
|
133 |
+
return [
|
134 |
+
'name' => '',
|
135 |
+
'email' => ''
|
136 |
+
];
|
137 |
+
}
|
138 |
|
139 |
+
protected function getRecipients()
|
140 |
+
{
|
141 |
+
$recipients = [
|
142 |
+
'to' => $this->getTo(),
|
143 |
+
'cc' => $this->getCarbonCopy(),
|
144 |
+
'bcc' => $this->getBlindCarbonCopy(),
|
145 |
+
];
|
146 |
|
147 |
+
$recipients = array_filter($recipients);
|
|
|
|
|
|
|
148 |
|
149 |
+
foreach ($recipients as $key => $recipient) {
|
150 |
+
$array = array_map(function ($recipient) {
|
151 |
+
return isset($recipient['name'])
|
152 |
+
? $recipient['name'] . ' <' . $recipient['email'] . '>'
|
153 |
+
: $recipient['email'];
|
154 |
+
}, $recipient);
|
155 |
|
156 |
+
$this->attributes['formatted'][$key] = implode(', ', $array);
|
157 |
+
}
|
158 |
+
|
159 |
+
return [$recipients];
|
160 |
+
}
|
161 |
|
162 |
+
protected function getCcFormatted()
|
163 |
+
{
|
164 |
+
$ccs = $this->getCarbonCopy();
|
165 |
+
if (!$ccs) {
|
166 |
+
return null;
|
167 |
+
}
|
168 |
|
169 |
+
$ccs = array_filter($ccs);
|
170 |
|
171 |
+
$toFormatted = [];
|
172 |
+
foreach ($ccs as $toEmail) {
|
173 |
+
if (!empty($toEmail['name'])) {
|
174 |
+
$string = $toEmail['name'] . ' <' . $toEmail['email'] . '>';
|
|
|
175 |
} else {
|
176 |
+
$string = $toEmail['email'];
|
177 |
}
|
178 |
+
$toFormatted[] = $string;
|
179 |
}
|
180 |
|
181 |
+
$toFormatted = array_filter($toFormatted);
|
182 |
|
183 |
+
return implode(';', $toFormatted);
|
184 |
}
|
185 |
|
186 |
+
protected function getBccFormatted()
|
187 |
{
|
188 |
+
$ccs = $this->getBlindCarbonCopy();
|
189 |
+
if (!$ccs) {
|
190 |
+
return null;
|
191 |
}
|
192 |
|
193 |
+
$ccs = array_filter($ccs);
|
|
|
|
|
194 |
|
195 |
+
$toFormatted = [];
|
196 |
+
foreach ($ccs as $toEmail) {
|
197 |
+
if (!empty($toEmail['name'])) {
|
198 |
+
$string = $toEmail['name'] . ' <' . $toEmail['email'] . '>';
|
199 |
+
} else {
|
200 |
+
$string = $toEmail['email'];
|
201 |
+
}
|
202 |
+
$toFormatted[] = $string;
|
203 |
}
|
204 |
+
|
205 |
+
$toFormatted = array_filter($toFormatted);
|
206 |
+
|
207 |
+
return implode(';', $toFormatted);
|
208 |
}
|
209 |
|
210 |
+
protected function getToFormatted()
|
211 |
{
|
212 |
+
$to = $this->getParam('to');
|
213 |
+
$toFormatted = [];
|
214 |
+
|
215 |
+
foreach ($to as $toEmail) {
|
216 |
+
if (!empty($toEmail['name'])) {
|
217 |
+
$string = $toEmail['name'] . ' <' . $toEmail['email'] . '>';
|
218 |
+
} else {
|
219 |
+
$string = $toEmail['email'];
|
220 |
+
}
|
221 |
+
$toFormatted[] = $string;
|
222 |
+
}
|
223 |
+
|
224 |
+
$toFormatted = array_filter($toFormatted);
|
225 |
+
|
226 |
+
return implode(';', $toFormatted);
|
227 |
}
|
228 |
|
229 |
protected function getCarbonCopy()
|
230 |
{
|
231 |
+
return $this->getParam('headers.cc');
|
232 |
}
|
233 |
|
234 |
protected function getBlindCarbonCopy()
|
235 |
{
|
236 |
+
return $this->getParam('headers.bcc');
|
237 |
}
|
238 |
|
239 |
+
protected function getBody()
|
240 |
{
|
241 |
+
return $this->getParam('message');
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
}
|
243 |
|
244 |
+
protected function setAttachments()
|
245 |
{
|
246 |
+
$rawAttachments = $this->getParam('attachments');
|
247 |
|
248 |
+
if (empty($rawAttachments) === true) {
|
249 |
+
return false;
|
250 |
+
}
|
251 |
|
252 |
+
foreach ($rawAttachments as $i => $attpath) {
|
253 |
+
if (empty($attpath) === true) {
|
254 |
+
continue;
|
|
|
|
|
|
|
|
|
255 |
}
|
256 |
|
257 |
+
if (!is_file($attpath[0]) || !is_readable($attpath[0])) {
|
258 |
continue;
|
259 |
}
|
260 |
|
261 |
+
//Extracting the file name
|
262 |
+
$filenameonly = explode("/", $attpath);
|
263 |
+
$fname = $filenameonly[count($filenameonly) - 1];
|
264 |
+
|
265 |
+
$this->postbody[] = '--' . $this->boundary . "\r\n";
|
266 |
+
$this->postbody[] = '--' . 'Content-Disposition: form-data; name="attachments' . ($i + 1) . '"; filename="' . $fname . '"' . "\r\n\r\n";
|
267 |
+
|
268 |
+
//Loading attachment
|
269 |
+
$handle = fopen($attpath, "r");
|
270 |
+
if ($handle) {
|
271 |
+
$fileContent = '';
|
272 |
+
while (($buffer = fgets($handle, 4096)) !== false) {
|
273 |
+
$fileContent .= $buffer;
|
274 |
+
}
|
275 |
+
fclose($handle);
|
276 |
+
|
277 |
+
$this->postbody[] = $fileContent . "\r\n";
|
278 |
+
}
|
279 |
}
|
280 |
+
}
|
281 |
|
282 |
+
protected function getCustomEmailHeaders()
|
283 |
+
{
|
284 |
+
return [];
|
285 |
}
|
286 |
|
287 |
protected function getRequestHeaders()
|
288 |
{
|
289 |
return [
|
290 |
+
'Content-Type' => 'application/json',
|
291 |
+
'X-ElasticEmail-ApiKey' => $this->getSetting('api_key')
|
|
|
292 |
];
|
293 |
}
|
294 |
|
295 |
+
public function setSettings($settings)
|
296 |
{
|
297 |
+
if ($settings['key_store'] == 'wp_config') {
|
298 |
+
$settings['api_key'] = defined('FLUENTMAIL_ELASTICMAIL_API_KEY') ? FLUENTMAIL_ELASTICMAIL_API_KEY : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
}
|
300 |
+
$this->settings = $settings;
|
301 |
+
return $this;
|
302 |
+
}
|
303 |
+
|
304 |
+
public function checkConnection($connection)
|
305 |
+
{
|
306 |
+
$this->setSettings($connection);
|
307 |
+
$request = wp_remote_get($this->url . 'account/profileoverview', [
|
308 |
+
'body' => [
|
309 |
+
'apikey' => $this->getSetting('api_key')
|
310 |
+
]
|
311 |
+
]);
|
312 |
+
|
313 |
+
if (is_wp_error($request)) {
|
314 |
+
$this->throwValidationException([
|
315 |
+
'api_key' => [
|
316 |
+
'required' => $request->get_error_message()
|
317 |
+
]
|
318 |
+
]);
|
319 |
+
}
|
320 |
+
|
321 |
+
$response = json_decode(wp_remote_retrieve_body($request), true);
|
322 |
+
|
323 |
+
if (!$response || empty($response['success'])) {
|
324 |
+
$error = 'API Key is invalid';
|
325 |
+
if (!empty($response['error'])) {
|
326 |
+
$error = $response['error'];
|
327 |
+
}
|
328 |
+
|
329 |
+
$this->throwValidationException([
|
330 |
+
'api_key' => [
|
331 |
+
'required' => $error
|
332 |
+
]
|
333 |
+
]);
|
334 |
+
}
|
335 |
+
|
336 |
+
return true;
|
337 |
}
|
338 |
}
|
app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php
CHANGED
@@ -8,11 +8,10 @@ use FluentMail\App\Services\Mailer\ValidatorTrait as BaseValidatorTrait;
|
|
8 |
trait ValidatorTrait
|
9 |
{
|
10 |
use BaseValidatorTrait;
|
11 |
-
|
12 |
public function validateProviderInformation($connection)
|
13 |
{
|
14 |
$errors = [];
|
15 |
-
|
16 |
$keyStoreType = $connection['key_store'];
|
17 |
|
18 |
if($keyStoreType == 'db') {
|
8 |
trait ValidatorTrait
|
9 |
{
|
10 |
use BaseValidatorTrait;
|
11 |
+
|
12 |
public function validateProviderInformation($connection)
|
13 |
{
|
14 |
$errors = [];
|
|
|
15 |
$keyStoreType = $connection['key_store'];
|
16 |
|
17 |
if($keyStoreType == 'db') {
|
app/Services/Mailer/Providers/config.php
CHANGED
@@ -159,21 +159,21 @@ return [
|
|
159 |
],
|
160 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-postmark-in-fluent-smtp-to-send-emails/" target="_blank" rel="noopener">Read the documentation</a> for how to configure Postmark with FluentSMTP.'
|
161 |
],
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
'gmail' => [
|
178 |
'key' => 'gmail',
|
179 |
'title' => __('Gmail/Google Workspace', 'fluent-smtp'),
|
159 |
],
|
160 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-postmark-in-fluent-smtp-to-send-emails/" target="_blank" rel="noopener">Read the documentation</a> for how to configure Postmark with FluentSMTP.'
|
161 |
],
|
162 |
+
'elasticmail' => [
|
163 |
+
'key' => 'elasticmail',
|
164 |
+
'title' => __('Elastic Mail', 'fluent-smtp'),
|
165 |
+
'image' => fluentMailAssetUrl('images/ee2.svg'),
|
166 |
+
'provider' => 'ElasticMail',
|
167 |
+
'options' => [
|
168 |
+
'sender_name' => '',
|
169 |
+
'sender_email' => '',
|
170 |
+
'force_from_name' => 'no',
|
171 |
+
'api_key' => '',
|
172 |
+
'mail_type' => 'transactional',
|
173 |
+
'key_store' => 'db'
|
174 |
+
],
|
175 |
+
'note' => '<a href="https://fluentsmtp.com/docs/set-up-the-elastic-mail-driver-in-fluent-smtp/">Read the documentation</a> for how to configure sendgrid with FluentSMTP.'
|
176 |
+
],
|
177 |
'gmail' => [
|
178 |
'key' => 'gmail',
|
179 |
'title' => __('Gmail/Google Workspace', 'fluent-smtp'),
|
assets/admin/css/fluent-mail-admin.css
CHANGED
@@ -33,4 +33,4 @@
|
|
33 |
.el-switch{align-items:center;display:inline-flex;font-size:14px;height:20px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__core,.el-switch__label{cursor:pointer;display:inline-block;vertical-align:middle}.el-switch__label{color:#303133;font-size:14px;font-weight:500;height:20px;transition:.2s}.el-switch__label.is-active{color:#409eff}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__core{background:#dcdfe6;border:1px solid #dcdfe6;border-radius:10px;box-sizing:border-box;height:20px;margin:0;outline:0;position:relative;transition:border-color .3s,background-color .3s;width:40px}.el-switch__core:after{background-color:#fff;border-radius:100%;content:"";height:16px;left:1px;position:absolute;top:1px;transition:all .3s;width:16px}.el-switch.is-checked .el-switch__core{background-color:#409eff;border-color:#409eff}.el-switch.is-checked .el-switch__core:after{left:100%;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}
|
34 |
.el-skeleton__item{background:#f2f2f2;border-radius:4px;display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:36px;line-height:36px;width:36px}.el-skeleton__circle--lg{height:40px;line-height:40px;width:40px}.el-skeleton__circle--md{height:28px;line-height:28px;width:28px}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:13px;width:100%}.el-skeleton__caption{height:12px}.el-skeleton__h1{height:20px}.el-skeleton__h3{height:18px}.el-skeleton__h5{height:16px}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{fill:#dcdde0;height:22%;width:22%}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{background:#f2f2f2;height:16px;margin-top:16px}.el-skeleton.is-animated .el-skeleton__item{-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);background-size:400% 100%}
|
35 |
.el-skeleton__item{background:#f2f2f2;border-radius:4px;display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:36px;line-height:36px;width:36px}.el-skeleton__circle--lg{height:40px;line-height:40px;width:40px}.el-skeleton__circle--md{height:28px;line-height:28px;width:28px}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:13px;width:100%}.el-skeleton__caption{height:12px}.el-skeleton__h1{height:20px}.el-skeleton__h3{height:18px}.el-skeleton__h5{height:16px}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{fill:#dcdde0;height:22%;width:22%}
|
36 |
-
.el-select{width:100%}.el-select input{background:transparent}.el-dialog{border-radius:5px;margin-top:40px!important}.el-dialog .el-dialog__header{background:#f5f5f5;border:1px solid #ddd;border-top-left-radius:5px;border-top-right-radius:5px;display:block;overflow:hidden;padding:10px}.el-dialog .dialog-footer{background:#f5f5f5;border-bottom-left-radius:5px;border-bottom-right-radius:5px;box-sizing:border-box;display:block;margin:0 -20px -20px;padding:10px 20px 20px;text-align:right;width:auto}.el-dialog__body{padding:15px 20px}.el-tag+.el-tag{margin-left:10px}.el-popover{padding:10px;text-align:left}.el-popover .action-buttons{margin:0;text-align:center}.el-button--mini{padding:4px}.fluentcrm_checkable_block>label{display:block;margin:0;padding:0 10px 10px}.el-select__tags input{border:none}.el-select__tags input:focus{border:none;box-shadow:none;outline:none}.el-popover h3,.el-tooltip__popper h3{margin:0 0 10px}.el-popover{word-break:inherit}.el-step__icon.is-text{vertical-align:middle}.el-menu-vertical-demo{min-height:80vh}.el-menu-item.is-active{background:#ecf5ff}.fluentcrm_min_bg{background-color:#f7fafc;min-height:80vh}.fc_el_border_table{border:1px solid #ebeef5;border-bottom:0}ul.fc_list{margin:0;padding:0 0 0 20px}ul.fc_list li{line-height:26px;list-style:disc;padding-left:0}.doc_body{display:flex;flex-wrap:wrap;margin:0 auto;max-width:1060px;padding:0 20px}.doc_body .doc_each_items{background-color:#fff;border-radius:.375rem;box-shadow:0 1px 4px rgba(18,25,97,.08);box-sizing:border-box;font-size:.875rem;margin-bottom:2%;margin-right:2%;transition:opacity .8s;width:31.33%}@media (max-width:782px){.doc_body .doc_each_items{margin-left:0;margin-right:0;width:100%}}.fc_doc_items{text-align:left}.fc_doc_items .fc_doc_header{background:#f4f7fa;border-top-left-radius:5px;border-top-right-radius:5px;padding:15px}.fc_doc_items .fc_doc_header h3{font-size:15px;margin:0}.fc_doc_items .fc_doc_lists{background:#fff;padding:10px 20px}.fc_doc_items .fc_doc_lists ul{list-style:disc;margin-left:15px}.fc_doc_items .fc_doc_lists ul li{margin-bottom:8px}.search_result{margin-top:20px}.fluent-mail-app{display:block;max-width:100%;width:100%}.fluent-mail-app .fluent-mail-main-menu-items{background:#fff;margin-bottom:20px;margin-left:-20px}.fluent-mail-app .fluent-mail-main-menu-items .fluent-mail-navigation{margin-left:-20px}.fluent-mail-app .fluent-mail-body{margin-right:20px}.fluent-mail-app .fluent-mail-body .header{background-color:#f7fafc;border-bottom:1px solid #e3e8ee;clear:both;color:#697386;display:block;font-weight:700;margin:0;overflow:hidden;padding:10px 15px;width:auto}.fluent-mail-app .fluent-mail-body .content{background-color:#fff;padding:20px}.fluent-mail-app .fluent-mail-navigation.el-menu--horizontal.el-menu .el-menu-item.is-active{background:#ecf5ff}.fluent-mail-app .logo{margin-left:20px}.fluent-mail-app .pager-wrap{margin-top:20px;text-align:right}.fss_config_section{background:#f7fafc;border-radius:5px;box-shadow:0 0 2px 2px #dcdfe5;margin-bottom:30px;padding:20px}.fss_connection_intro{background:#eff4f7;border-radius:5px;margin:0 auto;max-width:1160px;padding:30px}.fss_connection_intro .fss_config_section{background:#fff}.fss_intro{border-bottom:1px solid #e3e8ed;margin-bottom:45px;padding-bottom:20px;text-align:center}.fss_compact_form label.el-form-item__label{font-weight:500;line-height:100%;padding-bottom:5px!important}.fss_content_box{margin-bottom:20px}.fss_connection_info th{font-weight:500}.fss_connection_info td,.fss_connection_info th{padding:12px 10px}ul.fss_log_items li{border-bottom:1px solid #ebeef4;margin-bottom:10px;padding:10px 0;width:48%}ul.fss_log_items li,ul.fss_log_items li>div{display:inline-block}ul.fss_log_items li .item_header{font-weight:500;min-width:42px;padding-right:10px}.el-table .el-table__row--striped.el-table__row.row_type_failed,.el-table .el-table__row.row_type_failed{background:#fde2e2!important}.el-table .el-table__row--striped.el-table__row.row_type_failed td,.el-table .el-table__row.row_type_failed td{background:transparent}.fluent-mail-app .dashboard .content .mailer-block{display:inline-block;margin:0 5px;position:relative;width:140px}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image{background:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);cursor:auto;cursor:pointer;height:76px;margin-bottom:10px;position:relative;text-align:center;transition:all .2s ease-in-out}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image:hover{box-shadow:0 0 5px 5px #ccc}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image img{display:block;left:50%;max-height:40px;max-width:90%;opacity:.7;position:relative;top:20px!important;transform:translate(-50%,-50%);transition:all .2s ease-in-out}.fluent-mail-app .dashboard .content .email-stat{cursor:pointer;font-size:15px;font-weight:700;font-weight:500;padding:20px;text-align:center}.fluent-mail-app .dashboard .content .email-stat:hover{background:#ecf5ff;opacity:.7}.logs .successful{color:#409eff;font-size:20px}.logs .unsuccessful{color:#f56c6c;font-size:20px}.logs .resent{color:#a4da89;font-size:20px}.logs .dont-show{color:#409eff;cursor:pointer;margin-left:10px;vertical-align:top}ul.fss_dash_lists{list-style:none;margin:0;padding:0}ul.fss_dash_lists li{border-bottom:1px solid #e3e8ed;color:#697485;font-size:15px;line-height:40px;padding:0 10px}ul.fss_dash_lists li span{float:right;padding-right:10px}ul.fss_dash_lists li:hover{background:#f7fafc;border-bottom:1px solid #000}ul.fss_dash_lists li:last-child{border-bottom:0}.fss_to_right{float:right}.fss_plugin_block{border-bottom:1px solid #e3e8ed;margin:0 -20px;padding:20px}.fss_plugin_block .fss_plugin_title{text-align:center}.fss_plugin_block .fss_plugin_title h3,.fss_plugin_block .fss_plugin_title p{margin:0;padding:0}.fss_plugin_block .fss_plugin_title h3{color:#697386;font-size:18px;margin-bottom:5px}.fss_plugin_block .fss_plugin_title p{font-size:14px;font-weight:500}.fss_plugin_block .fss_install_btn{text-align:center}.fss_plugin_block:last-child{margin-bottom:-20px}.fss_plugin_block .fss_fluentcrm_btn{background:#7743e6!important;border-color:#7743e6!important}.install_success{text-align:center}.install_success a{text-decoration:none}.fss_condesnippet_wrapper span.el-form-item__error{display:block;position:relative!important}.fsmtp_subscribe{text-align:left}.fsmtp_subscribe input{margin-bottom:10px}.fsmtp_subscribe span.el-checkbox__label{font-weight:400;white-space:normal}.fsmtp_subscribe span.el-checkbox__input{margin-top:5px;vertical-align:top}.success_wrapper{background:#e6eaec;border-radius:10px;margin:0 auto;max-width:600px;padding:20px;text-align:center}.success_wrapper h1{font-size:40px;margin:0}span.header_action_right{cursor:pointer;float:right}.fss_connection_wizard .con_gmail .el-radio-button__inner img{max-width:186px!important}.fss_connection_wizard .con_gmail.is-active .el-radio-button__inner{background:#eff4f7!important;border-color:#ea4435;box-shadow:-1px 0 0 0 #ea4435}.fss_connection_wizard .fss_connections .el-radio-button__inner{padding:12px 6px}.fss_connection_wizard .con_outlook.is-active .el-radio-button__inner{background:#eff4f7!important;border-color:#ea4435;box-shadow:-1px 0 0 0 #ea4435}.fss_connection_wizard .con_postmark.is-active .el-radio-button__inner{background:#ffde00;border-color:#ffde00;box-shadow:-1px 0 0 0 #ffde00}.fsmtp_compact{margin-top:30px}.fsmtp_compact .el-form-item>label{line-height:100%;margin-bottom:0;padding-bottom:0}.log-viewer .el-collapse-item__content{padding-bottom:0}.log-viewer .el-collapse-item__content .full-screen-text{cursor:pointer;display:none;font-size:12px;left:50%;margin-top:-10px;position:absolute;transform:translateX(-50%)}.log-viewer .el-collapse-item__content .show{display:inline-block}:-webkit-full-screen{background-color:#fff}:-moz-full-screen,:-webkit-full-screen,:fullscreen{background-color:#fff}.log-viewer pre{word-wrap:break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-o-pre-wrap}.log-viewer .success{color:#409eff}.log-viewer .fail{color:#f56c6c}.log-viewer .resent{color:#409eff}.log-viewer .log-row{margin:15px 0}.log-viewer .log-border{border-bottom:0;border-color:#ebeef5}.log-viewer .nav{cursor:pointer;margin:20px 0 10px}.log-viewer .prev{float:left}.log-viewer .next{float:right;margin-right:8px}#fluent_mail_app .small-help-text,.fluent-mail-app .small-help-text{color:gray;font-size:12px}.fss_box_action .header{cursor:pointer}.fsmtp_recommened{background:#fff;border-radius:6px;padding:20px;text-align:center}
|
33 |
.el-switch{align-items:center;display:inline-flex;font-size:14px;height:20px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__core,.el-switch__label{cursor:pointer;display:inline-block;vertical-align:middle}.el-switch__label{color:#303133;font-size:14px;font-weight:500;height:20px;transition:.2s}.el-switch__label.is-active{color:#409eff}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__core{background:#dcdfe6;border:1px solid #dcdfe6;border-radius:10px;box-sizing:border-box;height:20px;margin:0;outline:0;position:relative;transition:border-color .3s,background-color .3s;width:40px}.el-switch__core:after{background-color:#fff;border-radius:100%;content:"";height:16px;left:1px;position:absolute;top:1px;transition:all .3s;width:16px}.el-switch.is-checked .el-switch__core{background-color:#409eff;border-color:#409eff}.el-switch.is-checked .el-switch__core:after{left:100%;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}
|
34 |
.el-skeleton__item{background:#f2f2f2;border-radius:4px;display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:36px;line-height:36px;width:36px}.el-skeleton__circle--lg{height:40px;line-height:40px;width:40px}.el-skeleton__circle--md{height:28px;line-height:28px;width:28px}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:13px;width:100%}.el-skeleton__caption{height:12px}.el-skeleton__h1{height:20px}.el-skeleton__h3{height:18px}.el-skeleton__h5{height:16px}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{fill:#dcdde0;height:22%;width:22%}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{background:#f2f2f2;height:16px;margin-top:16px}.el-skeleton.is-animated .el-skeleton__item{-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);background-size:400% 100%}
|
35 |
.el-skeleton__item{background:#f2f2f2;border-radius:4px;display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:36px;line-height:36px;width:36px}.el-skeleton__circle--lg{height:40px;line-height:40px;width:40px}.el-skeleton__circle--md{height:28px;line-height:28px;width:28px}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:13px;width:100%}.el-skeleton__caption{height:12px}.el-skeleton__h1{height:20px}.el-skeleton__h3{height:18px}.el-skeleton__h5{height:16px}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{fill:#dcdde0;height:22%;width:22%}
|
36 |
+
.el-select{width:100%}.el-select input{background:transparent}.el-dialog{border-radius:5px;margin-top:40px!important}.el-dialog .el-dialog__header{background:#f5f5f5;border:1px solid #ddd;border-top-left-radius:5px;border-top-right-radius:5px;display:block;overflow:hidden;padding:10px}.el-dialog .dialog-footer{background:#f5f5f5;border-bottom-left-radius:5px;border-bottom-right-radius:5px;box-sizing:border-box;display:block;margin:0 -20px -20px;padding:10px 20px 20px;text-align:right;width:auto}.el-dialog__body{padding:15px 20px}.el-tag+.el-tag{margin-left:10px}.el-popover{padding:10px;text-align:left}.el-popover .action-buttons{margin:0;text-align:center}.el-button--mini{padding:4px}.fluentcrm_checkable_block>label{display:block;margin:0;padding:0 10px 10px}.el-select__tags input{border:none}.el-select__tags input:focus{border:none;box-shadow:none;outline:none}.el-popover h3,.el-tooltip__popper h3{margin:0 0 10px}.el-popover{word-break:inherit}.el-step__icon.is-text{vertical-align:middle}.el-menu-vertical-demo{min-height:80vh}.el-menu-item.is-active{background:#ecf5ff}.fluentcrm_min_bg{background-color:#f7fafc;min-height:80vh}.fc_el_border_table{border:1px solid #ebeef5;border-bottom:0}ul.fc_list{margin:0;padding:0 0 0 20px}ul.fc_list li{line-height:26px;list-style:disc;padding-left:0}.con_elasticmail span{padding:12px 25px!important}.fsmtp_conncection_selected{background:#fff;border:3px solid #3f9eff;border-radius:10px;display:inline-block;padding:15px 30px 5px 10px;position:relative;text-align:center;width:200px}.fsmtp_conncection_selected i.fstmp_check_icon{position:absolute;right:4px;top:4px}.fsmtp_conncection_selected i.fstmp_check_icon svg{fill:#3f9eff}.fsmtp_conncection_selected.con_elasticmail img{max-height:40px!important}.fss_connections>label{margin-bottom:10px}.doc_body{display:flex;flex-wrap:wrap;margin:0 auto;max-width:1060px;padding:0 20px}.doc_body .doc_each_items{background-color:#fff;border-radius:.375rem;box-shadow:0 1px 4px rgba(18,25,97,.08);box-sizing:border-box;font-size:.875rem;margin-bottom:2%;margin-right:2%;transition:opacity .8s;width:31.33%}@media (max-width:782px){.doc_body .doc_each_items{margin-left:0;margin-right:0;width:100%}}.fc_doc_items{text-align:left}.fc_doc_items .fc_doc_header{background:#f4f7fa;border-top-left-radius:5px;border-top-right-radius:5px;padding:15px}.fc_doc_items .fc_doc_header h3{font-size:15px;margin:0}.fc_doc_items .fc_doc_lists{background:#fff;padding:10px 20px}.fc_doc_items .fc_doc_lists ul{list-style:disc;margin-left:15px}.fc_doc_items .fc_doc_lists ul li{margin-bottom:8px}.search_result{margin-top:20px}.fluent-mail-app{display:block;max-width:100%;width:100%}.fluent-mail-app .fluent-mail-main-menu-items{background:#fff;margin-bottom:20px;margin-left:-20px}.fluent-mail-app .fluent-mail-main-menu-items .fluent-mail-navigation{margin-left:-20px}.fluent-mail-app .fluent-mail-body{margin-right:20px}.fluent-mail-app .fluent-mail-body .header{background-color:#f7fafc;border-bottom:1px solid #e3e8ee;clear:both;color:#697386;display:block;font-weight:700;margin:0;overflow:hidden;padding:10px 15px;width:auto}.fluent-mail-app .fluent-mail-body .content{background-color:#fff;padding:20px}.fluent-mail-app .fluent-mail-navigation.el-menu--horizontal.el-menu .el-menu-item.is-active{background:#ecf5ff}.fluent-mail-app .logo{margin-left:20px}.fluent-mail-app .pager-wrap{margin-top:20px;text-align:right}.fss_config_section{background:#f7fafc;border-radius:5px;box-shadow:0 0 2px 2px #dcdfe5;margin-bottom:30px;padding:20px}.fss_connection_intro{background:#eff4f7;border-radius:5px;margin:0 auto;max-width:1160px;padding:30px}.fss_connection_intro .fss_config_section{background:#fff}.fss_intro{border-bottom:1px solid #e3e8ed;margin-bottom:45px;padding-bottom:20px;text-align:center}.fss_compact_form label.el-form-item__label{font-weight:500;line-height:100%;padding-bottom:5px!important}.fss_content_box{margin-bottom:20px}.fss_connection_info th{font-weight:500}.fss_connection_info td,.fss_connection_info th{padding:12px 10px}ul.fss_log_items li{border-bottom:1px solid #ebeef4;margin-bottom:10px;padding:10px 0;width:48%}ul.fss_log_items li,ul.fss_log_items li>div{display:inline-block}ul.fss_log_items li .item_header{font-weight:500;min-width:42px;padding-right:10px}.el-table .el-table__row--striped.el-table__row.row_type_failed,.el-table .el-table__row.row_type_failed{background:#fde2e2!important}.el-table .el-table__row--striped.el-table__row.row_type_failed td,.el-table .el-table__row.row_type_failed td{background:transparent}.fluent-mail-app .dashboard .content .mailer-block{display:inline-block;margin:0 5px;position:relative;width:140px}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image{background:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);cursor:auto;cursor:pointer;height:76px;margin-bottom:10px;position:relative;text-align:center;transition:all .2s ease-in-out}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image:hover{box-shadow:0 0 5px 5px #ccc}.fluent-mail-app .dashboard .content .fluent-mail-mailer-image img{display:block;left:50%;max-height:40px;max-width:90%;opacity:.7;position:relative;top:20px!important;transform:translate(-50%,-50%);transition:all .2s ease-in-out}.fluent-mail-app .dashboard .content .email-stat{cursor:pointer;font-size:15px;font-weight:700;font-weight:500;padding:20px;text-align:center}.fluent-mail-app .dashboard .content .email-stat:hover{background:#ecf5ff;opacity:.7}.logs .successful{color:#409eff;font-size:20px}.logs .unsuccessful{color:#f56c6c;font-size:20px}.logs .resent{color:#a4da89;font-size:20px}.logs .dont-show{color:#409eff;cursor:pointer;margin-left:10px;vertical-align:top}ul.fss_dash_lists{list-style:none;margin:0;padding:0}ul.fss_dash_lists li{border-bottom:1px solid #e3e8ed;color:#697485;font-size:15px;line-height:40px;padding:0 10px}ul.fss_dash_lists li span{float:right;padding-right:10px}ul.fss_dash_lists li:hover{background:#f7fafc;border-bottom:1px solid #000}ul.fss_dash_lists li:last-child{border-bottom:0}.fss_to_right{float:right}.fss_plugin_block{border-bottom:1px solid #e3e8ed;margin:0 -20px;padding:20px}.fss_plugin_block .fss_plugin_title{text-align:center}.fss_plugin_block .fss_plugin_title h3,.fss_plugin_block .fss_plugin_title p{margin:0;padding:0}.fss_plugin_block .fss_plugin_title h3{color:#697386;font-size:18px;margin-bottom:5px}.fss_plugin_block .fss_plugin_title p{font-size:14px;font-weight:500}.fss_plugin_block .fss_install_btn{text-align:center}.fss_plugin_block:last-child{margin-bottom:-20px}.fss_plugin_block .fss_fluentcrm_btn{background:#7743e6!important;border-color:#7743e6!important}.install_success{text-align:center}.install_success a{text-decoration:none}.fss_condesnippet_wrapper span.el-form-item__error{display:block;position:relative!important}.fsmtp_subscribe{text-align:left}.fsmtp_subscribe input{margin-bottom:10px}.fsmtp_subscribe span.el-checkbox__label{font-weight:400;white-space:normal}.fsmtp_subscribe span.el-checkbox__input{margin-top:5px;vertical-align:top}.success_wrapper{background:#e6eaec;border-radius:10px;margin:0 auto;max-width:600px;padding:20px;text-align:center}.success_wrapper h1{font-size:40px;margin:0}span.header_action_right{cursor:pointer;float:right}.fss_connection_wizard .con_gmail .el-radio-button__inner img{max-width:186px!important}.fss_connection_wizard .con_gmail.is-active .el-radio-button__inner{background:#eff4f7!important;border-color:#ea4435;box-shadow:-1px 0 0 0 #ea4435}.fss_connection_wizard .fss_connections .el-radio-button__inner{padding:12px 6px}.fss_connection_wizard .con_outlook.is-active .el-radio-button__inner{background:#eff4f7!important;border-color:#ea4435;box-shadow:-1px 0 0 0 #ea4435}.fss_connection_wizard .con_postmark.is-active .el-radio-button__inner{background:#ffde00;border-color:#ffde00;box-shadow:-1px 0 0 0 #ffde00}.fsmtp_compact{margin-top:30px}.fsmtp_compact .el-form-item>label{line-height:100%;margin-bottom:0;padding-bottom:0}.log-viewer .el-collapse-item__content{padding-bottom:0}.log-viewer .el-collapse-item__content .full-screen-text{cursor:pointer;display:none;font-size:12px;left:50%;margin-top:-10px;position:absolute;transform:translateX(-50%)}.log-viewer .el-collapse-item__content .show{display:inline-block}:-webkit-full-screen{background-color:#fff}:-moz-full-screen,:-webkit-full-screen,:fullscreen{background-color:#fff}.log-viewer pre{word-wrap:break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-o-pre-wrap}.log-viewer .success{color:#409eff}.log-viewer .fail{color:#f56c6c}.log-viewer .resent{color:#409eff}.log-viewer .log-row{margin:15px 0}.log-viewer .log-border{border-bottom:0;border-color:#ebeef5}.log-viewer .nav{cursor:pointer;margin:20px 0 10px}.log-viewer .prev{float:left}.log-viewer .next{float:right;margin-right:8px}#fluent_mail_app .small-help-text,.fluent-mail-app .small-help-text{color:gray;font-size:12px}.fss_box_action .header{cursor:pointer}.fsmtp_recommened{background:#fff;border-radius:6px;padding:20px;text-align:center}
|
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,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})})()})();
|
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,C=b==w;if(C&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(C&&!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 S=k&&f.call(t,"__wrapped__"),$=x&&f.call(e,"__wrapped__");if(S||$){var P=S?t.value():t,A=$?e.value():e;return h||(h=new o),m(P,A,n,v,h)}}return!!C&&(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=S(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 C(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 S(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,S(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(C.prototype),l(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,o,r,s){void 0===s&&(s=Promise);var i=new C(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 C={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 S=(0,r.Z)(C,(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:"ConnectionSelector",props:["connection","providers"],data:function(){return{showAll:!this.connection.provider}}};const M={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:S,postmark:P,elasticmail:E,Error:a,ConnectionProvider:(0,r.Z)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.connection.provider&&!t.showAll?n("div",[n("div",{staticClass:"fsmtp_conncection_selected",class:"con_"+t.connection.provider},[n("img",{staticStyle:{"max-width":"100px",height:"auto"},attrs:{title:t.providers[t.connection.provider].title,src:t.providers[t.connection.provider].image}}),t._v(" "),n("i",{staticClass:"fstmp_check_icon"},[n("svg",{attrs:{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",width:"26px",height:"26px"}},[n("path",{attrs:{d:"M 13 1 C 6.382813 1 1 6.382813 1 13 C 1 19.617188 6.382813 25 13 25 C 19.617188 25 25 19.617188 25 13 C 25 6.382813 19.617188 1 13 1 Z M 13 3 C 18.535156 3 23 7.464844 23 13 C 23 18.535156 18.535156 23 13 23 C 7.464844 23 3 18.535156 3 13 C 3 7.464844 7.464844 3 13 3 Z M 17.1875 7.0625 C 17.039063 7.085938 16.914063 7.164063 16.8125 7.3125 L 11.90625 14.59375 L 9.59375 12.3125 C 9.394531 12.011719 9.011719 11.988281 8.8125 12.1875 L 7.90625 13.09375 C 7.707031 13.394531 7.707031 13.800781 7.90625 14 L 11.40625 17.5 C 11.605469 17.601563 11.886719 17.8125 12.1875 17.8125 C 12.386719 17.8125 12.707031 17.707031 12.90625 17.40625 L 18.90625 8.59375 C 19.105469 8.292969 18.992188 8.011719 18.59375 7.8125 L 17.59375 7.09375 C 17.492188 7.042969 17.335938 7.039063 17.1875 7.0625 Z"}})])])]),t._v(" "),n("el-button",{attrs:{size:"small",icon:"el-icon-edit",type:"default"},on:{click:function(e){t.showAll=!t.showAll}}},[t._v("change")])],1):n("el-radio-group",{staticClass:"fss_connections",on:{change:function(e){t.showAll=!1}},model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(e,o){return n("el-radio-button",{key:o,class:"con_"+o,attrs:{label:o}},[n("img",{staticStyle:{"max-width":"80px",height:"32px"},attrs:{title:e.title,src:e.image},on:{click:function(e){t.showAll=!1}}})])})),1)],1)}),[],!1,null,null,null).exports},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 F=(0,r.Z)(M,(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("connection-provider",{attrs:{providers:t.providers,connection:t.connection}})],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 D={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 N=(0,r.Z)(D,(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 R={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)(R,(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 V={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 q={name:"Dashboard",components:{ConnectionWizard:F,EmailsChart:N,EmailSubscriber:z,SubscribeDismiss:(0,r.Z)(V,(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 K=(0,r.Z)(q,(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 U=n(7757),B=n.n(U);const G={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 W=(0,r.Z)(G,(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 Z={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 H=(0,r.Z)(Z,(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 Y={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 J=(0,r.Z)(Y,(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 Q(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 X={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){Q(s,o,r,i,a,"next",t)}function a(t){Q(s,o,r,i,a,"throw",t)}i(void 0)}))})()}},created:function(){this.fetchDetails()}};function tt(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 et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(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 ot(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var s=t.apply(e,n);function i(t){nt(s,o,r,i,a,"next",t)}function a(t){nt(s,o,r,i,a,"throw",t)}i(void 0)}))}}const rt={name:"Connections",components:{Confirm:W,GeneralSettings:H,ConnectionDetails:(0,r.Z)(X,(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:J},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return ot(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 ot(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?tt(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({unique_key:e,title:n.title},n.provider_settings))})),t}},created:function(){this.fetch()}};const st=(0,r.Z)(rt,(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 it={name:"Connection",components:{ConnectionWizard:F},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 at=(0,r.Z)(it,(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 lt={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 ct=(0,r.Z)(lt,(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 ut={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 pt=(0,r.Z)(ut,(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 _t={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 dt(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 ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vt={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,r.Z)(_t,(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?dt(Object(n),!0).forEach((function(e){ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(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 mt={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 ht={name:"EmailLog",components:{Confirm:W,Pagination:ct,LogFilter:pt,LogViewer:(0,r.Z)(vt,(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)(mt,(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 gt=(0,r.Z)(ht,(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 yt(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 bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const wt={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?yt(Object(n),!0).forEach((function(e){bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(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 kt=(0,r.Z)(wt,(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 xt=n(5534),Ct=n.n(xt);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&&Ct()(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 $t=(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 Pt=n(3105),At=n.n(Pt);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 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?At()(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 Ot=[{name:"dashboard",path:"/",meta:{},component:K},{name:"connections",path:"/connections",meta:{},component:st},{name:"connection",path:"/connection",meta:{},component:at},{name:"test",path:"/test",meta:{},component:kt},{name:"support",path:"/support",meta:{},component:$t},{name:"logs",path:"/logs",meta:{},component:gt},{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 jt=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",Ot)});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:jt})})()})();
|
assets/images/ee2.svg
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Warstwa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
width="80px" height="75px" viewBox="0 0 80 75" style="enable-background:new 0 0 80 75;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2D2F7A;}
|
7 |
+
</style>
|
8 |
+
<g id="Logo_snow_vertical_00000080201601292319822810000014837127336269119906_">
|
9 |
+
<path id="Path_25676_00000152975841016380455620000001820223042089375623_" class="st0" d="M0,2.675
|
10 |
+
c0-0.673,0.546-1.219,1.219-1.219l0,0h9.809c0.533,0,0.965,0.432,0.965,0.965c0,0,0,0,0,0v0.586c0,0.533-0.432,0.965-0.965,0.965
|
11 |
+
c0,0,0,0,0,0H2.866v6.464h6.464c0.533,0,0.965,0.432,0.966,0.965c0,0,0,0,0,0v0.585c0,0.533-0.432,0.965-0.966,0.965H2.866v6.64
|
12 |
+
h8.659c0.533,0,0.965,0.432,0.965,0.965c0,0,0,0,0,0.001v0.585c0,0.533-0.432,0.965-0.965,0.965c0,0,0,0-0.001,0H1.219
|
13 |
+
C0.546,22.108,0,21.563,0,20.89c0,0,0,0,0,0L0,2.675z"/>
|
14 |
+
<path id="Path_25677_00000088125834057719052320000010749472476436834448_" class="st0" d="M18.37,21.224
|
15 |
+
c0,0.643-0.322,0.965-0.965,0.965h-0.907c-0.644,0-0.965-0.322-0.965-0.965V1c0-0.644,0.322-0.966,0.965-0.966h0.907
|
16 |
+
c0.643,0,0.965,0.322,0.965,0.966V21.224z"/>
|
17 |
+
<path id="Path_25678_00000118368329205420708080000000052160528504162181_" class="st0" d="M34.507,7.306h-0.7
|
18 |
+
c-0.644,0-0.966,0.273-0.966,0.819v0.736c0.002,0.195,0.022,0.389,0.059,0.581h-0.059c-0.218-0.473-0.538-0.892-0.936-1.229
|
19 |
+
c-0.426-0.358-0.905-0.648-1.419-0.862c-0.72-0.286-1.492-0.42-2.267-0.395c-3.947,0-6.611,2.81-6.611,7.879
|
20 |
+
c0,4.662,2.626,7.707,6.365,7.707c2.003,0,4.182-0.833,4.868-2.516H32.9c-0.031,0.199-0.05,0.399-0.059,0.6v0.744
|
21 |
+
c0,0.545,0.322,0.818,0.966,0.819h0.7c0.644,0,0.965-0.322,0.965-0.965V8.272C35.472,7.628,35.151,7.306,34.507,7.306z
|
22 |
+
M28.571,20.084c-2.49,0-4.067-2.34-4.067-5.367c0-2.838,1.139-5.305,4.197-5.305c2.343,0,3.993,2.079,3.993,5.306
|
23 |
+
C32.693,17.922,31.026,20.084,28.571,20.084L28.571,20.084z"/>
|
24 |
+
<path id="Path_25679_00000049199488148660477690000004574187874160252546_" class="st0" d="M39.012,20.85
|
25 |
+
c-0.226-0.114-0.379-0.334-0.409-0.585c-0.013-0.259,0.059-0.516,0.205-0.731l0.293-0.41c0.134-0.214,0.352-0.362,0.6-0.409
|
26 |
+
c0.263-0.005,0.522,0.067,0.746,0.205c0.453,0.281,0.922,0.535,1.404,0.761c0.699,0.312,1.459,0.461,2.223,0.438
|
27 |
+
c0.644,0.029,1.28-0.151,1.814-0.512c0.464-0.333,0.727-0.877,0.701-1.447c0.014-0.46-0.2-0.897-0.57-1.17
|
28 |
+
c-0.438-0.326-0.914-0.596-1.419-0.805c-0.566-0.243-1.175-0.477-1.828-0.702c-0.642-0.219-1.256-0.513-1.828-0.878
|
29 |
+
c-0.553-0.349-1.035-0.801-1.419-1.331c-0.403-0.604-0.603-1.321-0.57-2.047c-0.014-0.645,0.132-1.283,0.424-1.859
|
30 |
+
c0.276-0.528,0.671-0.984,1.156-1.331c0.519-0.366,1.098-0.638,1.711-0.805c0.671-0.187,1.365-0.281,2.062-0.278
|
31 |
+
c0.871-0.027,1.74,0.112,2.559,0.409c0.53,0.204,1.043,0.449,1.535,0.731c0.237,0.095,0.415,0.295,0.483,0.541
|
32 |
+
c0.041,0.26-0.016,0.526-0.162,0.746l-0.263,0.439c-0.273,0.487-0.702,0.595-1.287,0.322c-0.392-0.212-0.797-0.398-1.214-0.556
|
33 |
+
c-0.576-0.208-1.186-0.307-1.799-0.293c-0.623-0.021-1.239,0.142-1.77,0.468c-0.474,0.305-0.748,0.841-0.716,1.404
|
34 |
+
c-0.012,0.464,0.201,0.905,0.57,1.185c0.433,0.333,0.911,0.603,1.419,0.804c0.565,0.233,1.175,0.468,1.828,0.702
|
35 |
+
c0.636,0.226,1.249,0.515,1.828,0.862c0.559,0.335,1.042,0.784,1.419,1.316c0.402,0.611,0.601,1.332,0.57,2.062
|
36 |
+
c0.012,1.211-0.526,2.362-1.462,3.13c-0.498,0.406-1.069,0.714-1.682,0.907c-0.705,0.222-1.44,0.331-2.179,0.322
|
37 |
+
c-0.574,0.004-1.148-0.05-1.711-0.162c-0.474-0.095-0.939-0.232-1.389-0.409c-0.377-0.15-0.744-0.326-1.097-0.526
|
38 |
+
C39.515,21.21,39.257,21.039,39.012,20.85z"/>
|
39 |
+
<path id="Path_25680_00000111906310757138162710000013988285790416699820_" class="st0" d="M63.48,4.352
|
40 |
+
c-0.644,0-0.966-0.322-0.965-0.965V2.421c0-0.644,0.322-0.965,0.965-0.965h0.994c0.644,0,0.966,0.322,0.965,0.965v0.965
|
41 |
+
c0,0.644-0.322,0.966-0.965,0.965H63.48z M62.544,8.272c0-0.644,0.322-0.966,0.965-0.965h0.907c0.643,0,0.965,0.322,0.965,0.965
|
42 |
+
v12.952c0,0.643-0.322,0.965-0.965,0.965h-0.907c-0.643,0-0.965-0.322-0.965-0.965V8.272z"/>
|
43 |
+
<path id="Path_25681_00000069385191699435570910000016616789885042334123_" class="st0" d="M79.92,20.573
|
44 |
+
c0.185,0.38,0.037,0.838-0.335,1.038c-1.106,0.573-2.337,0.864-3.582,0.847c-5.267,0-7.491-3.959-7.491-7.751
|
45 |
+
c0-3.72,2.36-7.752,7.369-7.752c1.184-0.019,2.355,0.251,3.411,0.785c0.383,0.198,0.535,0.668,0.341,1.053l-0.36,0.721
|
46 |
+
c-0.184,0.372-0.626,0.535-1.007,0.373c-0.666-0.3-1.386-0.461-2.117-0.475c-3.071,0-4.742,1.66-4.742,5.265
|
47 |
+
c0,3.079,1.614,5.324,4.8,5.324c0.814-0.006,1.618-0.182,2.36-0.516c0.384-0.165,0.831,0.003,1.011,0.38
|
48 |
+
C79.688,20.096,79.812,20.349,79.92,20.573z"/>
|
49 |
+
<path id="Path_25682_00000115493225484897800760000015182580476916112278_" class="st0" d="M56.485,21.224
|
50 |
+
c0,0.533-0.432,0.965-0.965,0.965h-0.907c-0.533,0-0.965-0.432-0.966-0.965V9.763h-1.532c-0.624,0-0.936-0.322-0.936-0.965V8.265
|
51 |
+
c0-0.449,0.364-0.812,0.813-0.813h1.714V4.206c0-0.533,0.432-0.965,0.965-0.965h0.848c0.533,0,0.965,0.432,0.965,0.965c0,0,0,0,0,0
|
52 |
+
v3.247h2.727c0.449,0,0.812,0.364,0.813,0.813v0.533c0,0.644-0.312,0.966-0.936,0.965h-2.604L56.485,21.224z"/>
|
53 |
+
<path id="Path_25683_00000055690173589070858050000004326959590604060592_" class="st0" d="M5.629,55.1
|
54 |
+
c0-0.673,0.546-1.219,1.219-1.219c0,0,0,0,0,0h9.809c0.533,0,0.965,0.432,0.965,0.965c0,0,0,0,0,0.001v0.585
|
55 |
+
c0,0.533-0.432,0.965-0.965,0.965c0,0,0,0,0,0H8.496v6.464h6.464c0.533,0,0.965,0.432,0.966,0.965c0,0,0,0,0,0v0.585
|
56 |
+
c0,0.533-0.432,0.965-0.966,0.965H8.496v6.638h8.658c0.533,0,0.965,0.432,0.966,0.965v0.585c0,0.533-0.432,0.966-0.966,0.966
|
57 |
+
c0,0,0,0,0,0H6.849c-0.673,0-1.219-0.546-1.219-1.219l0,0V55.1z"/>
|
58 |
+
<path id="Path_25684_00000062180249060127139630000015036107629766469267_" class="st0" d="M21.103,60.696
|
59 |
+
c0-0.643,0.322-0.965,0.966-0.965h0.819c0.644,0,0.966,0.322,0.966,0.965v1.316c0,0.197-0.02,0.393-0.058,0.586
|
60 |
+
c-0.021,0.086-0.03,0.175-0.029,0.263h0.058c0.194-0.46,0.456-0.889,0.775-1.273c0.346-0.424,0.75-0.798,1.199-1.111
|
61 |
+
c0.463-0.324,0.964-0.59,1.492-0.79c0.537-0.205,1.107-0.309,1.682-0.307c2.438,0,3.92,1.121,4.446,3.364h0.058
|
62 |
+
c0.213-0.456,0.488-0.879,0.819-1.258c0.352-0.41,0.755-0.774,1.199-1.082c0.46-0.317,0.962-0.568,1.492-0.746
|
63 |
+
c0.556-0.187,1.139-0.28,1.726-0.278c1.697,0,2.935,0.473,3.715,1.419c0.78,0.946,1.17,2.364,1.17,4.256v8.592
|
64 |
+
c0,0.643-0.322,0.965-0.965,0.965h-0.907c-0.644,0-0.966-0.322-0.965-0.965v-7.978c0.002-0.489-0.032-0.978-0.103-1.463
|
65 |
+
c-0.056-0.41-0.184-0.806-0.38-1.17c-0.185-0.331-0.459-0.604-0.79-0.79c-0.411-0.211-0.869-0.312-1.331-0.293
|
66 |
+
c-0.647-0.01-1.284,0.157-1.843,0.482c-0.55,0.325-1.024,0.764-1.39,1.288c-0.389,0.556-0.681,1.174-0.862,1.828
|
67 |
+
c-0.194,0.675-0.292,1.374-0.293,2.076v6.019c0,0.643-0.312,0.965-0.936,0.965h-0.937c-0.624,0-0.936-0.322-0.936-0.965v-7.979
|
68 |
+
c0.001-0.469-0.028-0.938-0.088-1.404c-0.047-0.412-0.166-0.813-0.35-1.185c-0.176-0.341-0.444-0.625-0.775-0.819
|
69 |
+
c-0.417-0.223-0.887-0.329-1.36-0.307c-0.662-0.01-1.314,0.162-1.885,0.497c-0.554,0.331-1.033,0.774-1.404,1.302
|
70 |
+
c-0.389,0.556-0.68,1.174-0.862,1.828c-0.192,0.665-0.291,1.354-0.292,2.047v6.019c0,0.643-0.322,0.965-0.966,0.965h-0.91
|
71 |
+
c-0.644,0-0.966-0.322-0.966-0.965V60.696z"/>
|
72 |
+
<path id="Path_25685_00000119087972547204825920000005876139841639742395_" class="st0" d="M65.536,56.776
|
73 |
+
c-0.643,0-0.965-0.322-0.965-0.965v-0.965c0-0.643,0.322-0.965,0.965-0.965h0.995c0.643,0,0.965,0.322,0.965,0.965v0.965
|
74 |
+
c0,0.644-0.322,0.966-0.965,0.965H65.536z M64.6,60.696c0-0.643,0.322-0.965,0.966-0.965h0.907c0.643,0,0.965,0.322,0.965,0.965
|
75 |
+
v12.952c0,0.643-0.322,0.965-0.965,0.965h-0.907c-0.644,0-0.966-0.322-0.966-0.965V60.696z"/>
|
76 |
+
<path id="Path_25686_00000024684897019899728790000007568379907329738670_" class="st0" d="M74.37,73.648
|
77 |
+
c0,0.643-0.322,0.965-0.966,0.965h-0.906c-0.643,0-0.965-0.322-0.965-0.965V53.424c0-0.644,0.322-0.966,0.965-0.966h0.907
|
78 |
+
c0.644,0,0.966,0.322,0.966,0.966L74.37,73.648z"/>
|
79 |
+
<path id="Path_25687_00000177462941754144008000000010514719918585615766_" class="st0" d="M59.511,59.73h-0.702
|
80 |
+
c-0.644,0-0.966,0.273-0.965,0.819v0.736c0.002,0.195,0.022,0.389,0.058,0.581h-0.058c-0.218-0.473-0.538-0.893-0.936-1.229
|
81 |
+
c-0.426-0.358-0.905-0.648-1.419-0.862c-0.72-0.286-1.492-0.421-2.267-0.395c-3.947,0-6.611,2.81-6.611,7.879
|
82 |
+
c0,4.662,2.626,7.708,6.365,7.708c2.003,0,4.183-0.833,4.868-2.516h0.058c-0.031,0.199-0.05,0.399-0.058,0.6v0.744
|
83 |
+
c0,0.546,0.322,0.818,0.965,0.819h0.702c0.643,0,0.965-0.322,0.965-0.965V60.695C60.476,60.051,60.154,59.73,59.511,59.73z
|
84 |
+
M53.574,72.507c-2.49,0-4.067-2.34-4.067-5.367c0-2.838,1.139-5.305,4.197-5.305c2.343,0,3.994,2.079,3.994,5.306
|
85 |
+
C57.697,70.345,56.029,72.507,53.574,72.507z"/>
|
86 |
+
<path id="Path_25689_00000161606405591382701420000000664131811743306138_" class="st0" d="M40,47.179"/>
|
87 |
+
<g id="Logo_snow_vertical-2_00000095329489098767010260000005872888414502682545_" transform="translate(82.245 92.622)">
|
88 |
+
<path id="Path_25675_00000010288218078742343280000006502227259723405495_" class="st0" d="M-28.442-56.47
|
89 |
+
c-0.997-1.295-2.464-2.145-4.084-2.368c-0.249-0.039-0.5-0.059-0.752-0.06h-2.239c-0.383-0.002-0.695,0.306-0.698,0.689v0.002l0,0
|
90 |
+
v1.131c0.001,0.383,0.311,0.692,0.694,0.692c0.001,0,0.003,0,0.004,0h1.846c0.135,0,0.269,0.007,0.402,0.02
|
91 |
+
c0.118,0.007,0.235,0.024,0.35,0.051c0.921,0.179,1.734,0.712,2.267,1.484c0.517,0.756,0.737,1.676,0.62,2.584
|
92 |
+
c-0.118,0.916-0.575,1.754-1.282,2.348c-0.357,0.302-0.773,0.525-1.222,0.656c-0.51,0.112-1.031,0.162-1.553,0.15h-16.763
|
93 |
+
c-0.578-0.008-1.149-0.133-1.677-0.37c-0.826-0.431-1.454-1.166-1.751-2.049c-0.296-0.865-0.267-1.808,0.081-2.653
|
94 |
+
c0.536-1.341,1.834-2.221,3.279-2.22h7.737l-2.281,2.514c-0.209,0.231-0.192,0.587,0.039,0.797c0,0,0,0,0,0l0,0l0.018,0.016
|
95 |
+
l0.744,0.617c0.251,0.207,0.622,0.173,0.831-0.077l3.647-4.39c0.354-0.425,0.354-1.042,0-1.467l-3.647-4.391
|
96 |
+
c-0.208-0.25-0.58-0.285-0.831-0.077l0,0l-0.744,0.618c-0.239,0.2-0.272,0.555-0.073,0.795l0.015,0.017l2.283,2.514h-7.737
|
97 |
+
c-0.795-0.006-1.585,0.128-2.333,0.396c-1.536,0.568-2.79,1.713-3.496,3.19c-0.696,1.504-0.753,3.225-0.158,4.772
|
98 |
+
c0.602,1.525,1.781,2.752,3.28,3.414c0.724,0.352,1.517,0.539,2.322,0.548h17.212c0.746,0.01,1.492-0.053,2.226-0.189
|
99 |
+
c0.781-0.203,1.516-0.55,2.169-1.024c2.734-1.982,3.344-5.804,1.363-8.538c-0.034-0.048-0.07-0.095-0.105-0.141L-28.442-56.47z"/>
|
100 |
+
</g>
|
101 |
+
</g>
|
102 |
+
</svg>
|
assets/libs/chartjs/index.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<?php // silence is golden
|
|
assets/mix-manifest.json
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
"/admin/css/fonts/element-icons.woff": "/admin/css/fonts/element-icons.woff",
|
7 |
"/images/amazon.png": "/images/amazon.png",
|
8 |
"/images/default.svg": "/images/default.svg",
|
|
|
9 |
"/images/fluentsmtp-white.png": "/images/fluentsmtp-white.png",
|
10 |
"/images/fluentsmtp.png": "/images/fluentsmtp.png",
|
11 |
"/images/gmail-logo.png": "/images/gmail-logo.png",
|
6 |
"/admin/css/fonts/element-icons.woff": "/admin/css/fonts/element-icons.woff",
|
7 |
"/images/amazon.png": "/images/amazon.png",
|
8 |
"/images/default.svg": "/images/default.svg",
|
9 |
+
"/images/ee2.svg": "/images/ee2.svg",
|
10 |
"/images/fluentsmtp-white.png": "/images/fluentsmtp-white.png",
|
11 |
"/images/fluentsmtp.png": "/images/fluentsmtp.png",
|
12 |
"/images/gmail-logo.png": "/images/gmail-logo.png",
|
boot.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
!defined('WPINC') && die;
|
4 |
|
5 |
define('FLUENTMAIL', 'fluentmail');
|
6 |
-
define('FLUENTMAIL_PLUGIN_VERSION', '2.
|
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.2.0');
|
7 |
define('FLUENTMAIL_UPLOAD_DIR', '/fluentmail');
|
8 |
define('FLUENT_MAIL_DB_PREFIX', 'fsmpt_');
|
9 |
define('FLUENTMAIL_PLUGIN_URL', plugin_dir_url(__FILE__));
|
database/FluentMailDBMigrator.php
CHANGED
@@ -11,7 +11,7 @@ class FluentMailDBMigrator
|
|
11 |
|
12 |
if ($network_wide ) {
|
13 |
if (function_exists('get_sites') && function_exists('get_current_network_id')) {
|
14 |
-
$site_ids = get_sites(['fields' => 'ids', 'network_id' => get_current_network_id()]);
|
15 |
} else {
|
16 |
$site_ids = $wpdb->get_col(
|
17 |
"SELECT blog_id FROM $wpdb->blogs WHERE site_id = $wpdb->siteid;"
|
11 |
|
12 |
if ($network_wide ) {
|
13 |
if (function_exists('get_sites') && function_exists('get_current_network_id')) {
|
14 |
+
$site_ids = get_sites(['fields' => 'ids', 'network_id' => get_current_network_id(), 'number' => get_blog_count()]);
|
15 |
} else {
|
16 |
$site_ids = $wpdb->get_col(
|
17 |
"SELECT blog_id FROM $wpdb->blogs WHERE site_id = $wpdb->siteid;"
|
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.
|
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.2.0
|
7 |
Author: FluentSMTP & WPManageNinja Team
|
8 |
Author URI: https://fluentsmtp.com
|
9 |
License: GPL2
|
includes/Core/Container.php
CHANGED
@@ -115,7 +115,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
115 |
* Define a contextual binding.
|
116 |
*
|
117 |
* @param string $concrete
|
118 |
-
* @return
|
119 |
*/
|
120 |
public function when($concrete)
|
121 |
{
|
@@ -544,7 +544,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
544 |
* Get the proper reflection instance for the given callback.
|
545 |
*
|
546 |
* @param callable|string $callback
|
547 |
-
* @return
|
548 |
*/
|
549 |
protected function getCallReflector($callback)
|
550 |
{
|
@@ -1159,6 +1159,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
1159 |
* @param string $key
|
1160 |
* @return bool
|
1161 |
*/
|
|
|
1162 |
public function offsetExists($key)
|
1163 |
{
|
1164 |
return isset($this->bindings[$key]);
|
@@ -1170,6 +1171,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
1170 |
* @param string $key
|
1171 |
* @return mixed
|
1172 |
*/
|
|
|
1173 |
public function offsetGet($key)
|
1174 |
{
|
1175 |
return $this->make($key);
|
@@ -1182,6 +1184,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
1182 |
* @param mixed $value
|
1183 |
* @return void
|
1184 |
*/
|
|
|
1185 |
public function offsetSet($key, $value)
|
1186 |
{
|
1187 |
// If the value is not a Closure, we will make it one. This simply gives
|
@@ -1202,6 +1205,7 @@ class Container implements ArrayAccess, ContainerContract
|
|
1202 |
* @param string $key
|
1203 |
* @return void
|
1204 |
*/
|
|
|
1205 |
public function offsetUnset($key)
|
1206 |
{
|
1207 |
unset($this->bindings[$key], $this->instances[$key], $this->resolved[$key]);
|
115 |
* Define a contextual binding.
|
116 |
*
|
117 |
* @param string $concrete
|
118 |
+
* @return ContextualBindingBuilder
|
119 |
*/
|
120 |
public function when($concrete)
|
121 |
{
|
544 |
* Get the proper reflection instance for the given callback.
|
545 |
*
|
546 |
* @param callable|string $callback
|
547 |
+
* @return ReflectionFunction | ReflectionMethod
|
548 |
*/
|
549 |
protected function getCallReflector($callback)
|
550 |
{
|
1159 |
* @param string $key
|
1160 |
* @return bool
|
1161 |
*/
|
1162 |
+
#[\ReturnTypeWillChange]
|
1163 |
public function offsetExists($key)
|
1164 |
{
|
1165 |
return isset($this->bindings[$key]);
|
1171 |
* @param string $key
|
1172 |
* @return mixed
|
1173 |
*/
|
1174 |
+
#[\ReturnTypeWillChange]
|
1175 |
public function offsetGet($key)
|
1176 |
{
|
1177 |
return $this->make($key);
|
1184 |
* @param mixed $value
|
1185 |
* @return void
|
1186 |
*/
|
1187 |
+
#[\ReturnTypeWillChange]
|
1188 |
public function offsetSet($key, $value)
|
1189 |
{
|
1190 |
// If the value is not a Closure, we will make it one. This simply gives
|
1205 |
* @param string $key
|
1206 |
* @return void
|
1207 |
*/
|
1208 |
+
#[\ReturnTypeWillChange]
|
1209 |
public function offsetUnset($key)
|
1210 |
{
|
1211 |
unset($this->bindings[$key], $this->instances[$key], $this->resolved[$key]);
|
language/fluent-smtp.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: FluentSMTP\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2022-
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -57,7 +57,7 @@ msgid "Amazon SES"
|
|
57 |
msgstr ""
|
58 |
|
59 |
#: app/Services/Mailer/Providers/Postmark/ValidatorTrait.php:20
|
60 |
-
#: app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php:
|
61 |
#: app/Services/Mailer/Providers/SparkPost/ValidatorTrait.php:20
|
62 |
#: app/Services/Mailer/Providers/SendGrid/ValidatorTrait.php:20
|
63 |
#: app/Services/Mailer/Providers/SendInBlue/ValidatorTrait.php:19
|
@@ -211,6 +211,10 @@ msgstr ""
|
|
211 |
msgid "Edit Connection"
|
212 |
msgstr ""
|
213 |
|
|
|
|
|
|
|
|
|
214 |
#: app/Hooks/Handlers/AdminMenuHandler.php:432
|
215 |
msgid "Email Address"
|
216 |
msgstr ""
|
@@ -498,7 +502,7 @@ msgstr ""
|
|
498 |
msgid "Please define FLUENTMAIL_AWS_SECRET_ACCESS_KEY in wp-config.php file."
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php:
|
502 |
msgid "Please define FLUENTMAIL_ELASTICMAIL_API_KEY in wp-config.php file."
|
503 |
msgstr ""
|
504 |
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: FluentSMTP\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2022-08-20 18:53+0000\n"
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
57 |
msgstr ""
|
58 |
|
59 |
#: app/Services/Mailer/Providers/Postmark/ValidatorTrait.php:20
|
60 |
+
#: app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php:19
|
61 |
#: app/Services/Mailer/Providers/SparkPost/ValidatorTrait.php:20
|
62 |
#: app/Services/Mailer/Providers/SendGrid/ValidatorTrait.php:20
|
63 |
#: app/Services/Mailer/Providers/SendInBlue/ValidatorTrait.php:19
|
211 |
msgid "Edit Connection"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: app/Services/Mailer/Providers/config.php:164
|
215 |
+
msgid "Elastic Mail"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
#: app/Hooks/Handlers/AdminMenuHandler.php:432
|
219 |
msgid "Email Address"
|
220 |
msgstr ""
|
502 |
msgid "Please define FLUENTMAIL_AWS_SECRET_ACCESS_KEY in wp-config.php file."
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: app/Services/Mailer/Providers/ElasticMail/ValidatorTrait.php:23
|
506 |
msgid "Please define FLUENTMAIL_ELASTICMAIL_API_KEY in wp-config.php file."
|
507 |
msgstr ""
|
508 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -33,6 +33,7 @@ Connect as many Email Service Providers as you want and FluentSMTP will route yo
|
|
33 |
* Sendinblue API
|
34 |
* Pepipost API
|
35 |
* SparkPost API
|
|
|
36 |
* Zoho via SMTP
|
37 |
* All Other SMTP
|
38 |
* More native integrations coming soon
|
@@ -107,6 +108,9 @@ With Fluent SMTP, You can set up your SparkPost email service connection with yo
|
|
107 |
|
108 |
Read about <a href="https://fluentsmtp.com/docs/configure-sparkpost-in-fluent-smtp-to-send-emails/">SparkPost connection documentation here</a>
|
109 |
|
|
|
|
|
|
|
110 |
== 🎉 Outlook / Office365 API Connection ==
|
111 |
Fluent SMTP - WP Mail Plugin provides you options to connect with your Outlook or Office 365 emails and send emails over their API. It's fast and secure. Using oAuth2 authentication system for the connection, You can easily setup the connection and send your emails with Office 365 / Outlook emails.
|
112 |
|
@@ -162,6 +166,7 @@ The full source code is hosted in GitHub and you are welcomed to contribute to t
|
|
162 |
|
163 |
= Compatible With.. =
|
164 |
* [Fluent Forms - The Fastest Form Builder Plugin](https://wordpress.org/plugins/fluentform/)
|
|
|
165 |
* [Woocommerce](https://wordpress.org/plugins/woocommerce/)
|
166 |
* [Elementor Forms](https://elementor.com/features/form-widget/)
|
167 |
* [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
|
@@ -179,6 +184,8 @@ The full source code is hosted in GitHub and you are welcomed to contribute to t
|
|
179 |
* [FluentCRM](https://wordpress.org/plugins/fluent-crm)
|
180 |
* [SendPress Newsletters](https://wordpress.org/plugins/sendpress/)
|
181 |
* [WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
|
|
|
|
|
182 |
* [Email Templates](https://wordpress.org/plugins/email-templates/)
|
183 |
* .. and every other plugin that uses the WordPress API [wp_mail](https://codex.wordpress.org/Function_Reference/wp_mail) to send mail!
|
184 |
|
@@ -274,6 +281,11 @@ Please <a href="https://wpmanageninja.com/support-tickets/">submit an issue in o
|
|
274 |
|
275 |
== Changelog ==
|
276 |
|
|
|
|
|
|
|
|
|
|
|
277 |
= 2.1.2 (Date: July 05, 2022) =
|
278 |
* Google/Gmail API Upgrade
|
279 |
* UI Improvements
|
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.2.0
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
33 |
* Sendinblue API
|
34 |
* Pepipost API
|
35 |
* SparkPost API
|
36 |
+
* Elastic Mail API
|
37 |
* Zoho via SMTP
|
38 |
* All Other SMTP
|
39 |
* More native integrations coming soon
|
108 |
|
109 |
Read about <a href="https://fluentsmtp.com/docs/configure-sparkpost-in-fluent-smtp-to-send-emails/">SparkPost connection documentation here</a>
|
110 |
|
111 |
+
== 🎉 Elastic Mail API Connection ==
|
112 |
+
Elastic Mail is a great solution for sending transactional and marketing emails with a user-friendly dashboard and many extensive functions such as statistics and real-time information. Fluent SMTP plugin is fully compatible with their official API and you can use it to send your WordPress emails via Elastic Mail
|
113 |
+
|
114 |
== 🎉 Outlook / Office365 API Connection ==
|
115 |
Fluent SMTP - WP Mail Plugin provides you options to connect with your Outlook or Office 365 emails and send emails over their API. It's fast and secure. Using oAuth2 authentication system for the connection, You can easily setup the connection and send your emails with Office 365 / Outlook emails.
|
116 |
|
166 |
|
167 |
= Compatible With.. =
|
168 |
* [Fluent Forms - The Fastest Form Builder Plugin](https://wordpress.org/plugins/fluentform/)
|
169 |
+
* [FluentCRM - Email Marketing Automation, Email Newsletter and CRM Plugin for WordPress](https://wordpress.org/plugins/fluent-crm/)
|
170 |
* [Woocommerce](https://wordpress.org/plugins/woocommerce/)
|
171 |
* [Elementor Forms](https://elementor.com/features/form-widget/)
|
172 |
* [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
|
184 |
* [FluentCRM](https://wordpress.org/plugins/fluent-crm)
|
185 |
* [SendPress Newsletters](https://wordpress.org/plugins/sendpress/)
|
186 |
* [WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
|
187 |
+
* [WPForms Lite](https://wordpress.org/plugins/wpforms-lite/)
|
188 |
+
* [WP Forms Pro](https://wordpress.org/plugins/wpforms-lite/)
|
189 |
* [Email Templates](https://wordpress.org/plugins/email-templates/)
|
190 |
* .. and every other plugin that uses the WordPress API [wp_mail](https://codex.wordpress.org/Function_Reference/wp_mail) to send mail!
|
191 |
|
281 |
|
282 |
== Changelog ==
|
283 |
|
284 |
+
= 2.2.0 (Date: Aug 21, 2022) =
|
285 |
+
* Added Elastic Mail API
|
286 |
+
* PHP 8.0 & 8.1 compatibility
|
287 |
+
* UI Improvements
|
288 |
+
|
289 |
= 2.1.2 (Date: July 05, 2022) =
|
290 |
* Google/Gmail API Upgrade
|
291 |
* UI Improvements
|