Version Description
(Date: July 28, 2021) = * Added Postmark API Connection * Fix Dashboard Stat Number * Fix Sanitization Issue
Download this release
Release Info
Developer | techjewel |
Plugin | FluentSMTP – WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- app/Bindings.php +1 -0
- app/Hooks/Handlers/AdminMenuHandler.php +7 -1
- app/Http/Controllers/SettingsController.php +66 -64
- app/Services/Mailer/Providers/Postmark/Handler.php +196 -0
- app/Services/Mailer/Providers/Postmark/ValidatorTrait.php +32 -0
- app/Services/Mailer/Providers/config.php +45 -28
- assets/admin/css/fluent-mail-admin.css +1 -1
- assets/admin/js/fluent-mail-admin-app.js +1 -1
- assets/images/postmark.svg +1 -0
- assets/mix-manifest.json +1 -0
- boot.php +1 -1
- fluent-smtp.php +1 -1
- readme.txt +6 -1
app/Bindings.php
CHANGED
@@ -12,6 +12,7 @@ $singletons = [
|
|
12 |
'sendinblue' => 'FluentMail\App\Services\Mailer\Providers\SendInBlue\Handler',
|
13 |
'gmail' => 'FluentMail\App\Services\Mailer\Providers\Gmail\Handler',
|
14 |
'outlook' => 'FluentMail\App\Services\Mailer\Providers\Outlook\Handler',
|
|
|
15 |
];
|
16 |
|
17 |
foreach ($singletons as $key => $className) {
|
12 |
'sendinblue' => 'FluentMail\App\Services\Mailer\Providers\SendInBlue\Handler',
|
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 |
foreach ($singletons as $key => $className) {
|
app/Hooks/Handlers/AdminMenuHandler.php
CHANGED
@@ -126,6 +126,11 @@ class AdminMenuHandler
|
|
126 |
$recommendedSettings = (new Converter())->getSuggestedConnection();
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
|
|
129 |
wp_localize_script('fluent_mail_admin_app_boot', 'FluentMailAdmin', [
|
130 |
'slug' => FLUENTMAIL,
|
131 |
'brand_logo' => esc_url(fluentMailMix('images/logo.svg')),
|
@@ -134,6 +139,7 @@ class AdminMenuHandler
|
|
134 |
'has_fluentcrm' => defined('FLUENTCRM'),
|
135 |
'has_fluentform' => defined('FLUENTFORM'),
|
136 |
'user_email' => $user->user_email,
|
|
|
137 |
'require_optin' => $this->isRequireOptin(),
|
138 |
'has_ninja_tables' => defined('NINJA_TABLES_VERSION'),
|
139 |
'disable_recommendation' => apply_filters('fluentmail_disable_recommendation', false),
|
@@ -298,7 +304,7 @@ class AdminMenuHandler
|
|
298 |
$stats['week'] = [
|
299 |
'title' => __('Last 7 days', 'fluent-smtp'),
|
300 |
'sent' => ($allTime['sent']) ? $logModel->getTotalCountStat('sent', $lastWeek) : 0,
|
301 |
-
'failed' => ($allTime['failed']) ? $logModel->getTotalCountStat('
|
302 |
];
|
303 |
|
304 |
$stats['all_time'] = [
|
126 |
$recommendedSettings = (new Converter())->getSuggestedConnection();
|
127 |
}
|
128 |
|
129 |
+
$displayName = trim($user->first_name . ' ' . $user->last_name);
|
130 |
+
if (!$displayName) {
|
131 |
+
$displayName = $user->display_name;
|
132 |
+
}
|
133 |
+
|
134 |
wp_localize_script('fluent_mail_admin_app_boot', 'FluentMailAdmin', [
|
135 |
'slug' => FLUENTMAIL,
|
136 |
'brand_logo' => esc_url(fluentMailMix('images/logo.svg')),
|
139 |
'has_fluentcrm' => defined('FLUENTCRM'),
|
140 |
'has_fluentform' => defined('FLUENTFORM'),
|
141 |
'user_email' => $user->user_email,
|
142 |
+
'user_display_name' => $displayName,
|
143 |
'require_optin' => $this->isRequireOptin(),
|
144 |
'has_ninja_tables' => defined('NINJA_TABLES_VERSION'),
|
145 |
'disable_recommendation' => apply_filters('fluentmail_disable_recommendation', false),
|
304 |
$stats['week'] = [
|
305 |
'title' => __('Last 7 days', 'fluent-smtp'),
|
306 |
'sent' => ($allTime['sent']) ? $logModel->getTotalCountStat('sent', $lastWeek) : 0,
|
307 |
+
'failed' => ($allTime['failed']) ? $logModel->getTotalCountStat('failed', $lastWeek) : 0,
|
308 |
];
|
309 |
|
310 |
$stats['all_time'] = [
|
app/Http/Controllers/SettingsController.php
CHANGED
@@ -60,28 +60,31 @@ class SettingsController extends Controller
|
|
60 |
|
61 |
$connection = $data['connection'];
|
62 |
|
63 |
-
$connection
|
64 |
-
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
67 |
}
|
68 |
-
|
69 |
-
$
|
70 |
|
71 |
$this->validateConnection($provider, $connection);
|
72 |
$provider->checkConnection($connection);
|
73 |
|
74 |
-
$data['valid_senders'] =
|
75 |
|
76 |
$data = apply_filters('fluentmail_saving_connection_data', $data, $data['connection']['provider']);
|
77 |
|
78 |
$settings->store($data);
|
79 |
|
80 |
return $this->sendSuccess([
|
81 |
-
'message'
|
82 |
'connections' => $settings->getConnections(),
|
83 |
-
'mappings'
|
84 |
-
'misc'
|
85 |
]);
|
86 |
|
87 |
} catch (ValidationException $e) {
|
@@ -122,7 +125,7 @@ class SettingsController extends Controller
|
|
122 |
);
|
123 |
|
124 |
return $this->sendSuccess([
|
125 |
-
'form'
|
126 |
'message' => __('Settings saved successfully.', 'fluent-smtp')
|
127 |
]);
|
128 |
}
|
@@ -164,7 +167,7 @@ class SettingsController extends Controller
|
|
164 |
{
|
165 |
return $this->sendError([
|
166 |
'message' => $response->get_error_message(),
|
167 |
-
'errors'
|
168 |
], 423);
|
169 |
}
|
170 |
|
@@ -218,25 +221,25 @@ class SettingsController extends Controller
|
|
218 |
$plugin = [
|
219 |
'name' => $pluginSlug,
|
220 |
'repo-slug' => $pluginSlug,
|
221 |
-
'file' => $pluginSlug.'.php'
|
222 |
];
|
223 |
|
224 |
$UrlMaps = [
|
225 |
-
'fluentform'
|
226 |
'admin_url' => admin_url('admin.php?page=fluent_forms'),
|
227 |
-
'title'
|
228 |
],
|
229 |
-
'fluent-crm'
|
230 |
'admin_url' => admin_url('admin.php?page=fluentcrm-admin'),
|
231 |
-
'title'
|
232 |
],
|
233 |
'ninja-tables' => [
|
234 |
'admin_url' => admin_url('admin.php?page=ninja_tables#/'),
|
235 |
-
'title'
|
236 |
]
|
237 |
];
|
238 |
|
239 |
-
if(!isset($UrlMaps[$pluginSlug]) || (defined('DISALLOW_FILE_MODS') && DISALLOW_FILE_MODS)) {
|
240 |
$this->sendError([
|
241 |
'message' => __('Sorry, You can not install this plugin', 'fluent-smtp')
|
242 |
]);
|
@@ -246,7 +249,7 @@ class SettingsController extends Controller
|
|
246 |
$this->backgroundInstaller($plugin);
|
247 |
$this->send([
|
248 |
'message' => __('Plugin has been successfully installed.', 'fluent-smtp'),
|
249 |
-
'info'
|
250 |
]);
|
251 |
} catch (\Exception $exception) {
|
252 |
$this->sendError([
|
@@ -373,7 +376,14 @@ class SettingsController extends Controller
|
|
373 |
{
|
374 |
$this->verify();
|
375 |
$email = sanitize_text_field($_REQUEST['email']);
|
376 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
return $this->sendError([
|
378 |
'message' => 'Sorry! The provider email is not valid'
|
379 |
], 423);
|
@@ -381,14 +391,14 @@ class SettingsController extends Controller
|
|
381 |
|
382 |
$shareEssentials = 'no';
|
383 |
|
384 |
-
if($_REQUEST['share_essentials'] == 'yes') {
|
385 |
update_option('_fluentsmtp_sub_update', 'shared', 'no');
|
386 |
$shareEssentials = 'yes';
|
387 |
} else {
|
388 |
update_option('_fluentsmtp_sub_update', 'yes', 'no');
|
389 |
}
|
390 |
|
391 |
-
$this->pushData($email, $shareEssentials);
|
392 |
|
393 |
return $this->sendSuccess([
|
394 |
'message' => 'You are subscribed to plugin update and monthly tips'
|
@@ -405,37 +415,29 @@ class SettingsController extends Controller
|
|
405 |
]);
|
406 |
}
|
407 |
|
408 |
-
private function pushData($optinEmail, $shareEssentials)
|
409 |
{
|
410 |
$user = get_user_by('ID', get_current_user_id());
|
411 |
|
412 |
-
$
|
413 |
-
'answers' => [
|
414 |
-
'website' => site_url(),
|
415 |
-
'email' => $optinEmail,
|
416 |
-
'first_name' => $user->first_name,
|
417 |
-
'last_name' => $user->last_name,
|
418 |
-
'name' => $user->display_name,
|
419 |
-
'essential' => $shareEssentials
|
420 |
-
],
|
421 |
-
'questions' => [
|
422 |
-
'website' => 'website',
|
423 |
-
'first_name' => 'first_name',
|
424 |
-
'last_name' => 'last_name',
|
425 |
-
'email' => 'email',
|
426 |
-
'name' => 'name',
|
427 |
-
'essential' => 'essential'
|
428 |
-
],
|
429 |
-
'user' => [
|
430 |
-
'email' => $optinEmail
|
431 |
-
],
|
432 |
-
'fb_capture' => 1,
|
433 |
-
'form_id' => 67
|
434 |
-
];
|
435 |
|
436 |
-
$url = add_query_arg($data, 'https://wpmanageninja.com/');
|
437 |
|
438 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
}
|
440 |
|
441 |
public function getGmailAuthUrl(Request $request)
|
@@ -446,8 +448,8 @@ class SettingsController extends Controller
|
|
446 |
$clientId = Arr::get($connection, 'client_id');
|
447 |
$clientSecret = Arr::get($connection, 'client_secret');
|
448 |
|
449 |
-
if(Arr::get($connection, 'key_store') == 'wp_config') {
|
450 |
-
if(defined('FLUENTMAIL_GMAIL_CLIENT_ID')) {
|
451 |
$clientId = FLUENTMAIL_GMAIL_CLIENT_ID;
|
452 |
} else {
|
453 |
return $this->sendError([
|
@@ -456,7 +458,7 @@ class SettingsController extends Controller
|
|
456 |
]
|
457 |
]);
|
458 |
}
|
459 |
-
if(defined('FLUENTMAIL_GMAIL_CLIENT_SECRET')) {
|
460 |
$clientSecret = FLUENTMAIL_GMAIL_CLIENT_SECRET;
|
461 |
} else {
|
462 |
return $this->sendError([
|
@@ -467,7 +469,7 @@ class SettingsController extends Controller
|
|
467 |
}
|
468 |
}
|
469 |
|
470 |
-
if(!$clientId) {
|
471 |
return $this->sendError([
|
472 |
'client_id' => [
|
473 |
'required' => 'Please provide application client id'
|
@@ -475,7 +477,7 @@ class SettingsController extends Controller
|
|
475 |
]);
|
476 |
}
|
477 |
|
478 |
-
if(!$clientSecret) {
|
479 |
return $this->sendError([
|
480 |
'client_secret' => [
|
481 |
'required' => 'Please provide application client secret'
|
@@ -500,8 +502,8 @@ class SettingsController extends Controller
|
|
500 |
|
501 |
delete_option('_fluentsmtp_intended_outlook_info');
|
502 |
|
503 |
-
if(Arr::get($connection, 'key_store') == 'wp_config') {
|
504 |
-
if(defined('FLUENTMAIL_OUTLOOK_CLIENT_ID')) {
|
505 |
$clientId = FLUENTMAIL_OUTLOOK_CLIENT_ID;
|
506 |
} else {
|
507 |
return $this->sendError([
|
@@ -510,7 +512,7 @@ class SettingsController extends Controller
|
|
510 |
]
|
511 |
]);
|
512 |
}
|
513 |
-
if(defined('FLUENTMAIL_OUTLOOK_CLIENT_SECRET')) {
|
514 |
$clientSecret = FLUENTMAIL_OUTLOOK_CLIENT_SECRET;
|
515 |
} else {
|
516 |
return $this->sendError([
|
@@ -521,12 +523,12 @@ class SettingsController extends Controller
|
|
521 |
}
|
522 |
} else {
|
523 |
update_option('_fluentsmtp_intended_outlook_info', [
|
524 |
-
'client_id'
|
525 |
'client_secret' => $clientSecret
|
526 |
]);
|
527 |
}
|
528 |
|
529 |
-
if(!$clientId) {
|
530 |
return $this->sendError([
|
531 |
'client_id' => [
|
532 |
'required' => 'Please provide application client id'
|
@@ -534,7 +536,7 @@ class SettingsController extends Controller
|
|
534 |
]);
|
535 |
}
|
536 |
|
537 |
-
if(!$clientSecret) {
|
538 |
return $this->sendError([
|
539 |
'client_secret' => [
|
540 |
'required' => 'Please provide application client secret'
|
@@ -563,13 +565,13 @@ class SettingsController extends Controller
|
|
563 |
|
564 |
$settings = Arr::only($settings, ['enabled', 'notify_email', 'notify_days']);
|
565 |
|
566 |
-
$settings['notify_email'] = sanitize_text_field(
|
567 |
-
$settings['enabled'] = sanitize_text_field(
|
568 |
|
569 |
$defaults = [
|
570 |
-
'enabled'
|
571 |
'notify_email' => '{site_admin}',
|
572 |
-
'notify_days'
|
573 |
];
|
574 |
|
575 |
$settings = wp_parse_args($settings, $defaults);
|
60 |
|
61 |
$connection = $data['connection'];
|
62 |
|
63 |
+
foreach ($connection as $index => $value) {
|
64 |
+
if ($index == 'sender_email') {
|
65 |
+
$connection['sender_email'] = sanitize_email($connection['sender_email']);
|
66 |
+
}
|
67 |
+
if (is_string($value) && $value) {
|
68 |
+
$connection[$index] = sanitize_text_field($value);
|
69 |
+
}
|
70 |
}
|
71 |
+
|
72 |
+
$data['connection'] = $connection;
|
73 |
|
74 |
$this->validateConnection($provider, $connection);
|
75 |
$provider->checkConnection($connection);
|
76 |
|
77 |
+
$data['valid_senders'] = $provider->getValidSenders($connection);
|
78 |
|
79 |
$data = apply_filters('fluentmail_saving_connection_data', $data, $data['connection']['provider']);
|
80 |
|
81 |
$settings->store($data);
|
82 |
|
83 |
return $this->sendSuccess([
|
84 |
+
'message' => 'Settings saved successfully.',
|
85 |
'connections' => $settings->getConnections(),
|
86 |
+
'mappings' => $settings->getMappings(),
|
87 |
+
'misc' => $settings->getMisc()
|
88 |
]);
|
89 |
|
90 |
} catch (ValidationException $e) {
|
125 |
);
|
126 |
|
127 |
return $this->sendSuccess([
|
128 |
+
'form' => $data,
|
129 |
'message' => __('Settings saved successfully.', 'fluent-smtp')
|
130 |
]);
|
131 |
}
|
167 |
{
|
168 |
return $this->sendError([
|
169 |
'message' => $response->get_error_message(),
|
170 |
+
'errors' => $response->get_error_data()
|
171 |
], 423);
|
172 |
}
|
173 |
|
221 |
$plugin = [
|
222 |
'name' => $pluginSlug,
|
223 |
'repo-slug' => $pluginSlug,
|
224 |
+
'file' => $pluginSlug . '.php'
|
225 |
];
|
226 |
|
227 |
$UrlMaps = [
|
228 |
+
'fluentform' => [
|
229 |
'admin_url' => admin_url('admin.php?page=fluent_forms'),
|
230 |
+
'title' => __('Go to Fluent Forms Dashboard', 'fluent-smtp')
|
231 |
],
|
232 |
+
'fluent-crm' => [
|
233 |
'admin_url' => admin_url('admin.php?page=fluentcrm-admin'),
|
234 |
+
'title' => __('Go to FluentCRM Dashboard', 'fluent-smtp')
|
235 |
],
|
236 |
'ninja-tables' => [
|
237 |
'admin_url' => admin_url('admin.php?page=ninja_tables#/'),
|
238 |
+
'title' => __('Go to Ninja Tables Dashboard', 'fluent-smtp')
|
239 |
]
|
240 |
];
|
241 |
|
242 |
+
if (!isset($UrlMaps[$pluginSlug]) || (defined('DISALLOW_FILE_MODS') && DISALLOW_FILE_MODS)) {
|
243 |
$this->sendError([
|
244 |
'message' => __('Sorry, You can not install this plugin', 'fluent-smtp')
|
245 |
]);
|
249 |
$this->backgroundInstaller($plugin);
|
250 |
$this->send([
|
251 |
'message' => __('Plugin has been successfully installed.', 'fluent-smtp'),
|
252 |
+
'info' => $UrlMaps[$pluginSlug]
|
253 |
]);
|
254 |
} catch (\Exception $exception) {
|
255 |
$this->sendError([
|
376 |
{
|
377 |
$this->verify();
|
378 |
$email = sanitize_text_field($_REQUEST['email']);
|
379 |
+
|
380 |
+
$displayName = '';
|
381 |
+
|
382 |
+
if (isset($_REQUEST['display_name'])) {
|
383 |
+
$displayName = sanitize_text_field($_REQUEST['display_name']);
|
384 |
+
}
|
385 |
+
|
386 |
+
if (!is_email($email)) {
|
387 |
return $this->sendError([
|
388 |
'message' => 'Sorry! The provider email is not valid'
|
389 |
], 423);
|
391 |
|
392 |
$shareEssentials = 'no';
|
393 |
|
394 |
+
if ($_REQUEST['share_essentials'] == 'yes') {
|
395 |
update_option('_fluentsmtp_sub_update', 'shared', 'no');
|
396 |
$shareEssentials = 'yes';
|
397 |
} else {
|
398 |
update_option('_fluentsmtp_sub_update', 'yes', 'no');
|
399 |
}
|
400 |
|
401 |
+
$this->pushData($email, $shareEssentials, $displayName);
|
402 |
|
403 |
return $this->sendSuccess([
|
404 |
'message' => 'You are subscribed to plugin update and monthly tips'
|
415 |
]);
|
416 |
}
|
417 |
|
418 |
+
private function pushData($optinEmail, $shareEssentials, $displayName = '')
|
419 |
{
|
420 |
$user = get_user_by('ID', get_current_user_id());
|
421 |
|
422 |
+
$url = 'https://fluentsmtp.com/wp-admin/?fluentcrm=1&route=contact&hash=6012116c-90d8-42a5-a65b-3649aa34b356';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
|
|
|
424 |
|
425 |
+
if (!$displayName) {
|
426 |
+
$displayName = trim($user->first_name . ' ' . $user->last_name);
|
427 |
+
if (!$displayName) {
|
428 |
+
$displayName = $user->display_name;
|
429 |
+
}
|
430 |
+
}
|
431 |
+
|
432 |
+
wp_remote_post($url, [
|
433 |
+
'body' => json_encode([
|
434 |
+
'full_name' => $displayName,
|
435 |
+
'email' => $optinEmail,
|
436 |
+
'source' => 'smtp',
|
437 |
+
'optin_website' => site_url(),
|
438 |
+
'share_essential' => $shareEssentials
|
439 |
+
])
|
440 |
+
]);
|
441 |
}
|
442 |
|
443 |
public function getGmailAuthUrl(Request $request)
|
448 |
$clientId = Arr::get($connection, 'client_id');
|
449 |
$clientSecret = Arr::get($connection, 'client_secret');
|
450 |
|
451 |
+
if (Arr::get($connection, 'key_store') == 'wp_config') {
|
452 |
+
if (defined('FLUENTMAIL_GMAIL_CLIENT_ID')) {
|
453 |
$clientId = FLUENTMAIL_GMAIL_CLIENT_ID;
|
454 |
} else {
|
455 |
return $this->sendError([
|
458 |
]
|
459 |
]);
|
460 |
}
|
461 |
+
if (defined('FLUENTMAIL_GMAIL_CLIENT_SECRET')) {
|
462 |
$clientSecret = FLUENTMAIL_GMAIL_CLIENT_SECRET;
|
463 |
} else {
|
464 |
return $this->sendError([
|
469 |
}
|
470 |
}
|
471 |
|
472 |
+
if (!$clientId) {
|
473 |
return $this->sendError([
|
474 |
'client_id' => [
|
475 |
'required' => 'Please provide application client id'
|
477 |
]);
|
478 |
}
|
479 |
|
480 |
+
if (!$clientSecret) {
|
481 |
return $this->sendError([
|
482 |
'client_secret' => [
|
483 |
'required' => 'Please provide application client secret'
|
502 |
|
503 |
delete_option('_fluentsmtp_intended_outlook_info');
|
504 |
|
505 |
+
if (Arr::get($connection, 'key_store') == 'wp_config') {
|
506 |
+
if (defined('FLUENTMAIL_OUTLOOK_CLIENT_ID')) {
|
507 |
$clientId = FLUENTMAIL_OUTLOOK_CLIENT_ID;
|
508 |
} else {
|
509 |
return $this->sendError([
|
512 |
]
|
513 |
]);
|
514 |
}
|
515 |
+
if (defined('FLUENTMAIL_OUTLOOK_CLIENT_SECRET')) {
|
516 |
$clientSecret = FLUENTMAIL_OUTLOOK_CLIENT_SECRET;
|
517 |
} else {
|
518 |
return $this->sendError([
|
523 |
}
|
524 |
} else {
|
525 |
update_option('_fluentsmtp_intended_outlook_info', [
|
526 |
+
'client_id' => $clientId,
|
527 |
'client_secret' => $clientSecret
|
528 |
]);
|
529 |
}
|
530 |
|
531 |
+
if (!$clientId) {
|
532 |
return $this->sendError([
|
533 |
'client_id' => [
|
534 |
'required' => 'Please provide application client id'
|
536 |
]);
|
537 |
}
|
538 |
|
539 |
+
if (!$clientSecret) {
|
540 |
return $this->sendError([
|
541 |
'client_secret' => [
|
542 |
'required' => 'Please provide application client secret'
|
565 |
|
566 |
$settings = Arr::only($settings, ['enabled', 'notify_email', 'notify_days']);
|
567 |
|
568 |
+
$settings['notify_email'] = sanitize_text_field($settings['notify_email']);
|
569 |
+
$settings['enabled'] = sanitize_text_field($settings['enabled']);
|
570 |
|
571 |
$defaults = [
|
572 |
+
'enabled' => 'no',
|
573 |
'notify_email' => '{site_admin}',
|
574 |
+
'notify_days' => ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
575 |
];
|
576 |
|
577 |
$settings = wp_parse_args($settings, $defaults);
|
app/Services/Mailer/Providers/Postmark/Handler.php
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FluentMail\App\Services\Mailer\Providers\Postmark;
|
4 |
+
|
5 |
+
use FluentMail\Includes\Support\Arr;
|
6 |
+
use FluentMail\App\Services\Mailer\BaseHandler;
|
7 |
+
|
8 |
+
class Handler extends BaseHandler
|
9 |
+
{
|
10 |
+
use ValidatorTrait;
|
11 |
+
|
12 |
+
protected $emailSentCode = 200;
|
13 |
+
|
14 |
+
protected $url = 'https://api.postmarkapp.com/email';
|
15 |
+
|
16 |
+
public function send()
|
17 |
+
{
|
18 |
+
if ($this->preSend() && $this->phpMailer->preSend()) {
|
19 |
+
return $this->postSend();
|
20 |
+
}
|
21 |
+
|
22 |
+
return $this->handleResponse(new \WP_Error(423, 'Something went wrong!', []));
|
23 |
+
}
|
24 |
+
|
25 |
+
public function postSend()
|
26 |
+
{
|
27 |
+
$body = [
|
28 |
+
'From' => $this->getParam('from'),
|
29 |
+
'To' => $this->getTo(),
|
30 |
+
'Subject' => $this->getSubject(),
|
31 |
+
'MessageStream' => $this->getSetting('message_stream', 'outbound')
|
32 |
+
];
|
33 |
+
|
34 |
+
if ($replyTo = $this->getReplyTo()) {
|
35 |
+
$body['ReplyTo'] = $replyTo;
|
36 |
+
}
|
37 |
+
|
38 |
+
if ($bcc = $this->getBlindCarbonCopy()) {
|
39 |
+
$body['Bcc'] = $bcc;
|
40 |
+
}
|
41 |
+
|
42 |
+
if ($cc = $this->getCarbonCopy()) {
|
43 |
+
$body['Cc'] = $cc;
|
44 |
+
}
|
45 |
+
|
46 |
+
if ($this->getHeader('content-type') == 'text/html') {
|
47 |
+
$body['HtmlBody'] = $this->getParam('message');
|
48 |
+
|
49 |
+
if ($this->getSetting('track_opens') == 'yes') {
|
50 |
+
$body['TrackOpens'] = true;
|
51 |
+
}
|
52 |
+
|
53 |
+
if ($this->getSetting('track_links') == 'yes') {
|
54 |
+
$body['TrackLinks'] = 'HtmlOnly';
|
55 |
+
}
|
56 |
+
|
57 |
+
} else {
|
58 |
+
$body['TextBody'] = $this->getParam('message');
|
59 |
+
}
|
60 |
+
|
61 |
+
if (!empty($this->getParam('attachments'))) {
|
62 |
+
$body['Attachments'] = $this->getAttachments();
|
63 |
+
}
|
64 |
+
|
65 |
+
// Handle apostrophes in email address From names by escaping them for the Postmark API.
|
66 |
+
$from_regex = "/(\"From\": \"[a-zA-Z\\d]+)*[\\\\]{2,}'/";
|
67 |
+
|
68 |
+
$args = array(
|
69 |
+
'headers' => $this->getRequestHeaders(),
|
70 |
+
'body' => preg_replace($from_regex, "'", wp_json_encode($body), 1),
|
71 |
+
);
|
72 |
+
|
73 |
+
$response = wp_remote_post($this->url, $args);
|
74 |
+
|
75 |
+
if (is_wp_error($response)) {
|
76 |
+
$returnResponse = new \WP_Error($response->get_error_code(), $response->get_error_message(), $response->get_error_messages());
|
77 |
+
} else {
|
78 |
+
$responseBody = wp_remote_retrieve_body($response);
|
79 |
+
$responseCode = wp_remote_retrieve_response_code($response);
|
80 |
+
|
81 |
+
$isOKCode = $responseCode == $this->emailSentCode;
|
82 |
+
|
83 |
+
$responseBody = \json_decode($responseBody, true);
|
84 |
+
|
85 |
+
if ($isOKCode) {
|
86 |
+
$returnResponse = [
|
87 |
+
'id' => Arr::get($responseBody, 'MessageID'),
|
88 |
+
'message' => Arr::get($responseBody, 'Message')
|
89 |
+
];
|
90 |
+
} else {
|
91 |
+
$returnResponse = new \WP_Error($responseCode, Arr::get($responseBody, 'Message', 'Unknown Error'), $responseBody);
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
$this->response = $returnResponse;
|
96 |
+
|
97 |
+
return $this->handleResponse($this->response);
|
98 |
+
}
|
99 |
+
|
100 |
+
public function setSettings($settings)
|
101 |
+
{
|
102 |
+
if ($settings['key_store'] == 'wp_config') {
|
103 |
+
$settings['api_key'] = defined('FLUENTMAIL_POSTMARK_API_KEY') ? FLUENTMAIL_POSTMARK_API_KEY : '';
|
104 |
+
}
|
105 |
+
|
106 |
+
$this->settings = $settings;
|
107 |
+
return $this;
|
108 |
+
}
|
109 |
+
|
110 |
+
protected function getReplyTo()
|
111 |
+
{
|
112 |
+
if ($replyTo = $this->getParam('headers.reply-to')) {
|
113 |
+
$replyTo = reset($replyTo);
|
114 |
+
return $replyTo['email'];
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
protected function getTo()
|
119 |
+
{
|
120 |
+
return $this->getRecipients($this->getParam('to'));
|
121 |
+
}
|
122 |
+
|
123 |
+
protected function getCarbonCopy()
|
124 |
+
{
|
125 |
+
return $this->getRecipients($this->getParam('headers.cc'));
|
126 |
+
}
|
127 |
+
|
128 |
+
protected function getBlindCarbonCopy()
|
129 |
+
{
|
130 |
+
return $this->getRecipients($this->getParam('headers.bcc'));
|
131 |
+
}
|
132 |
+
|
133 |
+
protected function getRecipients($recipients)
|
134 |
+
{
|
135 |
+
$array = array_map(function ($recipient) {
|
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 getAttachments()
|
145 |
+
{
|
146 |
+
$data = [];
|
147 |
+
|
148 |
+
foreach ($this->getParam('attachments') as $attachment) {
|
149 |
+
$file = false;
|
150 |
+
|
151 |
+
try {
|
152 |
+
if (is_file($attachment[0]) && is_readable($attachment[0])) {
|
153 |
+
$fileName = basename($attachment[0]);
|
154 |
+
$file = file_get_contents($attachment[0]);
|
155 |
+
}
|
156 |
+
} catch (\Exception $e) {
|
157 |
+
$file = false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if ($file === false) {
|
161 |
+
continue;
|
162 |
+
}
|
163 |
+
|
164 |
+
$data[] = [
|
165 |
+
'Name' => $fileName,
|
166 |
+
'Content' => base64_encode($file),
|
167 |
+
'ContentType' => $this->determineMimeContentRype($attachment[0])
|
168 |
+
];
|
169 |
+
}
|
170 |
+
|
171 |
+
return $data;
|
172 |
+
}
|
173 |
+
|
174 |
+
protected function getRequestHeaders()
|
175 |
+
{
|
176 |
+
return [
|
177 |
+
'Accept' => 'application/json',
|
178 |
+
'Content-Type' => 'application/json',
|
179 |
+
'X-Postmark-Server-Token' => $this->getSetting('api_key'),
|
180 |
+
];
|
181 |
+
}
|
182 |
+
|
183 |
+
protected function determineMimeContentRype($filename)
|
184 |
+
{
|
185 |
+
if (function_exists('mime_content_type')) {
|
186 |
+
return mime_content_type($filename);
|
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 |
+
}
|
app/Services/Mailer/Providers/Postmark/ValidatorTrait.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FluentMail\App\Services\Mailer\Providers\Postmark;
|
4 |
+
|
5 |
+
use FluentMail\Includes\Support\Arr;
|
6 |
+
use FluentMail\App\Services\Mailer\ValidatorTrait as BaseValidatorTrait;
|
7 |
+
|
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') {
|
19 |
+
if (! Arr::get($connection, 'api_key')) {
|
20 |
+
$errors['api_key']['required'] = __('Api key is required.', 'fluent-smtp');
|
21 |
+
}
|
22 |
+
} else if($keyStoreType == 'wp_config') {
|
23 |
+
if(!defined('FLUENTMAIL_POSTMARK_API_KEY') || !FLUENTMAIL_POSTMARK_API_KEY) {
|
24 |
+
$errors['api_key']['required'] = __('Please define FLUENTMAIL_POSTMARK_API_KEY in wp-config.php file.', 'fluent-smtp');
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
if ($errors) {
|
29 |
+
$this->throwValidationException($errors);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
app/Services/Mailer/Providers/config.php
CHANGED
@@ -75,14 +75,14 @@ return [
|
|
75 |
'image' => fluentMailAssetUrl('images/mailgun.svg'),
|
76 |
'provider' => 'Mailgun',
|
77 |
'options' => [
|
78 |
-
'sender_name'
|
79 |
-
'sender_email'
|
80 |
-
'force_from_name'
|
81 |
-
'return_path'
|
82 |
-
'api_key'
|
83 |
-
'domain_name'
|
84 |
-
'key_store'
|
85 |
-
'region'
|
86 |
],
|
87 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-mailgun-in-fluent-smtp-to-send-emails/">Read the documentation</a> for how to configure Mailgun with FluentSMTP.'
|
88 |
],
|
@@ -92,11 +92,11 @@ return [
|
|
92 |
'image' => fluentMailAssetUrl('images/sendgrid.svg'),
|
93 |
'provider' => 'SendGrid',
|
94 |
'options' => [
|
95 |
-
'sender_name'
|
96 |
-
'sender_email'
|
97 |
-
'force_from_name'
|
98 |
-
'api_key'
|
99 |
-
'key_store'
|
100 |
],
|
101 |
'note' => '<a href="https://fluentsmtp.com/docs/set-up-the-sendgrid-driver-in-fluent-smtp/">Read the documentation</a> for how to configure sendgrid with FluentSMTP.'
|
102 |
],
|
@@ -106,11 +106,11 @@ return [
|
|
106 |
'image' => fluentMailAssetUrl('images/sendinblue.svg'),
|
107 |
'provider' => 'SendInBlue',
|
108 |
'options' => [
|
109 |
-
'sender_name'
|
110 |
-
'sender_email'
|
111 |
-
'force_from_name'
|
112 |
-
'api_key'
|
113 |
-
'key_store'
|
114 |
],
|
115 |
'note' => '<a href="https://fluentsmtp.com/docs/setting-up-sendinblue-mailer-in-fluent-smtp/">Read the documentation</a> for how to configure Sendinblue with FluentSMTP.'
|
116 |
],
|
@@ -120,11 +120,11 @@ return [
|
|
120 |
'image' => fluentMailAssetUrl('images/sparkpost.png'),
|
121 |
'provider' => 'SparkPost',
|
122 |
'options' => [
|
123 |
-
'sender_name'
|
124 |
-
'sender_email'
|
125 |
-
'force_from_name'
|
126 |
-
'api_key'
|
127 |
-
'key_store'
|
128 |
],
|
129 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-sparkpost-in-fluent-smtp-to-send-emails/">Read the documentation</a> for how to configure SparkPost with FluentSMTP.'
|
130 |
],
|
@@ -134,14 +134,31 @@ return [
|
|
134 |
'image' => fluentMailAssetUrl('images/pepipost-logo.png'),
|
135 |
'provider' => 'PepiPost',
|
136 |
'options' => [
|
137 |
-
'sender_name'
|
138 |
-
'sender_email'
|
139 |
-
'force_from_name'
|
140 |
-
'api_key'
|
141 |
-
'key_store'
|
142 |
],
|
143 |
'note' => '<a href="https://fluentsmtp.com/docs/set-up-the-pepipost-mailer-in-fluent-smtp/">Read the documentation</a> for how to configure Pepipost with FluentSMTP.'
|
144 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
'gmail' => [
|
146 |
'key' => 'gmail',
|
147 |
'title' => __('Gmail/Google Workspace', 'fluent-smtp'),
|
75 |
'image' => fluentMailAssetUrl('images/mailgun.svg'),
|
76 |
'provider' => 'Mailgun',
|
77 |
'options' => [
|
78 |
+
'sender_name' => '',
|
79 |
+
'sender_email' => '',
|
80 |
+
'force_from_name' => 'no',
|
81 |
+
'return_path' => 'yes',
|
82 |
+
'api_key' => '',
|
83 |
+
'domain_name' => '',
|
84 |
+
'key_store' => 'db',
|
85 |
+
'region' => 'us'
|
86 |
],
|
87 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-mailgun-in-fluent-smtp-to-send-emails/">Read the documentation</a> for how to configure Mailgun with FluentSMTP.'
|
88 |
],
|
92 |
'image' => fluentMailAssetUrl('images/sendgrid.svg'),
|
93 |
'provider' => 'SendGrid',
|
94 |
'options' => [
|
95 |
+
'sender_name' => '',
|
96 |
+
'sender_email' => '',
|
97 |
+
'force_from_name' => 'no',
|
98 |
+
'api_key' => '',
|
99 |
+
'key_store' => 'db'
|
100 |
],
|
101 |
'note' => '<a href="https://fluentsmtp.com/docs/set-up-the-sendgrid-driver-in-fluent-smtp/">Read the documentation</a> for how to configure sendgrid with FluentSMTP.'
|
102 |
],
|
106 |
'image' => fluentMailAssetUrl('images/sendinblue.svg'),
|
107 |
'provider' => 'SendInBlue',
|
108 |
'options' => [
|
109 |
+
'sender_name' => '',
|
110 |
+
'sender_email' => '',
|
111 |
+
'force_from_name' => 'no',
|
112 |
+
'api_key' => '',
|
113 |
+
'key_store' => 'db'
|
114 |
],
|
115 |
'note' => '<a href="https://fluentsmtp.com/docs/setting-up-sendinblue-mailer-in-fluent-smtp/">Read the documentation</a> for how to configure Sendinblue with FluentSMTP.'
|
116 |
],
|
120 |
'image' => fluentMailAssetUrl('images/sparkpost.png'),
|
121 |
'provider' => 'SparkPost',
|
122 |
'options' => [
|
123 |
+
'sender_name' => '',
|
124 |
+
'sender_email' => '',
|
125 |
+
'force_from_name' => 'no',
|
126 |
+
'api_key' => '',
|
127 |
+
'key_store' => 'db'
|
128 |
],
|
129 |
'note' => '<a href="https://fluentsmtp.com/docs/configure-sparkpost-in-fluent-smtp-to-send-emails/">Read the documentation</a> for how to configure SparkPost with FluentSMTP.'
|
130 |
],
|
134 |
'image' => fluentMailAssetUrl('images/pepipost-logo.png'),
|
135 |
'provider' => 'PepiPost',
|
136 |
'options' => [
|
137 |
+
'sender_name' => '',
|
138 |
+
'sender_email' => '',
|
139 |
+
'force_from_name' => 'no',
|
140 |
+
'api_key' => '',
|
141 |
+
'key_store' => 'db'
|
142 |
],
|
143 |
'note' => '<a href="https://fluentsmtp.com/docs/set-up-the-pepipost-mailer-in-fluent-smtp/">Read the documentation</a> for how to configure Pepipost with FluentSMTP.'
|
144 |
],
|
145 |
+
'postmark' => [
|
146 |
+
'key' => 'postmark',
|
147 |
+
'title' => __('Postmark', 'fluent-smtp'),
|
148 |
+
'image' => fluentMailAssetUrl('images/postmark.svg'),
|
149 |
+
'provider' => 'Postmark',
|
150 |
+
'options' => [
|
151 |
+
'sender_name' => '',
|
152 |
+
'sender_email' => '',
|
153 |
+
'force_from_name' => 'no',
|
154 |
+
'track_opens' => 'no',
|
155 |
+
'track_links' => 'no',
|
156 |
+
'api_key' => '',
|
157 |
+
'message_stream' => 'outbound',
|
158 |
+
'key_store' => 'db'
|
159 |
+
],
|
160 |
+
'note' => '<a href="https://fluentsmtp.com/docs/configure-postmark-in-fluent-smtp-to-send-emails/">Read the documentation</a> for how to configure Postmark with FluentSMTP.'
|
161 |
+
],
|
162 |
'gmail' => [
|
163 |
'key' => 'gmail',
|
164 |
'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}.fss_connection_wizard .con_outlook.is-active .el-radio-button__inner{background:#eff4f7!important;border-color:#ea4435;box-shadow:-1px 0 0 0 #ea4435}.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}.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 r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),o=n(401),i=n(7667),s=n(1327),a=n(1866);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,t.exports=l},8407:(t,e,n)=>{var r=n(7040),o=n(4125),i=n(2117),s=n(7529),a=n(4705);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,t.exports=l},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),o=n(1285),i=n(6e3),s=n(9916),a=n(5265);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,t.exports=l},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),o=n(619),i=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},6384:(t,e,n)=>{var r=n(8407),o=n(7465),i=n(3779),s=n(7599),a=n(4758),l=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}},4636:(t,e,n)=>{var r=n(2545),o=n(5694),i=n(1469),s=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),u=!n&&o(t),p=!n&&!u&&s(t),f=!n&&!u&&!p&&l(t),d=n||u||p||f,_=d?r(t.length,String):[],v=_.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||p&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||a(h,v))||_.push(h);return _}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4311:(t,e,n)=>{var r=n(9877);t.exports=function(t){var e=t.length;return e?t[r(0,e-1)]:void 0}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},9881:(t,e,n)=>{var r=n(7816),o=n(9291)(r);t.exports=o},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),o=n(3674);t.exports=function(t,e){return t&&r(t,e,o)}},7786:(t,e,n)=>{var r=n(1811),o=n(327);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},8866:(t,e,n)=>{var r=n(2488),o=n(1469);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},4239:(t,e,n)=>{var r=n(2705),o=n(9607),i=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},9454:(t,e,n)=>{var r=n(4239),o=n(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),o=n(7005);t.exports=function t(e,n,i,s,a){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,s,t,a))}},2492:(t,e,n)=>{var r=n(6384),o=n(7114),i=n(8351),s=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),p="[object Arguments]",f="[object Array]",d="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,h,m){var g=l(t),y=l(e),b=g?f:a(t),w=y?f: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 m||(m=new r),g||u(t)?o(t,e,n,v,h,m):i(t,e,b,n,v,h,m);if(!(1&n)){var $=k&&_.call(t,"__wrapped__"),C=x&&_.call(e,"__wrapped__");if($||C){var P=$?t.value():t,E=C?e.value():e;return m||(m=new r),h(P,E,n,v,m)}}return!!S&&(m||(m=new r),s(t,e,n,v,h,m))}},2958:(t,e,n)=>{var r=n(6384),o=n(939);t.exports=function(t,e,n,i){var s=n.length,a=s,l=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var u=(c=n[s])[0],p=t[u],f=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var d=new r;if(i)var _=i(p,f,u,t,e,d);if(!(void 0===_?o(f,p,3,i,d):_))return!1}}return!0}},8458:(t,e,n)=>{var r=n(3560),o=n(5346),i=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:a).test(s(t))}},8749:(t,e,n)=>{var r=n(4239),o=n(1780),i=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[r(t)]}},7206:(t,e,n)=>{var r=n(1573),o=n(6432),i=n(6557),s=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):r(t):a(t)}},280:(t,e,n)=>{var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},1573:(t,e,n)=>{var r=n(2958),o=n(1499),i=n(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),o=n(7361),i=n(9095),s=n(5403),a=n(9162),l=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&a(e)?l(c(t),e):function(n){var s=o(n,t);return void 0===s&&s===e?i(n,t):r(e,s,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},9877:t=>{var e=Math.floor,n=Math.random;t.exports=function(t,r){return t+e(n()*(r-t+1))}},4992:(t,e,n)=>{var r=n(4311),o=n(2628);t.exports=function(t){return r(o(t))}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),o=n(9932),i=n(1469),s=n(3448),a=r?r.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(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 r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),o=n(5403),i=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(s(t))}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,s=e?i:-1,a=Object(n);(e?s--:++s<i)&&!1!==o(a[s],s,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++o];if(!1===n(i[l],l,i))break}return e}}},7114:(t,e,n)=>{var r=n(8668),o=n(2908),i=n(4757);t.exports=function(t,e,n,s,a,l){var c=1&n,u=t.length,p=e.length;if(u!=p&&!(c&&p>u))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var _=-1,v=!0,h=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++_<u;){var m=t[_],g=e[_];if(s)var y=c?s(g,m,_,e,t,l):s(m,g,_,t,e,l);if(void 0!==y){if(y)continue;v=!1;break}if(h){if(!o(e,(function(t,e){if(!i(h,e)&&(m===t||a(m,t,n,s,l)))return h.push(e)}))){v=!1;break}}else if(m!==g&&!a(m,g,n,s,l)){v=!1;break}}return l.delete(t),l.delete(e),v}},8351:(t,e,n)=>{var r=n(2705),o=n(1149),i=n(7813),s=n(7114),a=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,p,f){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 o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 _=1&r;if(d||(d=l),t.size!=e.size&&!_)return!1;var v=f.get(t);if(v)return v==e;r|=2,f.set(t,e);var h=s(d(t),d(e),r,c,p,f);return f.delete(t),h;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,s,a){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var p=u;p--;){var f=c[p];if(!(l?f in e:o.call(e,f)))return!1}var d=a.get(t),_=a.get(e);if(d&&_)return d==e&&_==t;var v=!0;a.set(t,e),a.set(e,t);for(var h=l;++p<u;){var m=t[f=c[p]],g=e[f];if(i)var y=l?i(g,m,f,e,t,a):i(m,g,f,t,e,a);if(!(void 0===y?m===g||s(m,g,n,i,a):y)){v=!1;break}h||(h="constructor"==f)}if(v&&!h){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 r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),o=n(9551),i=n(3674);t.exports=function(t){return r(t,i,o)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),o=n(3674);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,r(s)]}return e}},852:(t,e,n)=>{var r=n(8458),o=n(7801);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},9607:(t,e,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[a]=n:delete t[a]),o}},9551:(t,e,n)=>{var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},4160:(t,e,n)=>{var r=n(8552),o=n(7071),i=n(3818),s=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",_="[object DataView]",v=c(r),h=c(o),m=c(i),g=c(s),y=c(a),b=l;(r&&b(new r(new ArrayBuffer(1)))!=_||o&&b(new o)!=u||i&&b(i.resolve())!=p||s&&b(new s)!=f||a&&b(new a)!=d)&&(b=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return _;case h:return u;case m:return p;case g:return f;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 r=n(1811),o=n(5694),i=n(1469),s=n(5776),a=n(1780),l=n(327);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,p=!1;++c<u;){var f=l(e[c]);if(!(p=null!=t&&n(t,f)))break;t=t[f]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&a(u)&&s(f,u)&&(i(t)||o(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(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 r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},5403:(t,e,n)=>{var r=n(1469),o=n(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(s.test(t)||!i.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 r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i 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 r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7529:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),o=n(8407),i=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,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 r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.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 r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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 r=n(8407);t.exports=function(){this.__data__=new r,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 r=n(8407),o=n(7071),i=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(t,e),this.size=n.size,this}},5514:(t,e,n)=>{var r=n(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=s},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(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 r=n(4963),o=n(760),i=n(7206),s=n(1469);t.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},4486:(t,e,n)=>{var r=n(7412),o=n(9881),i=n(4290),s=n(1469);t.exports=function(t,e){return(s(t)?r:o)(t,i(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},9095:(t,e,n)=>{var r=n(13),o=n(222);t.exports=function(t,e){return null!=t&&o(t,e,r)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var r=n(9454),o=n(7005),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),o=n(1780);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),o=n(5062),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;t.exports=l},1609:(t,e,n)=>{var r=n(280),o=n(4160),i=n(5694),s=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)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var r=n(4239),o=n(3218);t.exports=function(t){if(!o(t))return!1;var e=r(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 r=n(4239),o=n(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),o=n(7518),i=n(1167),s=i&&i.isTypedArray,a=s?o(s):r;t.exports=a},3674:(t,e,n)=>{var r=n(4636),o=n(280),i=n(8612);t.exports=function(t){return i(t)?r(t):o(t)}},8306:(t,e,n)=>{var r=n(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},9601:(t,e,n)=>{var r=n(371),o=n(9152),i=n(5403),s=n(327);t.exports=function(t){return i(t)?r(s(t)):o(t)}},5534:(t,e,n)=>{var r=n(4311),o=n(4992),i=n(1469);t.exports=function(t){return(i(t)?r:o)(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),o=n(3674);t.exports=function(t){return null==t?[]:r(t,o(t))}},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),s=new E(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===_){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=$(s,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(r===p)throw r=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=u(t,e,n);if("normal"===l.type){if(r=n.done?_:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=_,n.method="throw",n.arg=l.arg)}}}(t,n,s),i}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",f="suspendedYield",d="executing",_="completed",v={};function h(){}function m(){}function g(){}var y={};l(y,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,i)&&(y=w);var k=g.prototype=h.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(o,i,s,a){var l=u(t[o],t,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(p).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,a)}))}a(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function $(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,$(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 o=u(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:e,done:!0}}return m.prototype=g,l(k,"constructor",g),l(g,"constructor",m),m.displayName=l(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"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,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new S(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(k),l(k,a,"Generator"),l(k,i,(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 r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.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 o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(s)},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 r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"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)}},8161:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const r={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 o=(0,n(1900).Z)(r,(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.fullPath})],1)])}),[],!1,null,null,null).exports},1900:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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:()=>r})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={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 o=n(1900);const i=(0,o.Z)(r,(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 s={name:"Error",props:["error"]};const a=(0,o.Z)(s,(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:i,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,o.Z)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Mailgun API Settings")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"key"}},[t._v("\n Private API Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get an API Key from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/account/security/api_keys"}},[t._v("Get a Private API Key.")])])],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"domain"}},[n("label",{attrs:{for:"domain"}},[t._v("\n Domain Name\n ")]),t._v(" "),n("el-input",{attrs:{id:"domain"},model:{value:t.connection.domain_name,callback:function(e){t.$set(t.connection,"domain_name",e)},expression:"connection.domain_name"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get a Domain Name from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/domains"}},[t._v("\n Get a Domain Name.\n ")])])],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_MAILGUN_API_KEY', '********************' );\ndefine( 'FLUENTMAIL_MAILGUN_DOMAIN', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{staticStyle:{"vertical-align":"baseline"},attrs:{for:"region"}},[t._v("\n Select Region \n ")]),t._v(" "),n("el-radio",{attrs:{label:"us"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("US")]),t._v(" "),n("el-radio",{attrs:{label:"eu"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("EU")]),t._v(" "),n("el-alert",{attrs:{closable:!1}},[n("span",[t._v("\n Define which endpoint you want to use for sending messages.\n ")]),t._v(" "),n("span",[t._v("\n If you are operating under EU laws, you may be required to use EU region.\n "),n("a",{attrs:{target:"_blank",href:"https://www.mailgun.com/regions"}},[t._v("More information")]),t._v("\n on Mailgun.com.\n ")])])],1)],1)}),[],!1,null,null,null).exports;const u={name:"PepiPost",props:["connection","errors"],components:{InputPassword:i,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const p=(0,o.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 f={name:"SendGrid",props:["connection","errors"],components:{InputPassword:i,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const d=(0,o.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("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 _={name:"SendInBlue",props:["connection","errors"],components:{InputPassword:i,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const v=(0,o.Z)(_,(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 h={name:"AmazonSes",props:["connection","provider","errors"],components:{InputPassword:i,Error:a},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.access_key="",this.connection.secret_key="")}},data:function(){return{}}};const m=(0,o.Z)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"access_key"}},[n("label",{attrs:{for:"access_key"}},[t._v("\n Access Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"access_key"},model:{value:t.connection.access_key,callback:function(e){t.$set(t.connection,"access_key",e)},expression:"connection.access_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"ses-key"}},[t._v("\n Secret Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"ses-key"},model:{value:t.connection.secret_key,callback:function(e){t.$set(t.connection,"secret_key",e)},expression:"connection.secret_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{for:"ses-region"}},[t._v("\n Region "),n("span",{staticClass:"small-help-text"},[t._v("(Default: US East (N. Virginia)/us-east-1)")])]),t._v(" "),n("el-select",{attrs:{id:"ses-region",placeholder:"Select Region"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},t._l(t.provider.regions,(function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),n("span",{staticClass:"el-form-item__error",staticStyle:{"margin-top":"10px"}},[t._v(t._s(t.errors.errors.api_error))])],1)],1)}),[],!1,null,null,null).exports;const g={name:"SparkPost",props:["connection","errors"],components:{InputPassword:i,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const y=(0,o.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:i,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,o.Z)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"host"}},[t._v("\n SMTP Host\n ")]),t._v(" "),n("el-input",{attrs:{id:"host"},model:{value:t.connection.host,callback:function(e){t.$set(t.connection,"host",e)},expression:"connection.host"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("host")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"port"}},[t._v("\n SMTP Port\n ")]),t._v(" "),n("el-input",{attrs:{id:"port"},model:{value:t.connection.port,callback:function(e){t.$set(t.connection,"port",e)},expression:"connection.port"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("port")}})],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticStyle:{margin:"20px 0"}},[n("label",[t._v("\n Encryption\n ")]),t._v(" "),n("div",{staticClass:"small-help-text",staticStyle:{display:"inline-block"}},[t._v("\n (Select "),n("strong",[t._v("ssl")]),t._v(" on port "),n("strong",[t._v("465")]),t._v(",\n or "),n("strong",[t._v("tls")]),t._v(" on port "),n("strong",[t._v("25")]),t._v(" or "),n("strong",[t._v("587")]),t._v(")\n ")]),t._v(" "),n("div",{staticStyle:{display:"inline-block","margin-left":"20px"}},[n("el-radio",{attrs:{label:"none"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"ssl"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("SSL")]),t._v(" "),n("el-radio",{attrs:{label:"tls"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("TLS")])],1)])],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Use Auto TLS\n ")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auto_tls,callback:function(e){t.$set(t.connection,"auto_tls",e)},expression:"connection.auto_tls"}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (By default, the TLS encryption would be used if the server supports it. On some srvers, it could be a problem and may need to be disabled.)\n ")])],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Authentication\n ")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auth,callback:function(e){t.$set(t.connection,"auth",e)},expression:"connection.auth"}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (If you need to provide your SMTP server's credentials (username and password) enable the authentication, in most cases this is required.)\n ")])],1)],1)],1),t._v(" "),"yes"==t.connection.auth?[n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{class:{disabled:"no"===t.connection.auth},attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"username"}},[t._v("\n SMTP Username\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"username",disabled:t.isDisabledUsername},model:{value:t.connection.username,callback:function(e){t.$set(t.connection,"username",e)},expression:"connection.username"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"smtp-password"}},[t._v("\n SMTP Password\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"smtp-password",disabled:t.isDisabledPassword},model:{value:t.connection.password,callback:function(e){t.$set(t.connection,"password",e)},expression:"connection.password"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP_USERNAME', '********************' );\ndefine( 'FLUENTMAIL_SMTP_PASSWORD', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;const k={name:"Gamil",props:["connection","errors"],components:{InputPassword:i,Error:a},data:function(){return{app_ready:!1,gettingRedirect:!1,redirectUrl:""}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.client_id="",this.connection.client_secret="")}},methods:{redirectToGoogle:function(){var t=this;this.gettingRedirect=!0,this.$post("settings/gmail_auth_url",{connection:this.connection}).then((function(e){t.redirectUrl=e.data.auth_url,window.open(e.data.auth_url,"_blank")})).catch((function(e){t.errors.record(e.responseJSON.data)})).always((function(){t.gettingRedirect=!1}))}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const x=(0,o.Z)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Gmail/Google Workspace API Settings")]),t._v(" "),t._m(0),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_GMAIL_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_GMAIL_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Gmail/Google Workspace Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToGoogle()}}},[t._v("Authenticate with Google & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/connect-gmail-or-google-workspace-emails-with-fluentsmtp/"}},[t._v("check the documentation first")]),t._v(" or "),n("b",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.youtube.com/watch?v=_d78bscNaX8"}},[t._v("Watch the video tutorial")])]),t._v(" to create API keys at Google")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Google to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const S={name:"OutLook",props:["connection","provider","errors"],components:{InputPassword:i,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 $=(0,o.Z)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Outlook/Office365 API Settings")]),t._v(" "),t._m(0),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_OUTLOOK_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_OUTLOOK_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",[t._v("App Callback URL (Use this URL to your APP)")]),t._v(" "),n("el-input",{attrs:{readonly:!0},model:{value:t.provider.callback_url,callback:function(e){t.$set(t.provider,"callback_url",e)},expression:"provider.callback_url"}})],1),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Outlook/Office365 Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToMS()}}},[t._v("Authenticate with Office365 & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/setup-outlook-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 Office365 to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}const P=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,r;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={}}}])&&C(e.prototype,n),r&&C(e,r),t}(),E={name:"ConnectionWizard",props:["connection","is_new","providers","connection_key"],components:{ses:m,mailgun:c,pepipost:p,sendgrid:d,sendinblue:v,sparkpost:y,smtp:w,gmail:x,outlook:$,Error:a},data:function(){return{saving:!1,errors:new P,api_error:"",has_error:!1}},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 A=(0,o.Z)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_connection_wizard"},[n("el-form",{attrs:{data:t.connection,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Connection Provider"}},[n("el-radio-group",{staticClass:"fss_connections",model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(t,e){return n("el-radio-button",{key:e,class:"con_"+e,attrs:{label:e}},[n("img",{staticStyle:{"max-width":"80px",height:"32px"},attrs:{title:t.title,src:t.image}})])})),1)],1),t._v(" "),t.connection.provider?[n("div",{staticClass:"fss_config_section"},[n("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sender Settings")))]),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Email")}},[n("error",{attrs:{error:t.errors.get("sender_email")}}),t._v(" "),n("el-input",{attrs:{type:"email",placeholder:t.$t("From Email")},model:{value:t.connection.sender_email,callback:function(e){t.$set(t.connection,"sender_email",e)},expression:"connection.sender_email"}})],1),t._v(" "),null!=t.connection.force_from_email?n("div",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_email,callback:function(e){t.$set(t.connection,"force_from_email",e)},expression:"connection.force_from_email"}},[t._v("\n "+t._s(t.$t("Force From Email (Recommended Settings: Enable)"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("from_email_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e(),t._v(" "),null!=t.connection.return_path?n("div",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.return_path,callback:function(e){t.$set(t.connection,"return_path",e)},expression:"connection.return_path"}},[t._v("\n "+t._s(t.$t("Set the return-path to match the From Email"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n Return Path indicates where non-delivery receipts - or bounce messages -"),n("br"),t._v("\n are to be sent. If unchecked, bounce messages may be lost. With this enabled,"),n("br"),t._v('\n you’ll be emailed using "From Email" if any messages bounce as a result of issues with the recipient’s email.\n ')]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Name")}},[n("el-input",{attrs:{type:"text",placeholder:t.$t("From Name")},model:{value:t.connection.sender_name,callback:function(e){t.$set(t.connection,"sender_name",e)},expression:"connection.sender_name"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("sender_name")}})],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_name,callback:function(e){t.$set(t.connection,"force_from_name",e)},expression:"connection.force_from_name"}},[t._v("\n "+t._s(t.$t("Force Sender Name"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("force_sender_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1),t._v(" "),"default"!=t.connection.provider?n("div",{staticClass:"fss_config_section"},[n(t.connection.provider,{tag:"component",attrs:{errors:t.errors,connection:t.connection,provider:t.providers[t.connection.provider]}})],1):t._e(),t._v(" "),t.providers[t.connection.provider].note?n("p",{staticStyle:{padding:"20px 0px"},domProps:{innerHTML:t._s(t.providers[t.connection.provider].note)}}):t._e(),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveConnectionSettings()}}},[t._v(t._s(t.$t("Save Connection Settings")))])]:n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("save_connection_error_1")))])]),t._v(" "),t.saving?n("p",[t._v(t._s(t.$t("Validating Data.Please wait")))]):t._e(),t._v(" "),t.has_error?n("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{type:"error"}},[t._v(t._s(t.$t("save_connection_error_2")))]):t._e()],2)],1)}),[],!1,null,null,null).exports;const O={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)}};var j=n(6073),L=n.n(j);const T={name:"email-sendings",props:["date_range"],components:{GrowthChart:O},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"},r=0;L()(this.stats,(function(o,i){e.data.push(o),t.push(i),r+=parseInt(o),n.data.push(r)})),this.maxCumulativeValue=r+10,this.chartData={labels:t,datasets:[e,n]}}},mounted:function(){this.fetchReport()}};const I=(0,o.Z)(T,(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 F={name:"SubscriberForm",data:function(){return{email:window.FluentMailAdmin.user_email,share_details:"no",saving:!1,subscribed:!1}},methods:{subscribeToEmail:function(){var t=this;if(!this.email)return this.$notify.error("Please Provide an email"),!1;this.saving=!0,this.$post("settings/subscribe",{email:this.email,share_essentials:this.share_details}).then((function(e){t.subscribed=!0,t.appVars.require_optin="no",t.$notify.success(e.data.message)})).catch((function(e){t.$notify.error(e.responseJSON.data.message)})).always((function(){t.saving=!1}))}}};const M=(0,o.Z)(F,(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! You are subscribed. We will only send you updates emails and some tips as monthly basis.")])]):[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-input",{attrs:{placeholder:"Your Email Address"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),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 N={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:A,EmailsChart:I,EmailSubscriber:M,SubscribeDismiss:(0,o.Z)(N,(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 D=(0,o.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 B=n(7757),z=n.n(B);const R={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 q=(0,o.Z)(R,(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 G={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 U=(0,o.Z)(G,(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,r){return n("el-option",{key:r,attrs:{value:r,disabled:t.settings.misc.fallback_connection==r,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,r){return n("el-option",{key:r,attrs:{disabled:t.settings.misc.default_connection==r,value:r,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 K={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 W=(0,o.Z)(K,(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 Z(t,e,n,r,o,i,s){try{var a=t[i](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,o)}const H={name:"connection_details",props:["connection_id"],data:function(){return{loading:!1,connection_content:""}},methods:{fetchDetails:function(){var t,e=this;return(t=z().mark((function t(){var n;return z().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(r,o){var i=t.apply(e,n);function s(t){Z(i,r,o,s,a,"next",t)}function a(t){Z(i,r,o,s,a,"throw",t)}s(void 0)}))})()}},created:function(){this.fetchDetails()}};function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t,e,n,r,o,i,s){try{var a=t[i](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,o)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Q(i,r,o,s,a,"next",t)}function a(t){Q(i,r,o,s,a,"throw",t)}s(void 0)}))}}const tt={name:"Connections",components:{Confirm:q,GeneralSettings:U,ConnectionDetails:(0,o.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_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:W},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return X(z().mark((function n(){var r;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$get("settings");case 2:r=n.sent,t.settings.mappings=r.data.settings.mappings,t.settings.connections=r.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 X(z().mark((function n(){var r;return z().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:r=n.sent,e.settings.connections=r.data.connections,e.settings.misc.default_connection=r.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?J(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(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 et=(0,o.Z)(tt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connections"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Active Email Connections"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:t.addConnection}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("Add Another Connection"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("el-table",{attrs:{stripe:"",border:"",data:t.connections}},[n("el-table-column",{attrs:{label:t.$t("Provider")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.settings.providers[e.row.provider].title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sender_email",label:t.$t("From Email")}}),t._v(" "),n("el-table-column",{attrs:{width:"120",label:t.$t("Actions"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(n){return t.editConnection(e.row)}}}),t._v(" "),n("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-view"},on:{click:function(n){return t.showConnection(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.deleteConnection(e.row)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}])})],1),t._v(" "),t.connections.length>1?n("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{closable:!1,type:"info"}},[t._v("\n "+t._s(t.$t("routing_info"))+"\n ")]):t._e()],1)]),t._v(" "),t.showing_connection?n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Connection Details"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:function(e){t.showing_connection=""}}},[t._v("\n "+t._s(t.$t("Close"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("connection-details",{attrs:{connection_id:t.showing_connection}})],1)]):t._e()]),t._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"general"==t.active_settings},staticStyle:{"margin-bottom":"0px"}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="general"}}},[t._v("\n "+t._s(t.$t("General Settings"))+"\n ")]),t._v(" "),"general"==t.active_settings?n("div",{staticClass:"content"},[n("general-settings")],1):t._e()]),t._v(" "),n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"notification"==t.active_settings}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="notification"}}},[t._v("\n "+t._s(t.$t("Notification Settings"))+"\n ")]),t._v(" "),"notification"==t.active_settings?n("div",{staticClass:"content"},[n("notification-settings")],1):t._e()])])],1)],1)}),[],!1,null,null,null).exports;const nt={name:"Connection",components:{ConnectionWizard:A},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 rt=(0,o.Z)(nt,(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}})],1)])])}),[],!1,null,null,null).exports;const ot={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 it=(0,o.Z)(ot,(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 st={name:"LogFilter",data:function(){return{filterBy:"",filterValue:""}},methods:{applyFilter:function(){this.filterValue&&this.$emit("on-filter",this.filterBy,this.filterValue)},clearFilterValue:function(){this.filterValue=""}},watch:{filterBy:function(t,e){t!==e&&t&&e&&(this.filterValue="")},filterValue:function(t,e){t?this.$emit("on-filter-change",this.filterBy,this.filterValue):(this.$emit("reset-page"),this.$emit("on-filter",this.filterBy,this.filterValue)),t!==e&&this.$emit("reset-page")}},mounted:function(){var t=this.$route.query.filterBy,e=this.$route.query.filterValue;t&&(this.filterBy=t,this.filterValue=e,this.applyFilter())}};const at=(0,o.Z)(st,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{staticStyle:{"margin-right":"-20px"},attrs:{gutter:10}},[n("el-col",{attrs:{span:10}},[n("el-select",{attrs:{clearable:"",size:"small",placeholder:t.$t("Filter By")},on:{clear:t.clearFilterValue},model:{value:t.filterBy,callback:function(e){t.filterBy=e},expression:"filterBy"}},[n("el-option",{attrs:{label:t.$t("Status"),value:"status"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Date"),value:"date"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Date Range"),value:"daterange"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:10}},[t.filterBy&&"status"!==t.filterBy?t._e():n("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:!t.filterBy,placeholder:t.$t("Select")},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},[n("el-option",{attrs:{label:t.$t("Successful"),value:"sent"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Failed"),value:"failed"}})],1),t._v(" "),n("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:t.filterBy&&"date"===t.filterBy,expression:"filterBy && filterBy==='date'"}],staticStyle:{width:"100%"},attrs:{format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",size:"small",type:"date",placeholder:t.$t("Select date")},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}}),t._v(" "),n("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:t.filterBy&&"daterange"===t.filterBy,expression:"filterBy && filterBy==='daterange'"}],staticStyle:{width:"100%"},attrs:{format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",size:"small",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.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),n("el-col",{attrs:{span:4}},[n("el-button",{attrs:{plain:"",size:"small",type:"primary",disabled:!t.filterValue},on:{click:t.applyFilter}},[t._v(t._s(t.$t("Filter")))])],1)],1)],1)}),[],!1,null,null,null).exports;const lt={name:"EmailbodyContainer",props:["content"],data:function(){return{}},methods:{setBody:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.ifr;(n.contentDocument||n.contentWindow.document).body.innerHTML=t}))},onMouseOver:function(){this.$refs.fullscreen.classList.add("show")},onMouseOut:function(){this.$refs.fullscreen.classList.remove("show")},fullScreen:function(){var t=document,e=this.$refs.ifr;(t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled)&&(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen())}},watch:{content:{immediate:!0,handler:"setBody"}}};function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const pt={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,o.Z)(lt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mouseover:t.onMouseOver,mouseleave:t.onMouseOut}},[n("span",{ref:"fullscreen",staticClass:"full-screen-text",on:{click:t.fullScreen}},[t._v("\n "+t._s(t.$t("Enter Full Screen"))+"\n ")]),t._v(" "),n("iframe",{ref:"ifr",staticStyle:{width:"100%",height:"400px"},attrs:{frameborder:"0",allowFullScreen:"",mozallowfullscreen:"",webkitallowfullscreen:""}})])}),[],!1,null,null,null).exports},data:function(){return{activeName:"email_body",loading:!1,next:!1,prev:!1,retrying:!1}},methods:{navigate:function(t){var e=this,n={dir:t,id:this.log.id,query:this.logViewerProps.query,filter_by:this.logViewerProps.filterBy,filter_by_value:this.logViewerProps.filterByValue};this.loading=!0,this.$get("logs/show",n).then((function(n){if(!t)return e.next=n.data.next.length,void(e.prev=n.data.prev.length);e.logViewerProps.log=n.data.log,e.next=n.data.next,e.prev=n.data.prev})).fail((function(t){console.log(t)})).always((function(){e.loading=!1}))},getAttachments:function(t){if(!t)return[];if(!t.attachments)return[];if(!Array.isArray(t.attachments))return[t.attachments];var e=[];return t.attachments.forEach((function(t,n){e[n]=t})),e},closed:function(){this.next=!0,this.prev=!0,this.activeName="email_body"},getAttachmentName:function(t){if(t)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?ct(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.logViewerProps.log)),t},set:function(t){this.logViewerProps.log=t}}}};const ft={name:"BulkAction",props:["selected","haslogs"],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 dt={name:"EmailLog",components:{Confirm:q,Pagination:it,LogFilter:at,LogViewer:(0,o.Z)(pt,(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["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.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._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.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._e()]),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,r){return n("div",{key:r,staticStyle:{margin:"5px 0 10px 0"}},[t._v("\n ("+t._s(r+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,o.Z)(ft,(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"),disabled:!t.haslogs},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[n("el-option",{attrs:{value:"deleteall",label:t.$t("Delete All")}}),t._v(" "),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,query:"",filterBy:"",filterByValue:"",logViewerProps:{log:null,dialogVisible:!1},pagination:{total:0,per_page:10,current_page:1},selectedLogs:[],form:null,logAlertInfo:null}},methods:{tableRowClassName:function(t){return"row_type_"+t.row.status},pageChanged:function(){this.$router.push({name:"logs",query:{search:this.query,filterBy:this.filterBy,filterValue:this.filterByValue,page:this.pagination.current_page,per_page:this.pagination.per_page}}).catch((function(t){"NavigationDuplicated"!==t.name&&console.log(t.message)}))},fetch:function(){var t=this;this.loading=!0;var e={per_page:this.pagination.per_page,page:this.pagination.current_page,filter_by_value:this.filterByValue,filter_by:this.filterBy,query:this.query};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,r){t[n]=e.formatLog(r)})),t},formatLog:function(t){var e=this;t.to=this.formatAddresses(t.to),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"]);var n={};return t.headers&&jQuery.each(t.headers,(function(t,r){t&&(t=t.split("-").map((function(t){return e.ucFirst(t)})).join("-"),n[t]=r)})),t.headers=n,t},formatAddresses:function(t){var e=this;if(!t)return"";var n=[];return jQuery.each(t,(function(t,r){r.name?n[t]=e.escapeHtml("".concat(r.name," <").concat(r.email,">")):n[t]=e.escapeHtml(r.email)})),n.join(", ")},onFilter:function(t,e){this.filterBy=t,this.filterByValue=e,this.pageChanged()},onFilterChange:function(t,e){this.filterBy=t,this.filterByValue=e},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}))}},watch:{$route:{immediate:!0,handler:function(t,e){var n=this.pagination.current_page,r=this.pagination.per_page;this.query=t.query.search||this.query,this.filterBy=t.query.filterBy||this.filterBy,this.filterBy=t.query.filterBy||this.filterBy,this.filterByValue=t.query.filterValue||this.filterByValue,this.pagination.current_page=Number(t.query.page)||n,this.pagination.per_page=Number(t.query.per_page)||r,this.fetch()}}},computed:{isLogsOn:function(){return"yes"===this.form.log_emails},emailLogs:function(){var t=this;return this.logs.map((function(e){return e.created_at=t.$dateFormat(e.created_at,"DD-MM-YYYY h:mm:ss A"),e}))},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"))}};const _t=(0,o.Z)(dt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logs"},[n("div",[n("div",{staticClass:"header"},[n("div",{staticStyle:{float:"left","margin-top":"6px"}},[t._v(t._s(t.$t("Email Logs")))]),t._v(" "),n("LogFilter",{on:{"on-filter":t.onFilter,"on-filter-change":t.onFilterChange,"reset-page":function(e){t.pagination.current_page=1}}}),t._v(" "),n("LogBulkAction",{attrs:{selected:t.selectedLogs,haslogs:t.logs.length,filterBy:t.filterBy,filterByValue:t.filterByValue},on:{"on-bulk-action":t.handleBulkAction}}),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.query=""}},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.query,callback:function(e){t.query=e},expression:"query"}},[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.emailLogs,"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("div",[t._v(t._s(e.row.subject))])]}}],null,!1,3588226669)}),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"}}),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")))]):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,1438621537)})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[n("pagination",{attrs:{pagination:t.pagination},on:{fetch:t.pageChanged}})],1)],1),t._v(" "),n("LogViewer",{attrs:{logViewerProps:t.logViewerProps}})],1),t._v(" "),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 ")],1)],1)])])}),[],!1,null,null,null).exports;function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const mt={name:"EmailTest",components:{EmailSubscriber:M},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?vt(Object(n),!0).forEach((function(e){ht(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(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 gt=(0,o.Z)(mt,(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 provide).\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 yt=n(5534),bt=n.n(yt);const wt={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&&bt()(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 kt=(0,o.Z)(wt,(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 xt=n(3105),St=n.n(xt);const $t={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 L()(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?St()(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 Ct=[{name:"dashboard",path:"/",meta:{},component:D},{name:"connections",path:"/connections",meta:{},component:et},{name:"connection",path:"/connection",meta:{},component:rt},{name:"test",path:"/test",meta:{},component:gt},{name:"support",path:"/support",meta:{},component:kt},{name:"logs",path:"/logs",meta:{},component:_t},{name:"docs",path:"/documentation",meta:{},component:(0,o.Z)($t,(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,r){return n("div",{key:r,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"}},[t._v("documentation")]),t._v(" first. If you still can't find the\n answer "),n("a",{attrs:{href:"https://wpmanageninja.com/support-tickets/"}},[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 Pt=new window.FluentMail.Router({routes:window.FluentMail.applyFilters("fluent_mail_global_routes",Ct)});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(8161).Z)},router:Pt})})()})();
|
1 |
+
(()=>{var t={7757:(t,e,n)=>{t.exports=n(5666)},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),o=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 r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},8407:(t,e,n)=>{var r=n(7040),o=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 r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),o=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 r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=i,l.prototype.set=a,t.exports=l},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),o=n(619),s=n(2385);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}i.prototype.add=i.prototype.push=o,i.prototype.has=s,t.exports=i},6384:(t,e,n)=>{var r=n(8407),o=n(7465),s=n(3779),i=n(7599),a=n(4758),l=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,s=[];++n<r;){var i=t[n];e(i,n,t)&&(s[o++]=i)}return s}},4636:(t,e,n)=>{var r=n(2545),o=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&&o(t),p=!n&&!u&&i(t),f=!n&&!u&&!p&&l(t),_=n||u||p||f,d=_?r(t.length,String):[],v=d.length;for(var m in t)!e&&!c.call(t,m)||_&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||d.push(m);return d}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4311:(t,e,n)=>{var r=n(9877);t.exports=function(t){var e=t.length;return e?t[r(0,e-1)]:void 0}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},9881:(t,e,n)=>{var r=n(7816),o=n(9291)(r);t.exports=o},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),o=n(3674);t.exports=function(t,e){return t&&r(t,e,o)}},7786:(t,e,n)=>{var r=n(1811),o=n(327);t.exports=function(t,e){for(var n=0,s=(e=r(e,t)).length;null!=t&&n<s;)t=t[o(e[n++])];return n&&n==s?t:void 0}},8866:(t,e,n)=>{var r=n(2488),o=n(1469);t.exports=function(t,e,n){var s=e(t);return o(t)?s:r(s,n(t))}},4239:(t,e,n)=>{var r=n(2705),o=n(9607),s=n(2333),i=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):s(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},9454:(t,e,n)=>{var r=n(4239),o=n(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),o=n(7005);t.exports=function t(e,n,s,i,a){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,s,i,t,a))}},2492:(t,e,n)=>{var r=n(6384),o=n(7114),s=n(8351),i=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),p="[object Arguments]",f="[object Array]",_="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,m,h){var g=l(t),y=l(e),b=g?f:a(t),w=y?f:a(e),k=(b=b==p?_:b)==_,x=(w=w==p?_:w)==_,S=b==w;if(S&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(S&&!k)return h||(h=new r),g||u(t)?o(t,e,n,v,m,h):s(t,e,b,n,v,m,h);if(!(1&n)){var $=k&&d.call(t,"__wrapped__"),C=x&&d.call(e,"__wrapped__");if($||C){var P=$?t.value():t,E=C?e.value():e;return h||(h=new r),m(P,E,n,v,h)}}return!!S&&(h||(h=new r),i(t,e,n,v,m,h))}},2958:(t,e,n)=>{var r=n(6384),o=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],f=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var _=new r;if(s)var d=s(p,f,u,t,e,_);if(!(void 0===d?o(f,p,3,s,_):d))return!1}}return!0}},8458:(t,e,n)=>{var r=n(3560),o=n(5346),s=n(3218),i=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||o(t))&&(r(t)?f:a).test(i(t))}},8749:(t,e,n)=>{var r=n(4239),o=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)&&o(t.length)&&!!i[r(t)]}},7206:(t,e,n)=>{var r=n(1573),o=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)?o(t[0],t[1]):r(t):a(t)}},280:(t,e,n)=>{var r=n(5726),o=n(6916),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(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 r=n(2958),o=n(1499),s=n(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),o=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=o(n,t);return void 0===i&&i===e?s(n,t):r(e,i,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},9877:t=>{var e=Math.floor,n=Math.random;t.exports=function(t,r){return t+e(n()*(r-t+1))}},4992:(t,e,n)=>{var r=n(4311),o=n(2628);t.exports=function(t){return r(o(t))}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),o=n(9932),s=n(1469),i=n(3448),a=r?r.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return o(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 r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),o=n(5403),s=n(5514),i=n(9833);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:s(i(t))}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var s=n.length,i=e?s:-1,a=Object(n);(e?i--:++i<s)&&!1!==o(a[i],i,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,s=Object(e),i=r(e),a=i.length;a--;){var l=i[t?a:++o];if(!1===n(s[l],l,s))break}return e}}},7114:(t,e,n)=>{var r=n(8668),o=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 f=l.get(t),_=l.get(e);if(f&&_)return f==e&&_==t;var d=-1,v=!0,m=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++d<u;){var h=t[d],g=e[d];if(i)var y=c?i(g,h,d,e,t,l):i(h,g,d,t,e,l);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!o(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 r=n(2705),o=n(1149),s=n(7813),i=n(7114),a=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,p,f){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 o(t),new o(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 _=a;case"[object Set]":var d=1&r;if(_||(_=l),t.size!=e.size&&!d)return!1;var v=f.get(t);if(v)return v==e;r|=2,f.set(t,e);var m=i(_(t),_(e),r,c,p,f);return f.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,i,a){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var p=u;p--;){var f=c[p];if(!(l?f in e:o.call(e,f)))return!1}var _=a.get(t),d=a.get(e);if(_&&d)return _==e&&d==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=l;++p<u;){var h=t[f=c[p]],g=e[f];if(s)var y=l?s(g,h,f,e,t,a):s(h,g,f,t,e,a);if(!(void 0===y?h===g||i(h,g,n,s,a):y)){v=!1;break}m||(m="constructor"==f)}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 r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),o=n(9551),s=n(3674);t.exports=function(t){return r(t,s,o)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),o=n(3674);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var s=e[n],i=t[s];e[n]=[s,i,r(i)]}return e}},852:(t,e,n)=>{var r=n(8458),o=n(7801);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},9607:(t,e,n)=>{var r=n(2705),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=i.call(t);return r&&(e?t[a]=n:delete t[a]),o}},9551:(t,e,n)=>{var r=n(4963),o=n(479),s=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(t){return null==t?[]:(t=Object(t),r(i(t),(function(e){return s.call(t,e)})))}:o;t.exports=a},4160:(t,e,n)=>{var r=n(8552),o=n(7071),s=n(3818),i=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",p="[object Promise]",f="[object Set]",_="[object WeakMap]",d="[object DataView]",v=c(r),m=c(o),h=c(s),g=c(i),y=c(a),b=l;(r&&b(new r(new ArrayBuffer(1)))!=d||o&&b(new o)!=u||s&&b(s.resolve())!=p||i&&b(new i)!=f||a&&b(new a)!=_)&&(b=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return d;case m:return u;case h:return p;case g:return f;case y:return _}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),o=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=r(e,t)).length,p=!1;++c<u;){var f=l(e[c]);if(!(p=null!=t&&n(t,f)))break;t=t[f]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&a(u)&&i(f,u)&&(s(t)||o(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(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 r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},5403:(t,e,n)=>{var r=n(1469),o=n(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(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 r,o=n(4429),s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";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 r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7529:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),o=n(8407),s=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,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 r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,i=s&&s.exports===o&&r.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 r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,s=r||o||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 r=n(8407);t.exports=function(){this.__data__=new r,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 r=n(8407),o=n(7071),s=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||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 r=n(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,i=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(s,"$1"):n||t)})),e}));t.exports=i},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(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 r=n(4963),o=n(760),s=n(7206),i=n(1469);t.exports=function(t,e){return(i(t)?r:o)(t,s(e,3))}},4486:(t,e,n)=>{var r=n(7412),o=n(9881),s=n(4290),i=n(1469);t.exports=function(t,e){return(i(t)?r:o)(t,s(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},9095:(t,e,n)=>{var r=n(13),o=n(222);t.exports=function(t,e){return null!=t&&o(t,e,r)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var r=n(9454),o=n(7005),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return o(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 r=n(3560),o=n(1780);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),o=n(5062),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,a=i&&i.exports===s?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;t.exports=l},1609:(t,e,n)=>{var r=n(280),o=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=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var r=n(4239),o=n(3218);t.exports=function(t){if(!o(t))return!1;var e=r(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 r=n(4239),o=n(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),o=n(7518),s=n(1167),i=s&&s.isTypedArray,a=i?o(i):r;t.exports=a},3674:(t,e,n)=>{var r=n(4636),o=n(280),s=n(8612);t.exports=function(t){return s(t)?r(t):o(t)}},8306:(t,e,n)=>{var r=n(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=t.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},9601:(t,e,n)=>{var r=n(371),o=n(9152),s=n(5403),i=n(327);t.exports=function(t){return s(t)?r(i(t)):o(t)}},5534:(t,e,n)=>{var r=n(4311),o=n(4992),s=n(1469);t.exports=function(t){return(s(t)?r:o)(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),o=n(3674);t.exports=function(t){return null==t?[]:r(t,o(t))}},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,s=Object.create(o.prototype),i=new E(r||[]);return s._invoke=function(t,e,n){var r=p;return function(o,s){if(r===_)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw s;return O()}for(n.method=o,n.arg=s;;){var i=n.delegate;if(i){var a=$(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(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=_;var l=u(t,e,n);if("normal"===l.type){if(r=n.done?d:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,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",f="suspendedYield",_="executing",d="completed",v={};function m(){}function h(){}function g(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.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(o,s,i,a){var l=u(t[o],t,s);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&r.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 o;this._invoke=function(t,r){function s(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(s,s):s()}}function $(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,$(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 o=u(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var s=o.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 C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],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,r,o,s){void 0===s&&(s=Promise);var i=new S(c(e,n,r,o),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 r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.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 o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var i=this.tryEntries[s],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;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 r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"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)}},8161:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const r={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 o=(0,n(1900).Z)(r,(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.fullPath})],1)])}),[],!1,null,null,null).exports},1900:(t,e,n)=>{"use strict";function r(t,e,n,r,o,s,i,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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:()=>r})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={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 o=n(1900);const s=(0,o.Z)(r,(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,o.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,o.Z)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Mailgun API Settings")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"key"}},[t._v("\n Private API Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get an API Key from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/account/security/api_keys"}},[t._v("Get a Private API Key.")])])],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"domain"}},[n("label",{attrs:{for:"domain"}},[t._v("\n Domain Name\n ")]),t._v(" "),n("el-input",{attrs:{id:"domain"},model:{value:t.connection.domain_name,callback:function(e){t.$set(t.connection,"domain_name",e)},expression:"connection.domain_name"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n Follow this link to get a Domain Name from Mailgun:\n "),n("a",{attrs:{target:"_blank",href:"https://app.mailgun.com/app/domains"}},[t._v("\n Get a Domain Name.\n ")])])],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_MAILGUN_API_KEY', '********************' );\ndefine( 'FLUENTMAIL_MAILGUN_DOMAIN', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("domain_name")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{staticStyle:{"vertical-align":"baseline"},attrs:{for:"region"}},[t._v("\n Select Region \n ")]),t._v(" "),n("el-radio",{attrs:{label:"us"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("US")]),t._v(" "),n("el-radio",{attrs:{label:"eu"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},[t._v("EU")]),t._v(" "),n("el-alert",{attrs:{closable:!1}},[n("span",[t._v("\n Define which endpoint you want to use for sending messages.\n ")]),t._v(" "),n("span",[t._v("\n If you are operating under EU laws, you may be required to use EU region.\n "),n("a",{attrs:{target:"_blank",href:"https://www.mailgun.com/regions"}},[t._v("More information")]),t._v("\n on Mailgun.com.\n ")])])],1)],1)}),[],!1,null,null,null).exports;const u={name:"PepiPost",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const p=(0,o.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 f={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 _=(0,o.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("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 d={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,o.Z)(d,(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,o.Z)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{for:"access_key"}},[n("label",{attrs:{for:"access_key"}},[t._v("\n Access Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"access_key"},model:{value:t.connection.access_key,callback:function(e){t.$set(t.connection,"access_key",e)},expression:"connection.access_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"ses-key"}},[t._v("\n Secret Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"ses-key"},model:{value:t.connection.secret_key,callback:function(e){t.$set(t.connection,"secret_key",e)},expression:"connection.secret_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("access_key")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("secret_key")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",{attrs:{for:"ses-region"}},[t._v("\n Region "),n("span",{staticClass:"small-help-text"},[t._v("(Default: US East (N. Virginia)/us-east-1)")])]),t._v(" "),n("el-select",{attrs:{id:"ses-region",placeholder:"Select Region"},model:{value:t.connection.region,callback:function(e){t.$set(t.connection,"region",e)},expression:"connection.region"}},t._l(t.provider.regions,(function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),n("span",{staticClass:"el-form-item__error",staticStyle:{"margin-top":"10px"}},[t._v(t._s(t.errors.errors.api_error))])],1)],1)}),[],!1,null,null,null).exports;const g={name:"SparkPost",props:["connection","errors"],components:{InputPassword:s,Error:a},"connection.key_store":function(t){"wp_config"===t&&(this.connection.api_key="")},data:function(){return{}}};const y=(0,o.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,o.Z)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"host"}},[t._v("\n SMTP Host\n ")]),t._v(" "),n("el-input",{attrs:{id:"host"},model:{value:t.connection.host,callback:function(e){t.$set(t.connection,"host",e)},expression:"connection.host"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("host")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"port"}},[t._v("\n SMTP Port\n ")]),t._v(" "),n("el-input",{attrs:{id:"port"},model:{value:t.connection.port,callback:function(e){t.$set(t.connection,"port",e)},expression:"connection.port"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("port")}})],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticStyle:{margin:"20px 0"}},[n("label",[t._v("\n Encryption\n ")]),t._v(" "),n("div",{staticClass:"small-help-text",staticStyle:{display:"inline-block"}},[t._v("\n (Select "),n("strong",[t._v("ssl")]),t._v(" on port "),n("strong",[t._v("465")]),t._v(",\n or "),n("strong",[t._v("tls")]),t._v(" on port "),n("strong",[t._v("25")]),t._v(" or "),n("strong",[t._v("587")]),t._v(")\n ")]),t._v(" "),n("div",{staticStyle:{display:"inline-block","margin-left":"20px"}},[n("el-radio",{attrs:{label:"none"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"ssl"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("SSL")]),t._v(" "),n("el-radio",{attrs:{label:"tls"},model:{value:t.connection.encryption,callback:function(e){t.$set(t.connection,"encryption",e)},expression:"connection.encryption"}},[t._v("TLS")])],1)])],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Use Auto TLS\n ")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auto_tls,callback:function(e){t.$set(t.connection,"auto_tls",e)},expression:"connection.auto_tls"}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (By default, the TLS encryption would be used if the server supports it. On some srvers, it could be a problem and may need to be disabled.)\n ")])],1)],1)],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-form-item",[n("label",{attrs:{for:"auth"}},[t._v("\n Authentication\n ")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.connection.auth,callback:function(e){t.$set(t.connection,"auth",e)},expression:"connection.auth"}}),t._v(" "),n("span",{staticClass:"small-help-text"},[t._v("\n (If you need to provide your SMTP server's credentials (username and password) enable the authentication, in most cases this is required.)\n ")])],1)],1)],1),t._v(" "),"yes"==t.connection.auth?[n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Access Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Access Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{class:{disabled:"no"===t.connection.auth},attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"username"}},[t._v("\n SMTP Username\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"username",disabled:t.isDisabledUsername},model:{value:t.connection.username,callback:function(e){t.$set(t.connection,"username",e)},expression:"connection.username"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"smtp-password"}},[t._v("\n SMTP Password\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"smtp-password",disabled:t.isDisabledPassword},model:{value:t.connection.password,callback:function(e){t.$set(t.connection,"password",e)},expression:"connection.password"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_SMTP_USERNAME', '********************' );\ndefine( 'FLUENTMAIL_SMTP_PASSWORD', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("username")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("password")}})],1)],1):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;const k={name:"Gamil",props:["connection","errors"],components:{InputPassword:s,Error:a},data:function(){return{app_ready:!1,gettingRedirect:!1,redirectUrl:""}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.client_id="",this.connection.client_secret="")}},methods:{redirectToGoogle:function(){var t=this;this.gettingRedirect=!0,this.$post("settings/gmail_auth_url",{connection:this.connection}).then((function(e){t.redirectUrl=e.data.auth_url,window.open(e.data.auth_url,"_blank")})).catch((function(e){t.errors.record(e.responseJSON.data)})).always((function(){t.gettingRedirect=!1}))}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const x=(0,o.Z)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Gmail/Google Workspace API Settings")]),t._v(" "),t._m(0),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_GMAIL_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_GMAIL_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Gmail/Google Workspace Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToGoogle()}}},[t._v("Authenticate with Google & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/connect-gmail-or-google-workspace-emails-with-fluentsmtp/"}},[t._v("check the documentation first")]),t._v(" or "),n("b",[n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://www.youtube.com/watch?v=_d78bscNaX8"}},[t._v("Watch the video tutorial")])]),t._v(" to create API keys at Google")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Google to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const S={name:"OutLook",props:["connection","provider","errors"],components:{InputPassword:s,Error:a},data:function(){return{app_ready:!1,gettingRedirect:!1,redirectUrl:""}},watch:{"connection.key_store":function(t){"wp_config"===t&&(this.connection.client_id="",this.connection.client_secret="")}},methods:{redirectToMS:function(){var t=this;this.gettingRedirect=!0,this.$post("settings/outlook_auth_url",{connection:this.connection}).then((function(e){t.redirectUrl=e.data.auth_url,window.open(e.data.auth_url,"_blank")})).catch((function(e){t.errors.record(e.responseJSON.data)})).always((function(){t.gettingRedirect=!1}))}},mounted:function(){this.connection.key_store||this.$set(this.connection,"key_store","db")}};const $=(0,o.Z)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",[t._v("Outlook/Office365 API Settings")]),t._v(" "),t._m(0),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{value:"db",label:"db"}},[t._v("Store Application Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{value:"wp_config",label:"wp_config"}},[t._v("Application Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_id"}},[t._v("\n Application Client ID\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_id"},model:{value:t.connection.client_id,callback:function(e){t.$set(t.connection,"client_id",e)},expression:"connection.client_id"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"client_secret"}},[t._v("\n Application Client Secret\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"client_secret"},model:{value:t.connection.client_secret,callback:function(e){t.$set(t.connection,"client_secret",e)},expression:"connection.client_secret"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1)],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_OUTLOOK_CLIENT_ID', '********************' );\ndefine( 'FLUENTMAIL_OUTLOOK_CLIENT_SECRET', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("client_id")}}),t._v(" "),n("error",{attrs:{error:t.errors.get("client_secret")}})],1)],1):t._e(),t._v(" "),n("el-form-item",[n("label",[t._v("App Callback URL (Use this URL to your APP)")]),t._v(" "),n("el-input",{attrs:{readonly:!0},model:{value:t.provider.callback_url,callback:function(e){t.$set(t.provider,"callback_url",e)},expression:"provider.callback_url"}})],1),t._v(" "),t.connection.access_token?n("div",{staticStyle:{"text-align":"center"}},[n("h3",[t._v("Your Outlook/Office365 Authentication has been enabled. No further action is needed. If you want to re-authenticate, "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.connection.access_token=""}}},[t._v("click here")])])]):n("div",[n("div",{staticStyle:{"text-align":"center"}},[t._m(1),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.gettingRedirect,expression:"gettingRedirect"}],attrs:{type:"danger"},on:{click:function(e){return t.redirectToMS()}}},[t._v("Authenticate with Office365 & Get Access Token")])],1),t._v(" "),t.redirectUrl?n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{for:"application_token"}},[t._v("\n Access Token\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"application_token"},model:{value:t.connection.auth_token,callback:function(e){t.$set(t.connection,"auth_token",e)},expression:"connection.auth_token"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("auth_token")}}),t._v(" "),n("p",[t._v("Please send test email to confirm if the connection is working or not.")])],1)],1)],1):t._e()],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Please "),n("a",{attrs:{target:"_blank",rel:"nofollow",href:"https://fluentsmtp.com/docs/setup-outlook-with-fluentsmtp/"}},[t._v("check the documentation first to create API keys at Microsoft")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[t._v("Please authenticate with Office365 to get "),n("b",[t._v("Access Token")])])}],!1,null,null,null).exports;const C={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,o.Z)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h3",{staticClass:"fs_config_title"},[t._v("Postmark API Settings")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.connection.key_store,callback:function(e){t.$set(t.connection,"key_store",e)},expression:"connection.key_store"}},[n("el-radio-button",{attrs:{label:"db"}},[t._v("Store API Keys in DB")]),t._v(" "),n("el-radio-button",{attrs:{label:"wp_config"}},[t._v("Store API Keys in Config File")])],1),t._v(" "),"db"==t.connection.key_store?n("el-form-item",[n("label",{attrs:{for:"postmark-key"}},[t._v("\n API Key\n ")]),t._v(" "),n("InputPassword",{attrs:{id:"postmark-key"},model:{value:t.connection.api_key,callback:function(e){t.$set(t.connection,"api_key",e)},expression:"connection.api_key"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1):"wp_config"==t.connection.key_store?n("div",{staticClass:"fss_condesnippet_wrapper"},[n("el-form-item",[n("label",[t._v("Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste to wp-config.php file of your WordPress installation")]),t._v(" "),n("div",{staticClass:"code_snippet"},[n("textarea",{staticStyle:{width:"100%"},attrs:{readonly:""}},[t._v("define( 'FLUENTMAIL_POSTMARK_API_KEY', '********************' );")])]),t._v(" "),n("error",{attrs:{error:t.errors.get("api_key")}})],1)],1):t._e(),t._v(" "),t._m(0),t._v(" "),n("el-row",{staticClass:"fsmtp_compact",attrs:{gutter:30}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Track Opens"}},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.track_opens,callback:function(e){t.$set(t.connection,"track_opens",e)},expression:"connection.track_opens"}},[t._v("\n Enable email opens tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then open tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"Message Stream"}},[n("el-input",{attrs:{type:"text",size:"small"},model:{value:t.connection.message_stream,callback:function(e){t.$set(t.connection,"message_stream",e)},expression:"connection.message_stream"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"Track Links"}},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.track_links,callback:function(e){t.$set(t.connection,"track_links",e)},expression:"connection.track_links"}},[t._v("\n Enable link tracking on postmark (For HTML Emails only).\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then link tracking header will be added to the email for postmark.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"small-help-text",staticStyle:{display:"block","margin-top":"-10px"}},[t._v("\n Follow this link to get an API Key from Postmark (Your API key is in the API Tokens tab of your):\n "),n("a",{attrs:{target:"_blank",href:"https://account.postmarkapp.com/servers"}},[t._v("Postmark Server.")])])}],!1,null,null,null).exports;function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}const A=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,r;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={}}}])&&E(e.prototype,n),r&&E(e,r),t}(),O={name:"ConnectionWizard",props:["connection","is_new","providers","connection_key"],components:{ses:h,mailgun:c,pepipost:p,sendgrid:_,sendinblue:v,sparkpost:y,smtp:w,gmail:x,outlook:$,postmark:P,Error:a},data:function(){return{saving:!1,errors:new A,api_error:"",has_error:!1}},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 j=(0,o.Z)(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fss_connection_wizard"},[n("el-form",{attrs:{data:t.connection,"label-position":"top"}},[n("el-form-item",{attrs:{label:"Connection Provider"}},[n("el-radio-group",{staticClass:"fss_connections",model:{value:t.connection.provider,callback:function(e){t.$set(t.connection,"provider",e)},expression:"connection.provider"}},t._l(t.providers,(function(t,e){return n("el-radio-button",{key:e,class:"con_"+e,attrs:{label:e}},[n("img",{staticStyle:{"max-width":"80px",height:"32px"},attrs:{title:t.title,src:t.image}})])})),1)],1),t._v(" "),t.connection.provider?[n("div",{staticClass:"fss_config_section"},[n("h3",{staticClass:"fs_config_title"},[t._v(t._s(t.$t("Sender Settings")))]),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Email")}},[n("error",{attrs:{error:t.errors.get("sender_email")}}),t._v(" "),n("el-input",{attrs:{type:"email",placeholder:t.$t("From Email")},model:{value:t.connection.sender_email,callback:function(e){t.$set(t.connection,"sender_email",e)},expression:"connection.sender_email"}})],1),t._v(" "),null!=t.connection.force_from_email?n("div",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_email,callback:function(e){t.$set(t.connection,"force_from_email",e)},expression:"connection.force_from_email"}},[t._v("\n "+t._s(t.$t("Force From Email (Recommended Settings: Enable)"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("from_email_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e(),t._v(" "),null!=t.connection.return_path?n("div",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.return_path,callback:function(e){t.$set(t.connection,"return_path",e)},expression:"connection.return_path"}},[t._v("\n "+t._s(t.$t("Set the return-path to match the From Email"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n Return Path indicates where non-delivery receipts - or bounce messages -"),n("br"),t._v("\n are to be sent. If unchecked, bounce messages may be lost. With this enabled,"),n("br"),t._v('\n you’ll be emailed using "From Email" if any messages bounce as a result of issues with the recipient’s email.\n ')]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:t.$t("From Name")}},[n("el-input",{attrs:{type:"text",placeholder:t.$t("From Name")},model:{value:t.connection.sender_name,callback:function(e){t.$set(t.connection,"sender_name",e)},expression:"connection.sender_name"}}),t._v(" "),n("error",{attrs:{error:t.errors.get("sender_name")}})],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.connection.force_from_name,callback:function(e){t.$set(t.connection,"force_from_name",e)},expression:"connection.force_from_name"}},[t._v("\n "+t._s(t.$t("Force Sender Name"))+"\n "),n("el-tooltip",{attrs:{effect:"dark",placement:"top-start"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(t.$t("force_sender_tooltip"))+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info"})])],1)],1)],1)],1),t._v(" "),"default"!=t.connection.provider?n("div",{staticClass:"fss_config_section"},[n(t.connection.provider,{tag:"component",attrs:{errors:t.errors,connection:t.connection,provider:t.providers[t.connection.provider]}})],1):t._e(),t._v(" "),t.providers[t.connection.provider].note?n("p",{staticStyle:{padding:"20px 0px"},domProps:{innerHTML:t._s(t.providers[t.connection.provider].note)}}):t._e(),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.saving,expression:"saving"}],attrs:{type:"success"},on:{click:function(e){return t.saveConnectionSettings()}}},[t._v(t._s(t.$t("Save Connection Settings")))])]:n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("save_connection_error_1")))])]),t._v(" "),t.saving?n("p",[t._v(t._s(t.$t("Validating Data.Please wait")))]):t._e(),t._v(" "),t.has_error?n("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{type:"error"}},[t._v(t._s(t.$t("save_connection_error_2")))]):t._e()],2)],1)}),[],!1,null,null,null).exports;const T={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)}};var L=n(6073),I=n.n(L);const F={name:"email-sendings",props:["date_range"],components:{GrowthChart:T},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"},r=0;I()(this.stats,(function(o,s){e.data.push(o),t.push(s),r+=parseInt(o),n.data.push(r)})),this.maxCumulativeValue=r+10,this.chartData={labels:t,datasets:[e,n]}}},mounted:function(){this.fetchReport()}};const M=(0,o.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 D=(0,o.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 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 B={name:"Dashboard",components:{ConnectionWizard:j,EmailsChart:M,EmailSubscriber:D,SubscribeDismiss:(0,o.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 z=(0,o.Z)(B,(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 R=n(7757),q=n.n(R);const K={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 U=(0,o.Z)(K,(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 G={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 W=(0,o.Z)(G,(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,r){return n("el-option",{key:r,attrs:{value:r,disabled:t.settings.misc.fallback_connection==r,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,r){return n("el-option",{key:r,attrs:{disabled:t.settings.misc.default_connection==r,value:r,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 Z={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 H=(0,o.Z)(Z,(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 Y(t,e,n,r,o,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(r,o)}const J={name:"connection_details",props:["connection_id"],data:function(){return{loading:!1,connection_content:""}},methods:{fetchDetails:function(){var t,e=this;return(t=q().mark((function t(){var n;return q().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(r,o){var s=t.apply(e,n);function i(t){Y(s,r,o,i,a,"next",t)}function a(t){Y(s,r,o,i,a,"throw",t)}i(void 0)}))})()}},created:function(){this.fetchDetails()}};function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t,e,n,r,o,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(r,o)}function et(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function i(t){tt(s,r,o,i,a,"next",t)}function a(t){tt(s,r,o,i,a,"throw",t)}i(void 0)}))}}const nt={name:"Connections",components:{Confirm:U,GeneralSettings:W,ConnectionDetails:(0,o.Z)(J,(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:H},data:function(){return{showing_connection:"",active_settings:"general"}},methods:{fetch:function(){var t=this;return et(q().mark((function n(){var r;return q().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$get("settings");case 2:r=n.sent,t.settings.mappings=r.data.settings.mappings,t.settings.connections=r.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 et(q().mark((function n(){var r;return q().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:r=n.sent,e.settings.connections=r.data.connections,e.settings.misc.default_connection=r.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?Q(Object(n),!0).forEach((function(e){X(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(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,o.Z)(nt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"connections"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Active Email Connections"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:t.addConnection}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("Add Another Connection"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("el-table",{attrs:{stripe:"",border:"",data:t.connections}},[n("el-table-column",{attrs:{label:t.$t("Provider")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.settings.providers[e.row.provider].title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sender_email",label:t.$t("From Email")}}),t._v(" "),n("el-table-column",{attrs:{width:"120",label:t.$t("Actions"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(n){return t.editConnection(e.row)}}}),t._v(" "),n("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-view"},on:{click:function(n){return t.showConnection(e.row)}}}),t._v(" "),n("confirm",{on:{yes:function(n){return t.deleteConnection(e.row)}}},[n("el-button",{attrs:{slot:"reference",size:"mini",type:"danger",icon:"el-icon-delete"},slot:"reference"})],1)]}}])})],1),t._v(" "),t.connections.length>1?n("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{closable:!1,type:"info"}},[t._v("\n "+t._s(t.$t("routing_info"))+"\n ")]):t._e()],1)]),t._v(" "),t.showing_connection?n("div",{staticClass:"fss_content_box"},[n("div",{staticClass:"header"},[n("span",{staticStyle:{float:"left"}},[t._v("\n "+t._s(t.$t("Connection Details"))+"\n ")]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#46A0FC",cursor:"pointer"},on:{click:function(e){t.showing_connection=""}}},[t._v("\n "+t._s(t.$t("Close"))+"\n ")])]),t._v(" "),n("div",{staticClass:"content"},[n("connection-details",{attrs:{connection_id:t.showing_connection}})],1)]):t._e()]),t._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"general"==t.active_settings},staticStyle:{"margin-bottom":"0px"}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="general"}}},[t._v("\n "+t._s(t.$t("General Settings"))+"\n ")]),t._v(" "),"general"==t.active_settings?n("div",{staticClass:"content"},[n("general-settings")],1):t._e()]),t._v(" "),n("div",{staticClass:"fss_content_box fss_box_action",class:{fss_box_active:"notification"==t.active_settings}},[n("div",{staticClass:"header",on:{click:function(e){t.active_settings="notification"}}},[t._v("\n "+t._s(t.$t("Notification Settings"))+"\n ")]),t._v(" "),"notification"==t.active_settings?n("div",{staticClass:"content"},[n("notification-settings")],1):t._e()])])],1)],1)}),[],!1,null,null,null).exports;const ot={name:"Connection",components:{ConnectionWizard:j},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 st=(0,o.Z)(ot,(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}})],1)])])}),[],!1,null,null,null).exports;const it={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 at=(0,o.Z)(it,(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 lt={name:"LogFilter",data:function(){return{filterBy:"",filterValue:""}},methods:{applyFilter:function(){this.filterValue&&this.$emit("on-filter",this.filterBy,this.filterValue)},clearFilterValue:function(){this.filterValue=""}},watch:{filterBy:function(t,e){t!==e&&t&&e&&(this.filterValue="")},filterValue:function(t,e){t?this.$emit("on-filter-change",this.filterBy,this.filterValue):(this.$emit("reset-page"),this.$emit("on-filter",this.filterBy,this.filterValue)),t!==e&&this.$emit("reset-page")}},mounted:function(){var t=this.$route.query.filterBy,e=this.$route.query.filterValue;t&&(this.filterBy=t,this.filterValue=e,this.applyFilter())}};const ct=(0,o.Z)(lt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{float:"left","margin-left":"10px"}},[n("el-row",{staticStyle:{"margin-right":"-20px"},attrs:{gutter:10}},[n("el-col",{attrs:{span:10}},[n("el-select",{attrs:{clearable:"",size:"small",placeholder:t.$t("Filter By")},on:{clear:t.clearFilterValue},model:{value:t.filterBy,callback:function(e){t.filterBy=e},expression:"filterBy"}},[n("el-option",{attrs:{label:t.$t("Status"),value:"status"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Date"),value:"date"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Date Range"),value:"daterange"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:10}},[t.filterBy&&"status"!==t.filterBy?t._e():n("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:!t.filterBy,placeholder:t.$t("Select")},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},[n("el-option",{attrs:{label:t.$t("Successful"),value:"sent"}}),t._v(" "),n("el-option",{attrs:{label:t.$t("Failed"),value:"failed"}})],1),t._v(" "),n("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:t.filterBy&&"date"===t.filterBy,expression:"filterBy && filterBy==='date'"}],staticStyle:{width:"100%"},attrs:{format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",size:"small",type:"date",placeholder:t.$t("Select date")},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}}),t._v(" "),n("el-date-picker",{directives:[{name:"show",rawName:"v-show",value:t.filterBy&&"daterange"===t.filterBy,expression:"filterBy && filterBy==='daterange'"}],staticStyle:{width:"100%"},attrs:{format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",size:"small",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.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),n("el-col",{attrs:{span:4}},[n("el-button",{attrs:{plain:"",size:"small",type:"primary",disabled:!t.filterValue},on:{click:t.applyFilter}},[t._v(t._s(t.$t("Filter")))])],1)],1)],1)}),[],!1,null,null,null).exports;const ut={name:"EmailbodyContainer",props:["content"],data:function(){return{}},methods:{setBody:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.ifr;(n.contentDocument||n.contentWindow.document).body.innerHTML=t}))},onMouseOver:function(){this.$refs.fullscreen.classList.add("show")},onMouseOut:function(){this.$refs.fullscreen.classList.remove("show")},fullScreen:function(){var t=document,e=this.$refs.ifr;(t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled)&&(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen())}},watch:{content:{immediate:!0,handler:"setBody"}}};function pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}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 _t={name:"LogViewer",props:["logViewerProps"],components:{EmailbodyContainer:(0,o.Z)(ut,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mouseover:t.onMouseOver,mouseleave:t.onMouseOut}},[n("span",{ref:"fullscreen",staticClass:"full-screen-text",on:{click:t.fullScreen}},[t._v("\n "+t._s(t.$t("Enter Full Screen"))+"\n ")]),t._v(" "),n("iframe",{ref:"ifr",staticStyle:{width:"100%",height:"400px"},attrs:{frameborder:"0",allowFullScreen:"",mozallowfullscreen:"",webkitallowfullscreen:""}})])}),[],!1,null,null,null).exports},data:function(){return{activeName:"email_body",loading:!1,next:!1,prev:!1,retrying:!1}},methods:{navigate:function(t){var e=this,n={dir:t,id:this.log.id,query:this.logViewerProps.query,filter_by:this.logViewerProps.filterBy,filter_by_value:this.logViewerProps.filterByValue};this.loading=!0,this.$get("logs/show",n).then((function(n){if(!t)return e.next=n.data.next.length,void(e.prev=n.data.prev.length);e.logViewerProps.log=n.data.log,e.next=n.data.next,e.prev=n.data.prev})).fail((function(t){console.log(t)})).always((function(){e.loading=!1}))},getAttachments:function(t){if(!t)return[];if(!t.attachments)return[];if(!Array.isArray(t.attachments))return[t.attachments];var e=[];return t.attachments.forEach((function(t,n){e[n]=t})),e},closed:function(){this.next=!0,this.prev=!0,this.activeName="email_body"},getAttachmentName:function(t){if(t&&t[0])return(t=t[0].replace(/\\/g,"/")).split("/").pop()},handleRetry:function(t,e){var n=this;this.retrying=!0,this.$post("logs/retry",{id:t.id,type:e}).then((function(t){n.logViewerProps.retries=t.data.email.retries,n.logViewerProps.log.status=t.data.email.status,n.logViewerProps.log.updated_at=t.data.email.updated_at,n.logViewerProps.log.resent_count=t.data.email.resent_count})).fail((function(t){n.$notify.error({offset:19,title:"Oops!!",message:t.responseJSON.data.message})})).always((function(){n.retrying=!1}))}},computed:{log:{get:function(){var t;return this.logViewerProps.log&&((t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(n),!0).forEach((function(e){ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.logViewerProps.log)).headers||(t.headers={}),t.response||(t.response={}),t.extra||(t.extra={})),t},set:function(t){this.logViewerProps.log=t}}}};const dt={name:"BulkAction",props:["selected","haslogs"],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 vt={name:"EmailLog",components:{Confirm:U,Pagination:at,LogFilter:ct,LogViewer:(0,o.Z)(_t,(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._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,r){return n("div",{key:r,staticStyle:{margin:"5px 0 10px 0"}},[t._v("\n ("+t._s(r+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,o.Z)(dt,(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"),disabled:!t.haslogs},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[n("el-option",{attrs:{value:"deleteall",label:t.$t("Delete All")}}),t._v(" "),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,query:"",filterBy:"",filterByValue:"",logViewerProps:{log:null,dialogVisible:!1},pagination:{total:0,per_page:10,current_page:1},selectedLogs:[],form:null,logAlertInfo:null}},methods:{tableRowClassName:function(t){return"row_type_"+t.row.status},pageChanged:function(){this.$router.push({name:"logs",query:{search:this.query,filterBy:this.filterBy,filterValue:this.filterByValue,page:this.pagination.current_page,per_page:this.pagination.per_page}}).catch((function(t){"NavigationDuplicated"!==t.name&&console.log(t.message)}))},fetch:function(){var t=this;this.loading=!0;var e={per_page:this.pagination.per_page,page:this.pagination.current_page,filter_by_value:this.filterByValue,filter_by:this.filterBy,query:this.query};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,r){t[n]=e.formatLog(r)})),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,r){t&&(t=t.split("-").map((function(t){return e.ucFirst(t)})).join("-"),n[t]=r)})),t.headers=n,t},formatAddresses:function(t){var e=this;if(!t)return"";var n=[];return jQuery.each(t,(function(t,r){r.name?n[t]=e.escapeHtml("".concat(r.name," <").concat(r.email,">")):n[t]=e.escapeHtml(r.email)})),n.join(", ")},onFilter:function(t,e){this.filterBy=t,this.filterByValue=e,this.pageChanged()},onFilterChange:function(t,e){this.filterBy=t,this.filterByValue=e},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}))}},watch:{$route:{immediate:!0,handler:function(t,e){var n=this.pagination.current_page,r=this.pagination.per_page;this.query=t.query.search||this.query,this.filterBy=t.query.filterBy||this.filterBy,this.filterBy=t.query.filterBy||this.filterBy,this.filterByValue=t.query.filterValue||this.filterByValue,this.pagination.current_page=Number(t.query.page)||n,this.pagination.per_page=Number(t.query.per_page)||r,this.fetch()}}},computed:{isLogsOn:function(){return"yes"===this.form.log_emails},emailLogs:function(){var t=this;return this.logs.map((function(e){return e.created_at=t.$dateFormat(e.created_at,"DD-MM-YYYY h:mm:ss A"),e}))},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"))}};const mt=(0,o.Z)(vt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logs"},[n("div",[n("div",{staticClass:"header"},[n("div",{staticStyle:{float:"left","margin-top":"6px"}},[t._v(t._s(t.$t("Email Logs")))]),t._v(" "),n("LogFilter",{on:{"on-filter":t.onFilter,"on-filter-change":t.onFilterChange,"reset-page":function(e){t.pagination.current_page=1}}}),t._v(" "),n("LogBulkAction",{attrs:{selected:t.selectedLogs,haslogs:t.logs.length,filterBy:t.filterBy,filterByValue:t.filterByValue},on:{"on-bulk-action":t.handleBulkAction}}),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.query=""}},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.query,callback:function(e){t.query=e},expression:"query"}},[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.emailLogs,"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("div",[t._v(t._s(e.row.subject))])]}}],null,!1,3588226669)}),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"}}),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")))]):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,1438621537)})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[n("pagination",{attrs:{pagination:t.pagination},on:{fetch:t.pageChanged}})],1)],1),t._v(" "),n("LogViewer",{attrs:{logViewerProps:t.logViewerProps}})],1),t._v(" "),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 ")],1)],1)])])}),[],!1,null,null,null).exports;function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const yt={name:"EmailTest",components:{EmailSubscriber:D},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?ht(Object(n),!0).forEach((function(e){gt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(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 bt=(0,o.Z)(yt,(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 provide).\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 wt=n(5534),kt=n.n(wt);const xt={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&&kt()(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 St=(0,o.Z)(xt,(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),Ct=n.n($t);const Pt={name:"Documentations",data:function(){return{search:"",fetching:!1,docs:[],utl_param:"?utm_source=wp&utm_medium=doc&utm_campaign=doc"}},computed:{doc_cats:function(){if(!this.docs.length)return[];var t={item_4:{label:"Getting Started",docs:[]},item_5:{label:"Connect With Your Email Providers",docs:[]},item_6:{label:"Functionalities",docs:[]}};return I()(this.docs,(function(e){var n="item_"+e.category.value;t[n]||(t[n]={label:e.category.label,cat_id:e.category.value,docs:[]}),t[n].docs.push(e)})),Object.values(t)},search_items:function(){var t=this;return this.search&&this.docs.length?Ct()(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:z},{name:"connections",path:"/connections",meta:{},component:rt},{name:"connection",path:"/connection",meta:{},component:st},{name:"test",path:"/test",meta:{},component:bt},{name:"support",path:"/support",meta:{},component:St},{name:"logs",path:"/logs",meta:{},component:mt},{name:"docs",path:"/documentation",meta:{},component:(0,o.Z)(Pt,(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,r){return n("div",{key:r,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"}},[t._v("documentation")]),t._v(" first. If you still can't find the\n answer "),n("a",{attrs:{href:"https://wpmanageninja.com/support-tickets/"}},[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 At=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(8161).Z)},router:At})})()})();
|
assets/images/postmark.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg width="490" height="79" viewBox="0 0 490 79" xmlns="http://www.w3.org/2000/svg"><title>Untitled</title><g fill="#22252B" fill-rule="evenodd"><g opacity=".2"><path d="M164.5 13c-8.8 8.4-25.7 14.1-45.2 14.1-14.5 0-27.6-3.2-37-8.3C71.5 12.9 56.6 4.7 37.1 4.7 22.6 4.7 9.5 7.9.1 13V9C9.5 3.9 22.6.7 37.1.7c19.5 0 34.4 8.2 45.2 14.1 9.4 5.1 22.5 8.3 37 8.3 19.5 0 36.4-5.7 45.2-14.1v4z"/><path d="M164.5 30c-8.8 8.4-25.7 14.1-45.2 14.1-14.5 0-27.6-3.2-37-8.3-10.8-5.9-25.7-14.1-45.2-14.1-14.5 0-27.6 3.2-37 8.3v-4c9.4-5.1 22.5-8.3 37-8.3 19.5 0 34.4 8.2 45.2 14.1 9.4 5.1 22.5 8.3 37 8.3 19.5 0 36.4-5.7 45.2-14.1v4z"/><path d="M164.5 47c-8.8 8.4-25.7 14.1-45.2 14.1-14.5 0-27.6-3.2-37-8.3-10.8-5.9-25.7-14.1-45.2-14.1-14.5 0-27.6 3.2-37 8.3v-4c9.4-5.1 22.5-8.3 37-8.3 19.5 0 34.4 8.2 45.2 14.1 9.4 5.1 22.5 8.3 37 8.3 19.5 0 36.4-5.7 45.2-14.1v4z"/><path d="M164.5 64c-8.8 8.4-25.7 14.1-45.2 14.1-14.5 0-27.6-3.2-37-8.3-10.8-5.9-25.7-14.1-45.2-14.1-14.5 0-27.6 3.2-37 8.3v-4c9.4-5.1 22.5-8.3 37-8.3 19.5 0 34.4 8.2 45.2 14.1 9.4 5.1 22.5 8.3 37 8.3 19.5 0 36.4-5.7 45.2-14.1v4z"/></g><path d="M76.9 10.4h-8.5V1.9h30.1c18.8 0 22.7 12.4 22.7 21 0 6.9-2.8 12.2-5.7 15.1-4.7 4.7-11.1 5.8-20.8 5.8h-7.6v17.5H96v8.5H68.4v-8.5h8.5V10.4zm18.7 25.2c12.5 0 15.2-5.8 15.2-12.8 0-8-4.5-12.4-12-12.4H87.1v25.2h8.5zM149.4 21.2c14.2 0 24.8 10.7 24.8 25s-10.7 25-24.9 25-24.8-10.7-24.8-25 10.6-25 24.9-25zm-.1 41c8.5 0 14.9-6.8 14.9-16 0-9.1-6.4-16-14.9-16-8.4 0-14.8 6.9-14.8 16 0 9.2 6.4 16 14.8 16zM182.1 53.6h8.3v1.6c.8 4.7 5.1 7.6 11.3 7.6 5.9 0 9.7-2.3 9.7-5.9 0-8.8-16.6-3.2-25.6-12.2-2.2-2.2-3.7-5.5-3.7-9 0-8.1 7-13.9 16.6-13.9 4.3 0 8.4 1 11.5 2.7v-1.9h8.2v15.6h-8.2v-2.9c-2.7-4-6.2-5.8-11-5.8-5 0-8.3 2.3-8.3 5.8 0 7.9 18.2 3.3 26 11.1 2.8 2.8 4 6.5 4 9.8 0 8.6-7.3 14.4-18.1 14.4-5.1 0-9-1.1-12.4-3.4v2.6h-8.3V53.6zM226.8 22.6h6.1v-7.3l9.4-8.5v15.8h8.7v8.2h-8.7v27.3c0 4.6 4.1 4.4 8.7 2.8v8.4c-2.2.7-4.7 1.3-6.9 1.3-6.6 0-11.2-3-11.2-11.2V30.8h-6.1v-8.2zM265.4 30.8h-7.9v-8.2h17.3v5.9c5.5-4.4 10.8-6.7 16-6.7 5.3 0 9.4 2.6 11.4 7.4 6.8-5.3 11.6-7.4 17-7.4 7.8 0 12.6 4.8 12.6 13v26.8h8.1v8.2h-17.5V36.9c0-4.6-2.1-6.9-5.7-6.9-3.8 0-8.7 2.3-13.4 6.2v25.4h8.1v8.2h-17.5V37.1c0-5-2.8-6.7-5.8-6.7-3.4 0-7.6 1.8-13.3 5.8v25.4h8.1v8.2h-26.1v-8.2h8.6V30.8zM392.5 69.8h-16.4V64c-5.9 4.8-10 6.6-15.2 6.6-9 0-16-6.6-16-15 0-8.6 7.5-15.3 17.2-15.3 4.2 0 9.1 1.5 12.9 4v-6.2c0-6.7-4.9-9.1-10.5-9.1-4.5 0-8 1.9-10.1 5.6l-8.9-2.4c4-7.3 10.8-11 20.4-11 13.8 0 18.5 6.9 18.5 14.5v25.9h8.1v8.2zM375 52.2c-4-3.1-8.2-4.7-12.2-4.7-5.2 0-9 3.4-9 8.1 0 4.6 3.5 7.8 8.5 7.8 4.2 0 8.9-2.1 12.7-5.6v-5.6zM405.3 30.8h-9.5v-8.2h16.9v10.6h.2c3-7.9 9-11.4 14.9-11.4h6.1v9.4h-5c-10.9 0-14.2 6.1-14.2 16.9v13.5h10.2v8.2H396v-8.2h9.3V30.8zM444.2 10.1h-8.5V1.9h17.9v42.4l17.7-13.9v-.2h-7.9v-7.6h26.2v7.6h-7.3l-17.7 14.7 16.7 16.7h8.1v8.2h-12L453.6 46v15.6h7v8.2h-25v-8.2h8.6V10.1z"/></g></svg>
|
assets/mix-manifest.json
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
"/images/mailgun.svg": "/images/mailgun.svg",
|
15 |
"/images/microsoft.svg": "/images/microsoft.svg",
|
16 |
"/images/pepipost-logo.png": "/images/pepipost-logo.png",
|
|
|
17 |
"/images/sendgrid.svg": "/images/sendgrid.svg",
|
18 |
"/images/sendinblue.svg": "/images/sendinblue.svg",
|
19 |
"/images/smtp.svg": "/images/smtp.svg",
|
14 |
"/images/mailgun.svg": "/images/mailgun.svg",
|
15 |
"/images/microsoft.svg": "/images/microsoft.svg",
|
16 |
"/images/pepipost-logo.png": "/images/pepipost-logo.png",
|
17 |
+
"/images/postmark.svg": "/images/postmark.svg",
|
18 |
"/images/sendgrid.svg": "/images/sendgrid.svg",
|
19 |
"/images/sendinblue.svg": "/images/sendinblue.svg",
|
20 |
"/images/smtp.svg": "/images/smtp.svg",
|
boot.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
!defined('WPINC') && die;
|
4 |
|
5 |
define('FLUENTMAIL', 'fluentmail');
|
6 |
-
define('FLUENTMAIL_PLUGIN_VERSION', '2.0.
|
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.0.1');
|
7 |
define('FLUENTMAIL_UPLOAD_DIR', '/fluentmail');
|
8 |
define('FLUENT_MAIL_DB_PREFIX', 'fsmpt_');
|
9 |
define('FLUENTMAIL_PLUGIN_URL', plugin_dir_url(__FILE__));
|
fluent-smtp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: FluentSMTP
|
4 |
Plugin URI: https://fluentsmtp.com
|
5 |
Description: The Ultimate SMTP Connection Plugin for WordPress.
|
6 |
-
Version: 2.0.
|
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.0.1
|
7 |
Author: FluentSMTP & WPManageNinja Team
|
8 |
Author URI: https://fluentsmtp.com
|
9 |
License: GPL2
|
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: 5.8.0
|
6 |
-
Stable tag: 2.0.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -266,6 +266,11 @@ Please <a href="https://wpmanageninja.com/support-tickets/">submit an issue in o
|
|
266 |
|
267 |
== Changelog ==
|
268 |
|
|
|
|
|
|
|
|
|
|
|
269 |
= 2.0.0 (Date: July 27, 2021) =
|
270 |
* Added Outlook / Office 365 API Connection
|
271 |
* Improvements of Amazon SES Connection
|
3 |
Tags: smtp, amazon ses, fluent smtp, wordpress smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, sendinblue, wp smtp
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.8.0
|
6 |
+
Stable tag: 2.0.1
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
266 |
|
267 |
== Changelog ==
|
268 |
|
269 |
+
= 2.0.1 (Date: July 28, 2021) =
|
270 |
+
* Added Postmark API Connection
|
271 |
+
* Fix Dashboard Stat Number
|
272 |
+
* Fix Sanitization Issue
|
273 |
+
|
274 |
= 2.0.0 (Date: July 27, 2021) =
|
275 |
* Added Outlook / Office 365 API Connection
|
276 |
* Improvements of Amazon SES Connection
|