Version Description
Download this release
Release Info
Developer | devowl |
Plugin | Real Cookie Banner: GDPR (DSGVO) & ePrivacy Cookie Consent |
Version | 2.18.2 |
Comparing to | |
See all releases |
Code changes from version 2.18.1 to 2.18.2
- CHANGELOG.md +44 -9
- README.txt +2 -0
- inc/Activator.php +8 -1
- inc/IpHandler.php +1 -3
- inc/UserConsent.php +19 -15
- inc/Utils.php +2 -1
- inc/base/others/cachebuster-lib.php +1 -1
- inc/base/others/cachebuster.php +31 -30
- inc/presets/UpdateNotice.php +1 -1
- inc/presets/pro/blocker/GoogleMapsPreset.php +4 -1
- inc/presets/pro/blocker/ThriveLeadsPreset.php +1 -1
- inc/rest/Consent.php +1 -1
- inc/scanner/Scanner.php +4 -2
- inc/view/Banner.php +2 -2
- inc/view/Scanner.php +2 -2
- inc/view/blocker/Plugin.php +3 -1
- index.php +1 -1
- languages/real-cookie-banner-de_AT.mo +0 -0
- languages/real-cookie-banner-de_AT.po +39 -31
- languages/real-cookie-banner-de_CH.mo +0 -0
- languages/real-cookie-banner-de_CH.po +39 -31
- languages/real-cookie-banner-de_CH_informal.mo +0 -0
- languages/real-cookie-banner-de_CH_informal.po +39 -31
- languages/real-cookie-banner-de_DE.mo +0 -0
- languages/real-cookie-banner-de_DE.po +39 -31
- languages/real-cookie-banner-de_DE_formal.mo +0 -0
- languages/real-cookie-banner-de_DE_formal.po +37 -29
- languages/real-cookie-banner.pot +9 -4
- public/dist/548.lite.js +2 -2
- public/dist/548.lite.js.map +1 -1
- public/dist/admin.lite.js +1 -1
- public/dist/admin.lite.js.map +0 -1
CHANGELOG.md
CHANGED
@@ -3,13 +3,56 @@
|
|
3 |
All notable changes to this project will be documented in this file.
|
4 |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
## 2.18.1 (2022-05-24)
|
7 |
|
8 |
|
9 |
### fix
|
10 |
|
11 |
* migrations did not work as expected for newer features and existing users (hotfix, CU-2f1fcfv)
|
12 |
-
* migrations did not work as expected for newer features and existing users (hotfix, CU-2f1fcfv)
|
13 |
|
14 |
|
15 |
|
@@ -21,20 +64,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
21 |
### chore
|
22 |
|
23 |
* highlight consent options equally in design presets (CU-20chay0)
|
24 |
-
* review 1 (CU-20chay0, CU-20chd53)
|
25 |
-
* review 1 (CU-20che0e, CU-2cbpypb, CU-20ch8fp, CU-20ch8w2)
|
26 |
-
* review 1 (CU-2f1fcfv)
|
27 |
-
* review 2 (CU-20ch8fp)
|
28 |
-
* review 2 (CU-20ch8w2)
|
29 |
-
* review 2 (CU-20che0e)
|
30 |
* show in-app promo coupons in free version (CU-23tayej)
|
31 |
-
* update changelog URL (CU-2adgjqp)
|
32 |
|
33 |
|
34 |
### docs
|
35 |
|
36 |
* animated banner in wordpress.org product description (CU-237uw9d)
|
37 |
-
* clean up changelog (CU-294ugp0)
|
38 |
* compatibility with WordPress 6.0 (CU-2e4yvvt)
|
39 |
* mention new features in wordpress.org product description (CU-294ugp0)
|
40 |
|
3 |
All notable changes to this project will be documented in this file.
|
4 |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 |
|
6 |
+
## 2.18.2 (2022-06-08)
|
7 |
+
|
8 |
+
|
9 |
+
### chore
|
10 |
+
|
11 |
+
* etracker settings moved in their dashboard; adjust notice in service template (CU-2fd0ejp)
|
12 |
+
* update embera third-party dependency (CU-2d2n29v)
|
13 |
+
|
14 |
+
|
15 |
+
### docs
|
16 |
+
|
17 |
+
* clean up changelog (CU-294ugp0)
|
18 |
+
* update GIFs in wordpress.org product description (CU-2fjkwc6)
|
19 |
+
|
20 |
+
|
21 |
+
### fix
|
22 |
+
|
23 |
+
* better error message when TCF GVL could not be downloaded completely (CU-2jm2eb7)
|
24 |
+
* compatibility with JetEngine Maps Listing component (CU-2jzg7yc)
|
25 |
+
* compatibility with Thrive Leads ribbons with animations
|
26 |
+
* compatibility with visual content blocker of play.ht plugin (CU-2jm27t4)
|
27 |
+
* security vulnerability XSS, could be exploited by logged in administratos (CU-2j8f5fa)
|
28 |
+
* some PHP notices about missing variables (CU-2j8gba7)
|
29 |
+
|
30 |
+
|
31 |
+
### perf
|
32 |
+
|
33 |
+
* introduce new database indexes for large consent database table (CU-2jtrjnz)
|
34 |
+
|
35 |
+
|
36 |
+
### refactor
|
37 |
+
|
38 |
+
* extract cookie banner UI to @devowl-wp/react-cookie-banner (CU-2jm1m37)
|
39 |
+
* use is_multisite instead of function_exists checks (CU-2k54b8m)
|
40 |
+
|
41 |
+
|
42 |
+
### style
|
43 |
+
|
44 |
+
* superscript was set too hight (CU-2fcwcx0)
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
## 2.18.1 (2022-05-24)
|
51 |
|
52 |
|
53 |
### fix
|
54 |
|
55 |
* migrations did not work as expected for newer features and existing users (hotfix, CU-2f1fcfv)
|
|
|
56 |
|
57 |
|
58 |
|
64 |
### chore
|
65 |
|
66 |
* highlight consent options equally in design presets (CU-20chay0)
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
* show in-app promo coupons in free version (CU-23tayej)
|
|
|
68 |
|
69 |
|
70 |
### docs
|
71 |
|
72 |
* animated banner in wordpress.org product description (CU-237uw9d)
|
|
|
73 |
* compatibility with WordPress 6.0 (CU-2e4yvvt)
|
74 |
* mention new features in wordpress.org product description (CU-294ugp0)
|
75 |
|
README.txt
CHANGED
@@ -221,5 +221,7 @@ The PRO Version offers you many additional features like Google Tag Manager and
|
|
221 |
|
222 |
You can view the changelog and release notes [here](https://devowl.io/wordpress-real-cookie-banner/changelog/).
|
223 |
|
|
|
|
|
224 |
== Upgrade Notice ==
|
225 |
|
221 |
|
222 |
You can view the changelog and release notes [here](https://devowl.io/wordpress-real-cookie-banner/changelog/).
|
223 |
|
224 |
+
Real Cookie Banner 2.18.1 or older had an XSS vulnerability. It could be exploited by logged in WordPress users with permissions to manage options (mostly administrators). We strongly recommend to install updates to 2.18.2 or newer!
|
225 |
+
|
226 |
== Upgrade Notice ==
|
227 |
|
inc/Activator.php
CHANGED
@@ -138,7 +138,14 @@ class Activator {
|
|
138 |
}
|
139 |
// wp_rcb_consent
|
140 |
$table_name = $this->getTableName(\DevOwl\RealCookieBanner\UserConsent::TABLE_NAME);
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
dbDelta($sql);
|
143 |
if ($errorlevel) {
|
144 |
$wpdb->print_error();
|
138 |
}
|
139 |
// wp_rcb_consent
|
140 |
$table_name = $this->getTableName(\DevOwl\RealCookieBanner\UserConsent::TABLE_NAME);
|
141 |
+
/**
|
142 |
+
* Stats index:
|
143 |
+
* $max_index_length_stats = $max_index_length - (36 + 32 + 20 + 8 DATETIME created); // subtract length of other fields
|
144 |
+
* Currently configured as strict `40` length as the context is usually not greater
|
145 |
+
* `KEY stats (created, context(40), forwarded, button_clicked, uuid)`
|
146 |
+
* This key is currently not in use
|
147 |
+
*/
|
148 |
+
$sql = "CREATE TABLE {$table_name} (\n id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n plugin_version varchar(20) DEFAULT '0.0.0' NOT NULL,\n design_version int(4) UNSIGNED DEFAULT 1 NOT NULL,\n ipv4 int UNSIGNED,\n ipv6 binary(16),\n ipv4_hash char(64),\n ipv6_hash char(64),\n uuid char(36) NOT NULL,\n revision char(32) NOT NULL,\n revision_independent char(32) NOT NULL,\n previous_decision tinytext NOT NULL,\n decision_hash char(32) NOT NULL,\n decision tinytext NOT NULL,\n blocker bigint(20) UNSIGNED,\n blocker_thumbnail bigint(20) UNSIGNED,\n button_clicked varchar(32) NOT NULL,\n context varchar(40) NOT NULL,\n viewport_width int UNSIGNED NOT NULL,\n viewport_height int UNSIGNED NOT NULL,\n referer tinytext NOT NULL,\n pure_referer tinytext NOT NULL,\n url_imprint tinytext NOT NULL,\n url_privacy_policy tinytext NOT NULL,\n dnt tinyint(1) UNSIGNED NOT NULL,\n custom_bypass varchar(50),\n created datetime NOT NULL,\n forwarded bigint(20) UNSIGNED,\n forwarded_blocker tinyint(1) NOT NULL,\n user_country varchar(5),\n tcf_string text,\n PRIMARY KEY (id),\n KEY ipFlooding (ipv4_hash, ipv6_hash, created),\n KEY filters (created, context)\n ) {$charset_collate};";
|
149 |
dbDelta($sql);
|
150 |
if ($errorlevel) {
|
151 |
$wpdb->print_error();
|
inc/IpHandler.php
CHANGED
@@ -62,11 +62,9 @@ class IpHandler {
|
|
62 |
"= 'NULL'",
|
63 |
'IS NULL',
|
64 |
$wpdb->prepare(
|
65 |
-
"SELECT COUNT(*)\n FROM {$table_name}\n WHERE
|
66 |
$floodingSeconds .
|
67 |
' SECOND)',
|
68 |
-
$ips['ipv4'] === null ? 'NULL' : $ips['ipv4'],
|
69 |
-
$ips['ipv6'] === null ? 'NULL' : $ips['ipv6'],
|
70 |
$ips['ipv4_hash'] === null ? 'NULL' : $ips['ipv4_hash'],
|
71 |
$ips['ipv6_hash'] === null ? 'NULL' : $ips['ipv6_hash']
|
72 |
)
|
62 |
"= 'NULL'",
|
63 |
'IS NULL',
|
64 |
$wpdb->prepare(
|
65 |
+
"SELECT COUNT(*)\n FROM {$table_name}\n WHERE ipv4_hash = %s\n AND ipv6_hash = %s\n AND created > (NOW() - INTERVAL " .
|
66 |
$floodingSeconds .
|
67 |
' SECOND)',
|
|
|
|
|
68 |
$ips['ipv4_hash'] === null ? 'NULL' : $ips['ipv4_hash'],
|
69 |
$ips['ipv6_hash'] === null ? 'NULL' : $ips['ipv6_hash']
|
70 |
)
|
inc/UserConsent.php
CHANGED
@@ -185,10 +185,12 @@ class UserConsent {
|
|
185 |
// Parse arguments
|
186 |
$args = \array_merge(
|
187 |
[
|
188 |
-
|
189 |
-
'ip' => '',
|
190 |
'offset' => 0,
|
191 |
'perPage' => 10,
|
|
|
|
|
|
|
192 |
'from' => '',
|
193 |
'to' => '',
|
194 |
'pure_referer' => '',
|
@@ -210,18 +212,20 @@ class UserConsent {
|
|
210 |
$table_name_revision_independent = $this->getTableName(
|
211 |
\DevOwl\RealCookieBanner\settings\Revision::TABLE_NAME_INDEPENDENT
|
212 |
);
|
|
|
|
|
|
|
|
|
|
|
213 |
// Build WHERE statement for filtering
|
|
|
214 |
$where = [];
|
215 |
$where[] = empty($uuid) ? '1 = 1' : $wpdb->prepare('(c.uuid = %s)', $uuid);
|
216 |
-
$useIpv4 = \ip2long($ip);
|
217 |
-
$useIpv6 = \inet_pton($ip);
|
218 |
$hashIp = \DevOwl\RealCookieBanner\Utils::hash($ip);
|
219 |
$where[] = empty($ip)
|
220 |
? '1 = 1'
|
221 |
: $wpdb->prepare(
|
222 |
-
'(c.
|
223 |
-
$useIpv4 === \false ? 1 : $useIpv4,
|
224 |
-
$useIpv6 === \false ? 1 : $useIpv6,
|
225 |
$ip,
|
226 |
$ip,
|
227 |
// When the IP is entered plain, also respect hashed IPs
|
@@ -230,7 +234,7 @@ class UserConsent {
|
|
230 |
);
|
231 |
$where[] = empty($pure_referer) ? '1 = 1' : $wpdb->prepare('c.pure_referer = %s', $pure_referer);
|
232 |
$where[] = !empty($from) && !empty($to) ? $wpdb->prepare('c.created BETWEEN %s AND %s', $from, $to) : '1 = 1';
|
233 |
-
$where[] =
|
234 |
$fields = [
|
235 |
'c.id',
|
236 |
'c.plugin_version',
|
@@ -264,7 +268,9 @@ class UserConsent {
|
|
264 |
$fields[] = 'rev.json_revision AS revision';
|
265 |
$fields[] = 'revc.json_revision AS revision_independent';
|
266 |
} elseif ($returnType === self::BY_CRITERIA_RESULT_TYPE_COUNT) {
|
267 |
-
$fields = ['COUNT(
|
|
|
|
|
268 |
} else {
|
269 |
// For all other implementations we should definitely lazy load the revision object via shortcode
|
270 |
$fields[] = 'rev.hash AS revision_hash';
|
@@ -278,11 +284,9 @@ class UserConsent {
|
|
278 |
'
|
279 |
FROM ' .
|
280 |
$table_name .
|
281 |
-
' AS c
|
282 |
-
$
|
283 |
-
'
|
284 |
-
$table_name_revision_independent .
|
285 |
-
' AS revc ON revc.hash = c.revision_independent WHERE ' .
|
286 |
\join(' AND ', $where) .
|
287 |
($returnType === self::BY_CRITERIA_RESULT_TYPE_COUNT ? '' : ' ORDER BY c.created DESC LIMIT %d, %d'),
|
288 |
$limitOffset,
|
@@ -425,7 +429,7 @@ class UserConsent {
|
|
425 |
global $wpdb;
|
426 |
$table_name = $this->getTableName(self::TABLE_NAME);
|
427 |
// phpcs:disable WordPress.DB.PreparedSQL
|
428 |
-
return \intval($wpdb->get_var("SELECT COUNT(
|
429 |
// phpcs:enable WordPress.DB.PreparedSQL
|
430 |
}
|
431 |
/**
|
185 |
// Parse arguments
|
186 |
$args = \array_merge(
|
187 |
[
|
188 |
+
// LIMIT
|
|
|
189 |
'offset' => 0,
|
190 |
'perPage' => 10,
|
191 |
+
// Filters
|
192 |
+
'uuid' => '',
|
193 |
+
'ip' => '',
|
194 |
'from' => '',
|
195 |
'to' => '',
|
196 |
'pure_referer' => '',
|
212 |
$table_name_revision_independent = $this->getTableName(
|
213 |
\DevOwl\RealCookieBanner\settings\Revision::TABLE_NAME_INDEPENDENT
|
214 |
);
|
215 |
+
// Build JOIN's
|
216 |
+
$joins = [
|
217 |
+
'INNER JOIN ' . $table_name_revision . ' AS rev ON rev.hash = c.revision',
|
218 |
+
'INNER JOIN ' . $table_name_revision_independent . ' AS revc ON revc.hash = c.revision_independent'
|
219 |
+
];
|
220 |
// Build WHERE statement for filtering
|
221 |
+
// If you add a new filter, keep in mind to add the column to the index `filters` of `wp_rcb_consent`
|
222 |
$where = [];
|
223 |
$where[] = empty($uuid) ? '1 = 1' : $wpdb->prepare('(c.uuid = %s)', $uuid);
|
|
|
|
|
224 |
$hashIp = \DevOwl\RealCookieBanner\Utils::hash($ip);
|
225 |
$where[] = empty($ip)
|
226 |
? '1 = 1'
|
227 |
: $wpdb->prepare(
|
228 |
+
'(c.ipv4_hash = %s OR c.ipv6_hash = %s OR c.ipv4_hash = %s OR c.ipv6_hash = %s)',
|
|
|
|
|
229 |
$ip,
|
230 |
$ip,
|
231 |
// When the IP is entered plain, also respect hashed IPs
|
234 |
);
|
235 |
$where[] = empty($pure_referer) ? '1 = 1' : $wpdb->prepare('c.pure_referer = %s', $pure_referer);
|
236 |
$where[] = !empty($from) && !empty($to) ? $wpdb->prepare('c.created BETWEEN %s AND %s', $from, $to) : '1 = 1';
|
237 |
+
$where[] = \is_string($context) ? $wpdb->prepare('c.context = %s', $context) : '1 = 1';
|
238 |
$fields = [
|
239 |
'c.id',
|
240 |
'c.plugin_version',
|
268 |
$fields[] = 'rev.json_revision AS revision';
|
269 |
$fields[] = 'revc.json_revision AS revision_independent';
|
270 |
} elseif ($returnType === self::BY_CRITERIA_RESULT_TYPE_COUNT) {
|
271 |
+
$fields = ['COUNT(1) AS cnt'];
|
272 |
+
// We do not need to join anything
|
273 |
+
$joins = [];
|
274 |
} else {
|
275 |
// For all other implementations we should definitely lazy load the revision object via shortcode
|
276 |
$fields[] = 'rev.hash AS revision_hash';
|
284 |
'
|
285 |
FROM ' .
|
286 |
$table_name .
|
287 |
+
' AS c ' .
|
288 |
+
\join(' ', $joins) .
|
289 |
+
' WHERE ' .
|
|
|
|
|
290 |
\join(' AND ', $where) .
|
291 |
($returnType === self::BY_CRITERIA_RESULT_TYPE_COUNT ? '' : ' ORDER BY c.created DESC LIMIT %d, %d'),
|
292 |
$limitOffset,
|
429 |
global $wpdb;
|
430 |
$table_name = $this->getTableName(self::TABLE_NAME);
|
431 |
// phpcs:disable WordPress.DB.PreparedSQL
|
432 |
+
return \intval($wpdb->get_var("SELECT COUNT(1) FROM {$table_name}"));
|
433 |
// phpcs:enable WordPress.DB.PreparedSQL
|
434 |
}
|
435 |
/**
|
inc/Utils.php
CHANGED
@@ -582,7 +582,8 @@ class Utils {
|
|
582 |
// (#4)
|
583 |
$rest_url = wp_parse_url(trailingslashit(rest_url()));
|
584 |
$current_url = wp_parse_url(add_query_arg([]));
|
585 |
-
|
|
|
586 |
}
|
587 |
/**
|
588 |
* Check if current content type is the given mime type.
|
582 |
// (#4)
|
583 |
$rest_url = wp_parse_url(trailingslashit(rest_url()));
|
584 |
$current_url = wp_parse_url(add_query_arg([]));
|
585 |
+
// no `esc_url` needed as only used for checking purposes
|
586 |
+
return \strpos($current_url['path'] ?? '/', $rest_url['path'], 0) === 0;
|
587 |
}
|
588 |
/**
|
589 |
* Check if current content type is the given mime type.
|
inc/base/others/cachebuster-lib.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
/* This file was automatically generated (
|
3 |
return [
|
4 |
'animate.css' => '4.1.1',
|
5 |
'mobx' => '4.15.7',
|
1 |
<?php
|
2 |
+
/* This file was automatically generated (Wed Jun 08 2022 13:19:02 GMT+0000 (Coordinated Universal Time)). */
|
3 |
return [
|
4 |
'animate.css' => '4.1.1',
|
5 |
'mobx' => '4.15.7',
|
inc/base/others/cachebuster.php
CHANGED
@@ -1,26 +1,27 @@
|
|
1 |
<?php
|
2 |
-
/* This file was automatically generated (
|
3 |
return [
|
|
|
4 |
'src/public/dist/191.lite.js' => '38637a7ba9b7edb104d1f3db693c41a8',
|
5 |
'src/public/dist/191.pro.js' => '2fdb045aa34fad13b865bf56d869bdff',
|
6 |
'src/public/dist/193.lite.js' => 'd7a0722155f835c915b08b6c93a9208d',
|
7 |
'src/public/dist/193.pro.js' => 'd71177a05a4f8e8252c7a480e8a2842b',
|
|
|
8 |
'src/public/dist/276.lite.js' => 'b658a312356b0e71ec521276a45587b0',
|
9 |
'src/public/dist/276.pro.js' => '7f80575a91b2b090999dce05c53d7571',
|
|
|
10 |
'src/public/dist/348.lite.js' => 'b10e5a1b4ed020083d9b90e354362967',
|
11 |
'src/public/dist/348.pro.js' => 'e161c26a84fd4aa4dd792c78d8126c02',
|
12 |
-
'src/public/dist/41.pro.js' => 'eccdc3b1385610e2299308e3a5b4e7ed',
|
13 |
'src/public/dist/418.lite.js' => 'e67dca2dbaa4c6f9fd77a2a546069d67',
|
14 |
'src/public/dist/418.pro.js' => 'fbfddcc807d91362e42c82e1d16f96ff',
|
15 |
'src/public/dist/440.lite.js' => '507b1d1d30a2155478e54f9c41e43d3b',
|
16 |
'src/public/dist/440.pro.js' => 'be0305e357c4bec403a16175006c8fd8',
|
17 |
-
'src/public/dist/
|
18 |
-
'src/public/dist/548.lite.js' => '
|
19 |
'src/public/dist/716.lite.js' => '2387b139748accec44017fa5ed1ed3e3',
|
20 |
'src/public/dist/716.pro.js' => 'a93d630f29e6762defcf6f97e9896223',
|
21 |
'src/public/dist/756.lite.js' => 'a33fd915f84e6f8be48f0e54138e39f2',
|
22 |
'src/public/dist/756.pro.js' => '0f18eab40b089c103d9f598326bcdf15',
|
23 |
-
'src/public/dist/789.pro.js' => '21467511370feb31437c55e345306f83',
|
24 |
'src/public/dist/795.lite.js' => 'f24c07d99365d028468d9a8eef40ca37',
|
25 |
'src/public/dist/795.pro.js' => '0f2c5c70d9be03caab24126e536c3c3d',
|
26 |
'src/public/dist/813.lite.js' => 'a891cb31407bfee9406f428177ebcfe9',
|
@@ -32,45 +33,45 @@ return [
|
|
32 |
'src/public/dist/930.pro.js' => 'e1092ede607c69f5547e5440ee10b93b',
|
33 |
'src/public/dist/954.lite.js' => 'eaaae2e681627767c86add5ebd61aaf6',
|
34 |
'src/public/dist/954.pro.js' => 'faf328b7bd41817fcb3693740adbc496',
|
35 |
-
'src/public/dist/admin.lite.js' => '
|
36 |
-
'src/public/dist/admin.pro.js' => '
|
37 |
-
'src/public/dist/banner_tcf.pro.js' => '
|
38 |
-
'src/public/dist/banner.lite.js' => '
|
39 |
-
'src/public/dist/banner.pro.js' => '
|
40 |
-
'src/public/dist/blocker_tcf.pro.js' => '
|
41 |
-
'src/public/dist/blocker.lite.js' => '
|
42 |
-
'src/public/dist/blocker.pro.js' => '
|
43 |
-
'src/public/dist/chunk-config-tab-blocker.lite.js' => '
|
44 |
-
'src/public/dist/chunk-config-tab-blocker.pro.js' => '
|
45 |
'src/public/dist/chunk-config-tab-consent.lite.js' => '03ad4e0ef3d1413f265a9335977ae82f',
|
46 |
-
'src/public/dist/chunk-config-tab-consent.pro.js' => '
|
47 |
-
'src/public/dist/chunk-config-tab-cookies.lite.js' => '
|
48 |
-
'src/public/dist/chunk-config-tab-cookies.pro.js' => '
|
49 |
'src/public/dist/chunk-config-tab-dashboard.lite.js' => 'c2db7d58f8d1d161907ef98a45b26c0e',
|
50 |
'src/public/dist/chunk-config-tab-dashboard.pro.js' => '88936b0da2ba956234ae523895c6d76b',
|
51 |
-
'src/public/dist/chunk-config-tab-import.lite.js' => '
|
52 |
-
'src/public/dist/chunk-config-tab-import.pro.js' => '
|
53 |
'src/public/dist/chunk-config-tab-licensing.lite.js' => 'f03f0e80b7ce66f91dc3392518d8af9c',
|
54 |
'src/public/dist/chunk-config-tab-licensing.pro.js' => '2fdfebedf923e5c376bd469ff1e1eb31',
|
55 |
'src/public/dist/chunk-config-tab-scanner.lite.js' => '1560805869186588d4d28f4bab9ffc87',
|
56 |
-
'src/public/dist/chunk-config-tab-scanner.pro.js' => '
|
57 |
'src/public/dist/chunk-config-tab-settings.lite.js' => '0546eab20093f4a491c73339caa1b832',
|
58 |
'src/public/dist/chunk-config-tab-settings.pro.js' => 'bf0cb2878745240e490839cfb72efdd2',
|
59 |
-
'src/public/dist/chunk-config-tab-tcf.lite.js' => '
|
60 |
-
'src/public/dist/chunk-config-tab-tcf.pro.js' => '
|
61 |
-
'src/public/dist/customize_banner.lite.js' => '
|
62 |
-
'src/public/dist/customize_banner.pro.js' => '
|
63 |
-
'src/public/dist/customize.lite.js' => '
|
64 |
-
'src/public/dist/customize.pro.js' => '
|
65 |
'src/public/dist/queue.lite.js' => '7b9c552c5049e1b529155a7c01b25aef',
|
66 |
'src/public/dist/queue.pro.js' => '352f65e78294e1be38b2cc3a8c9f4a8e',
|
67 |
'src/public/dist/vendor-admin.lite.js' => 'f1c19a085c135d0f8d34f8678f9737df',
|
68 |
'src/public/dist/vendor-admin.pro.js' => 'a66ff8967c03ab9411bbbe3051ca0b94',
|
69 |
'src/public/dist/vendor-banner_tcf.pro.js' => '5f087cf149b75526844e11e03ba7ca32',
|
70 |
-
'src/public/dist/vendor-banner.lite.js' => '
|
71 |
'src/public/dist/vendor-banner.pro.js' => '7a72278ea147e6c777ef2c21d441214d',
|
72 |
-
'src/public/dist/vendor-customize_banner.lite.js' => '
|
73 |
-
'src/public/dist/vendor-customize_banner.pro.js' => '
|
74 |
'src/public/dist/vendor-customize.lite.js' => '318f0df06a7f1686f580e3500783e0cc',
|
75 |
'src/public/dist/vendor-customize.pro.js' => '218aacecd433ad4ae272bdc2f339bd7d',
|
76 |
'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
|
1 |
<?php
|
2 |
+
/* This file was automatically generated (Wed Jun 08 2022 13:19:02 GMT+0000 (Coordinated Universal Time)). */
|
3 |
return [
|
4 |
+
'src/public/dist/13.pro.js' => '6866a22bfe639345873e9415ddeca7f4',
|
5 |
'src/public/dist/191.lite.js' => '38637a7ba9b7edb104d1f3db693c41a8',
|
6 |
'src/public/dist/191.pro.js' => '2fdb045aa34fad13b865bf56d869bdff',
|
7 |
'src/public/dist/193.lite.js' => 'd7a0722155f835c915b08b6c93a9208d',
|
8 |
'src/public/dist/193.pro.js' => 'd71177a05a4f8e8252c7a480e8a2842b',
|
9 |
+
'src/public/dist/237.pro.js' => 'f9476a3430b5d3f70591de78f8af5e0c',
|
10 |
'src/public/dist/276.lite.js' => 'b658a312356b0e71ec521276a45587b0',
|
11 |
'src/public/dist/276.pro.js' => '7f80575a91b2b090999dce05c53d7571',
|
12 |
+
'src/public/dist/317.pro.js' => '871f267ac07cadaa44044ac228575826',
|
13 |
'src/public/dist/348.lite.js' => 'b10e5a1b4ed020083d9b90e354362967',
|
14 |
'src/public/dist/348.pro.js' => 'e161c26a84fd4aa4dd792c78d8126c02',
|
|
|
15 |
'src/public/dist/418.lite.js' => 'e67dca2dbaa4c6f9fd77a2a546069d67',
|
16 |
'src/public/dist/418.pro.js' => 'fbfddcc807d91362e42c82e1d16f96ff',
|
17 |
'src/public/dist/440.lite.js' => '507b1d1d30a2155478e54f9c41e43d3b',
|
18 |
'src/public/dist/440.pro.js' => 'be0305e357c4bec403a16175006c8fd8',
|
19 |
+
'src/public/dist/542.pro.js' => 'f31598846e24d1c136acd12a2513b593',
|
20 |
+
'src/public/dist/548.lite.js' => '883e7cbb64ab23a6df34b3c8690ec077',
|
21 |
'src/public/dist/716.lite.js' => '2387b139748accec44017fa5ed1ed3e3',
|
22 |
'src/public/dist/716.pro.js' => 'a93d630f29e6762defcf6f97e9896223',
|
23 |
'src/public/dist/756.lite.js' => 'a33fd915f84e6f8be48f0e54138e39f2',
|
24 |
'src/public/dist/756.pro.js' => '0f18eab40b089c103d9f598326bcdf15',
|
|
|
25 |
'src/public/dist/795.lite.js' => 'f24c07d99365d028468d9a8eef40ca37',
|
26 |
'src/public/dist/795.pro.js' => '0f2c5c70d9be03caab24126e536c3c3d',
|
27 |
'src/public/dist/813.lite.js' => 'a891cb31407bfee9406f428177ebcfe9',
|
33 |
'src/public/dist/930.pro.js' => 'e1092ede607c69f5547e5440ee10b93b',
|
34 |
'src/public/dist/954.lite.js' => 'eaaae2e681627767c86add5ebd61aaf6',
|
35 |
'src/public/dist/954.pro.js' => 'faf328b7bd41817fcb3693740adbc496',
|
36 |
+
'src/public/dist/admin.lite.js' => 'f6d666911c6574893c1494a72f0126b5',
|
37 |
+
'src/public/dist/admin.pro.js' => '469a1306c5d4f220f59b3e9522fd6d1a',
|
38 |
+
'src/public/dist/banner_tcf.pro.js' => '335a6027cdf7e09fabd373b4fd580b54',
|
39 |
+
'src/public/dist/banner.lite.js' => '5ba380390f0d8591db2c0a749f4d7fee',
|
40 |
+
'src/public/dist/banner.pro.js' => '4df2821b06aeb0e51a35e0749af50ae3',
|
41 |
+
'src/public/dist/blocker_tcf.pro.js' => '9cbb98b380f5de95000f9ad3bce8fec6',
|
42 |
+
'src/public/dist/blocker.lite.js' => 'e2cd0316cb35748186442850564bdac7',
|
43 |
+
'src/public/dist/blocker.pro.js' => 'babe8272e2d4e7b42a833a4b2f6f891c',
|
44 |
+
'src/public/dist/chunk-config-tab-blocker.lite.js' => '58c96f0840888e18cb6cbfcd86920448',
|
45 |
+
'src/public/dist/chunk-config-tab-blocker.pro.js' => 'b43200bcbf34e65a9af68e0374fd5fbe',
|
46 |
'src/public/dist/chunk-config-tab-consent.lite.js' => '03ad4e0ef3d1413f265a9335977ae82f',
|
47 |
+
'src/public/dist/chunk-config-tab-consent.pro.js' => 'b9e9501619bf2df0085ce4d635d97aa9',
|
48 |
+
'src/public/dist/chunk-config-tab-cookies.lite.js' => '255fdba37ae725297a5859824c343746',
|
49 |
+
'src/public/dist/chunk-config-tab-cookies.pro.js' => '87cd9a1d2e1b033d227e118124260f0b',
|
50 |
'src/public/dist/chunk-config-tab-dashboard.lite.js' => 'c2db7d58f8d1d161907ef98a45b26c0e',
|
51 |
'src/public/dist/chunk-config-tab-dashboard.pro.js' => '88936b0da2ba956234ae523895c6d76b',
|
52 |
+
'src/public/dist/chunk-config-tab-import.lite.js' => '724795aaa805d4ed3db5c60f574a2734',
|
53 |
+
'src/public/dist/chunk-config-tab-import.pro.js' => '4eb0ca8d93565a722931b5c5772456e1',
|
54 |
'src/public/dist/chunk-config-tab-licensing.lite.js' => 'f03f0e80b7ce66f91dc3392518d8af9c',
|
55 |
'src/public/dist/chunk-config-tab-licensing.pro.js' => '2fdfebedf923e5c376bd469ff1e1eb31',
|
56 |
'src/public/dist/chunk-config-tab-scanner.lite.js' => '1560805869186588d4d28f4bab9ffc87',
|
57 |
+
'src/public/dist/chunk-config-tab-scanner.pro.js' => 'be94bc1b9ce77327aa6cfbe06e65103e',
|
58 |
'src/public/dist/chunk-config-tab-settings.lite.js' => '0546eab20093f4a491c73339caa1b832',
|
59 |
'src/public/dist/chunk-config-tab-settings.pro.js' => 'bf0cb2878745240e490839cfb72efdd2',
|
60 |
+
'src/public/dist/chunk-config-tab-tcf.lite.js' => '0adcbf2f3ea0f9ab7ebc49bbdd415813',
|
61 |
+
'src/public/dist/chunk-config-tab-tcf.pro.js' => '7e87bb493095bd8024163e00e140e746',
|
62 |
+
'src/public/dist/customize_banner.lite.js' => '3db24540a5c3470bf31ce776d2e9441c',
|
63 |
+
'src/public/dist/customize_banner.pro.js' => '6eb01745788dc9a3c8a21770269c6f21',
|
64 |
+
'src/public/dist/customize.lite.js' => '9fff878dd4775a8a757e501ae79b6077',
|
65 |
+
'src/public/dist/customize.pro.js' => '0dd63d82d4312c8f6c3ed7c393ba9dab',
|
66 |
'src/public/dist/queue.lite.js' => '7b9c552c5049e1b529155a7c01b25aef',
|
67 |
'src/public/dist/queue.pro.js' => '352f65e78294e1be38b2cc3a8c9f4a8e',
|
68 |
'src/public/dist/vendor-admin.lite.js' => 'f1c19a085c135d0f8d34f8678f9737df',
|
69 |
'src/public/dist/vendor-admin.pro.js' => 'a66ff8967c03ab9411bbbe3051ca0b94',
|
70 |
'src/public/dist/vendor-banner_tcf.pro.js' => '5f087cf149b75526844e11e03ba7ca32',
|
71 |
+
'src/public/dist/vendor-banner.lite.js' => 'd536d0d314c301ffe15f694ac21dc404',
|
72 |
'src/public/dist/vendor-banner.pro.js' => '7a72278ea147e6c777ef2c21d441214d',
|
73 |
+
'src/public/dist/vendor-customize_banner.lite.js' => '18020ebd4fd9ed4062a55152c7eeb6ae',
|
74 |
+
'src/public/dist/vendor-customize_banner.pro.js' => '17c03de8dd20b79d97cbc928b3b826f5',
|
75 |
'src/public/dist/vendor-customize.lite.js' => '318f0df06a7f1686f580e3500783e0cc',
|
76 |
'src/public/dist/vendor-customize.pro.js' => '218aacecd433ad4ae272bdc2f339bd7d',
|
77 |
'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
|
inc/presets/UpdateNotice.php
CHANGED
@@ -96,7 +96,7 @@ class UpdateNotice {
|
|
96 |
RCB_TD
|
97 |
) .
|
98 |
'</p><p><a href="' .
|
99 |
-
$dismissLink .
|
100 |
'">' .
|
101 |
__('Dismiss this notice', RCB_TD) .
|
102 |
'</a></p></div>';
|
96 |
RCB_TD
|
97 |
) .
|
98 |
'</p><p><a href="' .
|
99 |
+
esc_url($dismissLink) .
|
100 |
'">' .
|
101 |
__('Dismiss this notice', RCB_TD) .
|
102 |
'</a></p></div>';
|
inc/presets/pro/blocker/GoogleMapsPreset.php
CHANGED
@@ -116,7 +116,10 @@ class GoogleMapsPreset extends \DevOwl\RealCookieBanner\presets\AbstractBlockerP
|
|
116 |
'div[class*="ginput_container_gfgeo_google_map"]',
|
117 |
// [Theme Comp] https://themeforest.net/item/rodich-a-restaurant-wordpress-theme/19949280
|
118 |
'div[class*="rodich-google-map"]',
|
119 |
-
'.googleMap({'
|
|
|
|
|
|
|
120 |
]
|
121 |
],
|
122 |
'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/google-maps.png')
|
116 |
'div[class*="ginput_container_gfgeo_google_map"]',
|
117 |
// [Theme Comp] https://themeforest.net/item/rodich-a-restaurant-wordpress-theme/19949280
|
118 |
'div[class*="rodich-google-map"]',
|
119 |
+
'.googleMap({',
|
120 |
+
// [Plugin Comp] https://crocoblock.com/knowledge-base/articles/jetengine-maps-listing-overview/
|
121 |
+
'div[class*="elementor-widget-jet-engine-maps-listing"]',
|
122 |
+
'*/wp-content/plugins/jet-engine/assets/js/frontend-maps*'
|
123 |
]
|
124 |
],
|
125 |
'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/google-maps.png')
|
inc/presets/pro/blocker/ThriveLeadsPreset.php
CHANGED
@@ -22,7 +22,7 @@ class ThriveLeadsPreset extends \DevOwl\RealCookieBanner\presets\AbstractBlocker
|
|
22 |
'id' => self::IDENTIFIER,
|
23 |
'version' => self::VERSION,
|
24 |
'name' => $name,
|
25 |
-
'attributes' => ['hosts' => ['*plugins/thrive-leads*', '*tve_leads*']],
|
26 |
'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/thrive-leads.png'),
|
27 |
'needs' => \DevOwl\RealCookieBanner\presets\pro\ThriveLeadsPreset::needs()
|
28 |
];
|
22 |
'id' => self::IDENTIFIER,
|
23 |
'version' => self::VERSION,
|
24 |
'name' => $name,
|
25 |
+
'attributes' => ['hosts' => ['*plugins/thrive-leads*', '*tve_leads*', 'window.TL_Front']],
|
26 |
'logoFile' => \DevOwl\RealCookieBanner\Core::getInstance()->getBaseAssetsUrl('logos/thrive-leads.png'),
|
27 |
'needs' => \DevOwl\RealCookieBanner\presets\pro\ThriveLeadsPreset::needs()
|
28 |
];
|
inc/rest/Consent.php
CHANGED
@@ -154,7 +154,7 @@ class Consent {
|
|
154 |
'perPage' => $perPage,
|
155 |
'uuid' => $uuid,
|
156 |
'ip' => $ip,
|
157 |
-
'
|
158 |
'context' => $context
|
159 |
];
|
160 |
if (!empty($from)) {
|
154 |
'perPage' => $perPage,
|
155 |
'uuid' => $uuid,
|
156 |
'ip' => $ip,
|
157 |
+
'pure_referer' => $referer,
|
158 |
'context' => $context
|
159 |
];
|
160 |
if (!empty($from)) {
|
inc/scanner/Scanner.php
CHANGED
@@ -529,13 +529,15 @@ class Scanner {
|
|
529 |
return new \DevOwl\RealCookieBanner\scanner\Scanner();
|
530 |
}
|
531 |
/**
|
532 |
-
* Get the current source URL usable for a newly created `ScanEntry`.
|
|
|
533 |
*/
|
534 |
public static function getCurrentSourceUrl() {
|
535 |
$result = remove_query_arg(
|
536 |
\DevOwl\RealCookieBanner\scanner\Scanner::QUERY_ARG_TOKEN,
|
537 |
\DevOwl\RealCookieBanner\Utils::getRequestUrl()
|
538 |
);
|
539 |
-
|
|
|
540 |
}
|
541 |
}
|
529 |
return new \DevOwl\RealCookieBanner\scanner\Scanner();
|
530 |
}
|
531 |
/**
|
532 |
+
* Get the current source URL usable for a newly created `ScanEntry`. It gets escaped for database use with
|
533 |
+
* the help of `esc_url_raw`.
|
534 |
*/
|
535 |
public static function getCurrentSourceUrl() {
|
536 |
$result = remove_query_arg(
|
537 |
\DevOwl\RealCookieBanner\scanner\Scanner::QUERY_ARG_TOKEN,
|
538 |
\DevOwl\RealCookieBanner\Utils::getRequestUrl()
|
539 |
);
|
540 |
+
$result = remove_query_arg(\DevOwl\RealCookieBanner\scanner\Scanner::QUERY_ARG_JOB_ID, $result);
|
541 |
+
return esc_url_raw($result);
|
542 |
}
|
543 |
}
|
inc/view/Banner.php
CHANGED
@@ -86,7 +86,7 @@ class Banner {
|
|
86 |
) {
|
87 |
if (isset($_GET[self::ACTION_CLEAR_CURRENT_COOKIE])) {
|
88 |
\DevOwl\RealCookieBanner\MyConsent::getInstance()->setCookie();
|
89 |
-
wp_safe_redirect(add_query_arg(self::ACTION_CLEAR_CURRENT_COOKIE, \false));
|
90 |
exit();
|
91 |
}
|
92 |
$admin_bar->add_menu([
|
@@ -95,7 +95,7 @@ class Banner {
|
|
95 |
->ensureAdminBarTopLevelNode(),
|
96 |
'id' => self::ACTION_CLEAR_CURRENT_COOKIE,
|
97 |
'title' => __('Show cookie banner again', RCB_TD),
|
98 |
-
'href' => add_query_arg(self::ACTION_CLEAR_CURRENT_COOKIE, \true)
|
99 |
]);
|
100 |
}
|
101 |
}
|
86 |
) {
|
87 |
if (isset($_GET[self::ACTION_CLEAR_CURRENT_COOKIE])) {
|
88 |
\DevOwl\RealCookieBanner\MyConsent::getInstance()->setCookie();
|
89 |
+
wp_safe_redirect(esc_url_raw(add_query_arg(self::ACTION_CLEAR_CURRENT_COOKIE, \false)));
|
90 |
exit();
|
91 |
}
|
92 |
$admin_bar->add_menu([
|
95 |
->ensureAdminBarTopLevelNode(),
|
96 |
'id' => self::ACTION_CLEAR_CURRENT_COOKIE,
|
97 |
'title' => __('Show cookie banner again', RCB_TD),
|
98 |
+
'href' => esc_url_raw(add_query_arg(self::ACTION_CLEAR_CURRENT_COOKIE, \true))
|
99 |
]);
|
100 |
}
|
101 |
}
|
inc/view/Scanner.php
CHANGED
@@ -133,7 +133,7 @@ class Scanner {
|
|
133 |
__('Take action now', RCB_TD),
|
134 |
__('Ignore hint', RCB_TD),
|
135 |
$scannerUrl,
|
136 |
-
add_query_arg(self::QUERY_ARG_DISMISS, 1),
|
137 |
\DevOwl\RealCookieBanner\view\ConfigPage::ADMIN_BAR_TOP_LEVEL_NODE_ID
|
138 |
)
|
139 |
]
|
@@ -172,7 +172,7 @@ class Scanner {
|
|
172 |
update_option(self::OPTION_NAME, $dismissedItems);
|
173 |
delete_transient(\DevOwl\RealCookieBanner\view\Scanner::TRANSIENT_SERVICES_FOR_NOTICE);
|
174 |
delete_transient(\DevOwl\RealCookieBanner\scanner\Query::TRANSIENT_SCANNED_EXTERNAL_URLS);
|
175 |
-
wp_safe_redirect(remove_query_arg(self::QUERY_ARG_DISMISS));
|
176 |
exit();
|
177 |
}
|
178 |
}
|
133 |
__('Take action now', RCB_TD),
|
134 |
__('Ignore hint', RCB_TD),
|
135 |
$scannerUrl,
|
136 |
+
esc_url(add_query_arg(self::QUERY_ARG_DISMISS, 1)),
|
137 |
\DevOwl\RealCookieBanner\view\ConfigPage::ADMIN_BAR_TOP_LEVEL_NODE_ID
|
138 |
)
|
139 |
]
|
172 |
update_option(self::OPTION_NAME, $dismissedItems);
|
173 |
delete_transient(\DevOwl\RealCookieBanner\view\Scanner::TRANSIENT_SERVICES_FOR_NOTICE);
|
174 |
delete_transient(\DevOwl\RealCookieBanner\scanner\Query::TRANSIENT_SCANNED_EXTERNAL_URLS);
|
175 |
+
wp_safe_redirect(esc_url_raw(remove_query_arg(self::QUERY_ARG_DISMISS)));
|
176 |
exit();
|
177 |
}
|
178 |
}
|
inc/view/blocker/Plugin.php
CHANGED
@@ -98,7 +98,9 @@ class Plugin extends \DevOwl\RealCookieBanner\Vendor\DevOwl\HeadlessContentBlock
|
|
98 |
// [Plugin Comp] WP Grid Builder
|
99 |
'wpgb-map-facet' => '.wpgb-facet',
|
100 |
// [Plugin Comp] tagDiv Composer
|
101 |
-
'td_wrapper_playlist_player_youtube' => 1
|
|
|
|
|
102 |
]);
|
103 |
$cb->addSkipInlineScriptVariableAssignments([
|
104 |
'_wpCustomizeSettings',
|
98 |
// [Plugin Comp] WP Grid Builder
|
99 |
'wpgb-map-facet' => '.wpgb-facet',
|
100 |
// [Plugin Comp] tagDiv Composer
|
101 |
+
'td_wrapper_playlist_player_youtube' => 1,
|
102 |
+
// [Plugin Comp] https://wordpress.org/plugins/play-ht/
|
103 |
+
'playht-iframe-player' => 1
|
104 |
]);
|
105 |
$cb->addSkipInlineScriptVariableAssignments([
|
106 |
'_wpCustomizeSettings',
|
index.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Description: Obtain GDPR (DSGVO) and ePrivacy (EU cookie law) compliant opt-in consent. Find cookies and fill all legal information in your cookie banner. More than just a cookie notice!
|
9 |
* Author: devowl.io
|
10 |
* Author URI: https://devowl.io
|
11 |
-
* Version: 2.18.
|
12 |
* Text Domain: real-cookie-banner
|
13 |
* Domain Path: /languages
|
14 |
*/
|
8 |
* Description: Obtain GDPR (DSGVO) and ePrivacy (EU cookie law) compliant opt-in consent. Find cookies and fill all legal information in your cookie banner. More than just a cookie notice!
|
9 |
* Author: devowl.io
|
10 |
* Author URI: https://devowl.io
|
11 |
+
* Version: 2.18.2
|
12 |
* Text Domain: real-cookie-banner
|
13 |
* Domain Path: /languages
|
14 |
*/
|
languages/real-cookie-banner-de_AT.mo
CHANGED
Binary file
|
languages/real-cookie-banner-de_AT.po
CHANGED
@@ -2,10 +2,10 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
-
"PO-Revision-Date: 2022-
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
-
"Language-Team: German <https://translate.devowl.io/projects/
|
8 |
-
"cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_AT\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -2003,18 +2003,18 @@ msgstr ""
|
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
-
"We also recommend that you deactivate the non-aggregated reporting
|
2007 |
-
"href=\"https://newapp.etracker.com
|
2008 |
-
"
|
2009 |
-
"cookies in accordance with CNIL guidelines</i> to ensure that there
|
2010 |
-
"definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
-
"Wir empfehlen dir zusätzlich
|
2013 |
-
"report/accountSettings/accountKey\" target=\"_blank\">
|
2014 |
-
"
|
2015 |
-
"
|
2016 |
-
"
|
2017 |
-
"besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
@@ -2053,30 +2053,31 @@ msgstr ""
|
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
-
"without consent\", as this service only
|
2057 |
-
"additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
-
"Tracking ohne Einwilligung\" anlegen, da
|
2062 |
-
"Einwilligung das Tracking nur um weitere Daten
|
|
|
2063 |
|
2064 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2065 |
msgid ""
|
2066 |
"In order for the consent to be taken into account, you must activate the "
|
2067 |
-
"toggle \"Opt-In active\"
|
2068 |
-
"
|
2069 |
-
"
|
2070 |
-
"\" so that etracker does not display its own consent dialog, but
|
2071 |
-
"uses the consent collected by Real Cookie Banner."
|
2072 |
-
msgstr ""
|
2073 |
-
"Damit die Einwilligung berücksichtigt wird, musst du
|
2074 |
-
"
|
2075 |
-
"
|
2076 |
-
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren
|
2077 |
-
"\"eigenes Opt-In\" umstellen
|
2078 |
-
"Einwilligungsdialog
|
2079 |
-
"Cookie Banner,
|
2080 |
|
2081 |
#. translators:
|
2082 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
@@ -4937,6 +4938,13 @@ msgstr ""
|
|
4937 |
msgid "This functionality is currently not available."
|
4938 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4939 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4940 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4941 |
msgid "TCF vendor configurations"
|
4942 |
msgstr "TCF Vendor Konfigurationen"
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
+
"PO-Revision-Date: 2022-06-08 13:22+0000\n"
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
+
"Language-Team: German <https://translate.devowl.io/projects/"
|
8 |
+
"wordpress-real-cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_AT\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
+
"We also recommend that you deactivate the non-aggregated reporting via the "
|
2007 |
+
"<a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> "
|
2008 |
+
"under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free "
|
2009 |
+
"tracking cookies in accordance with CNIL guidelines</i> to ensure that there "
|
2010 |
+
"is definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
+
"Wir empfehlen dir zusätzlich über das <a href=\"https://newapp.etracker.com/"
|
2013 |
+
"#/report/accountSettings/accountKey\" target=\"_blank\">Dashboard</a> unter "
|
2014 |
+
"<i>Menü (obene links) > Account-ID > Einstellungen > Datenschutz > "
|
2015 |
+
"Einwilligungs-freie Tracking Cookies gemäß Anforderungen der CNIL</i> die "
|
2016 |
+
"nicht aggregierten Reportings zu deaktivieren, um sicherzustellen, dass "
|
2017 |
+
"definitiv kein Personenbezug bei den erhobenen Daten besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
+
"without consent\" resp. \"etracker: basic tracking\", as this service only "
|
2057 |
+
"enriches the tracking with additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
+
"Tracking ohne Einwilligung\" bzw. \"etracker: Basis-Tracking\" anlegen, da "
|
2062 |
+
"dieser Service im Falle einer Einwilligung das Tracking nur um weitere Daten "
|
2063 |
+
"anreichert."
|
2064 |
|
2065 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2066 |
msgid ""
|
2067 |
"In order for the consent to be taken into account, you must activate the "
|
2068 |
+
"toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" "
|
2069 |
+
"target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > "
|
2070 |
+
"Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to "
|
2071 |
+
"\"own Opt-In\" so that etracker does not display its own consent dialog, but "
|
2072 |
+
"instead uses the consent collected by Real Cookie Banner."
|
2073 |
+
msgstr ""
|
2074 |
+
"Damit die Einwilligung berücksichtigt wird, musst du via <a href=\"https"
|
2075 |
+
"://newapp.etracker.com/\" target=\"_blank\">Dashboard</a> unter <i>Menü ("
|
2076 |
+
"oben links) > Account-ID > Einstellungen > Datenschutz > Tracking Opt-In und "
|
2077 |
+
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren und anschließend auf "
|
2078 |
+
"\"eigenes Opt-In\" umstellen. Damit wird etracker keinen eigenen "
|
2079 |
+
"Einwilligungsdialog anzeigen, sondern die Einwilligung, erhoben von Real "
|
2080 |
+
"Cookie Banner, verwenden."
|
2081 |
|
2082 |
#. translators:
|
2083 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
4938 |
msgid "This functionality is currently not available."
|
4939 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4940 |
|
4941 |
+
#. translators:
|
4942 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
4943 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
4944 |
+
msgstr ""
|
4945 |
+
"Das Herunterladen der GVL ist fehlgeschlagen. Bitte versuche es später noch "
|
4946 |
+
"einmal! (%1$s: %2$s)"
|
4947 |
+
|
4948 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4949 |
msgid "TCF vendor configurations"
|
4950 |
msgstr "TCF Vendor Konfigurationen"
|
languages/real-cookie-banner-de_CH.mo
CHANGED
Binary file
|
languages/real-cookie-banner-de_CH.po
CHANGED
@@ -2,10 +2,10 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
-
"PO-Revision-Date: 2022-
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
-
"Language-Team: German <https://translate.devowl.io/projects/
|
8 |
-
"cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_CH\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -2003,18 +2003,18 @@ msgstr ""
|
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
-
"We also recommend that you deactivate the non-aggregated reporting
|
2007 |
-
"href=\"https://newapp.etracker.com
|
2008 |
-
"
|
2009 |
-
"cookies in accordance with CNIL guidelines</i> to ensure that there
|
2010 |
-
"definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
-
"Wir empfehlen dir zusätzlich
|
2013 |
-
"report/accountSettings/accountKey\" target=\"_blank\">
|
2014 |
-
"
|
2015 |
-
"
|
2016 |
-
"
|
2017 |
-
"besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
@@ -2053,30 +2053,31 @@ msgstr ""
|
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
-
"without consent\", as this service only
|
2057 |
-
"additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
-
"Tracking ohne Einwilligung\" anlegen, da
|
2062 |
-
"Einwilligung das Tracking nur um weitere Daten
|
|
|
2063 |
|
2064 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2065 |
msgid ""
|
2066 |
"In order for the consent to be taken into account, you must activate the "
|
2067 |
-
"toggle \"Opt-In active\"
|
2068 |
-
"
|
2069 |
-
"
|
2070 |
-
"\" so that etracker does not display its own consent dialog, but
|
2071 |
-
"uses the consent collected by Real Cookie Banner."
|
2072 |
-
msgstr ""
|
2073 |
-
"Damit die Einwilligung berücksichtigt wird, musst du
|
2074 |
-
"
|
2075 |
-
"
|
2076 |
-
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren
|
2077 |
-
"\"eigenes Opt-In\" umstellen
|
2078 |
-
"Einwilligungsdialog
|
2079 |
-
"Cookie Banner,
|
2080 |
|
2081 |
#. translators:
|
2082 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
@@ -4937,6 +4938,13 @@ msgstr ""
|
|
4937 |
msgid "This functionality is currently not available."
|
4938 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4939 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4940 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4941 |
msgid "TCF vendor configurations"
|
4942 |
msgstr "TCF Vendor Konfigurationen"
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
+
"PO-Revision-Date: 2022-06-08 13:22+0000\n"
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
+
"Language-Team: German <https://translate.devowl.io/projects/"
|
8 |
+
"wordpress-real-cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_CH\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
+
"We also recommend that you deactivate the non-aggregated reporting via the "
|
2007 |
+
"<a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> "
|
2008 |
+
"under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free "
|
2009 |
+
"tracking cookies in accordance with CNIL guidelines</i> to ensure that there "
|
2010 |
+
"is definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
+
"Wir empfehlen dir zusätzlich über das <a href=\"https://newapp.etracker.com/"
|
2013 |
+
"#/report/accountSettings/accountKey\" target=\"_blank\">Dashboard</a> unter "
|
2014 |
+
"<i>Menü (obene links) > Account-ID > Einstellungen > Datenschutz > "
|
2015 |
+
"Einwilligungs-freie Tracking Cookies gemäß Anforderungen der CNIL</i> die "
|
2016 |
+
"nicht aggregierten Reportings zu deaktivieren, um sicherzustellen, dass "
|
2017 |
+
"definitiv kein Personenbezug bei den erhobenen Daten besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
+
"without consent\" resp. \"etracker: basic tracking\", as this service only "
|
2057 |
+
"enriches the tracking with additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
+
"Tracking ohne Einwilligung\" bzw. \"etracker: Basis-Tracking\" anlegen, da "
|
2062 |
+
"dieser Service im Falle einer Einwilligung das Tracking nur um weitere Daten "
|
2063 |
+
"anreichert."
|
2064 |
|
2065 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2066 |
msgid ""
|
2067 |
"In order for the consent to be taken into account, you must activate the "
|
2068 |
+
"toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" "
|
2069 |
+
"target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > "
|
2070 |
+
"Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to "
|
2071 |
+
"\"own Opt-In\" so that etracker does not display its own consent dialog, but "
|
2072 |
+
"instead uses the consent collected by Real Cookie Banner."
|
2073 |
+
msgstr ""
|
2074 |
+
"Damit die Einwilligung berücksichtigt wird, musst du via <a href=\"https"
|
2075 |
+
"://newapp.etracker.com/\" target=\"_blank\">Dashboard</a> unter <i>Menü ("
|
2076 |
+
"oben links) > Account-ID > Einstellungen > Datenschutz > Tracking Opt-In und "
|
2077 |
+
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren und anschließend auf "
|
2078 |
+
"\"eigenes Opt-In\" umstellen. Damit wird etracker keinen eigenen "
|
2079 |
+
"Einwilligungsdialog anzeigen, sondern die Einwilligung, erhoben von Real "
|
2080 |
+
"Cookie Banner, verwenden."
|
2081 |
|
2082 |
#. translators:
|
2083 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
4938 |
msgid "This functionality is currently not available."
|
4939 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4940 |
|
4941 |
+
#. translators:
|
4942 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
4943 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
4944 |
+
msgstr ""
|
4945 |
+
"Das Herunterladen der GVL ist fehlgeschlagen. Bitte versuche es später noch "
|
4946 |
+
"einmal! (%1$s: %2$s)"
|
4947 |
+
|
4948 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4949 |
msgid "TCF vendor configurations"
|
4950 |
msgstr "TCF Vendor Konfigurationen"
|
languages/real-cookie-banner-de_CH_informal.mo
CHANGED
Binary file
|
languages/real-cookie-banner-de_CH_informal.po
CHANGED
@@ -2,10 +2,10 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
-
"PO-Revision-Date: 2022-
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
-
"Language-Team: German <https://translate.devowl.io/projects/
|
8 |
-
"cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_CH_informal\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -2003,18 +2003,18 @@ msgstr ""
|
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
-
"We also recommend that you deactivate the non-aggregated reporting
|
2007 |
-
"href=\"https://newapp.etracker.com
|
2008 |
-
"
|
2009 |
-
"cookies in accordance with CNIL guidelines</i> to ensure that there
|
2010 |
-
"definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
-
"Wir empfehlen dir zusätzlich
|
2013 |
-
"report/accountSettings/accountKey\" target=\"_blank\">
|
2014 |
-
"
|
2015 |
-
"
|
2016 |
-
"
|
2017 |
-
"besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
@@ -2053,30 +2053,31 @@ msgstr ""
|
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
-
"without consent\", as this service only
|
2057 |
-
"additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
-
"Tracking ohne Einwilligung\" anlegen, da
|
2062 |
-
"Einwilligung das Tracking nur um weitere Daten
|
|
|
2063 |
|
2064 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2065 |
msgid ""
|
2066 |
"In order for the consent to be taken into account, you must activate the "
|
2067 |
-
"toggle \"Opt-In active\"
|
2068 |
-
"
|
2069 |
-
"
|
2070 |
-
"\" so that etracker does not display its own consent dialog, but
|
2071 |
-
"uses the consent collected by Real Cookie Banner."
|
2072 |
-
msgstr ""
|
2073 |
-
"Damit die Einwilligung berücksichtigt wird, musst du
|
2074 |
-
"
|
2075 |
-
"
|
2076 |
-
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren
|
2077 |
-
"\"eigenes Opt-In\" umstellen
|
2078 |
-
"Einwilligungsdialog
|
2079 |
-
"Cookie Banner,
|
2080 |
|
2081 |
#. translators:
|
2082 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
@@ -4937,6 +4938,13 @@ msgstr ""
|
|
4937 |
msgid "This functionality is currently not available."
|
4938 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4939 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4940 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4941 |
msgid "TCF vendor configurations"
|
4942 |
msgstr "TCF Vendor Konfigurationen"
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
+
"PO-Revision-Date: 2022-06-08 13:22+0000\n"
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
+
"Language-Team: German <https://translate.devowl.io/projects/"
|
8 |
+
"wordpress-real-cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_CH_informal\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
+
"We also recommend that you deactivate the non-aggregated reporting via the "
|
2007 |
+
"<a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> "
|
2008 |
+
"under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free "
|
2009 |
+
"tracking cookies in accordance with CNIL guidelines</i> to ensure that there "
|
2010 |
+
"is definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
+
"Wir empfehlen dir zusätzlich über das <a href=\"https://newapp.etracker.com/"
|
2013 |
+
"#/report/accountSettings/accountKey\" target=\"_blank\">Dashboard</a> unter "
|
2014 |
+
"<i>Menü (obene links) > Account-ID > Einstellungen > Datenschutz > "
|
2015 |
+
"Einwilligungs-freie Tracking Cookies gemäß Anforderungen der CNIL</i> die "
|
2016 |
+
"nicht aggregierten Reportings zu deaktivieren, um sicherzustellen, dass "
|
2017 |
+
"definitiv kein Personenbezug bei den erhobenen Daten besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
+
"without consent\" resp. \"etracker: basic tracking\", as this service only "
|
2057 |
+
"enriches the tracking with additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
+
"Tracking ohne Einwilligung\" bzw. \"etracker: Basis-Tracking\" anlegen, da "
|
2062 |
+
"dieser Service im Falle einer Einwilligung das Tracking nur um weitere Daten "
|
2063 |
+
"anreichert."
|
2064 |
|
2065 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2066 |
msgid ""
|
2067 |
"In order for the consent to be taken into account, you must activate the "
|
2068 |
+
"toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" "
|
2069 |
+
"target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > "
|
2070 |
+
"Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to "
|
2071 |
+
"\"own Opt-In\" so that etracker does not display its own consent dialog, but "
|
2072 |
+
"instead uses the consent collected by Real Cookie Banner."
|
2073 |
+
msgstr ""
|
2074 |
+
"Damit die Einwilligung berücksichtigt wird, musst du via <a href=\"https"
|
2075 |
+
"://newapp.etracker.com/\" target=\"_blank\">Dashboard</a> unter <i>Menü ("
|
2076 |
+
"oben links) > Account-ID > Einstellungen > Datenschutz > Tracking Opt-In und "
|
2077 |
+
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren und anschließend auf "
|
2078 |
+
"\"eigenes Opt-In\" umstellen. Damit wird etracker keinen eigenen "
|
2079 |
+
"Einwilligungsdialog anzeigen, sondern die Einwilligung, erhoben von Real "
|
2080 |
+
"Cookie Banner, verwenden."
|
2081 |
|
2082 |
#. translators:
|
2083 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
4938 |
msgid "This functionality is currently not available."
|
4939 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4940 |
|
4941 |
+
#. translators:
|
4942 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
4943 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
4944 |
+
msgstr ""
|
4945 |
+
"Das Herunterladen der GVL ist fehlgeschlagen. Bitte versuche es später noch "
|
4946 |
+
"einmal! (%1$s: %2$s)"
|
4947 |
+
|
4948 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4949 |
msgid "TCF vendor configurations"
|
4950 |
msgstr "TCF Vendor Konfigurationen"
|
languages/real-cookie-banner-de_DE.mo
CHANGED
Binary file
|
languages/real-cookie-banner-de_DE.po
CHANGED
@@ -2,10 +2,10 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
-
"PO-Revision-Date: 2022-
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
-
"Language-Team: German <https://translate.devowl.io/projects/
|
8 |
-
"cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_DE\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -2003,18 +2003,18 @@ msgstr ""
|
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
-
"We also recommend that you deactivate the non-aggregated reporting
|
2007 |
-
"href=\"https://newapp.etracker.com
|
2008 |
-
"
|
2009 |
-
"cookies in accordance with CNIL guidelines</i> to ensure that there
|
2010 |
-
"definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
-
"Wir empfehlen dir zusätzlich
|
2013 |
-
"report/accountSettings/accountKey\" target=\"_blank\">
|
2014 |
-
"
|
2015 |
-
"
|
2016 |
-
"
|
2017 |
-
"besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
@@ -2053,30 +2053,31 @@ msgstr ""
|
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
-
"without consent\", as this service only
|
2057 |
-
"additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
-
"Tracking ohne Einwilligung\" anlegen, da
|
2062 |
-
"Einwilligung das Tracking nur um weitere Daten
|
|
|
2063 |
|
2064 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2065 |
msgid ""
|
2066 |
"In order for the consent to be taken into account, you must activate the "
|
2067 |
-
"toggle \"Opt-In active\"
|
2068 |
-
"
|
2069 |
-
"
|
2070 |
-
"\" so that etracker does not display its own consent dialog, but
|
2071 |
-
"uses the consent collected by Real Cookie Banner."
|
2072 |
-
msgstr ""
|
2073 |
-
"Damit die Einwilligung berücksichtigt wird, musst du
|
2074 |
-
"
|
2075 |
-
"
|
2076 |
-
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren
|
2077 |
-
"\"eigenes Opt-In\" umstellen
|
2078 |
-
"Einwilligungsdialog
|
2079 |
-
"Cookie Banner,
|
2080 |
|
2081 |
#. translators:
|
2082 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
@@ -4937,6 +4938,13 @@ msgstr ""
|
|
4937 |
msgid "This functionality is currently not available."
|
4938 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4939 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4940 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4941 |
msgid "TCF vendor configurations"
|
4942 |
msgstr "TCF Vendor Konfigurationen"
|
2 |
msgstr ""
|
3 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
4 |
"POT-Creation-Date: n/a\n"
|
5 |
+
"PO-Revision-Date: 2022-06-08 13:22+0000\n"
|
6 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
7 |
+
"Language-Team: German <https://translate.devowl.io/projects/"
|
8 |
+
"wordpress-real-cookie-banner-backend-php/develop/de/>\n"
|
9 |
"Language: de_DE\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
2003 |
|
2004 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2005 |
msgid ""
|
2006 |
+
"We also recommend that you deactivate the non-aggregated reporting via the "
|
2007 |
+
"<a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> "
|
2008 |
+
"under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free "
|
2009 |
+
"tracking cookies in accordance with CNIL guidelines</i> to ensure that there "
|
2010 |
+
"is definitely no personal reference for the collected data."
|
2011 |
msgstr ""
|
2012 |
+
"Wir empfehlen dir zusätzlich über das <a href=\"https://newapp.etracker.com/"
|
2013 |
+
"#/report/accountSettings/accountKey\" target=\"_blank\">Dashboard</a> unter "
|
2014 |
+
"<i>Menü (obene links) > Account-ID > Einstellungen > Datenschutz > "
|
2015 |
+
"Einwilligungs-freie Tracking Cookies gemäß Anforderungen der CNIL</i> die "
|
2016 |
+
"nicht aggregierten Reportings zu deaktivieren, um sicherzustellen, dass "
|
2017 |
+
"definitiv kein Personenbezug bei den erhobenen Daten besteht."
|
2018 |
|
2019 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2020 |
msgid "etracker: enhanced tracking"
|
2053 |
msgid ""
|
2054 |
"This service template is designed for tracking with consent. In order for "
|
2055 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2056 |
+
"without consent\" resp. \"etracker: basic tracking\", as this service only "
|
2057 |
+
"enriches the tracking with additional data in the case of consent."
|
2058 |
msgstr ""
|
2059 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2060 |
"das Tracking funktioniert, musst du zusätzlich den Service \"etracker: "
|
2061 |
+
"Tracking ohne Einwilligung\" bzw. \"etracker: Basis-Tracking\" anlegen, da "
|
2062 |
+
"dieser Service im Falle einer Einwilligung das Tracking nur um weitere Daten "
|
2063 |
+
"anreichert."
|
2064 |
|
2065 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2066 |
msgid ""
|
2067 |
"In order for the consent to be taken into account, you must activate the "
|
2068 |
+
"toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" "
|
2069 |
+
"target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > "
|
2070 |
+
"Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to "
|
2071 |
+
"\"own Opt-In\" so that etracker does not display its own consent dialog, but "
|
2072 |
+
"instead uses the consent collected by Real Cookie Banner."
|
2073 |
+
msgstr ""
|
2074 |
+
"Damit die Einwilligung berücksichtigt wird, musst du via <a href=\"https"
|
2075 |
+
"://newapp.etracker.com/\" target=\"_blank\">Dashboard</a> unter <i>Menü ("
|
2076 |
+
"oben links) > Account-ID > Einstellungen > Datenschutz > Tracking Opt-In und "
|
2077 |
+
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren und anschließend auf "
|
2078 |
+
"\"eigenes Opt-In\" umstellen. Damit wird etracker keinen eigenen "
|
2079 |
+
"Einwilligungsdialog anzeigen, sondern die Einwilligung, erhoben von Real "
|
2080 |
+
"Cookie Banner, verwenden."
|
2081 |
|
2082 |
#. translators:
|
2083 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
4938 |
msgid "This functionality is currently not available."
|
4939 |
msgstr "Diese Funktionalität ist derzeit nicht verfügbar."
|
4940 |
|
4941 |
+
#. translators:
|
4942 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
4943 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
4944 |
+
msgstr ""
|
4945 |
+
"Das Herunterladen der GVL ist fehlgeschlagen. Bitte versuche es später noch "
|
4946 |
+
"einmal! (%1$s: %2$s)"
|
4947 |
+
|
4948 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4949 |
msgid "TCF vendor configurations"
|
4950 |
msgstr "TCF Vendor Konfigurationen"
|
languages/real-cookie-banner-de_DE_formal.mo
CHANGED
Binary file
|
languages/real-cookie-banner-de_DE_formal.po
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: n/a\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
7 |
"POT-Creation-Date: n/a\n"
|
8 |
-
"PO-Revision-Date: 2022-
|
9 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
10 |
"Language-Team: German (formal) <https://translate.devowl.io/projects/"
|
11 |
"wordpress-real-cookie-banner-backend-php/develop/de@formal/>\n"
|
@@ -2011,18 +2011,18 @@ msgstr ""
|
|
2011 |
|
2012 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2013 |
msgid ""
|
2014 |
-
"We also recommend that you deactivate the non-aggregated reporting
|
2015 |
-
"href=\"https://newapp.etracker.com
|
2016 |
-
"
|
2017 |
-
"cookies in accordance with CNIL guidelines</i> to ensure that there
|
2018 |
-
"definitely no personal reference for the collected data."
|
2019 |
msgstr ""
|
2020 |
-
"Wir empfehlen Ihnen, zusätzlich
|
2021 |
-
"
|
2022 |
-
"
|
2023 |
-
"Anforderungen der CNIL</i> die
|
2024 |
-
"deaktivieren, um sicherzustellen, dass
|
2025 |
-
"erhobenen Daten besteht."
|
2026 |
|
2027 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2028 |
msgid "etracker: enhanced tracking"
|
@@ -2061,30 +2061,31 @@ msgstr ""
|
|
2061 |
msgid ""
|
2062 |
"This service template is designed for tracking with consent. In order for "
|
2063 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2064 |
-
"without consent\", as this service only
|
2065 |
-
"additional data in the case of consent."
|
2066 |
msgstr ""
|
2067 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2068 |
"das Tracking funktioniert, müssen Sie zusätzlich den Service \"etracker: "
|
2069 |
-
"Tracking ohne Einwilligung\" anlegen, da
|
2070 |
-
"Einwilligung das Tracking nur um weitere Daten
|
|
|
2071 |
|
2072 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2073 |
msgid ""
|
2074 |
"In order for the consent to be taken into account, you must activate the "
|
2075 |
-
"toggle \"Opt-In active\"
|
2076 |
-
"
|
2077 |
-
"
|
2078 |
-
"\" so that etracker does not display its own consent dialog, but
|
2079 |
-
"uses the consent collected by Real Cookie Banner."
|
2080 |
-
msgstr ""
|
2081 |
-
"Damit die Einwilligung berücksichtigt wird, müssen Sie
|
2082 |
-
"
|
2083 |
-
"
|
2084 |
-
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren
|
2085 |
-
"\"eigenes Opt-In\" umstellen
|
2086 |
-
"Einwilligungsdialog
|
2087 |
-
"Cookie Banner,
|
2088 |
|
2089 |
#. translators:
|
2090 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
@@ -4953,6 +4954,13 @@ msgstr ""
|
|
4953 |
msgid "This functionality is currently not available."
|
4954 |
msgstr "Diese Funktion ist derzeit nicht verfügbar."
|
4955 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4956 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4957 |
msgid "TCF vendor configurations"
|
4958 |
msgstr "Konfigurationen der TCF-Anbieter"
|
5 |
"Project-Id-Version: n/a\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
|
7 |
"POT-Creation-Date: n/a\n"
|
8 |
+
"PO-Revision-Date: 2022-06-08 13:22+0000\n"
|
9 |
"Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
|
10 |
"Language-Team: German (formal) <https://translate.devowl.io/projects/"
|
11 |
"wordpress-real-cookie-banner-backend-php/develop/de@formal/>\n"
|
2011 |
|
2012 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
2013 |
msgid ""
|
2014 |
+
"We also recommend that you deactivate the non-aggregated reporting via the "
|
2015 |
+
"<a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> "
|
2016 |
+
"under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free "
|
2017 |
+
"tracking cookies in accordance with CNIL guidelines</i> to ensure that there "
|
2018 |
+
"is definitely no personal reference for the collected data."
|
2019 |
msgstr ""
|
2020 |
+
"Wir empfehlen Ihnen, zusätzlich über das <a href=\"https://newapp.etracker."
|
2021 |
+
"com/#/report/accountSettings/accountKey\" target=\"_blank\">Dashboard</a> "
|
2022 |
+
"unter <i>Menü (obene links) > Account-ID > Einstellungen > Datenschutz > "
|
2023 |
+
"Einwilligungs-freie Tracking Cookies gemäß Anforderungen der CNIL</i> die "
|
2024 |
+
"nicht aggregierten Reportings zu deaktivieren, um sicherzustellen, dass "
|
2025 |
+
"definitiv kein Personenbezug bei den erhobenen Daten besteht."
|
2026 |
|
2027 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2028 |
msgid "etracker: enhanced tracking"
|
2061 |
msgid ""
|
2062 |
"This service template is designed for tracking with consent. In order for "
|
2063 |
"the tracking to work, you must also create the service \"etracker: Tracking "
|
2064 |
+
"without consent\" resp. \"etracker: basic tracking\", as this service only "
|
2065 |
+
"enriches the tracking with additional data in the case of consent."
|
2066 |
msgstr ""
|
2067 |
"Diese Service-Vorlage ist zum Tracking mit Einwilligung entwickelt. Damit "
|
2068 |
"das Tracking funktioniert, müssen Sie zusätzlich den Service \"etracker: "
|
2069 |
+
"Tracking ohne Einwilligung\" bzw. \"etracker: Basis-Tracking\" anlegen, da "
|
2070 |
+
"dieser Service im Falle einer Einwilligung das Tracking nur um weitere Daten "
|
2071 |
+
"anreichert."
|
2072 |
|
2073 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
2074 |
msgid ""
|
2075 |
"In order for the consent to be taken into account, you must activate the "
|
2076 |
+
"toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" "
|
2077 |
+
"target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > "
|
2078 |
+
"Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to "
|
2079 |
+
"\"own Opt-In\" so that etracker does not display its own consent dialog, but "
|
2080 |
+
"instead uses the consent collected by Real Cookie Banner."
|
2081 |
+
msgstr ""
|
2082 |
+
"Damit die Einwilligung berücksichtigt wird, müssen Sie via <a href=\"https"
|
2083 |
+
"://newapp.etracker.com/\" target=\"_blank\">Dashboard</a> unter <i>Menü ("
|
2084 |
+
"oben links) > Account-ID > Einstellungen > Datenschutz > Tracking Opt-In und "
|
2085 |
+
"Zustimmung</i> den Toggle \"Opt-In aktiv\" aktivieren und anschließend auf "
|
2086 |
+
"\"eigenes Opt-In\" umstellen. Damit wird etracker keinen eigenen "
|
2087 |
+
"Einwilligungsdialog anzeigen, sondern die Einwilligung, erhoben von Real "
|
2088 |
+
"Cookie Banner, verwenden."
|
2089 |
|
2090 |
#. translators:
|
2091 |
#: inc/overrides/pro/presets/ExactMetricsPreset.php:1
|
4954 |
msgid "This functionality is currently not available."
|
4955 |
msgstr "Diese Funktion ist derzeit nicht verfügbar."
|
4956 |
|
4957 |
+
#. translators:
|
4958 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
4959 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
4960 |
+
msgstr ""
|
4961 |
+
"Das Herunterladen der GVL ist fehlgeschlagen. Bitte versuchen Sie es später "
|
4962 |
+
"noch einmal! (%1$s: %2$s)"
|
4963 |
+
|
4964 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
4965 |
msgid "TCF vendor configurations"
|
4966 |
msgstr "Konfigurationen der TCF-Anbieter"
|
languages/real-cookie-banner.pot
CHANGED
@@ -11,7 +11,7 @@ msgstr ""
|
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"POT-Creation-Date: n/a\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
-
"X-Generator: WP-CLI 2.
|
15 |
|
16 |
#. Plugin Name of the plugin
|
17 |
msgid "Real Cookie Banner"
|
@@ -1218,7 +1218,7 @@ msgid "This service template is designed for tracking without consent on the leg
|
|
1218 |
msgstr ""
|
1219 |
|
1220 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
1221 |
-
msgid "We also recommend that you deactivate the non-aggregated reporting
|
1222 |
msgstr ""
|
1223 |
|
1224 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
@@ -1230,11 +1230,11 @@ msgid "etracker is used to create detailed statistics about user behavior on the
|
|
1230 |
msgstr ""
|
1231 |
|
1232 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
1233 |
-
msgid "This service template is designed for tracking with consent. In order for the tracking to work, you must also create the service \"etracker: Tracking without consent\", as this service only enriches the tracking with additional data in the case of consent."
|
1234 |
msgstr ""
|
1235 |
|
1236 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
1237 |
-
msgid "In order for the consent to be taken into account, you must activate the toggle \"Opt-In active\"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
#. translators:
|
@@ -2305,6 +2305,11 @@ msgstr ""
|
|
2305 |
msgid "This functionality is currently not available."
|
2306 |
msgstr ""
|
2307 |
|
|
|
|
|
|
|
|
|
|
|
2308 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
2309 |
msgid "TCF vendor configurations"
|
2310 |
msgstr ""
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"POT-Creation-Date: n/a\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
|
16 |
#. Plugin Name of the plugin
|
17 |
msgid "Real Cookie Banner"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
#: inc/overrides/pro/presets/EtrackerPreset.php:1
|
1221 |
+
msgid "We also recommend that you deactivate the non-aggregated reporting via the <a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > Settings > Privacy > Consent-free tracking cookies in accordance with CNIL guidelines</i> to ensure that there is definitely no personal reference for the collected data."
|
1222 |
msgstr ""
|
1223 |
|
1224 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
1230 |
msgstr ""
|
1231 |
|
1232 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
1233 |
+
msgid "This service template is designed for tracking with consent. In order for the tracking to work, you must also create the service \"etracker: Tracking without consent\" resp. \"etracker: basic tracking\", as this service only enriches the tracking with additional data in the case of consent."
|
1234 |
msgstr ""
|
1235 |
|
1236 |
#: inc/overrides/pro/presets/EtrackerWithConsentPreset.php:1
|
1237 |
+
msgid "In order for the consent to be taken into account, you must activate the toggle \"Opt-In active\" via the <a href=\"https://newapp.etracker.com/\" target=\"_blank\">dashboard</a> under <i>menu (top left) > Account-ID > Settings > Privacy > Tracking Opt-In and agreement</i>, but then switch to \"own Opt-In\" so that etracker does not display its own consent dialog, but instead uses the consent collected by Real Cookie Banner."
|
1238 |
msgstr ""
|
1239 |
|
1240 |
#. translators:
|
2305 |
msgid "This functionality is currently not available."
|
2306 |
msgstr ""
|
2307 |
|
2308 |
+
#. translators:
|
2309 |
+
#: inc/overrides/pro/settings/TCF.php:1
|
2310 |
+
msgid "Downloading the GVL has failed. Please try again later! (%1$s: %2$s)"
|
2311 |
+
msgstr ""
|
2312 |
+
|
2313 |
#: inc/overrides/pro/settings/TcfVendorConfiguration.php:1
|
2314 |
msgid "TCF vendor configurations"
|
2315 |
msgstr ""
|
public/dist/548.lite.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
"use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[548],{6586:function(e,t,a){a.d(t,{ZG:function(){return ne},PS:function(){return te},y$:function(){return ae}});var n=a(9591),o=a(4741),r=a(3828),i=a(3306),c=a(6142),l=a(8782),s=a(2711),u=a(4115),d=a(7938),m=a(7870),p=a(6315),g=a(7228),h=a(5450),v=a.n(h),f=a(7363),y=a(3554),E=a(6926);function R(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))}function b(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",a=0,n=t.length;a<n;a++)e=e.replace(new RegExp(t.charAt(a),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(a));return e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var _=a(7819),k=a(8630),w=a(4163),Z=a(6711),I=a(8909),N=function(){var e=(0,I.R)(),t=e.group,a=(0,Z.useRouteMatch)().params,n=isNaN(+a.cookie)?0:+a.cookie,o=!!a.cookie,r=t.cookies.entries.get(+a.cookie)||new E.U(t.cookies,{id:0});return{routeGroup:e,cookie:r,id:n,queried:o,fetched:0!==r.key}},O=a(6478),T=a(8920),M=a(2519),S=a(1629),P=a(5893),C=a(7943),D=function(e){var t=e.notices;return React.createElement(React.Fragment,null,null==t?void 0:t.map((function(e){var t=e.message,a=e.severity;return t?React.createElement("div",{className:"notice notice-".concat(a," below-h2 notice-alt"),key:t},React.createElement("p",{dangerouslySetInnerHTML:{__html:t}})):null})))},x=a(2388),F=(0,y.Pi)((function(e){var t,a,n=e.showNoticePresetGroupNotFound,o=void 0!==n&&n,i=e.groupNotices,c=e.providerPrivacyPolicyNotices,l=(0,w.m)(),s=l.cookieStore,u=s.groups,m=s.essentialGroup,g=l.optionStore,h=g.ePrivacyUSA,y=g.consentForwarding,E=N(),R=E.cookie,_=E.fetched,Z="real-cookie-banner"===(null===(t=R.presetModel)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.identifier),I=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,S.W)({location:x.V,params:{slug:t}});case 3:return e.abrupt("return",e.sent.filter((function(e){return e.ID!==R.key}))[0]);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",void 0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),[R.key]),F=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t,a){var n,o,r,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I(t);case 2:if(!(n=e.sent)){e.next=19;break}if(a){e.next=8;break}throw(0,k.__)("A service with the same unique name already exists.");case 8:o=n.metas.consentForwardingUniqueName,r=/^(.*)-(\d+)$/,i=n;case 11:if(!i){e.next=18;break}return o=o.match(r)?o.replace(r,(function(e,t,a){return"".concat(t,"-").concat(+a+1)})):"".concat(o,"-1"),e.next=15,I(o);case 15:i=e.sent,e.next=11;break;case 18:a(o);case 19:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),[I]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span},(0,k.__)("General service configuration")," ",React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/")})),React.createElement(p.Z.Item,{label:(0,k.__)("Name"),required:!0},React.createElement(p.Z.Item,{name:"name",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide a name!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)('Each service used should have a descriptive name that is understandable to a non-professional user. Example: "Google Analytics".'))),React.createElement(p.Z.Item,{label:(0,k.__)("Status"),required:!0},React.createElement(p.Z.Item,{name:"status",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please choose a status!")}]},React.createElement(T.ZP.Group,null,React.createElement(T.ZP.Button,{value:"publish"},(0,k.__)("Enabled")),React.createElement(T.ZP.Button,{value:"private"},(0,k.__)("Disabled")),React.createElement(T.ZP.Button,{value:"draft"},(0,k.__)("Draft")))),React.createElement("p",{className:"description"},(0,k.__)('Services with the status "Draft" or "Disabled" are not visible to the public. In addition, a draft will be highlighted in the service table so that you do not forget to configure it.'))),React.createElement(p.Z.Item,{label:(0,k.__)("Group"),required:!0},React.createElement(p.Z.Item,{name:"group",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide a group!")}]},React.createElement(r.Z,null,u.sortedGroups.map((function(e){var t=e.data,a=t.id,n=t.name;return React.createElement(r.Z.Option,{key:a,value:a},n)})))),React.createElement("p",{className:"description"},(0,k.__)("Each service must be assigned to a group. All services that do not belong to the group of essential services can (but do not have to) be accepted by visitors. According to the ePrivacy Directive, only services without which the website would not work are considered as essential services if the visitor has explicitly requested the service used. A possible economic interest of the website operator in using a tool, e.g. Google Analytics, is irrelevant.")),!1!==o&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.",o))),React.createElement(D,{notices:i})),React.createElement(p.Z.Item,{label:(0,k.__)("Provider"),required:!0},React.createElement(p.Z.Item,{name:"provider",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please name a provider!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)('A service always has an "owner", who processes collected data or information saved in cookies etc. Please specify which provider creates cookies and processes personal data, e.g. "Google Ireland Limited". If you are the provider, please enter your legal name.'))),React.createElement(p.Z.Item,{label:(0,k.__)("Purpose")},React.createElement(p.Z.Item,{name:"purpose",noStyle:!0},React.createElement(M.Z.TextArea,{autoSize:{minRows:3}})),React.createElement("p",{className:"description"},(0,k._i)((0,k.__)("The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how {{a}}personal data{{/a}} is collected and how cookies are used for this purpose."),{a:React.createElement("a",{href:(0,k.__)("https://devowl.io/2021/personal-data-gdpr/"),target:"_blank",rel:"noreferrer"})}))),React.createElement(p.Z.Item,{label:(0,k.__)("Privacy policy of the provider"),required:!0},React.createElement(p.Z.Item,{name:"providerPrivacyPolicy",noStyle:!0,rules:[{required:!0,type:"url",message:(0,k.__)("Please provide a valid URL!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)("Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).")),React.createElement(D,{notices:c})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group||e.name!==t.name}},(function(e){var t,a=e.getFieldValue,n=e.setFieldsValue,o=a("group")===m.key;return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{label:(0,k.__)("Consent Forwarding Unique Name"),style:{display:y?void 0:"none"}},React.createElement(p.Z.Item,{name:"consentForwardingUniqueName",noStyle:!0,validateTrigger:"onBlur",rules:[{validator:(t=(0,d.Z)(v().mark((function e(t,o){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!y||!o,e.abrupt("return",F(o||b(a("name")),r?function(e){return n({consentForwardingUniqueName:e})}:void 0));case 2:case"end":return e.stop()}}),e)}))),function(e,a){return t.apply(this,arguments)})}]},React.createElement(M.Z,{placeholder:_?"":b(a("name"))})),React.createElement("p",{className:"description"},(0,k.__)("Consent Forwarding is active. This means that all services on all available instances must be identified by a unique name in order to correctly set consent for a service.")),o&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You can define a unique name, but essential services are automatically accepted when a consent is forwarded.")))),React.createElement(p.Z.Item,{label:(0,k.__)("Legal basis"),required:!0},React.createElement(p.Z.Item,{name:"legalBasis",noStyle:!0,rules:[{required:!0}]},React.createElement(T.ZP.Group,{disabled:o},React.createElement(T.ZP.Button,{value:"consent"},(0,k.__)("Consent (Opt-in)")),React.createElement(T.ZP.Button,{value:"legitimate-interest"},(0,k.__)("Legitimate interest (Opt-out)")),Z&&React.createElement(T.ZP.Button,{value:"legal-requirement"},(0,k.__)("Compliance with a legal obligation")))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(C.r,{url:(0,k.__)("https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/")})),React.createElement("p",{className:"description"},(0,k._i)((0,k.__)('Services can be used on various legal bases according to Art. 6 GDPR. "Consent" means that the user must explicitly agree to the service (opt-in). "Legitimate interest" means that your interest as a website operator prevails to use the service and the user must explicitly disagree (opt-out). Unless it is an essential service. Then an objection is not possible. {{strong}}A legitimate interest exists only in rare cases and only for data processing. If you are not sure, it is better to obtain consent to be on the safe side.{{/strong}}'),{strong:React.createElement("strong",null)})),o&&!Z&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k.__)('Your service is currently grouped as "Essential". This group implies the legitimate interest, with the only difference that this service cannot be opted out.')))))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group||e.ePrivacyUSA!==t.ePrivacyUSA}},(function(e){var t=e.getFieldValue;return React.createElement(p.Z.Item,{label:(0,k.__)("US data processing"),style:{display:h?void 0:"none"}},React.createElement(p.Z.Item,{name:"ePrivacyUSA",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("This service processes data in the USA or transfers data to US companies or servers")),t("ePrivacyUSA")&&t("group")===m.key&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("If you use this service declaration only as a notice and the corresponding service is already embedded outside the cookie banner on the first visit to the website, it is possible that the service used in the USA is already processing data before the user has agreed to this. From a data protection perspective, the use of such services should be avoided, or the service should be embedded in the opt-in code (execution after consent). In practice, this will not always be possible."))))})),React.createElement(p.Z.Item,{label:(0,k.__)("No technical definitions")},React.createElement(p.Z.Item,{name:"noTechnicalDefinitions",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script."))))})),A=a(1857),B=a(1802),U=a(1562),G=a(7088),q=a(4290),L=a(9033),V=a(3137),H=a(657),j={labelCol:{span:0},wrapperCol:{span:24},style:{margin:0}},K=(0,y.Pi)((function(){var e=(0,B.w)(),t=(0,f.useRef)(),a=(0,f.useMemo)((function(){return{DragHandle:(0,H.W6)((function(){return React.createElement(U.Z,{style:{cursor:"grab",color:"#999",marginTop:5},className:"button button-small button-link"})})),SortableItem:(0,H.W8)((function(e){return React.createElement("tr",e)})),SortableBody:(0,H.JN)((function(e){return React.createElement("tbody",(0,o.Z)({ref:t},e))}))}}),[]),n=a.DragHandle,c=a.SortableItem,l=a.SortableBody,s=(0,f.useCallback)((function(e){var t=e.node,a=e.helper;t.childNodes.forEach((function(e,t){a.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}),[]);return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions||e.technicalDefinitions.length!==t.technicalDefinitions.length}},(function(a){return(0,a.getFieldValue)("noTechnicalDefinitions")?null:React.createElement(p.Z.List,{name:"technicalDefinitions"},(function(a,u){var d=u.add,m=u.remove,g=u.move;return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span,description:(0,k.__)("For each service you use, you should specify all cookies that are used by it. You can find this out in the developer console of your browser. Please note that there are several types of cookies and that the law requires that you inform your visitors not only about (HTTP) cookies, but also about cookie-like information.")},(0,k.__)("Technical cookie information")),React.createElement("table",{className:"wp-list-table widefat fixed striped table-view-list",style:{marginBottom:25}},React.createElement("thead",null,React.createElement("tr",null,React.createElement("td",{width:45,align:"right"}," "),React.createElement("td",{width:150},(0,k.__)("Cookie type")),React.createElement("td",null,React.createElement(A.Z,{title:(0,k._i)((0,k.__)("Every cookie has a technical name, which you must provide. If a cookie name is dynamically composed, please use an asterisk ({{code}}*{{/code}}) as a wildcard (placeholder)."),{code:React.createElement("code",null)})},React.createElement("span",null,(0,k.__)("Technical cookie name")," ",React.createElement(G.Z,null)))),React.createElement("td",null,React.createElement(A.Z,{title:(0,k.__)("Every cookie is associated to a domain or hostname.")},React.createElement("span",null,(0,k.__)("Technical cookie host")," ",React.createElement(G.Z,null)))),React.createElement("td",{width:250},React.createElement(A.Z,{title:(0,k.__)("A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.")},React.createElement("span",null,(0,k.__)("Cookie duration")," ",React.createElement(G.Z,null)))),React.createElement("td",null,React.createElement(A.Z,{title:(0,k.__)("Each cookie serves a purpose (e.g. user identification for tracking), which should be explained.")},React.createElement("span",null,(0,k.__)("Purpose")," ",React.createElement(G.Z,null)))),React.createElement("td",{width:70,align:"right"}," "))),React.createElement(l,{useDragHandle:!0,onSortEnd:function(e){var t=e.oldIndex,a=e.newIndex;return g(t,a)},onSortStart:s,helperContainer:function(){return t.current}},a.map((function(t,l){return React.createElement(c,{key:t.key,index:l},React.createElement("td",null,a.length>1?React.createElement(n,null):void 0),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"type"],name:[t.name,"type"],rules:[{required:!0,message:(0,k.__)("Please provide a cookie type!")}]}),React.createElement(r.Z,null,Object.keys(e).map((function(t){return React.createElement(r.Z.Option,{key:t,value:t,style:{display:"flash"===t?"none":void 0}},e[t].name)}))))),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"name"],name:[t.name,"name"],rules:[{required:!0,message:(0,k.__)("Please provide a technical cookie name!")}]}),React.createElement(M.Z,null)),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.name)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.name)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"name"]);return[/\[/gm,[/([{]+)/gm,function(e){return 1===e.length}],/\(/gm].filter((function(e){return Array.isArray(e)?e[0].test(a)&&a.match(e[0]).filter(e[1]).length>0:e.test(a)})).length>0&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,k._i)((0,k.__)("Are you sure this is the name of the cookie? It seems like you are using a placeholder that is not supported. Please use an asterisk ({{code}}*{{/code}}) as a placeholder if the cookie name is dynamically composed."),{code:React.createElement("code",null)})))}))),React.createElement("td",null,React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.type)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.type)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"type"]);return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"host"],name:[t.name,"host"],rules:[{validator:function(e,t){return(["local","session","indexedDb"].indexOf(a)>-1?(0,V.C)(t):/^\.?(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/gm.test(t))||""===t&&"http"!==a?Promise.resolve():Promise.reject((0,k.__)("Please provide a valid hostname!"))}}]}),React.createElement(M.Z,null)),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.host)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.host)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"host"]);return a.startsWith("*.")&&a.length>2&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,k._i)((0,k.__)("You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.",a.substr(2)),{code:React.createElement("code",null)})))})))}))),React.createElement("td",null,React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.type)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.type)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"type"]);return["local","session","indexedDb","flash"].indexOf(a)>-1?null:React.createElement(React.Fragment,null,React.createElement(p.Z.Item,(0,o.Z)({},t,{fieldKey:[t.fieldKey,"sessionDuration"],name:[t.name,"sessionDuration"],noStyle:!0,valuePropName:"checked"}),React.createElement(i.Z,{style:{float:"left",marginTop:5}},React.createElement(A.Z,{title:(0,k.__)("This cookie is active as long as the session is active")},React.createElement("span",null,(0,k.__)("Session"))))),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.sessionDuration)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.sessionDuration)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"sessionDuration"]);return React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"duration"],name:[t.name,"duration"],rules:[{required:!a,message:(0,k.__)("Please provide a valid duration!")}]}),React.createElement(M.Z,{min:"0",addonAfter:React.createElement(p.Z.Item,{name:[t.name,"durationUnit"],noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide an unit!")}]},React.createElement(r.Z,null,React.createElement(r.Z.Option,{value:"s"},(0,k.__)("second(s)")),React.createElement(r.Z.Option,{value:"m"},(0,k.__)("minute(s)")," "),React.createElement(r.Z.Option,{value:"h"},(0,k.__)("hour(s)")," "),React.createElement(r.Z.Option,{value:"d"},(0,k.__)("day(s)")," "),React.createElement(r.Z.Option,{value:"mo"},(0,k.__)("month(s)")," "),React.createElement(r.Z.Option,{value:"y"},(0,k.__)("year(s)")," "))),type:"number",style:{maxWidth:200,display:a?"none":void 0}}))})))}))),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"purpose"],name:[t.name,"purpose"]}),React.createElement(M.Z.TextArea,{rows:1,autoSize:{maxRows:3}}))),React.createElement("td",null,a.length>1?React.createElement("a",{className:"button button-small",onClick:function(){m(t.name)}},React.createElement(q.Z,null)):null))}))),React.createElement("tfoot",null,React.createElement("tr",null,React.createElement("td",{colSpan:7,align:"right"},React.createElement("a",{className:"button button-primary alignright",onClick:function(){d(ae)}},React.createElement(L.Z,null)," ",(0,k.__)("Add another cookie definition")))))))}))}))})),Y=a(4148),$=a(5283),J=(0,y.Pi)((function(e){var t=e.manager,a=e.onlyWhenManagerIs,n=e.hasManagerAttributeName,o=e.thisIsManagerAttributeName,r=e.inEventNameAttributeName,i=e.outEventNameAttributeName,c=(0,w.m)(),l=c.cookieStore,s=c.optionStore,u=s.setCookiesViaManager,d=s[n],m=s.others.isPro,g=l.essentialGroup,h=N().cookie;return u===a&&m&&React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement(A.Z,{title:d&&h.key!==d?(0,k.__)("You have already defined a %s service.",t):""},React.createElement("span",null,React.createElement(p.Z.Item,{name:o,valuePropName:"checked",noStyle:!0},React.createElement(O.Z,{disabled:d&&h.key!==d})),React.createElement("span",null," ",(0,k.__)("Opt-in script below loads %s",t))))),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e[o]!==t[o]||e.group!==t.group}},(function(e){var a=e.getFieldValue,n=a(o),r=a("group");return n&&r!==g.key&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You have defined %1$s in a non-essential service group. In our legal opinion, this is the only way to use %1$s legally. However, please note that if a user doesn't consent to load %1$s, opt-in and opt-out events will not be sent to %1$s. Real Cookie Banner offers you the possibility to specify a fallback HTML/JavaScript for this case.",t))))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e[o]!==t[o]||e[r]!==t[r]||e[i]!==t[i]}},(function(e){var a=e.getFieldValue,n=a(o),c=a(r),l=a(i);return!n&&React.createElement(p.Z.Item,{label:(0,k.__)("Event names for %s",t)},React.createElement(p.Z.Item,{name:r,noStyle:!0},React.createElement(M.Z,{addonBefore:(0,k.__)("Opt-in"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement(p.Z.Item,{name:i,noStyle:!0},React.createElement(M.Z,{addonBefore:(0,k.__)("Opt-out"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement("div",null,React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")})),(c.length>0||l.length>0)&&!d&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You have not yet defined a %s service. To use event names, you must create a %s service.",t,t))))})))})),W=/{{([A-Za-z0-9_]+)}}/gm,z=["codeOptIn","codeOptOut","codeOnPageLoad"],X=(0,y.Pi)((function(e){var t=e.dynamicFields;return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return z.map((function(a){return e[a]!==t[a]})).filter(Boolean).length>0}},(function(e){var a=e.getFieldValue,n=z.map((function(e){return a(e)})).join(""),o=Array.from(n.matchAll(W)).map((function(e){return(0,g.Z)(e,2)[1]})),r=[];return o?o.map((function(e){var a=["codeDynamics",e],n=(null==t?void 0:t[e])||{},o=n.label,i=n.invalidMessage,c=void 0===i?(0,k.__)("Please fill in a value!"):i,l=n.example,s=n.expression,u=n.hint;return r.indexOf(e)>-1?null:(r.push(e),React.createElement(p.Z.Item,{key:e,label:o||React.createElement("code",null,e),required:!0},React.createElement(p.Z.Item,{noStyle:!0,name:a,rules:[{required:!0,pattern:s?new RegExp(s):void 0,message:c}]},React.createElement(M.Z,{placeholder:l?"".concat((0,k.__)("e. g.")," ").concat(l):void 0})),!!u&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt",style:{margin:"10px 0 5px"}},React.createElement("p",{dangerouslySetInnerHTML:{__html:u}}))))})):null}))})),Q=(0,y.Pi)((function(e){var t=e.name,a=(0,w.m)().optionStore.others.activePlugins,n=(0,f.useMemo)((function(){return Object.keys(a)}),[a]);return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){return e[t]!==a[t]}},(function(e){var o=(0,e.getFieldValue)(t),r=(0,m.Z)(o.matchAll(/\s+(skip-if-active=")([^"]+)(")/gm)).map((function(e){return(0,g.Z)(e,3)[2].split(",").filter((function(e){return n.indexOf(e)>-1}))})).flat(),i=r.filter((function(e,t){return r.indexOf(e)===t}));return 0===i.length?null:React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k._i)((0,k.__)("The code above contains HTML tags that are skipped when one of the following plugins is active: {{strong/}}. {{i}}What does this mean for me?{{/i}} In most cases, another plugin will take over the execution of the technical code, and you have to create a corresponding content blocker."),{strong:React.createElement("strong",null,i.map((function(e){return a[e]})).join(", ")),i:React.createElement("i",null)})))}))})),ee=(0,y.Pi)((function(e){var t=e.notices,a=e.dynamicFields,n=(0,w.m)(),o=n.cookieStore,r=n.optionStore,i=r.setCookiesViaManager,c=r.others.isPro,l=o.essentialGroup,s=(0,f.useCallback)((function(e){return{opacity:e?void 0:0,height:e?void 0:0,margin:e?void 0:0}}),[]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span,description:"none"===i?(0,k.__)("Define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service or when a page is loaded. It is important to define the executed code correctly, as this ensures that scripts are executed and cookies are set only after the user's consent."):(0,k.__)("Define the %1$s event that should be thrown in the data layer when a visitor decides to accept or reject this service. The event can be used as a trigger in %1$s. For users who do not allow to use %1$s a fallback can be defined. You can define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service, or when a page is loaded. It is important to define the event names and executed code correctly, as this will ensure that scripts are executed and cookies are only set with the user's consent.","googleTagManager"===i?$.Gh:$.Ki)},(0,k.__)("Technical handling")),React.createElement(J,{manager:$.Gh,onlyWhenManagerIs:"googleTagManager",hasManagerAttributeName:"hasGTM",thisIsManagerAttributeName:"thisIsGoogleTagManager",inEventNameAttributeName:"googleTagManagerInEventName",outEventNameAttributeName:"googleTagManagerOutEventName"}),React.createElement(J,{manager:$.Ki,onlyWhenManagerIs:"matomoTagManager",hasManagerAttributeName:"hasMTM",thisIsManagerAttributeName:"thisIsMatomoTagManager",inEventNameAttributeName:"matomoTagManagerInEventName",outEventNameAttributeName:"matomoTagManagerOutEventName"}),React.createElement(X,{dynamicFields:a}),(null==t?void 0:t.length)>0&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span,span:te.wrapperCol.span}},React.createElement(D,{notices:t})),React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on opt-in")},"googleTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsGoogleTagManager!==t.thisIsGoogleTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsGoogleTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptInNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsMatomoTagManager!==t.thisIsMatomoTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsMatomoTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptInNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Ki),{u:React.createElement("u",null)})))})),React.createElement(p.Z.Item,{name:"codeOptIn",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOptIn"})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on opt-out"),style:s(t("group")!==l.key)},React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions}},(function(e){return(0,e.getFieldValue)("noTechnicalDefinitions")?null:React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutDelete",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("Delete all first-party cookies after opt-out. First-party cookies are only cookies that are set by or for this domain.")))})),"googleTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsGoogleTagManager!==t.thisIsGoogleTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsGoogleTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsMatomoTagManager!==t.thisIsMatomoTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsMatomoTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Ki),{u:React.createElement("u",null)})))})),React.createElement(p.Z.Item,{name:"codeOptOut",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOptOut"})))})),React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on page load")},React.createElement(p.Z.Item,{name:"codeOnPageLoad",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOnPageLoad"})))})),te={labelCol:{span:6},wrapperCol:{span:16}},ae={type:"http",name:"",host:"",duration:void 0,durationUnit:"y",sessionDuration:!1,purpose:""},ne=(0,y.Pi)((function(e){var t,a,h,y,I,O,T=e.preset,M=e.attributes,S=e.navigateAfterCreation,P=void 0===S||S,D=e.scrollToTop,x=void 0===D||D,A=e.onCreated,B=N(),U=B.routeGroup,G=U.group,q=U.link,L=B.cookie,V=B.id,H=B.queried,j=B.fetched,Y=p.Z.useForm(),$=(0,g.Z)(Y,1)[0],J=(0,f.useState)(!1),W=(0,g.Z)(J,2),z=W[0],X=W[1],Q=(0,f.useState)(!1),ne=(0,g.Z)(Q,2),oe=ne[0],re=ne[1],ie=(0,Z.useHistory)(),ce=(0,w.m)(),le=ce.cookieStore,se=ce.optionStore.others.useEncodedStringForScriptInputs,ue=le.essentialGroup,de=(null==L?void 0:L.presetModel)||le.presetsCookie.get(null==T?void 0:T.identifier),me=M?M.group?(null===(t=le.groups.sortedGroups.filter((function(e){return e.data.name===M.group})))||void 0===t||null===(a=t[0])||void 0===a?void 0:a.key)||"preset-group-not-found":void 0:G.key,pe=Object.keys((null==T?void 0:T.contentBlockerPresets)||[]).length>0,ge=(null==M?void 0:M.createContentBlockerNotice)||(null==de||null===(h=de.attributes)||void 0===h?void 0:h.createContentBlockerNotice),he=!(null==de||!de.data.scanned||null===(y=de.attributes)||void 0===y||!y.codeOptIn||-1!==["wordpress-comments"].indexOf(de.data.identifier)),ve=j?{name:L.data.title.raw,status:L.data.status,group:G.key||void 0,purpose:L.data.content.raw,provider:L.data.meta.provider,providerPrivacyPolicy:L.data.meta.providerPrivacyPolicy,consentForwardingUniqueName:L.data.meta.consentForwardingUniqueName||L.data.slug,noTechnicalDefinitions:L.data.meta.noTechnicalDefinitions,legalBasis:L.data.meta.legalBasis,ePrivacyUSA:L.data.meta.ePrivacyUSA,technicalDefinitions:JSON.parse(JSON.stringify(L.technicalDefinitions||"[]")),codeDynamics:JSON.parse(JSON.stringify(L.codeDynamics||"{}")),thisIsGoogleTagManager:L.data.meta.thisIsGoogleTagManager,googleTagManagerInEventName:L.data.meta.googleTagManagerInEventName,googleTagManagerOutEventName:L.data.meta.googleTagManagerOutEventName,thisIsMatomoTagManager:L.data.meta.thisIsMatomoTagManager,matomoTagManagerInEventName:L.data.meta.matomoTagManagerInEventName,matomoTagManagerOutEventName:L.data.meta.matomoTagManagerOutEventName,codeOptIn:L.data.meta.codeOptIn,codeOptInNoGoogleTagManager:L.data.meta.codeOptInNoGoogleTagManager,codeOptInNoMatomoTagManager:L.data.meta.codeOptInNoMatomoTagManager,codeOptOut:L.data.meta.codeOptOut,codeOptOutNoGoogleTagManager:L.data.meta.codeOptOutNoGoogleTagManager,codeOptOutNoMatomoTagManager:L.data.meta.codeOptOutNoMatomoTagManager,codeOnPageLoad:L.data.meta.codeOnPageLoad,codeOptOutDelete:L.data.meta.codeOptOutDelete}:{name:(null==M?void 0:M.name)||"",status:"publish",group:"number"==typeof me&&me||void 0,purpose:(null==M?void 0:M.purpose)||"",provider:(null==M?void 0:M.provider)||"",providerPrivacyPolicy:(null==M?void 0:M.providerPrivacyPolicy)||"",consentForwardingUniqueName:(null==M?void 0:M.consentForwardingUniqueName)||(null==T?void 0:T.identifier)||"",noTechnicalDefinitions:(null==M?void 0:M.noTechnicalDefinitions)||!1,legalBasis:(null==M?void 0:M.legalBasis)||"consent",ePrivacyUSA:(null==M?void 0:M.ePrivacyUSA)||!1,technicalDefinitions:null!=M&&M.technicalDefinitions?JSON.parse(JSON.stringify(M.technicalDefinitions)):[ae],codeDynamics:(null==M?void 0:M.codeDynamics)||{},thisIsGoogleTagManager:(null==M?void 0:M.thisIsGoogleTagManager)||!1,googleTagManagerInEventName:(null==M?void 0:M.googleTagManagerInEventName)||"",googleTagManagerOutEventName:(null==M?void 0:M.googleTagManagerOutEventName)||"",thisIsMatomoTagManager:(null==M?void 0:M.thisIsMatomoTagManager)||!1,matomoTagManagerInEventName:(null==M?void 0:M.matomoTagManagerInEventName)||"",matomoTagManagerOutEventName:(null==M?void 0:M.matomoTagManagerOutEventName)||"",codeOptIn:(null==M?void 0:M.codeOptIn)||"",codeOptInNoGoogleTagManager:(null==M?void 0:M.codeOptInNoGoogleTagManager)||!1,codeOptInNoMatomoTagManager:(null==M?void 0:M.codeOptInNoMatomoTagManager)||!1,codeOptOut:(null==M?void 0:M.codeOptOut)||"",codeOnPageLoad:(null==M?void 0:M.codeOnPageLoad)||"",codeOptOutNoGoogleTagManager:(null==M?void 0:M.codeOptOutNoGoogleTagManager)||!1,codeOptOutNoMatomoTagManager:(null==M?void 0:M.codeOptOutNoMatomoTagManager)||!1,codeOptOutDelete:(null==M?void 0:M.codeOptOutDelete)||!1,createContentBlocker:"boolean"==typeof(null==M?void 0:M.createContentBlocker)?M.createContentBlocker:pe&&!(null!=M&&M.deactivateAutomaticContentBlockerCreation),createContentBlockerId:null==M?void 0:M.createContentBlockerId,presetCheck:!T};(0,f.useEffect)((function(){H&&!j&&((0,m.Z)(le.groups.entries.values()).filter((function(e){return e.cookies.entries.get(V)}))[0]||G).cookies.getSingle({params:{id:V,context:"edit"}})}),[H,j]),(0,f.useEffect)((function(){de&&!de.attributes&&de.fetchAttributes()}),[de]),(0,f.useEffect)((function(){x&&(0,_.X)(0)}),[]);var fe=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){var a,n,o,r,i,c,d,m,p,g,h,f,y,_,w,Z,I,N,O,M,S;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=function(e){return se?"encodedScript:".concat(R(e)):e},o=t.name,r=t.status,i=t.purpose,c=t.noTechnicalDefinitions,d=t.technicalDefinitions,m=t.group,p=t.codeDynamics,g=t.createContentBlocker,h=t.createContentBlockerId,f=t.consentForwardingUniqueName,y=t.codeOptIn,_=t.codeOptOut,w=t.codeOnPageLoad,Z=(0,u.Z)(t,["name","status","purpose","noTechnicalDefinitions","technicalDefinitions","group","codeDynamics","createContentBlocker","createContentBlockerId","consentForwardingUniqueName","codeOptIn","codeOptOut","codeOnPageLoad"]),delete(I=(0,s.Z)((0,s.Z)({},Z),{},{codeOptIn:n(y),codeOptOut:n(_),codeOnPageLoad:n(w),noTechnicalDefinitions:c,codeDynamics:JSON.stringify(p),technicalDefinitions:JSON.stringify(c?ve.technicalDefinitions:d),consentForwardingUniqueName:f||b(o)})).presetCheck,!H){e.next=15;break}return L.setName(o),L.setStatus(r),L.setPurpose(i),L.setMeta(I),L.setGroup(m),e.next=13,L.patch();case 13:e.next=20;break;case 15:return N=le.groups.entries.get(m),O=new E.U(N.cookies,{title:{rendered:o},content:{rendered:i,protected:!1},status:r,meta:(0,s.Z)((0,s.Z)({},I),{},{presetId:null==T?void 0:T.identifier,presetVersion:null==T?void 0:T.version})}),e.next=19,O.persist();case 19:null==A||A(O);case 20:re(!1),l.ZP.success((0,k.__)("You have successfully saved the service.")+(g?" ".concat((0,k.__)("Continue with the corresponding Content Blocker!")):"")),M="#rcb-services-with-empty-privacy-policy-notice",null===(a=document.querySelector("".concat(M,' li[data-id="').concat(V,'"]')))||void 0===a||a.classList.add("hidden"),document.querySelectorAll("".concat(M," > ul > li:not(.hidden)")).length||null===(S=document.querySelector(M))||void 0===S||S.remove(),P&&setTimeout((function(){return g?ie.push("/blocker/new?force=".concat(h||T.identifier,"&cookieCreationPrompt=1").concat("string"==typeof P?"&navigateAfterCreation=".concat(encodeURIComponent(P)):"")):"string"==typeof P?window.location.href=P:ie.push("".concat(q.slice(1),"/").concat(m))}),0),e.next=32;break;case 28:throw e.prev=28,e.t0=e.catch(0),l.ZP.error(e.t0.responseJSON.message),e.t0;case 32:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(t){return e.apply(this,arguments)}}(),[H,L,le,se]),ye=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.prev=1,e.next=4,fe(t);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:return e.prev=8,X(!1),e.finish(8);case 11:case"end":return e.stop()}}),e,null,[[1,6,8,11]])})));return function(t){return e.apply(this,arguments)}}(),[$,fe]),Ee=(0,f.useCallback)((function(e){l.ZP.error((0,k.__)("The service could not be saved due to missing/invalid form values.")),e.errorFields.length&&$.getFieldInstance(e.errorFields[0].name).parentElement.scrollIntoView({behavior:"smooth",block:"center"})}),[]),Re=(0,f.useCallback)((function(){return!oe||(0,k.__)('You have unsaved changes. If you click on "confirm", your changes will be discarded.')}),[$,ve]);return H&&!j?React.createElement(c.Z,{active:!0,paragraph:{rows:8}}):React.createElement(n.Z,{spinning:z||(null==de?void 0:de.busy)||!1},React.createElement(Z.Prompt,{message:Re}),React.createElement(p.Z,(0,o.Z)({name:"cookie-".concat(G.key,"-").concat(V),form:$},te,{initialValues:ve,onFinish:ye,onFinishFailed:Ee,onValuesChange:function(e){var t=e.technicalDefinitions;re(!0);var a=(t||[]).filter(Boolean);if(1===a.length){var n=Object.keys(a[0]);1===n.length&&["sessionDuration","type"].indexOf(n[0])>-1&&setTimeout((function(){return $.validateFields()}),100)}}}),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t,a=e.getFieldValue;return React.createElement(F,{groupNotices:[{message:de&&"number"==typeof me&&a("group")!==me?(0,k.__)("The groups specified in service templates were chosen wisely. Are you sure that this service should be assigned to another group for your case?"):void 0,severity:"warning"},{message:(null==M?void 0:M.groupNotice)||(null==de||null===(t=de.attributes)||void 0===t?void 0:t.groupNotice),severity:"info"}],providerPrivacyPolicyNotices:[{message:j||null==de||!de.attributes||ve.providerPrivacyPolicy?void 0:(0,k.__)('You have not yet set a privacy policy in the settings, so this field could not be filled in automatically. Please enter the URL of your privacy policy here and <a href="%s" target="_blank">set the corresponding page in your settings.</a>',"#/settings"),severity:"warning"}],showNoticePresetGroupNotFound:"preset-group-not-found"===me&&M.group})})),React.createElement(K,null),React.createElement(ee,{dynamicFields:(null==M?void 0:M.dynamicFields)||(null==de||null===(I=de.attributes)||void 0===I?void 0:I.dynamicFields),notices:[{message:(null==M?void 0:M.technicalHandlingNotice)||(null==de||null===(O=de.attributes)||void 0===O?void 0:O.technicalHandlingNotice),severity:"info"},{message:he&&!pe&&(0,k.__)("If you have already used %s before creating this service, please deactivate the script/plugin with which the service was loaded so far. The opt-in script will now take care of the correct integration.",de.data.attributes_name),severity:"warning"},{message:he&&pe&&(0,k.__)('You are currently embedding "%1$s" outside of Real Cookie Banner. You can have it blocked via a content blocker before consenting. Alternatively, you can use the following opt-in script to load %1$s directly into Real Cookie Banner.<br /><br />If you want to embed "%1$s" via Real Cookie Banner, you have to deactivate the content blocker at the end of the form and remove "%1$s" outside Real Cookie Banner.<br /><br />If you prefer to keep the current integration, you only have to delete the opt-in script in this form.',de.data.attributes_name),severity:"warning"}].filter((function(e){return e.message}))}),!!T&&React.createElement(React.Fragment,null,pe&&P&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(p.Z.Item,{noStyle:!0,name:"createContentBlocker",valuePropName:"checked",dependencies:["group"],rules:[{validator:function(e,a){return t("group")===ue.key&&a?Promise.reject((0,k.__)('Services that should be associated with a content blocker cannot be in the "Essential" group, because it cannot be rejected.')):Promise.resolve()}}]},React.createElement(i.Z,null,(0,k.__)("Create content blocker for this service.")))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.createContentBlocker!==t.createContentBlocker}},(function(e){var t=e.getFieldValue;return React.createElement(React.Fragment,null,t("createContentBlocker")&&React.createElement(React.Fragment,null,Object.keys(T.contentBlockerPresets).length>1&&React.createElement(p.Z.Item,{noStyle:!0,name:"createContentBlockerId",rules:[{required:!0,message:(0,k.__)("Please select a template for the Content Blocker!")}]},React.createElement(r.Z,{style:{maxWidth:500,marginTop:10,display:"block"},placeholder:(0,k.__)("Select Content Blocker template...")},Object.keys(T.contentBlockerPresets).map((function(e){return React.createElement(r.Z.Option,{key:e,value:e},T.contentBlockerPresets[e])})))),React.createElement("div",{className:"notice notice-info below-h2 notice-alt",style:{marginTop:10}},React.createElement("p",null,(0,k.__)("Immediately after submitting this form you will be forwarded to another form that allows you to create the Content Blocker.")))),!!ge&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",{dangerouslySetInnerHTML:{__html:ge}})))}))),React.createElement(p.Z.Item,{name:"presetCheck",valuePropName:"checked",required:!0,rules:[{type:"boolean",required:!0,transform:function(e){return e||void 0},message:(0,k.__)("Please confirm that you have checked the contents of the service.")}],wrapperCol:{offset:te.labelCol.span}},React.createElement(i.Z,null,(0,k.__)("I have checked the information in the service template myself and added any missing information or corrected any information that does not fit to my use case.")," ",React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/")})))),React.createElement(p.Z.Item,{className:"rcb-form-sticky-submit"},React.createElement("span",null,React.createElement("input",{type:"submit",className:"button button-primary right",value:(0,k.__)("Save")})))))}))},5893:function(e,t,a){a.d(t,{C:function(){return o}});var n=a(6315),o=function(e){var t=e.children,a=e.description,o=e.offset;return React.createElement(n.Z.Item,{wrapperCol:{offset:o},style:{borderBottom:"1px solid #e7e7e7"}},React.createElement("h3",{style:{margin:"0 0 ".concat(a?3:15,"px 0")}},t),!!a&&React.createElement("p",{className:"description",style:{marginBottom:15}},a))}},7325:function(e,t,a){a.d(t,{y:function(){return r}});var n=a(6711),o=a(8700);function r(){return new o.Url("/".concat((0,n.useLocation)().search),!0).query}},8909:function(e,t,a){a.d(t,{R:function(){return c}});var n=a(6711),o=a(4163),r=a(7363),i=a(5706),c=function(){var e=(0,n.useRouteMatch)().params.cookieGroup,t=(0,o.m)().cookieStore,a=isNaN(+e)?0:+e,c=!!e,l=t.groups.entries.get(a)||new i.O(t.groups,{id:0}),s=(0,r.useCallback)((function(e){var t=e.key;return"#/cookies/".concat(l.key,"/edit/").concat(t)}),[l]),u="#/cookies/".concat(l.key,"/new");return{group:l,id:a,queried:c,fetched:0!==l.key,link:"#/cookies",editLink:s,addCookieLink:u}}},1802:function(e,t,a){function n(){return{http:{name:"HTTP Cookie",abbr:"HTTP",backgroundColor:"black"},local:{name:"Local Storage",abbr:"Local",backgroundColor:"#b3983c"},session:{name:"Session Storage",abbr:"Session",backgroundColor:"#3c99b3"},flash:{name:"Flash Local Shared Object",abbr:"Flash",backgroundColor:"#b33c3c"},indexedDb:{name:"IndexedDB",abbr:"I-DB",backgroundColor:"#4ab33c"}}}a.d(t,{w:function(){return n}})}}]);
|
2 |
-
//# sourceMappingURL=548.lite.js.map?ver=
|
1 |
+
"use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[548],{8261:function(e,t,a){function n(){return{http:{name:"HTTP Cookie",abbr:"HTTP",backgroundColor:"black"},local:{name:"Local Storage",abbr:"Local",backgroundColor:"#b3983c"},session:{name:"Session Storage",abbr:"Session",backgroundColor:"#3c99b3"},flash:{name:"Flash Local Shared Object",abbr:"Flash",backgroundColor:"#b33c3c"},indexedDb:{name:"IndexedDB",abbr:"I-DB",backgroundColor:"#4ab33c"}}}a.d(t,{X:function(){return n}}),a(7363)},6586:function(e,t,a){a.d(t,{ZG:function(){return ne},PS:function(){return te},y$:function(){return ae}});var n=a(9591),o=a(4741),r=a(3828),i=a(3306),c=a(6142),l=a(8782),s=a(2711),u=a(4115),d=a(7938),m=a(7870),p=a(6315),g=a(7228),h=a(5450),v=a.n(h),f=a(7363),y=a(3554),E=a(6926);function R(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))}function b(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",a=0,n=t.length;a<n;a++)e=e.replace(new RegExp(t.charAt(a),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(a));return e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var _=a(7819),k=a(8630),w=a(4163),Z=a(6711),I=a(8909),N=function(){var e=(0,I.R)(),t=e.group,a=(0,Z.useRouteMatch)().params,n=isNaN(+a.cookie)?0:+a.cookie,o=!!a.cookie,r=t.cookies.entries.get(+a.cookie)||new E.U(t.cookies,{id:0});return{routeGroup:e,cookie:r,id:n,queried:o,fetched:0!==r.key}},O=a(6478),T=a(8920),M=a(2519),S=a(1629),P=a(5893),C=a(7943),D=function(e){var t=e.notices;return React.createElement(React.Fragment,null,null==t?void 0:t.map((function(e){var t=e.message,a=e.severity;return t?React.createElement("div",{className:"notice notice-".concat(a," below-h2 notice-alt"),key:t},React.createElement("p",{dangerouslySetInnerHTML:{__html:t}})):null})))},x=a(2388),F=(0,y.Pi)((function(e){var t,a,n=e.showNoticePresetGroupNotFound,o=void 0!==n&&n,i=e.groupNotices,c=e.providerPrivacyPolicyNotices,l=(0,w.m)(),s=l.cookieStore,u=s.groups,m=s.essentialGroup,g=l.optionStore,h=g.ePrivacyUSA,y=g.consentForwarding,E=N(),R=E.cookie,_=E.fetched,Z="real-cookie-banner"===(null===(t=R.presetModel)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.identifier),I=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,S.W)({location:x.V,params:{slug:t}});case 3:return e.abrupt("return",e.sent.filter((function(e){return e.ID!==R.key}))[0]);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",void 0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),[R.key]),F=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t,a){var n,o,r,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I(t);case 2:if(!(n=e.sent)){e.next=19;break}if(a){e.next=8;break}throw(0,k.__)("A service with the same unique name already exists.");case 8:o=n.metas.consentForwardingUniqueName,r=/^(.*)-(\d+)$/,i=n;case 11:if(!i){e.next=18;break}return o=o.match(r)?o.replace(r,(function(e,t,a){return"".concat(t,"-").concat(+a+1)})):"".concat(o,"-1"),e.next=15,I(o);case 15:i=e.sent,e.next=11;break;case 18:a(o);case 19:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),[I]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span},(0,k.__)("General service configuration")," ",React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/")})),React.createElement(p.Z.Item,{label:(0,k.__)("Name"),required:!0},React.createElement(p.Z.Item,{name:"name",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide a name!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)('Each service used should have a descriptive name that is understandable to a non-professional user. Example: "Google Analytics".'))),React.createElement(p.Z.Item,{label:(0,k.__)("Status"),required:!0},React.createElement(p.Z.Item,{name:"status",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please choose a status!")}]},React.createElement(T.ZP.Group,null,React.createElement(T.ZP.Button,{value:"publish"},(0,k.__)("Enabled")),React.createElement(T.ZP.Button,{value:"private"},(0,k.__)("Disabled")),React.createElement(T.ZP.Button,{value:"draft"},(0,k.__)("Draft")))),React.createElement("p",{className:"description"},(0,k.__)('Services with the status "Draft" or "Disabled" are not visible to the public. In addition, a draft will be highlighted in the service table so that you do not forget to configure it.'))),React.createElement(p.Z.Item,{label:(0,k.__)("Group"),required:!0},React.createElement(p.Z.Item,{name:"group",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide a group!")}]},React.createElement(r.Z,null,u.sortedGroups.map((function(e){var t=e.data,a=t.id,n=t.name;return React.createElement(r.Z.Option,{key:a,value:a},n)})))),React.createElement("p",{className:"description"},(0,k.__)("Each service must be assigned to a group. All services that do not belong to the group of essential services can (but do not have to) be accepted by visitors. According to the ePrivacy Directive, only services without which the website would not work are considered as essential services if the visitor has explicitly requested the service used. A possible economic interest of the website operator in using a tool, e.g. Google Analytics, is irrelevant.")),!1!==o&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.",o))),React.createElement(D,{notices:i})),React.createElement(p.Z.Item,{label:(0,k.__)("Provider"),required:!0},React.createElement(p.Z.Item,{name:"provider",noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please name a provider!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)('A service always has an "owner", who processes collected data or information saved in cookies etc. Please specify which provider creates cookies and processes personal data, e.g. "Google Ireland Limited". If you are the provider, please enter your legal name.'))),React.createElement(p.Z.Item,{label:(0,k.__)("Purpose")},React.createElement(p.Z.Item,{name:"purpose",noStyle:!0},React.createElement(M.Z.TextArea,{autoSize:{minRows:3}})),React.createElement("p",{className:"description"},(0,k._i)((0,k.__)("The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how {{a}}personal data{{/a}} is collected and how cookies are used for this purpose."),{a:React.createElement("a",{href:(0,k.__)("https://devowl.io/2021/personal-data-gdpr/"),target:"_blank",rel:"noreferrer"})}))),React.createElement(p.Z.Item,{label:(0,k.__)("Privacy policy of the provider"),required:!0},React.createElement(p.Z.Item,{name:"providerPrivacyPolicy",noStyle:!0,rules:[{required:!0,type:"url",message:(0,k.__)("Please provide a valid URL!")}]},React.createElement(M.Z,null)),React.createElement("p",{className:"description"},(0,k.__)("Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).")),React.createElement(D,{notices:c})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group||e.name!==t.name}},(function(e){var t,a=e.getFieldValue,n=e.setFieldsValue,o=a("group")===m.key;return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{label:(0,k.__)("Consent Forwarding Unique Name"),style:{display:y?void 0:"none"}},React.createElement(p.Z.Item,{name:"consentForwardingUniqueName",noStyle:!0,validateTrigger:"onBlur",rules:[{validator:(t=(0,d.Z)(v().mark((function e(t,o){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!y||!o,e.abrupt("return",F(o||b(a("name")),r?function(e){return n({consentForwardingUniqueName:e})}:void 0));case 2:case"end":return e.stop()}}),e)}))),function(e,a){return t.apply(this,arguments)})}]},React.createElement(M.Z,{placeholder:_?"":b(a("name"))})),React.createElement("p",{className:"description"},(0,k.__)("Consent Forwarding is active. This means that all services on all available instances must be identified by a unique name in order to correctly set consent for a service.")),o&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You can define a unique name, but essential services are automatically accepted when a consent is forwarded.")))),React.createElement(p.Z.Item,{label:(0,k.__)("Legal basis"),required:!0},React.createElement(p.Z.Item,{name:"legalBasis",noStyle:!0,rules:[{required:!0}]},React.createElement(T.ZP.Group,{disabled:o},React.createElement(T.ZP.Button,{value:"consent"},(0,k.__)("Consent (Opt-in)")),React.createElement(T.ZP.Button,{value:"legitimate-interest"},(0,k.__)("Legitimate interest (Opt-out)")),Z&&React.createElement(T.ZP.Button,{value:"legal-requirement"},(0,k.__)("Compliance with a legal obligation")))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(C.r,{url:(0,k.__)("https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/")})),React.createElement("p",{className:"description"},(0,k._i)((0,k.__)('Services can be used on various legal bases according to Art. 6 GDPR. "Consent" means that the user must explicitly agree to the service (opt-in). "Legitimate interest" means that your interest as a website operator prevails to use the service and the user must explicitly disagree (opt-out). Unless it is an essential service. Then an objection is not possible. {{strong}}A legitimate interest exists only in rare cases and only for data processing. If you are not sure, it is better to obtain consent to be on the safe side.{{/strong}}'),{strong:React.createElement("strong",null)})),o&&!Z&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k.__)('Your service is currently grouped as "Essential". This group implies the legitimate interest, with the only difference that this service cannot be opted out.')))))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group||e.ePrivacyUSA!==t.ePrivacyUSA}},(function(e){var t=e.getFieldValue;return React.createElement(p.Z.Item,{label:(0,k.__)("US data processing"),style:{display:h?void 0:"none"}},React.createElement(p.Z.Item,{name:"ePrivacyUSA",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("This service processes data in the USA or transfers data to US companies or servers")),t("ePrivacyUSA")&&t("group")===m.key&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("If you use this service declaration only as a notice and the corresponding service is already embedded outside the cookie banner on the first visit to the website, it is possible that the service used in the USA is already processing data before the user has agreed to this. From a data protection perspective, the use of such services should be avoided, or the service should be embedded in the opt-in code (execution after consent). In practice, this will not always be possible."))))})),React.createElement(p.Z.Item,{label:(0,k.__)("No technical definitions")},React.createElement(p.Z.Item,{name:"noTechnicalDefinitions",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script."))))})),A=a(1857),B=a(1562),U=a(7088),G=a(4290),q=a(9033),L=a(3137),V=a(657),H=a(8261),j={labelCol:{span:0},wrapperCol:{span:24},style:{margin:0}},K=(0,y.Pi)((function(){var e=(0,H.X)(),t=(0,f.useRef)(),a=(0,f.useMemo)((function(){return{DragHandle:(0,V.W6)((function(){return React.createElement(B.Z,{style:{cursor:"grab",color:"#999",marginTop:5},className:"button button-small button-link"})})),SortableItem:(0,V.W8)((function(e){return React.createElement("tr",e)})),SortableBody:(0,V.JN)((function(e){return React.createElement("tbody",(0,o.Z)({ref:t},e))}))}}),[]),n=a.DragHandle,c=a.SortableItem,l=a.SortableBody,s=(0,f.useCallback)((function(e){var t=e.node,a=e.helper;t.childNodes.forEach((function(e,t){a.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}),[]);return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions||e.technicalDefinitions.length!==t.technicalDefinitions.length}},(function(a){return(0,a.getFieldValue)("noTechnicalDefinitions")?null:React.createElement(p.Z.List,{name:"technicalDefinitions"},(function(a,u){var d=u.add,m=u.remove,g=u.move;return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span,description:(0,k.__)("For each service you use, you should specify all cookies that are used by it. You can find this out in the developer console of your browser. Please note that there are several types of cookies and that the law requires that you inform your visitors not only about (HTTP) cookies, but also about cookie-like information.")},(0,k.__)("Technical cookie information")),React.createElement("table",{className:"wp-list-table widefat fixed striped table-view-list",style:{marginBottom:25}},React.createElement("thead",null,React.createElement("tr",null,React.createElement("td",{width:45,align:"right"}," "),React.createElement("td",{width:150},(0,k.__)("Cookie type")),React.createElement("td",null,React.createElement(A.Z,{title:(0,k._i)((0,k.__)("Every cookie has a technical name, which you must provide. If a cookie name is dynamically composed, please use an asterisk ({{code}}*{{/code}}) as a wildcard (placeholder)."),{code:React.createElement("code",null)})},React.createElement("span",null,(0,k.__)("Technical cookie name")," ",React.createElement(U.Z,null)))),React.createElement("td",null,React.createElement(A.Z,{title:(0,k.__)("Every cookie is associated to a domain or hostname.")},React.createElement("span",null,(0,k.__)("Technical cookie host")," ",React.createElement(U.Z,null)))),React.createElement("td",{width:250},React.createElement(A.Z,{title:(0,k.__)("A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.")},React.createElement("span",null,(0,k.__)("Cookie duration")," ",React.createElement(U.Z,null)))),React.createElement("td",null,React.createElement(A.Z,{title:(0,k.__)("Each cookie serves a purpose (e.g. user identification for tracking), which should be explained.")},React.createElement("span",null,(0,k.__)("Purpose")," ",React.createElement(U.Z,null)))),React.createElement("td",{width:70,align:"right"}," "))),React.createElement(l,{useDragHandle:!0,onSortEnd:function(e){var t=e.oldIndex,a=e.newIndex;return g(t,a)},onSortStart:s,helperContainer:function(){return t.current}},a.map((function(t,l){return React.createElement(c,{key:t.key,index:l},React.createElement("td",null,a.length>1?React.createElement(n,null):void 0),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"type"],name:[t.name,"type"],rules:[{required:!0,message:(0,k.__)("Please provide a cookie type!")}]}),React.createElement(r.Z,null,Object.keys(e).map((function(t){return React.createElement(r.Z.Option,{key:t,value:t,style:{display:"flash"===t?"none":void 0}},e[t].name)}))))),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"name"],name:[t.name,"name"],rules:[{required:!0,message:(0,k.__)("Please provide a technical cookie name!")}]}),React.createElement(M.Z,null)),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.name)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.name)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"name"]);return[/\[/gm,[/([{]+)/gm,function(e){return 1===e.length}],/\(/gm].filter((function(e){return Array.isArray(e)?e[0].test(a)&&a.match(e[0]).filter(e[1]).length>0:e.test(a)})).length>0&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,k._i)((0,k.__)("Are you sure this is the name of the cookie? It seems like you are using a placeholder that is not supported. Please use an asterisk ({{code}}*{{/code}}) as a placeholder if the cookie name is dynamically composed."),{code:React.createElement("code",null)})))}))),React.createElement("td",null,React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.type)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.type)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"type"]);return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"host"],name:[t.name,"host"],rules:[{validator:function(e,t){return(["local","session","indexedDb"].indexOf(a)>-1?(0,L.C)(t):/^\.?(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/gm.test(t))||""===t&&"http"!==a?Promise.resolve():Promise.reject((0,k.__)("Please provide a valid hostname!"))}}]}),React.createElement(M.Z,null)),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.host)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.host)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"host"]);return a.startsWith("*.")&&a.length>2&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,k._i)((0,k.__)("You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.",a.substr(2)),{code:React.createElement("code",null)})))})))}))),React.createElement("td",null,React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.type)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.type)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"type"]);return["local","session","indexedDb","flash"].indexOf(a)>-1?null:React.createElement(React.Fragment,null,React.createElement(p.Z.Item,(0,o.Z)({},t,{fieldKey:[t.fieldKey,"sessionDuration"],name:[t.name,"sessionDuration"],noStyle:!0,valuePropName:"checked"}),React.createElement(i.Z,{style:{float:"left",marginTop:5}},React.createElement(A.Z,{title:(0,k.__)("This cookie is active as long as the session is active")},React.createElement("span",null,(0,k.__)("Session"))))),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){var n,o;return(null===(n=e.technicalDefinitions[t.name])||void 0===n?void 0:n.sessionDuration)!==(null===(o=a.technicalDefinitions[t.name])||void 0===o?void 0:o.sessionDuration)}},(function(e){var a=(0,e.getFieldValue)(["technicalDefinitions",t.name,"sessionDuration"]);return React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"duration"],name:[t.name,"duration"],rules:[{required:!a,message:(0,k.__)("Please provide a valid duration!")}]}),React.createElement(M.Z,{min:"0",addonAfter:React.createElement(p.Z.Item,{name:[t.name,"durationUnit"],noStyle:!0,rules:[{required:!0,message:(0,k.__)("Please provide an unit!")}]},React.createElement(r.Z,null,React.createElement(r.Z.Option,{value:"s"},(0,k.__)("second(s)")),React.createElement(r.Z.Option,{value:"m"},(0,k.__)("minute(s)")," "),React.createElement(r.Z.Option,{value:"h"},(0,k.__)("hour(s)")," "),React.createElement(r.Z.Option,{value:"d"},(0,k.__)("day(s)")," "),React.createElement(r.Z.Option,{value:"mo"},(0,k.__)("month(s)")," "),React.createElement(r.Z.Option,{value:"y"},(0,k.__)("year(s)")," "))),type:"number",style:{maxWidth:200,display:a?"none":void 0}}))})))}))),React.createElement("td",null,React.createElement(p.Z.Item,(0,o.Z)({},t,j,{fieldKey:[t.fieldKey,"purpose"],name:[t.name,"purpose"]}),React.createElement(M.Z.TextArea,{rows:1,autoSize:{maxRows:3}}))),React.createElement("td",null,a.length>1?React.createElement("a",{className:"button button-small",onClick:function(){m(t.name)}},React.createElement(G.Z,null)):null))}))),React.createElement("tfoot",null,React.createElement("tr",null,React.createElement("td",{colSpan:7,align:"right"},React.createElement("a",{className:"button button-primary alignright",onClick:function(){d(ae)}},React.createElement(q.Z,null)," ",(0,k.__)("Add another cookie definition")))))))}))}))})),Y=a(4148),$=a(5283),J=(0,y.Pi)((function(e){var t=e.manager,a=e.onlyWhenManagerIs,n=e.hasManagerAttributeName,o=e.thisIsManagerAttributeName,r=e.inEventNameAttributeName,i=e.outEventNameAttributeName,c=(0,w.m)(),l=c.cookieStore,s=c.optionStore,u=s.setCookiesViaManager,d=s[n],m=s.others.isPro,g=l.essentialGroup,h=N().cookie;return u===a&&m&&React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement(A.Z,{title:d&&h.key!==d?(0,k.__)("You have already defined a %s service.",t):""},React.createElement("span",null,React.createElement(p.Z.Item,{name:o,valuePropName:"checked",noStyle:!0},React.createElement(O.Z,{disabled:d&&h.key!==d})),React.createElement("span",null," ",(0,k.__)("Opt-in script below loads %s",t))))),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e[o]!==t[o]||e.group!==t.group}},(function(e){var a=e.getFieldValue,n=a(o),r=a("group");return n&&r!==g.key&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You have defined %1$s in a non-essential service group. In our legal opinion, this is the only way to use %1$s legally. However, please note that if a user doesn't consent to load %1$s, opt-in and opt-out events will not be sent to %1$s. Real Cookie Banner offers you the possibility to specify a fallback HTML/JavaScript for this case.",t))))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e[o]!==t[o]||e[r]!==t[r]||e[i]!==t[i]}},(function(e){var a=e.getFieldValue,n=a(o),c=a(r),l=a(i);return!n&&React.createElement(p.Z.Item,{label:(0,k.__)("Event names for %s",t)},React.createElement(p.Z.Item,{name:r,noStyle:!0},React.createElement(M.Z,{addonBefore:(0,k.__)("Opt-in"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement(p.Z.Item,{name:i,noStyle:!0},React.createElement(M.Z,{addonBefore:(0,k.__)("Opt-out"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement("div",null,React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")})),(c.length>0||l.length>0)&&!d&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,k.__)("You have not yet defined a %s service. To use event names, you must create a %s service.",t,t))))})))})),W=/{{([A-Za-z0-9_]+)}}/gm,z=["codeOptIn","codeOptOut","codeOnPageLoad"],X=(0,y.Pi)((function(e){var t=e.dynamicFields;return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return z.map((function(a){return e[a]!==t[a]})).filter(Boolean).length>0}},(function(e){var a=e.getFieldValue,n=z.map((function(e){return a(e)})).join(""),o=Array.from(n.matchAll(W)).map((function(e){return(0,g.Z)(e,2)[1]})),r=[];return o?o.map((function(e){var a=["codeDynamics",e],n=(null==t?void 0:t[e])||{},o=n.label,i=n.invalidMessage,c=void 0===i?(0,k.__)("Please fill in a value!"):i,l=n.example,s=n.expression,u=n.hint;return r.indexOf(e)>-1?null:(r.push(e),React.createElement(p.Z.Item,{key:e,label:o||React.createElement("code",null,e),required:!0},React.createElement(p.Z.Item,{noStyle:!0,name:a,rules:[{required:!0,pattern:s?new RegExp(s):void 0,message:c}]},React.createElement(M.Z,{placeholder:l?"".concat((0,k.__)("e. g.")," ").concat(l):void 0})),!!u&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt",style:{margin:"10px 0 5px"}},React.createElement("p",{dangerouslySetInnerHTML:{__html:u}}))))})):null}))})),Q=(0,y.Pi)((function(e){var t=e.name,a=(0,w.m)().optionStore.others.activePlugins,n=(0,f.useMemo)((function(){return Object.keys(a)}),[a]);return React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){return e[t]!==a[t]}},(function(e){var o=(0,e.getFieldValue)(t),r=(0,m.Z)(o.matchAll(/\s+(skip-if-active=")([^"]+)(")/gm)).map((function(e){return(0,g.Z)(e,3)[2].split(",").filter((function(e){return n.indexOf(e)>-1}))})).flat(),i=r.filter((function(e,t){return r.indexOf(e)===t}));return 0===i.length?null:React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,k._i)((0,k.__)("The code above contains HTML tags that are skipped when one of the following plugins is active: {{strong/}}. {{i}}What does this mean for me?{{/i}} In most cases, another plugin will take over the execution of the technical code, and you have to create a corresponding content blocker."),{strong:React.createElement("strong",null,i.map((function(e){return a[e]})).join(", ")),i:React.createElement("i",null)})))}))})),ee=(0,y.Pi)((function(e){var t=e.notices,a=e.dynamicFields,n=(0,w.m)(),o=n.cookieStore,r=n.optionStore,i=r.setCookiesViaManager,c=r.others.isPro,l=o.essentialGroup,s=(0,f.useCallback)((function(e){return{opacity:e?void 0:0,height:e?void 0:0,margin:e?void 0:0}}),[]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:te.labelCol.span,description:"none"===i?(0,k.__)("Define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service or when a page is loaded. It is important to define the executed code correctly, as this ensures that scripts are executed and cookies are set only after the user's consent."):(0,k.__)("Define the %1$s event that should be thrown in the data layer when a visitor decides to accept or reject this service. The event can be used as a trigger in %1$s. For users who do not allow to use %1$s a fallback can be defined. You can define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service, or when a page is loaded. It is important to define the event names and executed code correctly, as this will ensure that scripts are executed and cookies are only set with the user's consent.","googleTagManager"===i?$.Gh:$.Ki)},(0,k.__)("Technical handling")),React.createElement(J,{manager:$.Gh,onlyWhenManagerIs:"googleTagManager",hasManagerAttributeName:"hasGTM",thisIsManagerAttributeName:"thisIsGoogleTagManager",inEventNameAttributeName:"googleTagManagerInEventName",outEventNameAttributeName:"googleTagManagerOutEventName"}),React.createElement(J,{manager:$.Ki,onlyWhenManagerIs:"matomoTagManager",hasManagerAttributeName:"hasMTM",thisIsManagerAttributeName:"thisIsMatomoTagManager",inEventNameAttributeName:"matomoTagManagerInEventName",outEventNameAttributeName:"matomoTagManagerOutEventName"}),React.createElement(X,{dynamicFields:a}),(null==t?void 0:t.length)>0&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span,span:te.wrapperCol.span}},React.createElement(D,{notices:t})),React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on opt-in")},"googleTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsGoogleTagManager!==t.thisIsGoogleTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsGoogleTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptInNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsMatomoTagManager!==t.thisIsMatomoTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsMatomoTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptInNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Ki),{u:React.createElement("u",null)})))})),React.createElement(p.Z.Item,{name:"codeOptIn",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOptIn"})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(React.Fragment,null,React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on opt-out"),style:s(t("group")!==l.key)},React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions}},(function(e){return(0,e.getFieldValue)("noTechnicalDefinitions")?null:React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutDelete",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k.__)("Delete all first-party cookies after opt-out. First-party cookies are only cookies that are set by or for this domain.")))})),"googleTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsGoogleTagManager!==t.thisIsGoogleTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsGoogleTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.thisIsMatomoTagManager!==t.thisIsMatomoTagManager}},(function(e){return!(0,e.getFieldValue)("thisIsMatomoTagManager")&&React.createElement("div",{style:{margin:"4px 0"}},React.createElement(p.Z.Item,{name:"codeOptOutNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(O.Z,null)),React.createElement("span",null," ",(0,k._i)((0,k.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",$.Ki),{u:React.createElement("u",null)})))})),React.createElement(p.Z.Item,{name:"codeOptOut",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOptOut"})))})),React.createElement(p.Z.Item,{label:(0,k.__)("Code executed on page load")},React.createElement(p.Z.Item,{name:"codeOnPageLoad",noStyle:!0},React.createElement(Y.Y,{settings:window.cm_settings})),React.createElement(Q,{name:"codeOnPageLoad"})))})),te={labelCol:{span:6},wrapperCol:{span:16}},ae={type:"http",name:"",host:"",duration:void 0,durationUnit:"y",sessionDuration:!1,purpose:""},ne=(0,y.Pi)((function(e){var t,a,h,y,I,O,T=e.preset,M=e.attributes,S=e.navigateAfterCreation,P=void 0===S||S,D=e.scrollToTop,x=void 0===D||D,A=e.onCreated,B=N(),U=B.routeGroup,G=U.group,q=U.link,L=B.cookie,V=B.id,H=B.queried,j=B.fetched,Y=p.Z.useForm(),$=(0,g.Z)(Y,1)[0],J=(0,f.useState)(!1),W=(0,g.Z)(J,2),z=W[0],X=W[1],Q=(0,f.useState)(!1),ne=(0,g.Z)(Q,2),oe=ne[0],re=ne[1],ie=(0,Z.useHistory)(),ce=(0,w.m)(),le=ce.cookieStore,se=ce.optionStore.others.useEncodedStringForScriptInputs,ue=le.essentialGroup,de=(null==L?void 0:L.presetModel)||le.presetsCookie.get(null==T?void 0:T.identifier),me=M?M.group?(null===(t=le.groups.sortedGroups.filter((function(e){return e.data.name===M.group})))||void 0===t||null===(a=t[0])||void 0===a?void 0:a.key)||"preset-group-not-found":void 0:G.key,pe=Object.keys((null==T?void 0:T.contentBlockerPresets)||[]).length>0,ge=(null==M?void 0:M.createContentBlockerNotice)||(null==de||null===(h=de.attributes)||void 0===h?void 0:h.createContentBlockerNotice),he=!(null==de||!de.data.scanned||null===(y=de.attributes)||void 0===y||!y.codeOptIn||-1!==["wordpress-comments"].indexOf(de.data.identifier)),ve=j?{name:L.data.title.raw,status:L.data.status,group:G.key||void 0,purpose:L.data.content.raw,provider:L.data.meta.provider,providerPrivacyPolicy:L.data.meta.providerPrivacyPolicy,consentForwardingUniqueName:L.data.meta.consentForwardingUniqueName||L.data.slug,noTechnicalDefinitions:L.data.meta.noTechnicalDefinitions,legalBasis:L.data.meta.legalBasis,ePrivacyUSA:L.data.meta.ePrivacyUSA,technicalDefinitions:JSON.parse(JSON.stringify(L.technicalDefinitions||"[]")),codeDynamics:JSON.parse(JSON.stringify(L.codeDynamics||"{}")),thisIsGoogleTagManager:L.data.meta.thisIsGoogleTagManager,googleTagManagerInEventName:L.data.meta.googleTagManagerInEventName,googleTagManagerOutEventName:L.data.meta.googleTagManagerOutEventName,thisIsMatomoTagManager:L.data.meta.thisIsMatomoTagManager,matomoTagManagerInEventName:L.data.meta.matomoTagManagerInEventName,matomoTagManagerOutEventName:L.data.meta.matomoTagManagerOutEventName,codeOptIn:L.data.meta.codeOptIn,codeOptInNoGoogleTagManager:L.data.meta.codeOptInNoGoogleTagManager,codeOptInNoMatomoTagManager:L.data.meta.codeOptInNoMatomoTagManager,codeOptOut:L.data.meta.codeOptOut,codeOptOutNoGoogleTagManager:L.data.meta.codeOptOutNoGoogleTagManager,codeOptOutNoMatomoTagManager:L.data.meta.codeOptOutNoMatomoTagManager,codeOnPageLoad:L.data.meta.codeOnPageLoad,codeOptOutDelete:L.data.meta.codeOptOutDelete}:{name:(null==M?void 0:M.name)||"",status:"publish",group:"number"==typeof me&&me||void 0,purpose:(null==M?void 0:M.purpose)||"",provider:(null==M?void 0:M.provider)||"",providerPrivacyPolicy:(null==M?void 0:M.providerPrivacyPolicy)||"",consentForwardingUniqueName:(null==M?void 0:M.consentForwardingUniqueName)||(null==T?void 0:T.identifier)||"",noTechnicalDefinitions:(null==M?void 0:M.noTechnicalDefinitions)||!1,legalBasis:(null==M?void 0:M.legalBasis)||"consent",ePrivacyUSA:(null==M?void 0:M.ePrivacyUSA)||!1,technicalDefinitions:null!=M&&M.technicalDefinitions?JSON.parse(JSON.stringify(M.technicalDefinitions)):[ae],codeDynamics:(null==M?void 0:M.codeDynamics)||{},thisIsGoogleTagManager:(null==M?void 0:M.thisIsGoogleTagManager)||!1,googleTagManagerInEventName:(null==M?void 0:M.googleTagManagerInEventName)||"",googleTagManagerOutEventName:(null==M?void 0:M.googleTagManagerOutEventName)||"",thisIsMatomoTagManager:(null==M?void 0:M.thisIsMatomoTagManager)||!1,matomoTagManagerInEventName:(null==M?void 0:M.matomoTagManagerInEventName)||"",matomoTagManagerOutEventName:(null==M?void 0:M.matomoTagManagerOutEventName)||"",codeOptIn:(null==M?void 0:M.codeOptIn)||"",codeOptInNoGoogleTagManager:(null==M?void 0:M.codeOptInNoGoogleTagManager)||!1,codeOptInNoMatomoTagManager:(null==M?void 0:M.codeOptInNoMatomoTagManager)||!1,codeOptOut:(null==M?void 0:M.codeOptOut)||"",codeOnPageLoad:(null==M?void 0:M.codeOnPageLoad)||"",codeOptOutNoGoogleTagManager:(null==M?void 0:M.codeOptOutNoGoogleTagManager)||!1,codeOptOutNoMatomoTagManager:(null==M?void 0:M.codeOptOutNoMatomoTagManager)||!1,codeOptOutDelete:(null==M?void 0:M.codeOptOutDelete)||!1,createContentBlocker:"boolean"==typeof(null==M?void 0:M.createContentBlocker)?M.createContentBlocker:pe&&!(null!=M&&M.deactivateAutomaticContentBlockerCreation),createContentBlockerId:null==M?void 0:M.createContentBlockerId,presetCheck:!T};(0,f.useEffect)((function(){H&&!j&&((0,m.Z)(le.groups.entries.values()).filter((function(e){return e.cookies.entries.get(V)}))[0]||G).cookies.getSingle({params:{id:V,context:"edit"}})}),[H,j]),(0,f.useEffect)((function(){de&&!de.attributes&&de.fetchAttributes()}),[de]),(0,f.useEffect)((function(){x&&(0,_.X)(0)}),[]);var fe=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){var a,n,o,r,i,c,d,m,p,g,h,f,y,_,w,Z,I,N,O,M,S;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=function(e){return se?"encodedScript:".concat(R(e)):e},o=t.name,r=t.status,i=t.purpose,c=t.noTechnicalDefinitions,d=t.technicalDefinitions,m=t.group,p=t.codeDynamics,g=t.createContentBlocker,h=t.createContentBlockerId,f=t.consentForwardingUniqueName,y=t.codeOptIn,_=t.codeOptOut,w=t.codeOnPageLoad,Z=(0,u.Z)(t,["name","status","purpose","noTechnicalDefinitions","technicalDefinitions","group","codeDynamics","createContentBlocker","createContentBlockerId","consentForwardingUniqueName","codeOptIn","codeOptOut","codeOnPageLoad"]),delete(I=(0,s.Z)((0,s.Z)({},Z),{},{codeOptIn:n(y),codeOptOut:n(_),codeOnPageLoad:n(w),noTechnicalDefinitions:c,codeDynamics:JSON.stringify(p),technicalDefinitions:JSON.stringify(c?ve.technicalDefinitions:d),consentForwardingUniqueName:f||b(o)})).presetCheck,!H){e.next=15;break}return L.setName(o),L.setStatus(r),L.setPurpose(i),L.setMeta(I),L.setGroup(m),e.next=13,L.patch();case 13:e.next=20;break;case 15:return N=le.groups.entries.get(m),O=new E.U(N.cookies,{title:{rendered:o},content:{rendered:i,protected:!1},status:r,meta:(0,s.Z)((0,s.Z)({},I),{},{presetId:null==T?void 0:T.identifier,presetVersion:null==T?void 0:T.version})}),e.next=19,O.persist();case 19:null==A||A(O);case 20:re(!1),l.ZP.success((0,k.__)("You have successfully saved the service.")+(g?" ".concat((0,k.__)("Continue with the corresponding Content Blocker!")):"")),M="#rcb-services-with-empty-privacy-policy-notice",null===(a=document.querySelector("".concat(M,' li[data-id="').concat(V,'"]')))||void 0===a||a.classList.add("hidden"),document.querySelectorAll("".concat(M," > ul > li:not(.hidden)")).length||null===(S=document.querySelector(M))||void 0===S||S.remove(),P&&setTimeout((function(){return g?ie.push("/blocker/new?force=".concat(h||T.identifier,"&cookieCreationPrompt=1").concat("string"==typeof P?"&navigateAfterCreation=".concat(encodeURIComponent(P)):"")):"string"==typeof P?window.location.href=P:ie.push("".concat(q.slice(1),"/").concat(m))}),0),e.next=32;break;case 28:throw e.prev=28,e.t0=e.catch(0),l.ZP.error(e.t0.responseJSON.message),e.t0;case 32:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(t){return e.apply(this,arguments)}}(),[H,L,le,se]),ye=(0,f.useCallback)(function(){var e=(0,d.Z)(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.prev=1,e.next=4,fe(t);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:return e.prev=8,X(!1),e.finish(8);case 11:case"end":return e.stop()}}),e,null,[[1,6,8,11]])})));return function(t){return e.apply(this,arguments)}}(),[$,fe]),Ee=(0,f.useCallback)((function(e){l.ZP.error((0,k.__)("The service could not be saved due to missing/invalid form values.")),e.errorFields.length&&$.getFieldInstance(e.errorFields[0].name).parentElement.scrollIntoView({behavior:"smooth",block:"center"})}),[]),Re=(0,f.useCallback)((function(){return!oe||(0,k.__)('You have unsaved changes. If you click on "confirm", your changes will be discarded.')}),[$,ve]);return H&&!j?React.createElement(c.Z,{active:!0,paragraph:{rows:8}}):React.createElement(n.Z,{spinning:z||(null==de?void 0:de.busy)||!1},React.createElement(Z.Prompt,{message:Re}),React.createElement(p.Z,(0,o.Z)({name:"cookie-".concat(G.key,"-").concat(V),form:$},te,{initialValues:ve,onFinish:ye,onFinishFailed:Ee,onValuesChange:function(e){var t=e.technicalDefinitions;re(!0);var a=(t||[]).filter(Boolean);if(1===a.length){var n=Object.keys(a[0]);1===n.length&&["sessionDuration","type"].indexOf(n[0])>-1&&setTimeout((function(){return $.validateFields()}),100)}}}),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t,a=e.getFieldValue;return React.createElement(F,{groupNotices:[{message:de&&"number"==typeof me&&a("group")!==me?(0,k.__)("The groups specified in service templates were chosen wisely. Are you sure that this service should be assigned to another group for your case?"):void 0,severity:"warning"},{message:(null==M?void 0:M.groupNotice)||(null==de||null===(t=de.attributes)||void 0===t?void 0:t.groupNotice),severity:"info"}],providerPrivacyPolicyNotices:[{message:j||null==de||!de.attributes||ve.providerPrivacyPolicy?void 0:(0,k.__)('You have not yet set a privacy policy in the settings, so this field could not be filled in automatically. Please enter the URL of your privacy policy here and <a href="%s" target="_blank">set the corresponding page in your settings.</a>',"#/settings"),severity:"warning"}],showNoticePresetGroupNotFound:"preset-group-not-found"===me&&M.group})})),React.createElement(K,null),React.createElement(ee,{dynamicFields:(null==M?void 0:M.dynamicFields)||(null==de||null===(I=de.attributes)||void 0===I?void 0:I.dynamicFields),notices:[{message:(null==M?void 0:M.technicalHandlingNotice)||(null==de||null===(O=de.attributes)||void 0===O?void 0:O.technicalHandlingNotice),severity:"info"},{message:he&&!pe&&(0,k.__)("If you have already used %s before creating this service, please deactivate the script/plugin with which the service was loaded so far. The opt-in script will now take care of the correct integration.",de.data.attributes_name),severity:"warning"},{message:he&&pe&&(0,k.__)('You are currently embedding "%1$s" outside of Real Cookie Banner. You can have it blocked via a content blocker before consenting. Alternatively, you can use the following opt-in script to load %1$s directly into Real Cookie Banner.<br /><br />If you want to embed "%1$s" via Real Cookie Banner, you have to deactivate the content blocker at the end of the form and remove "%1$s" outside Real Cookie Banner.<br /><br />If you prefer to keep the current integration, you only have to delete the opt-in script in this form.',de.data.attributes_name),severity:"warning"}].filter((function(e){return e.message}))}),!!T&&React.createElement(React.Fragment,null,pe&&P&&React.createElement(p.Z.Item,{wrapperCol:{offset:te.labelCol.span}},React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(p.Z.Item,{noStyle:!0,name:"createContentBlocker",valuePropName:"checked",dependencies:["group"],rules:[{validator:function(e,a){return t("group")===ue.key&&a?Promise.reject((0,k.__)('Services that should be associated with a content blocker cannot be in the "Essential" group, because it cannot be rejected.')):Promise.resolve()}}]},React.createElement(i.Z,null,(0,k.__)("Create content blocker for this service.")))})),React.createElement(p.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.createContentBlocker!==t.createContentBlocker}},(function(e){var t=e.getFieldValue;return React.createElement(React.Fragment,null,t("createContentBlocker")&&React.createElement(React.Fragment,null,Object.keys(T.contentBlockerPresets).length>1&&React.createElement(p.Z.Item,{noStyle:!0,name:"createContentBlockerId",rules:[{required:!0,message:(0,k.__)("Please select a template for the Content Blocker!")}]},React.createElement(r.Z,{style:{maxWidth:500,marginTop:10,display:"block"},placeholder:(0,k.__)("Select Content Blocker template...")},Object.keys(T.contentBlockerPresets).map((function(e){return React.createElement(r.Z.Option,{key:e,value:e},T.contentBlockerPresets[e])})))),React.createElement("div",{className:"notice notice-info below-h2 notice-alt",style:{marginTop:10}},React.createElement("p",null,(0,k.__)("Immediately after submitting this form you will be forwarded to another form that allows you to create the Content Blocker.")))),!!ge&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",{dangerouslySetInnerHTML:{__html:ge}})))}))),React.createElement(p.Z.Item,{name:"presetCheck",valuePropName:"checked",required:!0,rules:[{type:"boolean",required:!0,transform:function(e){return e||void 0},message:(0,k.__)("Please confirm that you have checked the contents of the service.")}],wrapperCol:{offset:te.labelCol.span}},React.createElement(i.Z,null,(0,k.__)("I have checked the information in the service template myself and added any missing information or corrected any information that does not fit to my use case.")," ",React.createElement(C.r,{url:(0,k.__)("https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/")})))),React.createElement(p.Z.Item,{className:"rcb-form-sticky-submit"},React.createElement("span",null,React.createElement("input",{type:"submit",className:"button button-primary right",value:(0,k.__)("Save")})))))}))},5893:function(e,t,a){a.d(t,{C:function(){return o}});var n=a(6315),o=function(e){var t=e.children,a=e.description,o=e.offset;return React.createElement(n.Z.Item,{wrapperCol:{offset:o},style:{borderBottom:"1px solid #e7e7e7"}},React.createElement("h3",{style:{margin:"0 0 ".concat(a?3:15,"px 0")}},t),!!a&&React.createElement("p",{className:"description",style:{marginBottom:15}},a))}},7325:function(e,t,a){a.d(t,{y:function(){return r}});var n=a(6711),o=a(8700);function r(){return new o.Url("/".concat((0,n.useLocation)().search),!0).query}},8909:function(e,t,a){a.d(t,{R:function(){return c}});var n=a(6711),o=a(4163),r=a(7363),i=a(5706),c=function(){var e=(0,n.useRouteMatch)().params.cookieGroup,t=(0,o.m)().cookieStore,a=isNaN(+e)?0:+e,c=!!e,l=t.groups.entries.get(a)||new i.O(t.groups,{id:0}),s=(0,r.useCallback)((function(e){var t=e.key;return"#/cookies/".concat(l.key,"/edit/").concat(t)}),[l]),u="#/cookies/".concat(l.key,"/new");return{group:l,id:a,queried:c,fetched:0!==l.key,link:"#/cookies",editLink:s,addCookieLink:u}}}}]);
|
2 |
+
//# sourceMappingURL=548.lite.js.map?ver=52f0a1d264ca2f3d2fd1
|
public/dist/548.lite.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"548.lite.js?ver=7575f1f1df536f4467d6","mappings":"sYAKA,SAASA,EAAwBC,GAC/B,OAAOC,KAAKC,mBAAmBF,GAAKG,QAAQ,mBAAmB,SAAUC,EAAOC,GAC9E,OAAOC,OAAOC,aAAaC,SAASH,EAAI,SCF5C,SAASI,EAAQT,GAGfA,GAFAA,EAAMA,EAAIG,QAAQ,aAAc,KAEtBO,cAKV,IAHA,IAAIC,EAAO,+BAGFC,EAAI,EAAGC,EAAIF,EAAKG,OAAQF,EAAIC,EAAGD,IACtCZ,EAAMA,EAAIG,QAAQ,IAAIY,OAAOJ,EAAKK,OAAOJ,GAAI,KAHtC,+BAG+CI,OAAOJ,IAO/D,OAJMZ,EAAIG,QAAQ,eAAgB,IACjCA,QAAQ,OAAQ,KAChBA,QAAQ,MAAO,K,sDCfdc,EAAiB,WACnB,IAAIC,GAAa,EAAAC,EAAA,KACbC,EAAQF,EAAWE,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O,CACLlU,KAAM,gBACNgU,KAAM,QACNC,gBAAiB,WAEnBE,QAAS,CACPnU,KAAM,kBACNgU,KAAM,UACNC,gBAAiB,WAEnBG,MAAO,CACLpU,KAAM,4BACNgU,KAAM,QACNC,gBAAiB,WAEnBI,UAAW,CACTrU,KAAM,YACNgU,KAAM,OACNC,gBAAiB,Y","sources":["webpack:///./src/public/ts/utils/base64EncodeUnicodeSafe.tsx","webpack:///./src/public/ts/utils/slugify.tsx","webpack:///./src/public/ts/hooks/useRouteCookie.tsx","webpack:///./src/public/ts/components/notices.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/general.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/technical.tsx","webpack:///./src/public/ts/utils/isHost.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/manager.tsx","webpack:///../../frontend-packages/headless-content-unblocker/src/dom/applyDynamicsToHtml.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/codeDynamics.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/noticeFormItemContainsSkipIfActiveAttribute.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/handling.tsx","webpack:///./src/public/ts/components/config/cookies/form.tsx","webpack:///./src/public/ts/components/formHeadline.tsx","webpack:///./src/public/ts/hooks/useLocationQuery.tsx","webpack:///./src/public/ts/hooks/useRouteCookieGroup.tsx","webpack:///./src/public/ts/others/cookieTypeLocalized.tsx"],"sourcesContent":["/**\n * Unicode-safe base64 encoding.\n *\n * @see https://stackoverflow.com/a/30106551/5506547\n */\nfunction base64EncodeUnicodeSafe(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(parseInt(p1, 16));\n }));\n}\n\nexport { base64EncodeUnicodeSafe };","/**\n * Slugify a given text.\n *\n * @see https://gist.github.com/codeguy/6684588\n */\nfunction slugify(str) {\n str = str.replace(/^\\s+|\\s+$/g, \"\"); // trim\n\n str = str.toLowerCase(); // remove accents, swap ñ for n, etc\n\n var from = \"àáäâèéëêìíïîòóöôùúüûñç·/_,:;\";\n var to = \"aaaaeeeeiiiioooouuuunc------\";\n\n for (var i = 0, l = from.length; i < l; i++) {\n str = str.replace(new RegExp(from.charAt(i), \"g\"), to.charAt(i));\n }\n\n str = str.replace(/[^a-z0-9 -]/g, \"\") // remove invalid chars\n .replace(/\\s+/g, \"-\") // collapse whitespace and replace by -\n .replace(/-+/g, \"-\"); // collapse dashes\n\n return str;\n}\n\nexport { slugify };","import { useRouteMatch } from \"react-router-dom\";\nimport { CookieModel } from \"../models\";\nimport { useRouteCookieGroup } from \".\";\n\nvar useRouteCookie = function useRouteCookie() {\n var routeGroup = useRouteCookieGroup();\n var group = routeGroup.group;\n\n var _useRouteMatch = useRouteMatch(),\n params = _useRouteMatch.params; // Get cookie or return draft object\n\n\n var id = isNaN(+params.cookie) ? 0 : +params.cookie;\n var queried = !!params.cookie;\n var cookie = group.cookies.entries.get(+params.cookie) || new CookieModel(group.cookies, {\n id: 0\n });\n return {\n routeGroup: routeGroup,\n cookie: cookie,\n id: id,\n queried: queried,\n fetched: cookie.key !== 0\n };\n};\n\nexport { useRouteCookie };","var Notices = function Notices(_ref) {\n var notices = _ref.notices;\n return /*#__PURE__*/React.createElement(React.Fragment, null, notices === null || notices === void 0 ? void 0 : notices.map(function (_ref2) {\n var message = _ref2.message,\n severity = _ref2.severity;\n return message ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-\".concat(severity, \" below-h2 notice-alt\"),\n key: message\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: message\n }\n })) : null;\n }));\n};\n\nexport { Notices };","import _Switch from \"antd/es/switch\";\nimport _Select from \"antd/es/select\";\nimport _Radio from \"antd/es/radio\";\nimport _Form from \"antd/es/form\";\nimport _Input from \"antd/es/input\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { _i, __, request, slugify } from \"../../../../utils\";\nimport { useStores } from \"../../../../store\";\nimport { FormHeadline, LearnMoreTag, Notices } from \"../../..\";\nimport { CookieEditFormLayout } from \"..\";\nimport { locationRestForwardCookieGet } from \"../../../../wp-api\";\nimport { useRouteCookie } from \"../../../../hooks\";\nvar CookieEditFormGeneralFields = observer(function (_ref) {\n var _cookie$presetModel, _cookie$presetModel$d;\n\n var _ref$showNoticePreset = _ref.showNoticePresetGroupNotFound,\n showNoticePresetGroupNotFound = _ref$showNoticePreset === void 0 ? false : _ref$showNoticePreset,\n groupNotices = _ref.groupNotices,\n providerPrivacyPolicyNotices = _ref.providerPrivacyPolicyNotices;\n\n var _useStores = useStores(),\n _useStores$cookieStor = _useStores.cookieStore,\n groups = _useStores$cookieStor.groups,\n essentialGroup = _useStores$cookieStor.essentialGroup,\n _useStores$optionStor = _useStores.optionStore,\n ePrivacyUSA = _useStores$optionStor.ePrivacyUSA,\n consentForwarding = _useStores$optionStor.consentForwarding;\n\n var _useRouteCookie = useRouteCookie(),\n cookie = _useRouteCookie.cookie,\n fetched = _useRouteCookie.fetched;\n\n var isRealCookieBannerPreset = ((_cookie$presetModel = cookie.presetModel) === null || _cookie$presetModel === void 0 ? void 0 : (_cookie$presetModel$d = _cookie$presetModel.data) === null || _cookie$presetModel$d === void 0 ? void 0 : _cookie$presetModel$d.identifier) === \"real-cookie-banner\";\n var findByUniqueCookieName = useCallback( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(slug) {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return request({\n location: locationRestForwardCookieGet,\n params: {\n slug: slug\n }\n });\n\n case 3:\n return _context.abrupt(\"return\", _context.sent.filter(function (d) {\n return d.ID !== cookie.key;\n })[0]);\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n return _context.abrupt(\"return\", undefined);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 6]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), [cookie.key]);\n var validateUniqueCookieName = useCallback( /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(slug, allowOverwrite) {\n var found, _consentForwardingUniqueName, matchRegexp, foundGenerated;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return findByUniqueCookieName(slug);\n\n case 2:\n found = _context2.sent;\n\n if (!found) {\n _context2.next = 19;\n break;\n }\n\n if (allowOverwrite) {\n _context2.next = 8;\n break;\n }\n\n throw __(\"A service with the same unique name already exists.\");\n\n case 8:\n // Consent Forwarding is deactivated, so we need to generate an unique name for the user\n _consentForwardingUniqueName = found.metas.consentForwardingUniqueName;\n matchRegexp = /^(.*)-(\\d+)$/;\n foundGenerated = found;\n\n case 11:\n if (!foundGenerated) {\n _context2.next = 18;\n break;\n }\n\n _consentForwardingUniqueName = _consentForwardingUniqueName.match(matchRegexp) ? _consentForwardingUniqueName.replace(matchRegexp, function (_, g1, g2) {\n return \"\".concat(g1, \"-\").concat(+g2 + 1);\n }) : \"\".concat(_consentForwardingUniqueName, \"-1\");\n _context2.next = 15;\n return findByUniqueCookieName(_consentForwardingUniqueName);\n\n case 15:\n foundGenerated = _context2.sent;\n _context2.next = 11;\n break;\n\n case 18:\n // Overwrite in form\n allowOverwrite(_consentForwardingUniqueName);\n\n case 19:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x2, _x3) {\n return _ref3.apply(this, arguments);\n };\n }(), [findByUniqueCookieName]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span\n }, __(\"General service configuration\"), \" \", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/\")\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Name\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"name\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide a name!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('Each service used should have a descriptive name that is understandable to a non-professional user. Example: \"Google Analytics\".'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Status\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"status\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please choose a status!\")\n }]\n }, /*#__PURE__*/React.createElement(_Radio.Group, null, /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"publish\"\n }, __(\"Enabled\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"private\"\n }, __(\"Disabled\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"draft\"\n }, __(\"Draft\")))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('Services with the status \"Draft\" or \"Disabled\" are not visible to the public. In addition, a draft will be highlighted in the service table so that you do not forget to configure it.'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Group\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"group\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide a group!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, null, groups.sortedGroups.map(function (_ref4) {\n var _ref4$data = _ref4.data,\n id = _ref4$data.id,\n name = _ref4$data.name;\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: id,\n value: id\n }, name);\n }))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Each service must be assigned to a group. All services that do not belong to the group of essential services can (but do not have to) be accepted by visitors. According to the ePrivacy Directive, only services without which the website would not work are considered as essential services if the visitor has explicitly requested the service used. A possible economic interest of the website operator in using a tool, e.g. Google Analytics, is irrelevant.\")), showNoticePresetGroupNotFound !== false && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.\", showNoticePresetGroupNotFound))), /*#__PURE__*/React.createElement(Notices, {\n notices: groupNotices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Provider\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"provider\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please name a provider!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('A service always has an \"owner\", who processes collected data or information saved in cookies etc. Please specify which provider creates cookies and processes personal data, e.g. \"Google Ireland Limited\". If you are the provider, please enter your legal name.'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Purpose\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"purpose\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input.TextArea, {\n autoSize: {\n minRows: 3\n }\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how {{a}}personal data{{/a}} is collected and how cookies are used for this purpose.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/2021/personal-data-gdpr/\"),\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Privacy policy of the provider\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"providerPrivacyPolicy\",\n noStyle: true,\n rules: [{\n required: true,\n type: \"url\",\n message: __(\"Please provide a valid URL!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).\")), /*#__PURE__*/React.createElement(Notices, {\n notices: providerPrivacyPolicyNotices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group || prevValues.name !== nextValues.name;\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue,\n setFieldsValue = _ref5.setFieldsValue;\n var isEssentialGroup = getFieldValue(\"group\") === essentialGroup.key;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Consent Forwarding Unique Name\"),\n style: {\n display: consentForwarding ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"consentForwardingUniqueName\",\n noStyle: true,\n validateTrigger: \"onBlur\",\n rules: [{\n validator: function () {\n var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(rules, value) {\n var allowOverwrite;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n allowOverwrite = consentForwarding ? !value : true;\n return _context3.abrupt(\"return\", validateUniqueCookieName(value || slugify(getFieldValue(\"name\")), allowOverwrite ? function (consentForwardingUniqueName) {\n return setFieldsValue({\n consentForwardingUniqueName: consentForwardingUniqueName\n });\n } : undefined));\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function validator(_x4, _x5) {\n return _validator.apply(this, arguments);\n }\n\n return validator;\n }()\n }]\n }, /*#__PURE__*/React.createElement(_Input, {\n placeholder: fetched ? \"\" : slugify(getFieldValue(\"name\"))\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Consent Forwarding is active. This means that all services on all available instances must be identified by a unique name in order to correctly set consent for a service.\")), isEssentialGroup && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You can define a unique name, but essential services are automatically accepted when a consent is forwarded.\")))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Legal basis\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"legalBasis\",\n noStyle: true,\n rules: [{\n required: true\n }]\n }, /*#__PURE__*/React.createElement(_Radio.Group, {\n disabled: isEssentialGroup\n }, /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"consent\"\n }, __(\"Consent (Opt-in)\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"legitimate-interest\"\n }, __(\"Legitimate interest (Opt-out)\")), isRealCookieBannerPreset && /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"legal-requirement\"\n }, __(\"Compliance with a legal obligation\")))), /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"5px 0px 0px\"\n }\n }, /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/\")\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__('Services can be used on various legal bases according to Art. 6 GDPR. \"Consent\" means that the user must explicitly agree to the service (opt-in). \"Legitimate interest\" means that your interest as a website operator prevails to use the service and the user must explicitly disagree (opt-out). Unless it is an essential service. Then an objection is not possible. {{strong}}A legitimate interest exists only in rare cases and only for data processing. If you are not sure, it is better to obtain consent to be on the safe side.{{/strong}}'), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n })), isEssentialGroup && !isRealCookieBannerPreset && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __('Your service is currently grouped as \"Essential\". This group implies the legitimate interest, with the only difference that this service cannot be opted out.')))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group || prevValues.ePrivacyUSA !== nextValues.ePrivacyUSA;\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"US data processing\"),\n style: {\n display: ePrivacyUSA ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"ePrivacyUSA\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"This service processes data in the USA or transfers data to US companies or servers\")), getFieldValue(\"ePrivacyUSA\") && getFieldValue(\"group\") === essentialGroup.key && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"If you use this service declaration only as a notice and the corresponding service is already embedded outside the cookie banner on the first visit to the website, it is possible that the service used in the USA is already processing data before the user has agreed to this. From a data protection perspective, the use of such services should be avoided, or the service should be embedded in the opt-in code (execution after consent). In practice, this will not always be possible.\"))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"No technical definitions\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"noTechnicalDefinitions\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script.\"))));\n});\nexport { CookieEditFormGeneralFields };","import _Checkbox from \"antd/es/checkbox\";\nimport _Input from \"antd/es/input\";\nimport _Form from \"antd/es/form\";\nimport _Select from \"antd/es/select\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, isHost } from \"../../../../utils\";\nimport { getCookieTypeLocalized } from \"../../../../others\";\nimport { PlusOutlined, QuestionCircleFilled, DeleteOutlined, MenuOutlined } from \"@ant-design/icons\";\nimport { FormHeadline } from \"../../..\";\nimport { CookieEditFormLayout, technicalDefinitionDefaults } from \"..\";\nimport { isUrl } from \"@devowl-wp/headless-content-unblocker\";\nimport { SortableHandle, SortableElement, SortableContainer } from \"react-sortable-hoc\";\nvar WP_LIST_TABLE_FORM_ITEM_PROPS = {\n labelCol: {\n span: 0\n },\n wrapperCol: {\n span: 24\n },\n style: {\n margin: 0\n }\n};\nvar CookieEditFormTechnicalFields = observer(function () {\n var cookieTypeLocalized = getCookieTypeLocalized();\n var tbodyRef = useRef();\n\n var _useMemo = useMemo(function () {\n return {\n DragHandle: SortableHandle(function () {\n return /*#__PURE__*/React.createElement(MenuOutlined, {\n style: {\n cursor: \"grab\",\n color: \"#999\",\n marginTop: 5\n },\n className: \"button button-small button-link\"\n });\n }),\n SortableItem: SortableElement(function (props) {\n return /*#__PURE__*/React.createElement(\"tr\", props);\n }),\n SortableBody: SortableContainer(function (props) {\n return /*#__PURE__*/React.createElement(\"tbody\", _extends({\n ref: tbodyRef\n }, props));\n })\n };\n }, []),\n DragHandle = _useMemo.DragHandle,\n SortableItem = _useMemo.SortableItem,\n SortableBody = _useMemo.SortableBody;\n\n var handleSortStart = useCallback(function (_ref) {\n var node = _ref.node,\n helper = _ref.helper;\n node.childNodes.forEach(function (td, index) {\n helper.childNodes[index].style.width = \"\".concat(td.offsetWidth, \"px\");\n });\n }, []);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.noTechnicalDefinitions !== nextValues.noTechnicalDefinitions || prevValues.technicalDefinitions.length !== nextValues.technicalDefinitions.length;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(_Form.List, {\n name: \"technicalDefinitions\"\n }, function (fields, _ref3) {\n var add = _ref3.add,\n remove = _ref3.remove,\n move = _ref3.move;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span,\n description: __(\"For each service you use, you should specify all cookies that are used by it. You can find this out in the developer console of your browser. Please note that there are several types of cookies and that the law requires that you inform your visitors not only about (HTTP) cookies, but also about cookie-like information.\")\n }, __(\"Technical cookie information\")), /*#__PURE__*/React.createElement(\"table\", {\n className: \"wp-list-table widefat fixed striped table-view-list\",\n style: {\n marginBottom: 25\n }\n }, /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", null, /*#__PURE__*/React.createElement(\"td\", {\n width: 45,\n align: \"right\"\n }, \"\\xA0\"), /*#__PURE__*/React.createElement(\"td\", {\n width: 150\n }, __(\"Cookie type\")), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: _i(__(\"Every cookie has a technical name, which you must provide. If a cookie name is dynamically composed, please use an asterisk ({{code}}*{{/code}}) as a wildcard (placeholder).\"), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Technical cookie name\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"Every cookie is associated to a domain or hostname.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Technical cookie host\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", {\n width: 250\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Cookie duration\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"Each cookie serves a purpose (e.g. user identification for tracking), which should be explained.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Purpose\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", {\n width: 70,\n align: \"right\"\n }, \"\\xA0\"))), /*#__PURE__*/React.createElement(SortableBody, {\n useDragHandle: true,\n onSortEnd: function onSortEnd(_ref4) {\n var oldIndex = _ref4.oldIndex,\n newIndex = _ref4.newIndex;\n return move(oldIndex, newIndex);\n },\n onSortStart: handleSortStart,\n helperContainer: function helperContainer() {\n return tbodyRef.current;\n }\n }, fields.map(function (field, index) {\n return /*#__PURE__*/React.createElement(SortableItem, {\n key: field.key,\n index: index\n }, /*#__PURE__*/React.createElement(\"td\", null, fields.length > 1 ? /*#__PURE__*/React.createElement(DragHandle, null) : undefined), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"type\"],\n name: [field.name, \"type\"],\n rules: [{\n required: true,\n message: __(\"Please provide a cookie type!\")\n }]\n }), /*#__PURE__*/React.createElement(_Select, null, Object.keys(cookieTypeLocalized).map(function (key) {\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: key,\n value: key,\n style: {\n display: key === \"flash\" ? \"none\" : undefined\n }\n }, cookieTypeLocalized[key].name);\n })))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"name\"],\n name: [field.name, \"name\"],\n rules: [{\n required: true,\n message: __(\"Please provide a technical cookie name!\")\n }]\n }), /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical, _nextValues$technical;\n\n return ((_prevValues$technical = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical === void 0 ? void 0 : _prevValues$technical.name) !== ((_nextValues$technical = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical === void 0 ? void 0 : _nextValues$technical.name);\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue;\n var cookieName = getFieldValue([\"technicalDefinitions\", field.name, \"name\"]);\n var notSupportedCookieNamePlaceholders = [/\\[/gm, [/([{]+)/gm, function (match) {\n return match.length === 1;\n }], /\\(/gm];\n return notSupportedCookieNamePlaceholders.filter(function (r) {\n return Array.isArray(r) ? r[0].test(cookieName) && cookieName.match(r[0]).filter(r[1]).length > 0 : r.test(cookieName);\n }).length > 0 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"Are you sure this is the name of the cookie? It seems like you are using a placeholder that is not supported. Please use an asterisk ({{code}}*{{/code}}) as a placeholder if the cookie name is dynamically composed.\"), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical2, _nextValues$technical2;\n\n return ((_prevValues$technical2 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical2 === void 0 ? void 0 : _prevValues$technical2.type) !== ((_nextValues$technical2 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical2 === void 0 ? void 0 : _nextValues$technical2.type);\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n var type = getFieldValue([\"technicalDefinitions\", field.name, \"type\"]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"host\"],\n name: [field.name, \"host\"],\n rules: [{\n validator: function validator(_, value) {\n return ([\"local\", \"session\", \"indexedDb\"].indexOf(type) > -1 ? isUrl(value) : isHost(value)) || value === \"\" && type !== \"http\" ? Promise.resolve() : Promise.reject(__(\"Please provide a valid hostname!\"));\n }\n }]\n }), /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical3, _nextValues$technical3;\n\n return ((_prevValues$technical3 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical3 === void 0 ? void 0 : _prevValues$technical3.host) !== ((_nextValues$technical3 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical3 === void 0 ? void 0 : _nextValues$technical3.host);\n }\n }, function (_ref7) {\n var getFieldValue = _ref7.getFieldValue;\n var host = getFieldValue([\"technicalDefinitions\", field.name, \"host\"]);\n return host.startsWith(\"*.\") && host.length > 2 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.\", host.substr(2)), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })));\n }));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical4, _nextValues$technical4;\n\n return ((_prevValues$technical4 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical4 === void 0 ? void 0 : _prevValues$technical4.type) !== ((_nextValues$technical4 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical4 === void 0 ? void 0 : _nextValues$technical4.type);\n }\n }, function (_ref8) {\n var getFieldValue = _ref8.getFieldValue;\n var type = getFieldValue([\"technicalDefinitions\", field.name, \"type\"]);\n return [\"local\", \"session\", \"indexedDb\", \"flash\"].indexOf(type) > -1 ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, {\n fieldKey: [field.fieldKey, \"sessionDuration\"],\n name: [field.name, \"sessionDuration\"],\n noStyle: true,\n valuePropName: \"checked\"\n }), /*#__PURE__*/React.createElement(_Checkbox, {\n style: {\n float: \"left\",\n marginTop: 5\n }\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"This cookie is active as long as the session is active\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Session\"))))), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical5, _nextValues$technical5;\n\n return ((_prevValues$technical5 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical5 === void 0 ? void 0 : _prevValues$technical5.sessionDuration) !== ((_nextValues$technical5 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical5 === void 0 ? void 0 : _nextValues$technical5.sessionDuration);\n }\n }, function (_ref9) {\n var getFieldValue = _ref9.getFieldValue;\n var sessionDuration = getFieldValue([\"technicalDefinitions\", field.name, \"sessionDuration\"]);\n return /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"duration\"],\n name: [field.name, \"duration\"],\n rules: [{\n required: !sessionDuration,\n message: __(\"Please provide a valid duration!\")\n }]\n }), /*#__PURE__*/React.createElement(_Input, {\n min: \"0\",\n addonAfter: /*#__PURE__*/React.createElement(_Form.Item, {\n name: [field.name, \"durationUnit\"],\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide an unit!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, null, /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"s\"\n }, __(\"second(s)\")), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"m\"\n }, __(\"minute(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"h\"\n }, __(\"hour(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"d\"\n }, __(\"day(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"mo\"\n }, __(\"month(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"y\"\n }, __(\"year(s)\"), \" \"))),\n type: \"number\",\n style: {\n maxWidth: 200,\n display: sessionDuration ? \"none\" : undefined\n }\n }));\n }));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"purpose\"],\n name: [field.name, \"purpose\"]\n }), /*#__PURE__*/React.createElement(_Input.TextArea, {\n rows: 1,\n autoSize: {\n maxRows: 3\n }\n }))), /*#__PURE__*/React.createElement(\"td\", null, fields.length > 1 ? /*#__PURE__*/React.createElement(\"a\", {\n className: \"button button-small\",\n onClick: function onClick() {\n remove(field.name);\n }\n }, /*#__PURE__*/React.createElement(DeleteOutlined, null)) : null));\n })), /*#__PURE__*/React.createElement(\"tfoot\", null, /*#__PURE__*/React.createElement(\"tr\", null, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: 7,\n align: \"right\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n className: \"button button-primary alignright\",\n onClick: function onClick() {\n add(technicalDefinitionDefaults);\n }\n }, /*#__PURE__*/React.createElement(PlusOutlined, null), \" \", __(\"Add another cookie definition\")))))));\n });\n });\n});\nexport { CookieEditFormTechnicalFields };","/**\n * Is a passed host string valid?\n *\n * @param url\n * @see https://stackoverflow.com/a/106223/5506547\n */\nfunction isHost(url) {\n return /^\\.?(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/gm.test(url);\n}\n\nexport { isHost };","import _Input from \"antd/es/input\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport _Form from \"antd/es/form\";\nimport _Switch from \"antd/es/switch\";\nimport { observer } from \"mobx-react\";\nimport { CookieEditFormLayout } from \"..\";\nimport { __ } from \"../../../../utils\";\nimport { useStores } from \"../../../../store\";\nimport { useRouteCookie } from \"../../../../hooks\";\nimport { LearnMoreTag } from \"../../..\";\n/**\n * Common manager form items. It provides fields for \"This is manger XY\" and in/out events.\n * If you add another manager, please also consider to add the meta fields to REST and initial values\n * of the cookie form itself.\n */\n\nvar CookieEditFormManagerFields = observer(function (_ref) {\n var manager = _ref.manager,\n onlyWhenManagerIs = _ref.onlyWhenManagerIs,\n hasManagerAttributeName = _ref.hasManagerAttributeName,\n thisIsManagerAttributeName = _ref.thisIsManagerAttributeName,\n inEventNameAttributeName = _ref.inEventNameAttributeName,\n outEventNameAttributeName = _ref.outEventNameAttributeName;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n _useStores$optionStor = _useStores.optionStore,\n setCookiesViaManager = _useStores$optionStor.setCookiesViaManager,\n hasManager = _useStores$optionStor[hasManagerAttributeName],\n isPro = _useStores$optionStor.others.isPro;\n\n var essentialGroup = cookieStore.essentialGroup;\n\n var _useRouteCookie = useRouteCookie(),\n cookie = _useRouteCookie.cookie;\n\n return setCookiesViaManager === onlyWhenManagerIs && isPro && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: hasManager && cookie.key !== hasManager ? __(\"You have already defined a %s service.\", manager) : \"\"\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n name: thisIsManagerAttributeName,\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, {\n disabled: hasManager && cookie.key !== hasManager\n })), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"Opt-in script below loads %s\", manager))))), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, curValues) {\n return prevValues[thisIsManagerAttributeName] !== curValues[thisIsManagerAttributeName] || prevValues.group !== curValues.group;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var isActive = getFieldValue(thisIsManagerAttributeName);\n var group = getFieldValue(\"group\");\n return isActive && group !== essentialGroup.key && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You have defined %1$s in a non-essential service group. In our legal opinion, this is the only way to use %1$s legally. However, please note that if a user doesn't consent to load %1$s, opt-in and opt-out events will not be sent to %1$s. Real Cookie Banner offers you the possibility to specify a fallback HTML/JavaScript for this case.\", manager))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, curValues) {\n return prevValues[thisIsManagerAttributeName] !== curValues[thisIsManagerAttributeName] || prevValues[inEventNameAttributeName] !== curValues[inEventNameAttributeName] || prevValues[outEventNameAttributeName] !== curValues[outEventNameAttributeName];\n }\n }, function (_ref3) {\n var getFieldValue = _ref3.getFieldValue;\n var active = getFieldValue(thisIsManagerAttributeName);\n var inEventName = getFieldValue(inEventNameAttributeName);\n var outEventName = getFieldValue(outEventNameAttributeName);\n return !active && /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Event names for %s\", manager)\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: inEventNameAttributeName,\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input, {\n addonBefore: __(\"Opt-in\"),\n style: {\n maxWidth: 400,\n marginRight: 10,\n marginBottom: 5\n }\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n name: outEventNameAttributeName,\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input, {\n addonBefore: __(\"Opt-out\"),\n style: {\n maxWidth: 400,\n marginRight: 10,\n marginBottom: 5\n }\n })), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/\")\n })), (inEventName.length > 0 || outEventName.length > 0) && !hasManager && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You have not yet defined a %s service. To use event names, you must create a %s service.\", manager, manager))));\n }));\n});\nexport { CookieEditFormManagerFields };","var DYNAMICS_VARIABLE_REGEXP = /{{([A-Za-z0-9_]+)}}/gm;\n/**\n * Takes any string and replaces `{{myVariable}}` with the value of the passed `dynamics` map.\n */\n\nfunction applyDynamicsToHtml(src, dynamics) {\n return src.replace(DYNAMICS_VARIABLE_REGEXP, function (fullMatch, variableName) {\n return Object.prototype.hasOwnProperty.call(dynamics, variableName) ? dynamics[variableName] : fullMatch;\n });\n}\n\nexport { applyDynamicsToHtml, DYNAMICS_VARIABLE_REGEXP };","import _Form from \"antd/es/form\";\nimport _Input from \"antd/es/input\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../../../utils\";\nimport { DYNAMICS_VARIABLE_REGEXP } from \"@devowl-wp/headless-content-unblocker\";\nvar DYNAMICS_SEARCH_IN = [\"codeOptIn\", \"codeOptOut\", \"codeOnPageLoad\"];\n/**\n * Provide dynamic variables in `codeOptIn`, `codeOptOut` and `codeOnPageLoad`.\n */\n\nvar CookieEditFormCodeDynamics = observer(function (_ref) {\n var dynamicFields = _ref.dynamicFields;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return DYNAMICS_SEARCH_IN.map(function (k) {\n return prevValues[k] !== nextValues[k];\n }).filter(Boolean).length > 0;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var searchInResolved = DYNAMICS_SEARCH_IN.map(function (k) {\n return getFieldValue(k);\n }).join(\"\");\n var matches = Array.from(searchInResolved.matchAll(DYNAMICS_VARIABLE_REGEXP)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n m = _ref4[1];\n\n return m;\n });\n var added = [];\n return matches ? matches.map(function (name) {\n var formName = [\"codeDynamics\", name];\n\n var _ref5 = (dynamicFields === null || dynamicFields === void 0 ? void 0 : dynamicFields[name]) || {},\n label = _ref5.label,\n _ref5$invalidMessage = _ref5.invalidMessage,\n invalidMessage = _ref5$invalidMessage === void 0 ? __(\"Please fill in a value!\") : _ref5$invalidMessage,\n example = _ref5.example,\n expression = _ref5.expression,\n hint = _ref5.hint;\n\n if (added.indexOf(name) > -1) {\n return null;\n }\n\n added.push(name);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n key: name,\n label: label || /*#__PURE__*/React.createElement(\"code\", null, name),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: formName,\n rules: [{\n required: true,\n pattern: expression ? new RegExp(expression) : undefined,\n message: invalidMessage\n }]\n }, /*#__PURE__*/React.createElement(_Input, {\n placeholder: example ? \"\".concat(__(\"e. g.\"), \" \").concat(example) : undefined\n })), !!hint && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\",\n style: {\n margin: \"10px 0 5px\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: hint\n }\n })));\n }) : null;\n });\n});\nexport { CookieEditFormCodeDynamics };","import _Form from \"antd/es/form\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport { useMemo } from \"react\";\nimport { _i, __ } from \"../../../../utils\";\nimport { observer } from \"mobx-react\";\nimport { useStores } from \"../../../../store\";\nvar NoticeFormItemContainsSkipIfActiveAttribute = observer(function (_ref) {\n var name = _ref.name;\n\n var _useStores = useStores(),\n activePlugins = _useStores.optionStore.others.activePlugins;\n\n var activePluginKeys = useMemo(function () {\n return Object.keys(activePlugins);\n }, [activePlugins]);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues[name] !== nextValues[name];\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var value = getFieldValue(name); // Find `skip-if-active` and their active plugins\n\n var matches = _toConsumableArray(value.matchAll(/\\s+(skip-if-active=\")([^\"]+)(\")/gm)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 3),\n plugins = _ref4[2];\n\n return plugins.split(\",\").filter(function (plugin) {\n return activePluginKeys.indexOf(plugin) > -1;\n });\n }).flat();\n\n var uniq = matches.filter(function (plugin, i) {\n return matches.indexOf(plugin) === i;\n });\n\n if (uniq.length === 0) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"The code above contains HTML tags that are skipped when one of the following plugins is active: {{strong/}}. {{i}}What does this mean for me?{{/i}} In most cases, another plugin will take over the execution of the technical code, and you have to create a corresponding content blocker.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null, uniq.map(function (plugin) {\n return activePlugins[plugin];\n }).join(\", \")),\n i: /*#__PURE__*/React.createElement(\"i\", null)\n })));\n });\n});\nexport { NoticeFormItemContainsSkipIfActiveAttribute };","import _Switch from \"antd/es/switch\";\nimport _Form from \"antd/es/form\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { FormHeadline, CodeMirror, Notices } from \"../../..\";\nimport { CookieEditFormLayout } from \"..\";\nimport { __, _i } from \"../../../../utils\";\nimport { MANAGER_GTM_LABEL, MANAGER_MTM_LABEL } from \"../..\";\nimport { useStores } from \"../../../../store\";\nimport { CookieEditFormManagerFields, CookieEditFormCodeDynamics, NoticeFormItemContainsSkipIfActiveAttribute } from \".\";\nimport \"../../..\";\nvar CookieEditFormHandlingFields = observer(function (_ref) {\n var notices = _ref.notices,\n dynamicFields = _ref.dynamicFields;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n _useStores$optionStor = _useStores.optionStore,\n setCookiesViaManager = _useStores$optionStor.setCookiesViaManager,\n isPro = _useStores$optionStor.others.isPro;\n\n var essentialGroup = cookieStore.essentialGroup; // CodeMirror does not support \"display:none;\", we need to hide it in a hacky way\n\n var createHiddenFormItemsWithCodeMirror = useCallback(function (visible) {\n return {\n opacity: visible ? undefined : 0,\n height: visible ? undefined : 0,\n margin: visible ? undefined : 0\n };\n }, []);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span,\n description: setCookiesViaManager === \"none\" ? __(\"Define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service or when a page is loaded. It is important to define the executed code correctly, as this ensures that scripts are executed and cookies are set only after the user's consent.\") : __(\"Define the %1$s event that should be thrown in the data layer when a visitor decides to accept or reject this service. The event can be used as a trigger in %1$s. For users who do not allow to use %1$s a fallback can be defined. You can define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service, or when a page is loaded. It is important to define the event names and executed code correctly, as this will ensure that scripts are executed and cookies are only set with the user's consent.\", setCookiesViaManager === \"googleTagManager\" ? MANAGER_GTM_LABEL : MANAGER_MTM_LABEL)\n }, __(\"Technical handling\")), /*#__PURE__*/React.createElement(CookieEditFormManagerFields, {\n manager: MANAGER_GTM_LABEL,\n onlyWhenManagerIs: \"googleTagManager\",\n hasManagerAttributeName: \"hasGTM\",\n thisIsManagerAttributeName: \"thisIsGoogleTagManager\",\n inEventNameAttributeName: \"googleTagManagerInEventName\",\n outEventNameAttributeName: \"googleTagManagerOutEventName\"\n }), /*#__PURE__*/React.createElement(CookieEditFormManagerFields, {\n manager: MANAGER_MTM_LABEL,\n onlyWhenManagerIs: \"matomoTagManager\",\n hasManagerAttributeName: \"hasMTM\",\n thisIsManagerAttributeName: \"thisIsMatomoTagManager\",\n inEventNameAttributeName: \"matomoTagManagerInEventName\",\n outEventNameAttributeName: \"matomoTagManagerOutEventName\"\n }), /*#__PURE__*/React.createElement(CookieEditFormCodeDynamics, {\n dynamicFields: dynamicFields\n }), (notices === null || notices === void 0 ? void 0 : notices.length) > 0 && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span,\n span: CookieEditFormLayout.wrapperCol.span\n }\n }, /*#__PURE__*/React.createElement(Notices, {\n notices: notices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on opt-in\")\n }, setCookiesViaManager === \"googleTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsGoogleTagManager !== nextValues.thisIsGoogleTagManager;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n return !getFieldValue(\"thisIsGoogleTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptInNoGoogleTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_GTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), setCookiesViaManager === \"matomoTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsMatomoTagManager !== nextValues.thisIsMatomoTagManager;\n }\n }, function (_ref3) {\n var getFieldValue = _ref3.getFieldValue;\n return !getFieldValue(\"thisIsMatomoTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptInNoMatomoTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_MTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptIn\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOptIn\"\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref4) {\n var getFieldValue = _ref4.getFieldValue;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on opt-out\"),\n style: createHiddenFormItemsWithCodeMirror(getFieldValue(\"group\") !== essentialGroup.key)\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.noTechnicalDefinitions !== nextValues.noTechnicalDefinitions;\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutDelete\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"Delete all first-party cookies after opt-out. First-party cookies are only cookies that are set by or for this domain.\")));\n }), setCookiesViaManager === \"googleTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsGoogleTagManager !== nextValues.thisIsGoogleTagManager;\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n return !getFieldValue(\"thisIsGoogleTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutNoGoogleTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_GTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), setCookiesViaManager === \"matomoTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsMatomoTagManager !== nextValues.thisIsMatomoTagManager;\n }\n }, function (_ref7) {\n var getFieldValue = _ref7.getFieldValue;\n return !getFieldValue(\"thisIsMatomoTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutNoMatomoTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_MTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOut\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOptOut\"\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on page load\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOnPageLoad\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOnPageLoad\"\n })));\n});\nexport { CookieEditFormHandlingFields };","import _Spin from \"antd/es/spin\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _Select from \"antd/es/select\";\nimport _Checkbox from \"antd/es/checkbox\";\nimport _Skeleton from \"antd/es/skeleton\";\nimport _message from \"antd/es/message\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _Form from \"antd/es/form\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { CookieModel } from \"../../../models\";\nimport { __, scrollTo, slugify, base64EncodeUnicodeSafe } from \"../../../utils\";\nimport { useStores } from \"../../../store\";\nimport { useHistory, Prompt } from \"react-router-dom\";\nimport { useRouteCookie } from \"../../../hooks\";\nimport { CookieEditFormGeneralFields, CookieEditFormTechnicalFields, CookieEditFormHandlingFields } from \".\";\nimport { LearnMoreTag } from \"../..\";\nvar CookieEditFormLayout = {\n labelCol: {\n span: 6\n },\n wrapperCol: {\n span: 16\n }\n};\nvar technicalDefinitionDefaults = {\n type: \"http\",\n name: \"\",\n host: \"\",\n duration: undefined,\n durationUnit: \"y\",\n sessionDuration: false,\n purpose: \"\"\n};\nvar CookieEditForm = observer(function (_ref) {\n var _cookieStore$groups$s, _cookieStore$groups$s2, _presetModel$attribut, _presetModel$attribut2, _presetModel$attribut4, _presetModel$attribut5;\n\n var preset = _ref.preset,\n attributes = _ref.attributes,\n _ref$navigateAfterCre = _ref.navigateAfterCreation,\n navigateAfterCreation = _ref$navigateAfterCre === void 0 ? true : _ref$navigateAfterCre,\n _ref$scrollToTop = _ref.scrollToTop,\n scrollToTop = _ref$scrollToTop === void 0 ? true : _ref$scrollToTop,\n onCreated = _ref.onCreated;\n\n var _useRouteCookie = useRouteCookie(),\n _useRouteCookie$route = _useRouteCookie.routeGroup,\n group = _useRouteCookie$route.group,\n link = _useRouteCookie$route.link,\n cookie = _useRouteCookie.cookie,\n id = _useRouteCookie.id,\n queried = _useRouteCookie.queried,\n fetched = _useRouteCookie.fetched;\n\n var _Form$useForm = _Form.useForm(),\n _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n form = _Form$useForm2[0];\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n isBusy = _useState2[0],\n setIsBusy = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n hasChanges = _useState4[0],\n setHasChanges = _useState4[1];\n\n var history = useHistory();\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n useEncodedStringForScriptInputs = _useStores.optionStore.others.useEncodedStringForScriptInputs;\n\n var essentialGroup = cookieStore.essentialGroup;\n var presetModel = (cookie === null || cookie === void 0 ? void 0 : cookie.presetModel) || cookieStore.presetsCookie.get(preset === null || preset === void 0 ? void 0 : preset.identifier); // Determine the group to use for a given preset, otherwise use current opened group tab\n\n var useGroup = attributes ? attributes.group ? ((_cookieStore$groups$s = cookieStore.groups.sortedGroups.filter(function (_ref2) {\n var name = _ref2.data.name;\n return name === attributes.group;\n })) === null || _cookieStore$groups$s === void 0 ? void 0 : (_cookieStore$groups$s2 = _cookieStore$groups$s[0]) === null || _cookieStore$groups$s2 === void 0 ? void 0 : _cookieStore$groups$s2.key) || \"preset-group-not-found\" : undefined : group.key;\n var allowContentBlockerCreation = Object.keys((preset === null || preset === void 0 ? void 0 : preset.contentBlockerPresets) || []).length > 0;\n var createContentBlockerNotice = (attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlockerNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut = presetModel.attributes) === null || _presetModel$attribut === void 0 ? void 0 : _presetModel$attribut.createContentBlockerNotice);\n var showOptInNoticeScanned = !!(presetModel !== null && presetModel !== void 0 && presetModel.data.scanned && (_presetModel$attribut2 = presetModel.attributes) !== null && _presetModel$attribut2 !== void 0 && _presetModel$attribut2.codeOptIn && [\"wordpress-comments\"].indexOf(presetModel.data.identifier) === -1);\n var initialValues = fetched ? {\n name: cookie.data.title.raw,\n status: cookie.data.status,\n group: group.key || undefined,\n // Can be `0`, so fallback to no selection (e.g. Cookie form modal in Content Blocker)\n purpose: cookie.data.content.raw,\n provider: cookie.data.meta.provider,\n providerPrivacyPolicy: cookie.data.meta.providerPrivacyPolicy,\n consentForwardingUniqueName: cookie.data.meta.consentForwardingUniqueName || cookie.data.slug,\n noTechnicalDefinitions: cookie.data.meta.noTechnicalDefinitions,\n legalBasis: cookie.data.meta.legalBasis,\n ePrivacyUSA: cookie.data.meta.ePrivacyUSA,\n technicalDefinitions: JSON.parse(JSON.stringify(cookie.technicalDefinitions || \"[]\")),\n codeDynamics: JSON.parse(JSON.stringify(cookie.codeDynamics || \"{}\")),\n thisIsGoogleTagManager: cookie.data.meta.thisIsGoogleTagManager,\n googleTagManagerInEventName: cookie.data.meta.googleTagManagerInEventName,\n googleTagManagerOutEventName: cookie.data.meta.googleTagManagerOutEventName,\n thisIsMatomoTagManager: cookie.data.meta.thisIsMatomoTagManager,\n matomoTagManagerInEventName: cookie.data.meta.matomoTagManagerInEventName,\n matomoTagManagerOutEventName: cookie.data.meta.matomoTagManagerOutEventName,\n codeOptIn: cookie.data.meta.codeOptIn,\n codeOptInNoGoogleTagManager: cookie.data.meta.codeOptInNoGoogleTagManager,\n codeOptInNoMatomoTagManager: cookie.data.meta.codeOptInNoMatomoTagManager,\n codeOptOut: cookie.data.meta.codeOptOut,\n codeOptOutNoGoogleTagManager: cookie.data.meta.codeOptOutNoGoogleTagManager,\n codeOptOutNoMatomoTagManager: cookie.data.meta.codeOptOutNoMatomoTagManager,\n codeOnPageLoad: cookie.data.meta.codeOnPageLoad,\n codeOptOutDelete: cookie.data.meta.codeOptOutDelete\n } : {\n name: (attributes === null || attributes === void 0 ? void 0 : attributes.name) || \"\",\n status: \"publish\",\n group: typeof useGroup === \"number\" ? // Can be `0`, so fallback to no selection (e.g. Cookie form modal in Content Blocker)\n useGroup || undefined : undefined,\n purpose: (attributes === null || attributes === void 0 ? void 0 : attributes.purpose) || \"\",\n provider: (attributes === null || attributes === void 0 ? void 0 : attributes.provider) || \"\",\n providerPrivacyPolicy: (attributes === null || attributes === void 0 ? void 0 : attributes.providerPrivacyPolicy) || \"\",\n consentForwardingUniqueName: (attributes === null || attributes === void 0 ? void 0 : attributes.consentForwardingUniqueName) || (preset === null || preset === void 0 ? void 0 : preset.identifier) || \"\",\n noTechnicalDefinitions: (attributes === null || attributes === void 0 ? void 0 : attributes.noTechnicalDefinitions) || false,\n legalBasis: (attributes === null || attributes === void 0 ? void 0 : attributes.legalBasis) || \"consent\",\n ePrivacyUSA: (attributes === null || attributes === void 0 ? void 0 : attributes.ePrivacyUSA) || false,\n technicalDefinitions: attributes !== null && attributes !== void 0 && attributes.technicalDefinitions ? JSON.parse(JSON.stringify(attributes.technicalDefinitions)) : [technicalDefinitionDefaults],\n codeDynamics: (attributes === null || attributes === void 0 ? void 0 : attributes.codeDynamics) || {},\n thisIsGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.thisIsGoogleTagManager) || false,\n googleTagManagerInEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.googleTagManagerInEventName) || \"\",\n googleTagManagerOutEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.googleTagManagerOutEventName) || \"\",\n thisIsMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.thisIsMatomoTagManager) || false,\n matomoTagManagerInEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.matomoTagManagerInEventName) || \"\",\n matomoTagManagerOutEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.matomoTagManagerOutEventName) || \"\",\n codeOptIn: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptIn) || \"\",\n codeOptInNoGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptInNoGoogleTagManager) || false,\n codeOptInNoMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptInNoMatomoTagManager) || false,\n codeOptOut: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOut) || \"\",\n codeOnPageLoad: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOnPageLoad) || \"\",\n codeOptOutNoGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutNoGoogleTagManager) || false,\n codeOptOutNoMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutNoMatomoTagManager) || false,\n codeOptOutDelete: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutDelete) || false,\n createContentBlocker: typeof (attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlocker) === \"boolean\" ? attributes.createContentBlocker : allowContentBlockerCreation && !(attributes !== null && attributes !== void 0 && attributes.deactivateAutomaticContentBlockerCreation),\n createContentBlockerId: attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlockerId,\n presetCheck: !preset\n }; // Initially load the cookie if not yet done\n\n useEffect(function () {\n if (queried && !fetched) {\n // Fetch the cookie within the correct group collection so it gets removed\n // from the original cookie group when it got moved to another cookie group.\n var groupToFetch = _toConsumableArray(cookieStore.groups.entries.values()).filter(function (_ref3) {\n var cookies = _ref3.cookies;\n return cookies.entries.get(id);\n })[0] || group;\n groupToFetch.cookies.getSingle({\n params: {\n id: id,\n context: \"edit\"\n }\n });\n }\n }, [queried, fetched]); // Lazy load attributes of preset model\n\n useEffect(function () {\n if (presetModel && !presetModel.attributes) {\n presetModel.fetchAttributes();\n }\n }, [presetModel]); // Scroll to top when opening the form\n\n useEffect(function () {\n if (scrollToTop) {\n scrollTo(0);\n }\n }, []);\n var handleSave = useCallback( /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {\n var _document$querySelect, codeToBase64, name, status, purpose, noTechnicalDefinitions, technicalDefinitions, _group, codeDynamics, createContentBlocker, createContentBlockerId, consentForwardingUniqueName, codeOptIn, codeOptOut, codeOnPageLoad, meta, newMeta, _useGroup, draft, noticeId, _document$querySelect2;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n\n // Pass as base64-encoded string to avoid Cloudflare XSS issues\n codeToBase64 = function codeToBase64(str) {\n return useEncodedStringForScriptInputs ? \"encodedScript:\".concat(base64EncodeUnicodeSafe(str)) : str;\n };\n\n name = values.name, status = values.status, purpose = values.purpose, noTechnicalDefinitions = values.noTechnicalDefinitions, technicalDefinitions = values.technicalDefinitions, _group = values.group, codeDynamics = values.codeDynamics, createContentBlocker = values.createContentBlocker, createContentBlockerId = values.createContentBlockerId, consentForwardingUniqueName = values.consentForwardingUniqueName, codeOptIn = values.codeOptIn, codeOptOut = values.codeOptOut, codeOnPageLoad = values.codeOnPageLoad, meta = _objectWithoutProperties(values, [\"name\", \"status\", \"purpose\", \"noTechnicalDefinitions\", \"technicalDefinitions\", \"group\", \"codeDynamics\", \"createContentBlocker\", \"createContentBlockerId\", \"consentForwardingUniqueName\", \"codeOptIn\", \"codeOptOut\", \"codeOnPageLoad\"]);\n newMeta = _objectSpread(_objectSpread({}, meta), {}, {\n codeOptIn: codeToBase64(codeOptIn),\n codeOptOut: codeToBase64(codeOptOut),\n codeOnPageLoad: codeToBase64(codeOnPageLoad),\n noTechnicalDefinitions: noTechnicalDefinitions,\n codeDynamics: JSON.stringify(codeDynamics),\n // Still hold the data of `technicalDefinitions` in database so it is not cleared when activating this option\n technicalDefinitions: JSON.stringify(noTechnicalDefinitions ? initialValues.technicalDefinitions : technicalDefinitions),\n consentForwardingUniqueName: consentForwardingUniqueName || slugify(name)\n });\n delete newMeta.presetCheck;\n\n if (!queried) {\n _context.next = 15;\n break;\n }\n\n cookie.setName(name);\n cookie.setStatus(status);\n cookie.setPurpose(purpose);\n cookie.setMeta(newMeta);\n cookie.setGroup(_group);\n _context.next = 13;\n return cookie.patch();\n\n case 13:\n _context.next = 20;\n break;\n\n case 15:\n _useGroup = cookieStore.groups.entries.get(_group);\n draft = new CookieModel(_useGroup.cookies, {\n title: {\n rendered: name\n },\n content: {\n rendered: purpose,\n protected: false\n },\n status: status,\n meta: _objectSpread(_objectSpread({}, newMeta), {}, {\n presetId: preset === null || preset === void 0 ? void 0 : preset.identifier,\n presetVersion: preset === null || preset === void 0 ? void 0 : preset.version\n })\n });\n _context.next = 19;\n return draft.persist();\n\n case 19:\n onCreated === null || onCreated === void 0 ? void 0 : onCreated(draft);\n\n case 20:\n setHasChanges(false);\n\n _message.success(__(\"You have successfully saved the service.\") + (createContentBlocker ? \" \".concat(__(\"Continue with the corresponding Content Blocker!\")) : \"\")); // Remove the item from the \"Services with empty privacy policy\" global notice\n\n\n noticeId = \"#rcb-services-with-empty-privacy-policy-notice\";\n (_document$querySelect = document.querySelector(\"\".concat(noticeId, \" li[data-id=\\\"\").concat(id, \"\\\"]\"))) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.classList.add(\"hidden\");\n\n if (!document.querySelectorAll(\"\".concat(noticeId, \" > ul > li:not(.hidden)\")).length) {\n (_document$querySelect2 = document.querySelector(noticeId)) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.remove();\n } // Navigate back after creation\n\n\n navigateAfterCreation && setTimeout(function () {\n return createContentBlocker ? // Navigate to content blocker form and forward `navigateAfterCreation` if given\n history.push(\"/blocker/new?force=\".concat(createContentBlockerId || preset.identifier, \"&cookieCreationPrompt=1\").concat(typeof navigateAfterCreation === \"string\" ? \"&navigateAfterCreation=\".concat(encodeURIComponent(navigateAfterCreation)) : \"\")) : // Navigate back to overview or custom link\n typeof navigateAfterCreation === \"string\" ? window.location.href = navigateAfterCreation : history.push(\"\".concat(link.slice(1), \"/\").concat(_group));\n }, 0);\n _context.next = 32;\n break;\n\n case 28:\n _context.prev = 28;\n _context.t0 = _context[\"catch\"](0);\n\n _message.error(_context.t0.responseJSON.message);\n\n throw _context.t0;\n\n case 32:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 28]]);\n }));\n\n return function (_x) {\n return _ref4.apply(this, arguments);\n };\n }(), [queried, cookie, cookieStore, useEncodedStringForScriptInputs]);\n var onFinish = useCallback( /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(values) {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n setIsBusy(true);\n _context2.prev = 1;\n _context2.next = 4;\n return handleSave(values);\n\n case 4:\n _context2.next = 8;\n break;\n\n case 6:\n _context2.prev = 6;\n _context2.t0 = _context2[\"catch\"](1);\n\n case 8:\n _context2.prev = 8;\n setIsBusy(false);\n return _context2.finish(8);\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[1, 6, 8, 11]]);\n }));\n\n return function (_x2) {\n return _ref5.apply(this, arguments);\n };\n }(), [form, handleSave]);\n var onFinishFailed = useCallback(function (errorInfo) {\n _message.error(__(\"The service could not be saved due to missing/invalid form values.\"));\n\n if (errorInfo.errorFields.length) {\n var instance = form.getFieldInstance(errorInfo.errorFields[0].name);\n instance.parentElement.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\"\n });\n }\n }, []);\n var handleBeforeUnload = useCallback(function () {\n if (!hasChanges) {\n return true;\n }\n\n return __('You have unsaved changes. If you click on \"confirm\", your changes will be discarded.');\n }, [form, initialValues]);\n\n if (queried && !fetched) {\n return /*#__PURE__*/React.createElement(_Skeleton, {\n active: true,\n paragraph: {\n rows: 8\n }\n });\n }\n\n return /*#__PURE__*/React.createElement(_Spin, {\n spinning: isBusy || (presetModel === null || presetModel === void 0 ? void 0 : presetModel.busy) || false\n }, /*#__PURE__*/React.createElement(Prompt, {\n message: handleBeforeUnload\n }), /*#__PURE__*/React.createElement(_Form, _extends({\n name: \"cookie-\".concat(group.key, \"-\").concat(id),\n form: form\n }, CookieEditFormLayout, {\n initialValues: initialValues,\n onFinish: onFinish,\n onFinishFailed: onFinishFailed,\n onValuesChange: function onValuesChange(_ref6) {\n var technicalDefinitions = _ref6.technicalDefinitions;\n setHasChanges(true); // Listen to `sessionDuration` changes and validate the `required` field\n // Listen to `type` changes and validate the technical host field\n\n var td = (technicalDefinitions || []).filter(Boolean);\n\n if (td.length === 1) {\n var tdChangedKeys = Object.keys(td[0]);\n\n if (tdChangedKeys.length === 1 && [\"sessionDuration\", \"type\"].indexOf(tdChangedKeys[0]) > -1) {\n setTimeout(function () {\n return form.validateFields();\n }, 100); // wait a bit so there are not false-positives\n }\n }\n }\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref7) {\n var _presetModel$attribut3;\n\n var getFieldValue = _ref7.getFieldValue;\n return /*#__PURE__*/React.createElement(CookieEditFormGeneralFields, {\n groupNotices: [{\n message: presetModel && typeof useGroup === \"number\" && getFieldValue(\"group\") !== useGroup ? __(\"The groups specified in service templates were chosen wisely. Are you sure that this service should be assigned to another group for your case?\") : undefined,\n severity: \"warning\"\n }, {\n message: (attributes === null || attributes === void 0 ? void 0 : attributes.groupNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut3 = presetModel.attributes) === null || _presetModel$attribut3 === void 0 ? void 0 : _presetModel$attribut3.groupNotice),\n severity: \"info\"\n }],\n providerPrivacyPolicyNotices: [{\n message: !fetched && presetModel !== null && presetModel !== void 0 && presetModel.attributes && !initialValues.providerPrivacyPolicy ? __('You have not yet set a privacy policy in the settings, so this field could not be filled in automatically. Please enter the URL of your privacy policy here and <a href=\"%s\" target=\"_blank\">set the corresponding page in your settings.</a>', \"#/settings\") : undefined,\n severity: \"warning\"\n }],\n showNoticePresetGroupNotFound: useGroup === \"preset-group-not-found\" ? attributes.group : false\n });\n }), /*#__PURE__*/React.createElement(CookieEditFormTechnicalFields, null), /*#__PURE__*/React.createElement(CookieEditFormHandlingFields, {\n dynamicFields: (attributes === null || attributes === void 0 ? void 0 : attributes.dynamicFields) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut4 = presetModel.attributes) === null || _presetModel$attribut4 === void 0 ? void 0 : _presetModel$attribut4.dynamicFields),\n notices: [{\n message: (attributes === null || attributes === void 0 ? void 0 : attributes.technicalHandlingNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut5 = presetModel.attributes) === null || _presetModel$attribut5 === void 0 ? void 0 : _presetModel$attribut5.technicalHandlingNotice),\n severity: \"info\"\n }, {\n // Example: Hotjar (hidden content blocker)\n message: showOptInNoticeScanned && !allowContentBlockerCreation && __(\"If you have already used %s before creating this service, please deactivate the script/plugin with which the service was loaded so far. The opt-in script will now take care of the correct integration.\", presetModel.data.attributes_name),\n severity: \"warning\"\n }, {\n // Example: Google Analytics (scanned, found in custom script (e.g. `functions.php`))\n message: showOptInNoticeScanned && allowContentBlockerCreation && __('You are currently embedding \"%1$s\" outside of Real Cookie Banner. You can have it blocked via a content blocker before consenting. Alternatively, you can use the following opt-in script to load %1$s directly into Real Cookie Banner.<br /><br />If you want to embed \"%1$s\" via Real Cookie Banner, you have to deactivate the content blocker at the end of the form and remove \"%1$s\" outside Real Cookie Banner.<br /><br />If you prefer to keep the current integration, you only have to delete the opt-in script in this form.', presetModel.data.attributes_name),\n severity: \"warning\"\n }].filter(function (_ref8) {\n var message = _ref8.message;\n return message;\n })\n }), !!preset && /*#__PURE__*/React.createElement(React.Fragment, null, allowContentBlockerCreation && navigateAfterCreation && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref9) {\n var getFieldValue = _ref9.getFieldValue;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: \"createContentBlocker\",\n valuePropName: \"checked\",\n dependencies: [\"group\"],\n rules: [{\n validator: function validator(_, value) {\n return getFieldValue(\"group\") === essentialGroup.key && value ? Promise.reject(__('Services that should be associated with a content blocker cannot be in the \"Essential\" group, because it cannot be rejected.')) : Promise.resolve();\n }\n }]\n }, /*#__PURE__*/React.createElement(_Checkbox, null, __(\"Create content blocker for this service.\")));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.createContentBlocker !== nextValues.createContentBlocker;\n }\n }, function (_ref10) {\n var getFieldValue = _ref10.getFieldValue;\n return /*#__PURE__*/React.createElement(React.Fragment, null, getFieldValue(\"createContentBlocker\") && /*#__PURE__*/React.createElement(React.Fragment, null, Object.keys(preset.contentBlockerPresets).length > 1 && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: \"createContentBlockerId\",\n rules: [{\n required: true,\n message: __(\"Please select a template for the Content Blocker!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, {\n style: {\n maxWidth: 500,\n marginTop: 10,\n display: \"block\"\n },\n placeholder: __(\"Select Content Blocker template...\")\n }, Object.keys(preset.contentBlockerPresets).map(function (contentBlockerId) {\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: contentBlockerId,\n value: contentBlockerId\n }, preset.contentBlockerPresets[contentBlockerId]);\n }))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\",\n style: {\n marginTop: 10\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"Immediately after submitting this form you will be forwarded to another form that allows you to create the Content Blocker.\")))), !!createContentBlockerNotice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: createContentBlockerNotice\n }\n })));\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"presetCheck\",\n valuePropName: \"checked\",\n required: true,\n rules: [{\n type: \"boolean\",\n required: true,\n transform: function transform(value) {\n return value || undefined;\n },\n message: __(\"Please confirm that you have checked the contents of the service.\")\n }],\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Checkbox, null, __(\"I have checked the information in the service template myself and added any missing information or corrected any information that does not fit to my use case.\"), \" \", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/\")\n })))), /*#__PURE__*/React.createElement(_Form.Item, {\n className: \"rcb-form-sticky-submit\"\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"input\", {\n type: \"submit\",\n className: \"button button-primary right\",\n value: __(\"Save\")\n })))));\n});\nexport { CookieEditFormLayout, technicalDefinitionDefaults, CookieEditForm };","import _Form from \"antd/es/form\";\n\nvar FormHeadline = function FormHeadline(_ref) {\n var children = _ref.children,\n description = _ref.description,\n offset = _ref.offset;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: offset\n },\n style: {\n borderBottom: \"1px solid #e7e7e7\"\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n margin: \"0 0 \".concat(description ? 3 : 15, \"px 0\")\n }\n }, children), !!description && /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n marginBottom: 15\n }\n }, description));\n};\n\nexport { FormHeadline };","import { useLocation } from \"react-router-dom\";\nimport { Url } from \"@devowl-wp/utils\";\n/**\n * Allows to parse query arguments from the `react-router` string.\n */\n\nfunction useLocationQuery() {\n return new Url(\"/\".concat(useLocation().search), true).query;\n}\n\nexport { useLocationQuery };","import { useRouteMatch } from \"react-router-dom\";\nimport { useStores } from \"../store\";\nimport { useCallback } from \"react\";\nimport { CookieGroupModel } from \"../models\";\n\nvar useRouteCookieGroup = function useRouteCookieGroup() {\n var _useRouteMatch = useRouteMatch(),\n cookieGroup = _useRouteMatch.params.cookieGroup;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore; // Get cookie group or return draft object\n\n\n var id = isNaN(+cookieGroup) ? 0 : +cookieGroup;\n var queried = !!cookieGroup;\n var group = cookieStore.groups.entries.get(id) || new CookieGroupModel(cookieStore.groups, {\n id: 0\n });\n var link = \"#/cookies\";\n var editLink = useCallback(function (_ref) {\n var key = _ref.key;\n return \"#/cookies/\".concat(group.key, \"/edit/\").concat(key);\n }, [group]);\n var addCookieLink = \"#/cookies/\".concat(group.key, \"/new\");\n return {\n group: group,\n id: id,\n queried: queried,\n fetched: group.key !== 0,\n link: link,\n editLink: editLink,\n addCookieLink: addCookieLink\n };\n};\n\nexport { useRouteCookieGroup };","function getCookieTypeLocalized() {\n return {\n http: {\n name: \"HTTP Cookie\",\n abbr: \"HTTP\",\n backgroundColor: \"black\"\n },\n local: {\n name: \"Local Storage\",\n abbr: \"Local\",\n backgroundColor: \"#b3983c\"\n },\n session: {\n name: \"Session Storage\",\n abbr: \"Session\",\n backgroundColor: \"#3c99b3\"\n },\n flash: {\n name: \"Flash Local Shared Object\",\n abbr: \"Flash\",\n backgroundColor: \"#b33c3c\"\n },\n indexedDb: {\n name: \"IndexedDB\",\n abbr: \"I-DB\",\n backgroundColor: \"#4ab33c\"\n }\n };\n}\n\nexport { getCookieTypeLocalized };"],"names":["base64EncodeUnicodeSafe","str","btoa","encodeURIComponent","replace","match","p1","String","fromCharCode","parseInt","slugify","toLowerCase","from","i","l","length","RegExp","charAt","useRouteCookie","routeGroup","useRouteCookieGroup","group","params","useRouteMatch","id","isNaN","cookie","queried","cookies","entries","get","fetched","key","Notices","_ref","notices","React","createElement","Fragment","map","_ref2","message","severity","className","concat","dangerouslySetInnerHTML","__html","CookieEditFormGeneralFields","_cookie$presetModel","_cookie$presetModel$d","_ref$showNoticePreset","showNoticePresetGroupNotFound","groupNotices","providerPrivacyPolicyNotices","_useStores","_useStores$cookieStor","cookieStore","groups","essentialGroup","_useStores$optionStor","optionStore","ePrivacyUSA","consentForwarding","_useRouteCookie","isRealCookieBannerPreset","presetModel","data","identifier","findByUniqueCookieName","useCallback","_callee","slug","_context","prev","next","request","location","abrupt","sent","filter","d","ID","t0","undefined","stop","_x","apply","this","arguments","validateUniqueCookieName","_ref3","_callee2","allowOverwrite","found","_consentForwardingUniqueName","matchRegexp","foundGenerated","_context2","__","metas","consentForwardingUniqueName","_","g1","g2","_x2","_x3","offset","CookieEditFormLayout","labelCol","span","url","label","required","name","noStyle","rules","value","sortedGroups","_ref4","_ref4$data","autoSize","minRows","_i","a","href","target","rel","type","shouldUpdate","prevValues","nextValues","_ref5","_validator","getFieldValue","setFieldsValue","isEssentialGroup","style","display","validateTrigger","validator","_callee3","_context3","_x4","_x5","placeholder","disabled","margin","strong","_ref6","valuePropName","WP_LIST_TABLE_FORM_ITEM_PROPS","wrapperCol","CookieEditFormTechnicalFields","cookieTypeLocalized","tbodyRef","useRef","_useMemo","useMemo","DragHandle","MenuOutlined","cursor","color","marginTop","SortableItem","props","SortableBody","ref","handleSortStart","node","helper","childNodes","forEach","td","index","width","offsetWidth","noTechnicalDefinitions","technicalDefinitions","fields","add","remove","move","description","marginBottom","align","title","code","QuestionCircleFilled","useDragHandle","onSortEnd","oldIndex","newIndex","onSortStart","helperContainer","current","field","fieldKey","Object","keys","_prevValues$technical","_nextValues$technical","cookieName","r","Array","isArray","test","_prevValues$technical2","_nextValues$technical2","indexOf","isUrl","Promise","resolve","reject","_prevValues$technical3","_nextValues$technical3","host","_ref7","startsWith","substr","_prevValues$technical4","_nextValues$technical4","_ref8","float","_prevValues$technical5","_nextValues$technical5","sessionDuration","_ref9","min","addonAfter","maxWidth","rows","maxRows","onClick","DeleteOutlined","colSpan","technicalDefinitionDefaults","PlusOutlined","CookieEditFormManagerFields","manager","onlyWhenManagerIs","hasManagerAttributeName","thisIsManagerAttributeName","inEventNameAttributeName","outEventNameAttributeName","setCookiesViaManager","hasManager","isPro","others","curValues","isActive","active","inEventName","outEventName","addonBefore","marginRight","DYNAMICS_VARIABLE_REGEXP","DYNAMICS_SEARCH_IN","CookieEditFormCodeDynamics","dynamicFields","k","Boolean","searchInResolved","join","matches","matchAll","added","formName","_ref5$invalidMessage","invalidMessage","example","expression","hint","push","pattern","NoticeFormItemContainsSkipIfActiveAttribute","activePlugins","activePluginKeys","split","plugin","flat","uniq","CookieEditFormHandlingFields","createHiddenFormItemsWithCodeMirror","visible","opacity","height","thisIsGoogleTagManager","u","thisIsMatomoTagManager","settings","window","cm_settings","duration","durationUnit","purpose","CookieEditForm","_cookieStore$groups$s","_cookieStore$groups$s2","_presetModel$attribut","_presetModel$attribut2","_presetModel$attribut4","_presetModel$attribut5","preset","attributes","_ref$navigateAfterCre","navigateAfterCreation","_ref$scrollToTop","scrollToTop","onCreated","_useRouteCookie$route","link","_Form$useForm","form","_useState","useState","_useState2","isBusy","setIsBusy","_useState3","_useState4","hasChanges","setHasChanges","history","useHistory","useEncodedStringForScriptInputs","presetsCookie","useGroup","allowContentBlockerCreation","contentBlockerPresets","createContentBlockerNotice","showOptInNoticeScanned","scanned","codeOptIn","initialValues","raw","status","content","provider","meta","providerPrivacyPolicy","legalBasis","JSON","parse","stringify","codeDynamics","googleTagManagerInEventName","googleTagManagerOutEventName","matomoTagManagerInEventName","matomoTagManagerOutEventName","codeOptInNoGoogleTagManager","codeOptInNoMatomoTagManager","codeOptOut","codeOptOutNoGoogleTagManager","codeOptOutNoMatomoTagManager","codeOnPageLoad","codeOptOutDelete","createContentBlocker","deactivateAutomaticContentBlockerCreation","createContentBlockerId","presetCheck","useEffect","values","getSingle","context","fetchAttributes","scrollTo","handleSave","_document$querySelect","codeToBase64","_group","newMeta","_useGroup","draft","noticeId","_document$querySelect2","setName","setStatus","setPurpose","setMeta","setGroup","patch","rendered","protected","presetId","presetVersion","version","persist","document","querySelector","classList","querySelectorAll","setTimeout","slice","responseJSON","onFinish","finish","onFinishFailed","errorInfo","errorFields","getFieldInstance","parentElement","scrollIntoView","behavior","block","handleBeforeUnload","paragraph","spinning","busy","Prompt","onValuesChange","tdChangedKeys","validateFields","_presetModel$attribut3","groupNotice","technicalHandlingNotice","attributes_name","dependencies","_ref10","contentBlockerId","transform","FormHeadline","children","borderBottom","useLocationQuery","Url","useLocation","search","query","cookieGroup","editLink","addCookieLink","getCookieTypeLocalized","http","abbr","backgroundColor","local","session","flash","indexedDb"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"548.lite.js?ver=52f0a1d264ca2f3d2fd1","mappings":"qIA0EA,SAASA,IACP,MAAO,CACLC,KAAM,CACJC,KAAM,cACNC,KAAM,OACNC,gBAAiB,SAEnBC,MAAO,CACLH,KAAM,gBACNC,KAAM,QACNC,gBAAiB,WAEnBE,QAAS,CACPJ,KAAM,k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AASiP,IACP,OAAO,IAAI,EAAAC,IAAI,IAAI3X,QAAO,IAAA4X,eAAcC,SAAS,GAAMC,Q,iGCFrDtZ,EAAsB,WACxB,IACIuZ,GADiB,IAAApZ,iBACYD,OAAOqZ,YAGpCnX,GADa,SACYA,YAGzBhC,EAAKC,OAAOkZ,GAAe,GAAKA,EAChChZ,IAAYgZ,EACZtZ,EAAQmC,EAAYC,OAAO5B,QAAQC,IAAIN,IAAO,IAAI,IAAiBgC,EAAYC,OAAQ,CACzFjC,GAAI,IAGFoZ,GAAW,IAAAvW,cAAY,SAAUnC,GACnC,IAAIF,EAAME,EAAKF,IACf,MAAO,aAAaY,OAAOvB,EAAMW,IAAK,UAAUY,OAAOZ,KACtD,CAACX,IACAwZ,EAAgB,aAAajY,OAAOvB,EAAMW,IAAK,QACnD,MAAO,CACLX,MAAOA,EACPG,GAAIA,EACJG,QAASA,EACTI,QAAuB,IAAdV,EAAMW,IACfqR,KAXS,YAYTuH,SAAUA,EACVC,cAAeA","sources":["webpack:///../../frontend-packages/react-cookie-banner/src/components/common/groups/cookiePropertyList.tsx","webpack:///./src/public/ts/utils/base64EncodeUnicodeSafe.tsx","webpack:///./src/public/ts/utils/slugify.tsx","webpack:///./src/public/ts/hooks/useRouteCookie.tsx","webpack:///./src/public/ts/components/notices.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/general.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/technical.tsx","webpack:///./src/public/ts/utils/isHost.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/manager.tsx","webpack:///../../frontend-packages/headless-content-unblocker/src/dom/applyDynamicsToHtml.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/codeDynamics.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/noticeFormItemContainsSkipIfActiveAttribute.tsx","webpack:///./src/public/ts/components/config/cookies/formFields/handling.tsx","webpack:///./src/public/ts/components/config/cookies/form.tsx","webpack:///./src/public/ts/components/formHeadline.tsx","webpack:///./src/public/ts/hooks/useLocationQuery.tsx","webpack:///./src/public/ts/hooks/useRouteCookieGroup.tsx"],"sourcesContent":["import { Fragment } from \"react\";\nimport { CookieProperty } from \".\";\nimport { useBannerOrBlocker } from \"../../../hooks\";\nimport { applyDynamicsToHtml } from \"@devowl-wp/headless-content-unblocker\";\n\nvar CookiePropertyList = function CookiePropertyList(_ref) {\n var _ref$cookie = _ref.cookie,\n purpose = _ref$cookie.purpose,\n provider = _ref$cookie.provider,\n providerPrivacyPolicy = _ref$cookie.providerPrivacyPolicy,\n legalBasis = _ref$cookie.legalBasis,\n ePrivacyUSA = _ref$cookie.ePrivacyUSA,\n noTechnicalDefinitions = _ref$cookie.noTechnicalDefinitions,\n technicalDefinitions = _ref$cookie.technicalDefinitions,\n codeDynamics = _ref$cookie.codeDynamics,\n isEssentialGroup = _ref.isEssentialGroup;\n\n var _useBannerOrBlocker = useBannerOrBlocker(),\n i18n = _useBannerOrBlocker.i18n,\n ePrivacyUSAEnabled = _useBannerOrBlocker.ePrivacyUSA;\n\n var types = getCookieTypeLocalizationMap();\n return /*#__PURE__*/React.createElement(Fragment, null, !!purpose && /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.purpose,\n value: purpose\n }), /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.legalBasis,\n value: legalBasis === \"legal-requirement\" ? i18n.legalRequirement : legalBasis === \"legitimate-interest\" || isEssentialGroup ? i18n.legitimateInterest : i18n.consent\n }), /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.provider,\n value: provider\n }), !!providerPrivacyPolicy && /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.providerPrivacyPolicy,\n value: providerPrivacyPolicy\n }), !!ePrivacyUSAEnabled && /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.ePrivacyUSA,\n value: ePrivacyUSA,\n printValueAs: \"boolean\"\n }), !noTechnicalDefinitions && technicalDefinitions.map(function (_ref2) {\n var type = _ref2.type,\n name = _ref2.name,\n host = _ref2.host,\n duration = _ref2.duration,\n durationUnit = _ref2.durationUnit,\n sessionDuration = _ref2.sessionDuration,\n purpose = _ref2.purpose;\n return /*#__PURE__*/React.createElement(CookieProperty, {\n key: name,\n label: i18n.technicalCookieDefinition,\n value: /*#__PURE__*/React.createElement(\"span\", {\n style: {\n fontFamily: \"monospace\"\n }\n }, applyDynamicsToHtml(name, codeDynamics))\n }, /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.type,\n value: types[type].name\n }), !!purpose && /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.purpose,\n value: purpose\n }), !!host && /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.host,\n value: /*#__PURE__*/React.createElement(\"span\", {\n style: {\n fontFamily: \"monospace\"\n }\n }, host)\n }), /*#__PURE__*/React.createElement(CookieProperty, {\n label: i18n.duration,\n value: [\"local\", \"indexedDb\", \"flash\"].indexOf(type) > -1 ? i18n.noExpiration : sessionDuration || type === \"session\" ? \"Session\" : \"\".concat(duration, \" \").concat(i18n.durationUnit[durationUnit])\n }));\n }));\n};\n\nfunction getCookieTypeLocalizationMap() {\n return {\n http: {\n name: \"HTTP Cookie\",\n abbr: \"HTTP\",\n backgroundColor: \"black\"\n },\n local: {\n name: \"Local Storage\",\n abbr: \"Local\",\n backgroundColor: \"#b3983c\"\n },\n session: {\n name: \"Session Storage\",\n abbr: \"Session\",\n backgroundColor: \"#3c99b3\"\n },\n flash: {\n name: \"Flash Local Shared Object\",\n abbr: \"Flash\",\n backgroundColor: \"#b33c3c\"\n },\n indexedDb: {\n name: \"IndexedDB\",\n abbr: \"I-DB\",\n backgroundColor: \"#4ab33c\"\n }\n };\n}\n\nexport { CookiePropertyList, getCookieTypeLocalizationMap };","/**\n * Unicode-safe base64 encoding.\n *\n * @see https://stackoverflow.com/a/30106551/5506547\n */\nfunction base64EncodeUnicodeSafe(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(parseInt(p1, 16));\n }));\n}\n\nexport { base64EncodeUnicodeSafe };","/**\n * Slugify a given text.\n *\n * @see https://gist.github.com/codeguy/6684588\n */\nfunction slugify(str) {\n str = str.replace(/^\\s+|\\s+$/g, \"\"); // trim\n\n str = str.toLowerCase(); // remove accents, swap ñ for n, etc\n\n var from = \"àáäâèéëêìíïîòóöôùúüûñç·/_,:;\";\n var to = \"aaaaeeeeiiiioooouuuunc------\";\n\n for (var i = 0, l = from.length; i < l; i++) {\n str = str.replace(new RegExp(from.charAt(i), \"g\"), to.charAt(i));\n }\n\n str = str.replace(/[^a-z0-9 -]/g, \"\") // remove invalid chars\n .replace(/\\s+/g, \"-\") // collapse whitespace and replace by -\n .replace(/-+/g, \"-\"); // collapse dashes\n\n return str;\n}\n\nexport { slugify };","import { useRouteMatch } from \"react-router-dom\";\nimport { CookieModel } from \"../models\";\nimport { useRouteCookieGroup } from \".\";\n\nvar useRouteCookie = function useRouteCookie() {\n var routeGroup = useRouteCookieGroup();\n var group = routeGroup.group;\n\n var _useRouteMatch = useRouteMatch(),\n params = _useRouteMatch.params; // Get cookie or return draft object\n\n\n var id = isNaN(+params.cookie) ? 0 : +params.cookie;\n var queried = !!params.cookie;\n var cookie = group.cookies.entries.get(+params.cookie) || new CookieModel(group.cookies, {\n id: 0\n });\n return {\n routeGroup: routeGroup,\n cookie: cookie,\n id: id,\n queried: queried,\n fetched: cookie.key !== 0\n };\n};\n\nexport { useRouteCookie };","var Notices = function Notices(_ref) {\n var notices = _ref.notices;\n return /*#__PURE__*/React.createElement(React.Fragment, null, notices === null || notices === void 0 ? void 0 : notices.map(function (_ref2) {\n var message = _ref2.message,\n severity = _ref2.severity;\n return message ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-\".concat(severity, \" below-h2 notice-alt\"),\n key: message\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: message\n }\n })) : null;\n }));\n};\n\nexport { Notices };","import _Switch from \"antd/es/switch\";\nimport _Select from \"antd/es/select\";\nimport _Radio from \"antd/es/radio\";\nimport _Form from \"antd/es/form\";\nimport _Input from \"antd/es/input\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { _i, __, request, slugify } from \"../../../../utils\";\nimport { useStores } from \"../../../../store\";\nimport { FormHeadline, LearnMoreTag, Notices } from \"../../..\";\nimport { CookieEditFormLayout } from \"..\";\nimport { locationRestForwardCookieGet } from \"../../../../wp-api\";\nimport { useRouteCookie } from \"../../../../hooks\";\nvar CookieEditFormGeneralFields = observer(function (_ref) {\n var _cookie$presetModel, _cookie$presetModel$d;\n\n var _ref$showNoticePreset = _ref.showNoticePresetGroupNotFound,\n showNoticePresetGroupNotFound = _ref$showNoticePreset === void 0 ? false : _ref$showNoticePreset,\n groupNotices = _ref.groupNotices,\n providerPrivacyPolicyNotices = _ref.providerPrivacyPolicyNotices;\n\n var _useStores = useStores(),\n _useStores$cookieStor = _useStores.cookieStore,\n groups = _useStores$cookieStor.groups,\n essentialGroup = _useStores$cookieStor.essentialGroup,\n _useStores$optionStor = _useStores.optionStore,\n ePrivacyUSA = _useStores$optionStor.ePrivacyUSA,\n consentForwarding = _useStores$optionStor.consentForwarding;\n\n var _useRouteCookie = useRouteCookie(),\n cookie = _useRouteCookie.cookie,\n fetched = _useRouteCookie.fetched;\n\n var isRealCookieBannerPreset = ((_cookie$presetModel = cookie.presetModel) === null || _cookie$presetModel === void 0 ? void 0 : (_cookie$presetModel$d = _cookie$presetModel.data) === null || _cookie$presetModel$d === void 0 ? void 0 : _cookie$presetModel$d.identifier) === \"real-cookie-banner\";\n var findByUniqueCookieName = useCallback( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(slug) {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return request({\n location: locationRestForwardCookieGet,\n params: {\n slug: slug\n }\n });\n\n case 3:\n return _context.abrupt(\"return\", _context.sent.filter(function (d) {\n return d.ID !== cookie.key;\n })[0]);\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n return _context.abrupt(\"return\", undefined);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 6]]);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }(), [cookie.key]);\n var validateUniqueCookieName = useCallback( /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(slug, allowOverwrite) {\n var found, _consentForwardingUniqueName, matchRegexp, foundGenerated;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return findByUniqueCookieName(slug);\n\n case 2:\n found = _context2.sent;\n\n if (!found) {\n _context2.next = 19;\n break;\n }\n\n if (allowOverwrite) {\n _context2.next = 8;\n break;\n }\n\n throw __(\"A service with the same unique name already exists.\");\n\n case 8:\n // Consent Forwarding is deactivated, so we need to generate an unique name for the user\n _consentForwardingUniqueName = found.metas.consentForwardingUniqueName;\n matchRegexp = /^(.*)-(\\d+)$/;\n foundGenerated = found;\n\n case 11:\n if (!foundGenerated) {\n _context2.next = 18;\n break;\n }\n\n _consentForwardingUniqueName = _consentForwardingUniqueName.match(matchRegexp) ? _consentForwardingUniqueName.replace(matchRegexp, function (_, g1, g2) {\n return \"\".concat(g1, \"-\").concat(+g2 + 1);\n }) : \"\".concat(_consentForwardingUniqueName, \"-1\");\n _context2.next = 15;\n return findByUniqueCookieName(_consentForwardingUniqueName);\n\n case 15:\n foundGenerated = _context2.sent;\n _context2.next = 11;\n break;\n\n case 18:\n // Overwrite in form\n allowOverwrite(_consentForwardingUniqueName);\n\n case 19:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x2, _x3) {\n return _ref3.apply(this, arguments);\n };\n }(), [findByUniqueCookieName]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span\n }, __(\"General service configuration\"), \" \", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/\")\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Name\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"name\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide a name!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('Each service used should have a descriptive name that is understandable to a non-professional user. Example: \"Google Analytics\".'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Status\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"status\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please choose a status!\")\n }]\n }, /*#__PURE__*/React.createElement(_Radio.Group, null, /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"publish\"\n }, __(\"Enabled\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"private\"\n }, __(\"Disabled\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"draft\"\n }, __(\"Draft\")))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('Services with the status \"Draft\" or \"Disabled\" are not visible to the public. In addition, a draft will be highlighted in the service table so that you do not forget to configure it.'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Group\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"group\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide a group!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, null, groups.sortedGroups.map(function (_ref4) {\n var _ref4$data = _ref4.data,\n id = _ref4$data.id,\n name = _ref4$data.name;\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: id,\n value: id\n }, name);\n }))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Each service must be assigned to a group. All services that do not belong to the group of essential services can (but do not have to) be accepted by visitors. According to the ePrivacy Directive, only services without which the website would not work are considered as essential services if the visitor has explicitly requested the service used. A possible economic interest of the website operator in using a tool, e.g. Google Analytics, is irrelevant.\")), showNoticePresetGroupNotFound !== false && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.\", showNoticePresetGroupNotFound))), /*#__PURE__*/React.createElement(Notices, {\n notices: groupNotices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Provider\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"provider\",\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please name a provider!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __('A service always has an \"owner\", who processes collected data or information saved in cookies etc. Please specify which provider creates cookies and processes personal data, e.g. \"Google Ireland Limited\". If you are the provider, please enter your legal name.'))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Purpose\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"purpose\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input.TextArea, {\n autoSize: {\n minRows: 3\n }\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"The ePrivacy Directive and the GDPR require that a non-professional user understands the purpose of this service, how {{a}}personal data{{/a}} is collected and how cookies are used for this purpose.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/2021/personal-data-gdpr/\"),\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Privacy policy of the provider\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"providerPrivacyPolicy\",\n noStyle: true,\n rules: [{\n required: true,\n type: \"url\",\n message: __(\"Please provide a valid URL!\")\n }]\n }, /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).\")), /*#__PURE__*/React.createElement(Notices, {\n notices: providerPrivacyPolicyNotices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group || prevValues.name !== nextValues.name;\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue,\n setFieldsValue = _ref5.setFieldsValue;\n var isEssentialGroup = getFieldValue(\"group\") === essentialGroup.key;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Consent Forwarding Unique Name\"),\n style: {\n display: consentForwarding ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"consentForwardingUniqueName\",\n noStyle: true,\n validateTrigger: \"onBlur\",\n rules: [{\n validator: function () {\n var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(rules, value) {\n var allowOverwrite;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n allowOverwrite = consentForwarding ? !value : true;\n return _context3.abrupt(\"return\", validateUniqueCookieName(value || slugify(getFieldValue(\"name\")), allowOverwrite ? function (consentForwardingUniqueName) {\n return setFieldsValue({\n consentForwardingUniqueName: consentForwardingUniqueName\n });\n } : undefined));\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function validator(_x4, _x5) {\n return _validator.apply(this, arguments);\n }\n\n return validator;\n }()\n }]\n }, /*#__PURE__*/React.createElement(_Input, {\n placeholder: fetched ? \"\" : slugify(getFieldValue(\"name\"))\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Consent Forwarding is active. This means that all services on all available instances must be identified by a unique name in order to correctly set consent for a service.\")), isEssentialGroup && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You can define a unique name, but essential services are automatically accepted when a consent is forwarded.\")))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Legal basis\"),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"legalBasis\",\n noStyle: true,\n rules: [{\n required: true\n }]\n }, /*#__PURE__*/React.createElement(_Radio.Group, {\n disabled: isEssentialGroup\n }, /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"consent\"\n }, __(\"Consent (Opt-in)\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"legitimate-interest\"\n }, __(\"Legitimate interest (Opt-out)\")), isRealCookieBannerPreset && /*#__PURE__*/React.createElement(_Radio.Button, {\n value: \"legal-requirement\"\n }, __(\"Compliance with a legal obligation\")))), /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"5px 0px 0px\"\n }\n }, /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/\")\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__('Services can be used on various legal bases according to Art. 6 GDPR. \"Consent\" means that the user must explicitly agree to the service (opt-in). \"Legitimate interest\" means that your interest as a website operator prevails to use the service and the user must explicitly disagree (opt-out). Unless it is an essential service. Then an objection is not possible. {{strong}}A legitimate interest exists only in rare cases and only for data processing. If you are not sure, it is better to obtain consent to be on the safe side.{{/strong}}'), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n })), isEssentialGroup && !isRealCookieBannerPreset && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __('Your service is currently grouped as \"Essential\". This group implies the legitimate interest, with the only difference that this service cannot be opted out.')))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group || prevValues.ePrivacyUSA !== nextValues.ePrivacyUSA;\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"US data processing\"),\n style: {\n display: ePrivacyUSA ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"ePrivacyUSA\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"This service processes data in the USA or transfers data to US companies or servers\")), getFieldValue(\"ePrivacyUSA\") && getFieldValue(\"group\") === essentialGroup.key && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"If you use this service declaration only as a notice and the corresponding service is already embedded outside the cookie banner on the first visit to the website, it is possible that the service used in the USA is already processing data before the user has agreed to this. From a data protection perspective, the use of such services should be avoided, or the service should be embedded in the opt-in code (execution after consent). In practice, this will not always be possible.\"))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"No technical definitions\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"noTechnicalDefinitions\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script.\"))));\n});\nexport { CookieEditFormGeneralFields };","import _Checkbox from \"antd/es/checkbox\";\nimport _Input from \"antd/es/input\";\nimport _Form from \"antd/es/form\";\nimport _Select from \"antd/es/select\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, isHost } from \"../../../../utils\";\nimport { PlusOutlined, QuestionCircleFilled, DeleteOutlined, MenuOutlined } from \"@ant-design/icons\";\nimport { FormHeadline } from \"../../..\";\nimport { CookieEditFormLayout, technicalDefinitionDefaults } from \"..\";\nimport { isUrl } from \"@devowl-wp/headless-content-unblocker\";\nimport { SortableHandle, SortableElement, SortableContainer } from \"react-sortable-hoc\";\nimport { getCookieTypeLocalizationMap } from \"@devowl-wp/react-cookie-banner\";\nvar WP_LIST_TABLE_FORM_ITEM_PROPS = {\n labelCol: {\n span: 0\n },\n wrapperCol: {\n span: 24\n },\n style: {\n margin: 0\n }\n};\nvar CookieEditFormTechnicalFields = observer(function () {\n var cookieTypeLocalized = getCookieTypeLocalizationMap();\n var tbodyRef = useRef();\n\n var _useMemo = useMemo(function () {\n return {\n DragHandle: SortableHandle(function () {\n return /*#__PURE__*/React.createElement(MenuOutlined, {\n style: {\n cursor: \"grab\",\n color: \"#999\",\n marginTop: 5\n },\n className: \"button button-small button-link\"\n });\n }),\n SortableItem: SortableElement(function (props) {\n return /*#__PURE__*/React.createElement(\"tr\", props);\n }),\n SortableBody: SortableContainer(function (props) {\n return /*#__PURE__*/React.createElement(\"tbody\", _extends({\n ref: tbodyRef\n }, props));\n })\n };\n }, []),\n DragHandle = _useMemo.DragHandle,\n SortableItem = _useMemo.SortableItem,\n SortableBody = _useMemo.SortableBody;\n\n var handleSortStart = useCallback(function (_ref) {\n var node = _ref.node,\n helper = _ref.helper;\n node.childNodes.forEach(function (td, index) {\n helper.childNodes[index].style.width = \"\".concat(td.offsetWidth, \"px\");\n });\n }, []);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.noTechnicalDefinitions !== nextValues.noTechnicalDefinitions || prevValues.technicalDefinitions.length !== nextValues.technicalDefinitions.length;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(_Form.List, {\n name: \"technicalDefinitions\"\n }, function (fields, _ref3) {\n var add = _ref3.add,\n remove = _ref3.remove,\n move = _ref3.move;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span,\n description: __(\"For each service you use, you should specify all cookies that are used by it. You can find this out in the developer console of your browser. Please note that there are several types of cookies and that the law requires that you inform your visitors not only about (HTTP) cookies, but also about cookie-like information.\")\n }, __(\"Technical cookie information\")), /*#__PURE__*/React.createElement(\"table\", {\n className: \"wp-list-table widefat fixed striped table-view-list\",\n style: {\n marginBottom: 25\n }\n }, /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", null, /*#__PURE__*/React.createElement(\"td\", {\n width: 45,\n align: \"right\"\n }, \"\\xA0\"), /*#__PURE__*/React.createElement(\"td\", {\n width: 150\n }, __(\"Cookie type\")), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: _i(__(\"Every cookie has a technical name, which you must provide. If a cookie name is dynamically composed, please use an asterisk ({{code}}*{{/code}}) as a wildcard (placeholder).\"), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Technical cookie name\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"Every cookie is associated to a domain or hostname.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Technical cookie host\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", {\n width: 250\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Cookie duration\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"Each cookie serves a purpose (e.g. user identification for tracking), which should be explained.\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Purpose\"), \" \", /*#__PURE__*/React.createElement(QuestionCircleFilled, null)))), /*#__PURE__*/React.createElement(\"td\", {\n width: 70,\n align: \"right\"\n }, \"\\xA0\"))), /*#__PURE__*/React.createElement(SortableBody, {\n useDragHandle: true,\n onSortEnd: function onSortEnd(_ref4) {\n var oldIndex = _ref4.oldIndex,\n newIndex = _ref4.newIndex;\n return move(oldIndex, newIndex);\n },\n onSortStart: handleSortStart,\n helperContainer: function helperContainer() {\n return tbodyRef.current;\n }\n }, fields.map(function (field, index) {\n return /*#__PURE__*/React.createElement(SortableItem, {\n key: field.key,\n index: index\n }, /*#__PURE__*/React.createElement(\"td\", null, fields.length > 1 ? /*#__PURE__*/React.createElement(DragHandle, null) : undefined), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"type\"],\n name: [field.name, \"type\"],\n rules: [{\n required: true,\n message: __(\"Please provide a cookie type!\")\n }]\n }), /*#__PURE__*/React.createElement(_Select, null, Object.keys(cookieTypeLocalized).map(function (key) {\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: key,\n value: key,\n style: {\n display: key === \"flash\" ? \"none\" : undefined\n }\n }, cookieTypeLocalized[key].name);\n })))), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"name\"],\n name: [field.name, \"name\"],\n rules: [{\n required: true,\n message: __(\"Please provide a technical cookie name!\")\n }]\n }), /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical, _nextValues$technical;\n\n return ((_prevValues$technical = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical === void 0 ? void 0 : _prevValues$technical.name) !== ((_nextValues$technical = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical === void 0 ? void 0 : _nextValues$technical.name);\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue;\n var cookieName = getFieldValue([\"technicalDefinitions\", field.name, \"name\"]);\n var notSupportedCookieNamePlaceholders = [/\\[/gm, [/([{]+)/gm, function (match) {\n return match.length === 1;\n }], /\\(/gm];\n return notSupportedCookieNamePlaceholders.filter(function (r) {\n return Array.isArray(r) ? r[0].test(cookieName) && cookieName.match(r[0]).filter(r[1]).length > 0 : r.test(cookieName);\n }).length > 0 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"Are you sure this is the name of the cookie? It seems like you are using a placeholder that is not supported. Please use an asterisk ({{code}}*{{/code}}) as a placeholder if the cookie name is dynamically composed.\"), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical2, _nextValues$technical2;\n\n return ((_prevValues$technical2 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical2 === void 0 ? void 0 : _prevValues$technical2.type) !== ((_nextValues$technical2 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical2 === void 0 ? void 0 : _nextValues$technical2.type);\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n var type = getFieldValue([\"technicalDefinitions\", field.name, \"type\"]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"host\"],\n name: [field.name, \"host\"],\n rules: [{\n validator: function validator(_, value) {\n return ([\"local\", \"session\", \"indexedDb\"].indexOf(type) > -1 ? isUrl(value) : isHost(value)) || value === \"\" && type !== \"http\" ? Promise.resolve() : Promise.reject(__(\"Please provide a valid hostname!\"));\n }\n }]\n }), /*#__PURE__*/React.createElement(_Input, null)), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical3, _nextValues$technical3;\n\n return ((_prevValues$technical3 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical3 === void 0 ? void 0 : _prevValues$technical3.host) !== ((_nextValues$technical3 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical3 === void 0 ? void 0 : _nextValues$technical3.host);\n }\n }, function (_ref7) {\n var getFieldValue = _ref7.getFieldValue;\n var host = getFieldValue([\"technicalDefinitions\", field.name, \"host\"]);\n return host.startsWith(\"*.\") && host.length > 2 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.\", host.substr(2)), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })));\n }));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical4, _nextValues$technical4;\n\n return ((_prevValues$technical4 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical4 === void 0 ? void 0 : _prevValues$technical4.type) !== ((_nextValues$technical4 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical4 === void 0 ? void 0 : _nextValues$technical4.type);\n }\n }, function (_ref8) {\n var getFieldValue = _ref8.getFieldValue;\n var type = getFieldValue([\"technicalDefinitions\", field.name, \"type\"]);\n return [\"local\", \"session\", \"indexedDb\", \"flash\"].indexOf(type) > -1 ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, {\n fieldKey: [field.fieldKey, \"sessionDuration\"],\n name: [field.name, \"sessionDuration\"],\n noStyle: true,\n valuePropName: \"checked\"\n }), /*#__PURE__*/React.createElement(_Checkbox, {\n style: {\n float: \"left\",\n marginTop: 5\n }\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: __(\"This cookie is active as long as the session is active\")\n }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Session\"))))), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n var _prevValues$technical5, _nextValues$technical5;\n\n return ((_prevValues$technical5 = prevValues.technicalDefinitions[field.name]) === null || _prevValues$technical5 === void 0 ? void 0 : _prevValues$technical5.sessionDuration) !== ((_nextValues$technical5 = nextValues.technicalDefinitions[field.name]) === null || _nextValues$technical5 === void 0 ? void 0 : _nextValues$technical5.sessionDuration);\n }\n }, function (_ref9) {\n var getFieldValue = _ref9.getFieldValue;\n var sessionDuration = getFieldValue([\"technicalDefinitions\", field.name, \"sessionDuration\"]);\n return /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"duration\"],\n name: [field.name, \"duration\"],\n rules: [{\n required: !sessionDuration,\n message: __(\"Please provide a valid duration!\")\n }]\n }), /*#__PURE__*/React.createElement(_Input, {\n min: \"0\",\n addonAfter: /*#__PURE__*/React.createElement(_Form.Item, {\n name: [field.name, \"durationUnit\"],\n noStyle: true,\n rules: [{\n required: true,\n message: __(\"Please provide an unit!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, null, /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"s\"\n }, __(\"second(s)\")), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"m\"\n }, __(\"minute(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"h\"\n }, __(\"hour(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"d\"\n }, __(\"day(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"mo\"\n }, __(\"month(s)\"), \" \"), /*#__PURE__*/React.createElement(_Select.Option, {\n value: \"y\"\n }, __(\"year(s)\"), \" \"))),\n type: \"number\",\n style: {\n maxWidth: 200,\n display: sessionDuration ? \"none\" : undefined\n }\n }));\n }));\n })), /*#__PURE__*/React.createElement(\"td\", null, /*#__PURE__*/React.createElement(_Form.Item, _extends({}, field, WP_LIST_TABLE_FORM_ITEM_PROPS, {\n fieldKey: [field.fieldKey, \"purpose\"],\n name: [field.name, \"purpose\"]\n }), /*#__PURE__*/React.createElement(_Input.TextArea, {\n rows: 1,\n autoSize: {\n maxRows: 3\n }\n }))), /*#__PURE__*/React.createElement(\"td\", null, fields.length > 1 ? /*#__PURE__*/React.createElement(\"a\", {\n className: \"button button-small\",\n onClick: function onClick() {\n remove(field.name);\n }\n }, /*#__PURE__*/React.createElement(DeleteOutlined, null)) : null));\n })), /*#__PURE__*/React.createElement(\"tfoot\", null, /*#__PURE__*/React.createElement(\"tr\", null, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: 7,\n align: \"right\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n className: \"button button-primary alignright\",\n onClick: function onClick() {\n add(technicalDefinitionDefaults);\n }\n }, /*#__PURE__*/React.createElement(PlusOutlined, null), \" \", __(\"Add another cookie definition\")))))));\n });\n });\n});\nexport { CookieEditFormTechnicalFields };","/**\n * Is a passed host string valid?\n *\n * @param url\n * @see https://stackoverflow.com/a/106223/5506547\n */\nfunction isHost(url) {\n return /^\\.?(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/gm.test(url);\n}\n\nexport { isHost };","import _Input from \"antd/es/input\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport _Form from \"antd/es/form\";\nimport _Switch from \"antd/es/switch\";\nimport { observer } from \"mobx-react\";\nimport { CookieEditFormLayout } from \"..\";\nimport { __ } from \"../../../../utils\";\nimport { useStores } from \"../../../../store\";\nimport { useRouteCookie } from \"../../../../hooks\";\nimport { LearnMoreTag } from \"../../..\";\n/**\n * Common manager form items. It provides fields for \"This is manger XY\" and in/out events.\n * If you add another manager, please also consider to add the meta fields to REST and initial values\n * of the cookie form itself.\n */\n\nvar CookieEditFormManagerFields = observer(function (_ref) {\n var manager = _ref.manager,\n onlyWhenManagerIs = _ref.onlyWhenManagerIs,\n hasManagerAttributeName = _ref.hasManagerAttributeName,\n thisIsManagerAttributeName = _ref.thisIsManagerAttributeName,\n inEventNameAttributeName = _ref.inEventNameAttributeName,\n outEventNameAttributeName = _ref.outEventNameAttributeName;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n _useStores$optionStor = _useStores.optionStore,\n setCookiesViaManager = _useStores$optionStor.setCookiesViaManager,\n hasManager = _useStores$optionStor[hasManagerAttributeName],\n isPro = _useStores$optionStor.others.isPro;\n\n var essentialGroup = cookieStore.essentialGroup;\n\n var _useRouteCookie = useRouteCookie(),\n cookie = _useRouteCookie.cookie;\n\n return setCookiesViaManager === onlyWhenManagerIs && isPro && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: hasManager && cookie.key !== hasManager ? __(\"You have already defined a %s service.\", manager) : \"\"\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(_Form.Item, {\n name: thisIsManagerAttributeName,\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, {\n disabled: hasManager && cookie.key !== hasManager\n })), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"Opt-in script below loads %s\", manager))))), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, curValues) {\n return prevValues[thisIsManagerAttributeName] !== curValues[thisIsManagerAttributeName] || prevValues.group !== curValues.group;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var isActive = getFieldValue(thisIsManagerAttributeName);\n var group = getFieldValue(\"group\");\n return isActive && group !== essentialGroup.key && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You have defined %1$s in a non-essential service group. In our legal opinion, this is the only way to use %1$s legally. However, please note that if a user doesn't consent to load %1$s, opt-in and opt-out events will not be sent to %1$s. Real Cookie Banner offers you the possibility to specify a fallback HTML/JavaScript for this case.\", manager))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, curValues) {\n return prevValues[thisIsManagerAttributeName] !== curValues[thisIsManagerAttributeName] || prevValues[inEventNameAttributeName] !== curValues[inEventNameAttributeName] || prevValues[outEventNameAttributeName] !== curValues[outEventNameAttributeName];\n }\n }, function (_ref3) {\n var getFieldValue = _ref3.getFieldValue;\n var active = getFieldValue(thisIsManagerAttributeName);\n var inEventName = getFieldValue(inEventNameAttributeName);\n var outEventName = getFieldValue(outEventNameAttributeName);\n return !active && /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Event names for %s\", manager)\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: inEventNameAttributeName,\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input, {\n addonBefore: __(\"Opt-in\"),\n style: {\n maxWidth: 400,\n marginRight: 10,\n marginBottom: 5\n }\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n name: outEventNameAttributeName,\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Input, {\n addonBefore: __(\"Opt-out\"),\n style: {\n maxWidth: 400,\n marginRight: 10,\n marginBottom: 5\n }\n })), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/\")\n })), (inEventName.length > 0 || outEventName.length > 0) && !hasManager && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You have not yet defined a %s service. To use event names, you must create a %s service.\", manager, manager))));\n }));\n});\nexport { CookieEditFormManagerFields };","var DYNAMICS_VARIABLE_REGEXP = /{{([A-Za-z0-9_]+)}}/gm;\n/**\n * Takes any string and replaces `{{myVariable}}` with the value of the passed `dynamics` map.\n */\n\nfunction applyDynamicsToHtml(src, dynamics) {\n return src.replace(DYNAMICS_VARIABLE_REGEXP, function (fullMatch, variableName) {\n return Object.prototype.hasOwnProperty.call(dynamics, variableName) ? dynamics[variableName] : fullMatch;\n });\n}\n\nexport { applyDynamicsToHtml, DYNAMICS_VARIABLE_REGEXP };","import _Form from \"antd/es/form\";\nimport _Input from \"antd/es/input\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../../../utils\";\nimport { DYNAMICS_VARIABLE_REGEXP } from \"@devowl-wp/headless-content-unblocker\";\nvar DYNAMICS_SEARCH_IN = [\"codeOptIn\", \"codeOptOut\", \"codeOnPageLoad\"];\n\n/**\n * Provide dynamic variables in `codeOptIn`, `codeOptOut` and `codeOnPageLoad`.\n */\nvar CookieEditFormCodeDynamics = observer(function (_ref) {\n var dynamicFields = _ref.dynamicFields;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return DYNAMICS_SEARCH_IN.map(function (k) {\n return prevValues[k] !== nextValues[k];\n }).filter(Boolean).length > 0;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var searchInResolved = DYNAMICS_SEARCH_IN.map(function (k) {\n return getFieldValue(k);\n }).join(\"\");\n var matches = Array.from(searchInResolved.matchAll(DYNAMICS_VARIABLE_REGEXP)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n m = _ref4[1];\n\n return m;\n });\n var added = [];\n return matches ? matches.map(function (name) {\n var formName = [\"codeDynamics\", name];\n\n var _ref5 = (dynamicFields === null || dynamicFields === void 0 ? void 0 : dynamicFields[name]) || {},\n label = _ref5.label,\n _ref5$invalidMessage = _ref5.invalidMessage,\n invalidMessage = _ref5$invalidMessage === void 0 ? __(\"Please fill in a value!\") : _ref5$invalidMessage,\n example = _ref5.example,\n expression = _ref5.expression,\n hint = _ref5.hint;\n\n if (added.indexOf(name) > -1) {\n return null;\n }\n\n added.push(name);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n key: name,\n label: label || /*#__PURE__*/React.createElement(\"code\", null, name),\n required: true\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: formName,\n rules: [{\n required: true,\n pattern: expression ? new RegExp(expression) : undefined,\n message: invalidMessage\n }]\n }, /*#__PURE__*/React.createElement(_Input, {\n placeholder: example ? \"\".concat(__(\"e. g.\"), \" \").concat(example) : undefined\n })), !!hint && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\",\n style: {\n margin: \"10px 0 5px\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: hint\n }\n })));\n }) : null;\n });\n});\nexport { CookieEditFormCodeDynamics };","import _Form from \"antd/es/form\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport { useMemo } from \"react\";\nimport { _i, __ } from \"../../../../utils\";\nimport { observer } from \"mobx-react\";\nimport { useStores } from \"../../../../store\";\nvar NoticeFormItemContainsSkipIfActiveAttribute = observer(function (_ref) {\n var name = _ref.name;\n\n var _useStores = useStores(),\n activePlugins = _useStores.optionStore.others.activePlugins;\n\n var activePluginKeys = useMemo(function () {\n return Object.keys(activePlugins);\n }, [activePlugins]);\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues[name] !== nextValues[name];\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n var value = getFieldValue(name); // Find `skip-if-active` and their active plugins\n\n var matches = _toConsumableArray(value.matchAll(/\\s+(skip-if-active=\")([^\"]+)(\")/gm)).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 3),\n plugins = _ref4[2];\n\n return plugins.split(\",\").filter(function (plugin) {\n return activePluginKeys.indexOf(plugin) > -1;\n });\n }).flat();\n\n var uniq = matches.filter(function (plugin, i) {\n return matches.indexOf(plugin) === i;\n });\n\n if (uniq.length === 0) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"The code above contains HTML tags that are skipped when one of the following plugins is active: {{strong/}}. {{i}}What does this mean for me?{{/i}} In most cases, another plugin will take over the execution of the technical code, and you have to create a corresponding content blocker.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null, uniq.map(function (plugin) {\n return activePlugins[plugin];\n }).join(\", \")),\n i: /*#__PURE__*/React.createElement(\"i\", null)\n })));\n });\n});\nexport { NoticeFormItemContainsSkipIfActiveAttribute };","import _Switch from \"antd/es/switch\";\nimport _Form from \"antd/es/form\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { FormHeadline, CodeMirror, Notices } from \"../../..\";\nimport { CookieEditFormLayout } from \"..\";\nimport { __, _i } from \"../../../../utils\";\nimport { MANAGER_GTM_LABEL, MANAGER_MTM_LABEL } from \"../..\";\nimport { useStores } from \"../../../../store\";\nimport { CookieEditFormManagerFields, CookieEditFormCodeDynamics, NoticeFormItemContainsSkipIfActiveAttribute } from \".\";\nvar CookieEditFormHandlingFields = observer(function (_ref) {\n var notices = _ref.notices,\n dynamicFields = _ref.dynamicFields;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n _useStores$optionStor = _useStores.optionStore,\n setCookiesViaManager = _useStores$optionStor.setCookiesViaManager,\n isPro = _useStores$optionStor.others.isPro;\n\n var essentialGroup = cookieStore.essentialGroup; // CodeMirror does not support \"display:none;\", we need to hide it in a hacky way\n\n var createHiddenFormItemsWithCodeMirror = useCallback(function (visible) {\n return {\n opacity: visible ? undefined : 0,\n height: visible ? undefined : 0,\n margin: visible ? undefined : 0\n };\n }, []);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormHeadline, {\n offset: CookieEditFormLayout.labelCol.span,\n description: setCookiesViaManager === \"none\" ? __(\"Define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service or when a page is loaded. It is important to define the executed code correctly, as this ensures that scripts are executed and cookies are set only after the user's consent.\") : __(\"Define the %1$s event that should be thrown in the data layer when a visitor decides to accept or reject this service. The event can be used as a trigger in %1$s. For users who do not allow to use %1$s a fallback can be defined. You can define HTML and JavaScript code that is executed when a visitor decides to accept or reject this service, or when a page is loaded. It is important to define the event names and executed code correctly, as this will ensure that scripts are executed and cookies are only set with the user's consent.\", setCookiesViaManager === \"googleTagManager\" ? MANAGER_GTM_LABEL : MANAGER_MTM_LABEL)\n }, __(\"Technical handling\")), /*#__PURE__*/React.createElement(CookieEditFormManagerFields, {\n manager: MANAGER_GTM_LABEL,\n onlyWhenManagerIs: \"googleTagManager\",\n hasManagerAttributeName: \"hasGTM\",\n thisIsManagerAttributeName: \"thisIsGoogleTagManager\",\n inEventNameAttributeName: \"googleTagManagerInEventName\",\n outEventNameAttributeName: \"googleTagManagerOutEventName\"\n }), /*#__PURE__*/React.createElement(CookieEditFormManagerFields, {\n manager: MANAGER_MTM_LABEL,\n onlyWhenManagerIs: \"matomoTagManager\",\n hasManagerAttributeName: \"hasMTM\",\n thisIsManagerAttributeName: \"thisIsMatomoTagManager\",\n inEventNameAttributeName: \"matomoTagManagerInEventName\",\n outEventNameAttributeName: \"matomoTagManagerOutEventName\"\n }), /*#__PURE__*/React.createElement(CookieEditFormCodeDynamics, {\n dynamicFields: dynamicFields\n }), (notices === null || notices === void 0 ? void 0 : notices.length) > 0 && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span,\n span: CookieEditFormLayout.wrapperCol.span\n }\n }, /*#__PURE__*/React.createElement(Notices, {\n notices: notices\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on opt-in\")\n }, setCookiesViaManager === \"googleTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsGoogleTagManager !== nextValues.thisIsGoogleTagManager;\n }\n }, function (_ref2) {\n var getFieldValue = _ref2.getFieldValue;\n return !getFieldValue(\"thisIsGoogleTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptInNoGoogleTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_GTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), setCookiesViaManager === \"matomoTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsMatomoTagManager !== nextValues.thisIsMatomoTagManager;\n }\n }, function (_ref3) {\n var getFieldValue = _ref3.getFieldValue;\n return !getFieldValue(\"thisIsMatomoTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptInNoMatomoTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_MTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptIn\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOptIn\"\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref4) {\n var getFieldValue = _ref4.getFieldValue;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on opt-out\"),\n style: createHiddenFormItemsWithCodeMirror(getFieldValue(\"group\") !== essentialGroup.key)\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.noTechnicalDefinitions !== nextValues.noTechnicalDefinitions;\n }\n }, function (_ref5) {\n var getFieldValue = _ref5.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutDelete\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", __(\"Delete all first-party cookies after opt-out. First-party cookies are only cookies that are set by or for this domain.\")));\n }), setCookiesViaManager === \"googleTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsGoogleTagManager !== nextValues.thisIsGoogleTagManager;\n }\n }, function (_ref6) {\n var getFieldValue = _ref6.getFieldValue;\n return !getFieldValue(\"thisIsGoogleTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutNoGoogleTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_GTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), setCookiesViaManager === \"matomoTagManager\" && isPro && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.thisIsMatomoTagManager !== nextValues.thisIsMatomoTagManager;\n }\n }, function (_ref7) {\n var getFieldValue = _ref7.getFieldValue;\n return !getFieldValue(\"thisIsMatomoTagManager\") && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"4px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOutNoMatomoTagManager\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, null)), /*#__PURE__*/React.createElement(\"span\", null, \"\\xA0\\xA0\", _i(__(\"Only run this script if the user has {{u}}not{{/u}} allowed to use %s\", MANAGER_MTM_LABEL), {\n u: /*#__PURE__*/React.createElement(\"u\", null)\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOptOut\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOptOut\"\n })));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Code executed on page load\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"codeOnPageLoad\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(CodeMirror, {\n settings: window.cm_settings\n })), /*#__PURE__*/React.createElement(NoticeFormItemContainsSkipIfActiveAttribute, {\n name: \"codeOnPageLoad\"\n })));\n});\nexport { CookieEditFormHandlingFields };","import _Spin from \"antd/es/spin\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _Select from \"antd/es/select\";\nimport _Checkbox from \"antd/es/checkbox\";\nimport _Skeleton from \"antd/es/skeleton\";\nimport _message from \"antd/es/message\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _Form from \"antd/es/form\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { CookieModel } from \"../../../models\";\nimport { __, scrollTo, slugify, base64EncodeUnicodeSafe } from \"../../../utils\";\nimport { useStores } from \"../../../store\";\nimport { useHistory, Prompt } from \"react-router-dom\";\nimport { useRouteCookie } from \"../../../hooks\";\nimport { CookieEditFormGeneralFields, CookieEditFormTechnicalFields, CookieEditFormHandlingFields } from \".\";\nimport { LearnMoreTag } from \"../..\";\nvar CookieEditFormLayout = {\n labelCol: {\n span: 6\n },\n wrapperCol: {\n span: 16\n }\n};\nvar technicalDefinitionDefaults = {\n type: \"http\",\n name: \"\",\n host: \"\",\n duration: undefined,\n durationUnit: \"y\",\n sessionDuration: false,\n purpose: \"\"\n};\nvar CookieEditForm = observer(function (_ref) {\n var _cookieStore$groups$s, _cookieStore$groups$s2, _presetModel$attribut, _presetModel$attribut2, _presetModel$attribut4, _presetModel$attribut5;\n\n var preset = _ref.preset,\n attributes = _ref.attributes,\n _ref$navigateAfterCre = _ref.navigateAfterCreation,\n navigateAfterCreation = _ref$navigateAfterCre === void 0 ? true : _ref$navigateAfterCre,\n _ref$scrollToTop = _ref.scrollToTop,\n scrollToTop = _ref$scrollToTop === void 0 ? true : _ref$scrollToTop,\n onCreated = _ref.onCreated;\n\n var _useRouteCookie = useRouteCookie(),\n _useRouteCookie$route = _useRouteCookie.routeGroup,\n group = _useRouteCookie$route.group,\n link = _useRouteCookie$route.link,\n cookie = _useRouteCookie.cookie,\n id = _useRouteCookie.id,\n queried = _useRouteCookie.queried,\n fetched = _useRouteCookie.fetched;\n\n var _Form$useForm = _Form.useForm(),\n _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n form = _Form$useForm2[0];\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n isBusy = _useState2[0],\n setIsBusy = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n hasChanges = _useState4[0],\n setHasChanges = _useState4[1];\n\n var history = useHistory();\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore,\n useEncodedStringForScriptInputs = _useStores.optionStore.others.useEncodedStringForScriptInputs;\n\n var essentialGroup = cookieStore.essentialGroup;\n var presetModel = (cookie === null || cookie === void 0 ? void 0 : cookie.presetModel) || cookieStore.presetsCookie.get(preset === null || preset === void 0 ? void 0 : preset.identifier); // Determine the group to use for a given preset, otherwise use current opened group tab\n\n var useGroup = attributes ? attributes.group ? ((_cookieStore$groups$s = cookieStore.groups.sortedGroups.filter(function (_ref2) {\n var name = _ref2.data.name;\n return name === attributes.group;\n })) === null || _cookieStore$groups$s === void 0 ? void 0 : (_cookieStore$groups$s2 = _cookieStore$groups$s[0]) === null || _cookieStore$groups$s2 === void 0 ? void 0 : _cookieStore$groups$s2.key) || \"preset-group-not-found\" : undefined : group.key;\n var allowContentBlockerCreation = Object.keys((preset === null || preset === void 0 ? void 0 : preset.contentBlockerPresets) || []).length > 0;\n var createContentBlockerNotice = (attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlockerNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut = presetModel.attributes) === null || _presetModel$attribut === void 0 ? void 0 : _presetModel$attribut.createContentBlockerNotice);\n var showOptInNoticeScanned = !!(presetModel !== null && presetModel !== void 0 && presetModel.data.scanned && (_presetModel$attribut2 = presetModel.attributes) !== null && _presetModel$attribut2 !== void 0 && _presetModel$attribut2.codeOptIn && [\"wordpress-comments\"].indexOf(presetModel.data.identifier) === -1);\n var initialValues = fetched ? {\n name: cookie.data.title.raw,\n status: cookie.data.status,\n group: group.key || undefined,\n // Can be `0`, so fallback to no selection (e.g. Cookie form modal in Content Blocker)\n purpose: cookie.data.content.raw,\n provider: cookie.data.meta.provider,\n providerPrivacyPolicy: cookie.data.meta.providerPrivacyPolicy,\n consentForwardingUniqueName: cookie.data.meta.consentForwardingUniqueName || cookie.data.slug,\n noTechnicalDefinitions: cookie.data.meta.noTechnicalDefinitions,\n legalBasis: cookie.data.meta.legalBasis,\n ePrivacyUSA: cookie.data.meta.ePrivacyUSA,\n technicalDefinitions: JSON.parse(JSON.stringify(cookie.technicalDefinitions || \"[]\")),\n codeDynamics: JSON.parse(JSON.stringify(cookie.codeDynamics || \"{}\")),\n thisIsGoogleTagManager: cookie.data.meta.thisIsGoogleTagManager,\n googleTagManagerInEventName: cookie.data.meta.googleTagManagerInEventName,\n googleTagManagerOutEventName: cookie.data.meta.googleTagManagerOutEventName,\n thisIsMatomoTagManager: cookie.data.meta.thisIsMatomoTagManager,\n matomoTagManagerInEventName: cookie.data.meta.matomoTagManagerInEventName,\n matomoTagManagerOutEventName: cookie.data.meta.matomoTagManagerOutEventName,\n codeOptIn: cookie.data.meta.codeOptIn,\n codeOptInNoGoogleTagManager: cookie.data.meta.codeOptInNoGoogleTagManager,\n codeOptInNoMatomoTagManager: cookie.data.meta.codeOptInNoMatomoTagManager,\n codeOptOut: cookie.data.meta.codeOptOut,\n codeOptOutNoGoogleTagManager: cookie.data.meta.codeOptOutNoGoogleTagManager,\n codeOptOutNoMatomoTagManager: cookie.data.meta.codeOptOutNoMatomoTagManager,\n codeOnPageLoad: cookie.data.meta.codeOnPageLoad,\n codeOptOutDelete: cookie.data.meta.codeOptOutDelete\n } : {\n name: (attributes === null || attributes === void 0 ? void 0 : attributes.name) || \"\",\n status: \"publish\",\n group: typeof useGroup === \"number\" ? // Can be `0`, so fallback to no selection (e.g. Cookie form modal in Content Blocker)\n useGroup || undefined : undefined,\n purpose: (attributes === null || attributes === void 0 ? void 0 : attributes.purpose) || \"\",\n provider: (attributes === null || attributes === void 0 ? void 0 : attributes.provider) || \"\",\n providerPrivacyPolicy: (attributes === null || attributes === void 0 ? void 0 : attributes.providerPrivacyPolicy) || \"\",\n consentForwardingUniqueName: (attributes === null || attributes === void 0 ? void 0 : attributes.consentForwardingUniqueName) || (preset === null || preset === void 0 ? void 0 : preset.identifier) || \"\",\n noTechnicalDefinitions: (attributes === null || attributes === void 0 ? void 0 : attributes.noTechnicalDefinitions) || false,\n legalBasis: (attributes === null || attributes === void 0 ? void 0 : attributes.legalBasis) || \"consent\",\n ePrivacyUSA: (attributes === null || attributes === void 0 ? void 0 : attributes.ePrivacyUSA) || false,\n technicalDefinitions: attributes !== null && attributes !== void 0 && attributes.technicalDefinitions ? JSON.parse(JSON.stringify(attributes.technicalDefinitions)) : [technicalDefinitionDefaults],\n codeDynamics: (attributes === null || attributes === void 0 ? void 0 : attributes.codeDynamics) || {},\n thisIsGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.thisIsGoogleTagManager) || false,\n googleTagManagerInEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.googleTagManagerInEventName) || \"\",\n googleTagManagerOutEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.googleTagManagerOutEventName) || \"\",\n thisIsMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.thisIsMatomoTagManager) || false,\n matomoTagManagerInEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.matomoTagManagerInEventName) || \"\",\n matomoTagManagerOutEventName: (attributes === null || attributes === void 0 ? void 0 : attributes.matomoTagManagerOutEventName) || \"\",\n codeOptIn: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptIn) || \"\",\n codeOptInNoGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptInNoGoogleTagManager) || false,\n codeOptInNoMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptInNoMatomoTagManager) || false,\n codeOptOut: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOut) || \"\",\n codeOnPageLoad: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOnPageLoad) || \"\",\n codeOptOutNoGoogleTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutNoGoogleTagManager) || false,\n codeOptOutNoMatomoTagManager: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutNoMatomoTagManager) || false,\n codeOptOutDelete: (attributes === null || attributes === void 0 ? void 0 : attributes.codeOptOutDelete) || false,\n createContentBlocker: typeof (attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlocker) === \"boolean\" ? attributes.createContentBlocker : allowContentBlockerCreation && !(attributes !== null && attributes !== void 0 && attributes.deactivateAutomaticContentBlockerCreation),\n createContentBlockerId: attributes === null || attributes === void 0 ? void 0 : attributes.createContentBlockerId,\n presetCheck: !preset\n }; // Initially load the cookie if not yet done\n\n useEffect(function () {\n if (queried && !fetched) {\n // Fetch the cookie within the correct group collection so it gets removed\n // from the original cookie group when it got moved to another cookie group.\n var groupToFetch = _toConsumableArray(cookieStore.groups.entries.values()).filter(function (_ref3) {\n var cookies = _ref3.cookies;\n return cookies.entries.get(id);\n })[0] || group;\n groupToFetch.cookies.getSingle({\n params: {\n id: id,\n context: \"edit\"\n }\n });\n }\n }, [queried, fetched]); // Lazy load attributes of preset model\n\n useEffect(function () {\n if (presetModel && !presetModel.attributes) {\n presetModel.fetchAttributes();\n }\n }, [presetModel]); // Scroll to top when opening the form\n\n useEffect(function () {\n if (scrollToTop) {\n scrollTo(0);\n }\n }, []);\n var handleSave = useCallback( /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {\n var _document$querySelect, codeToBase64, name, status, purpose, noTechnicalDefinitions, technicalDefinitions, _group, codeDynamics, createContentBlocker, createContentBlockerId, consentForwardingUniqueName, codeOptIn, codeOptOut, codeOnPageLoad, meta, newMeta, _useGroup, draft, noticeId, _document$querySelect2;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n\n // Pass as base64-encoded string to avoid Cloudflare XSS issues\n codeToBase64 = function codeToBase64(str) {\n return useEncodedStringForScriptInputs ? \"encodedScript:\".concat(base64EncodeUnicodeSafe(str)) : str;\n };\n\n name = values.name, status = values.status, purpose = values.purpose, noTechnicalDefinitions = values.noTechnicalDefinitions, technicalDefinitions = values.technicalDefinitions, _group = values.group, codeDynamics = values.codeDynamics, createContentBlocker = values.createContentBlocker, createContentBlockerId = values.createContentBlockerId, consentForwardingUniqueName = values.consentForwardingUniqueName, codeOptIn = values.codeOptIn, codeOptOut = values.codeOptOut, codeOnPageLoad = values.codeOnPageLoad, meta = _objectWithoutProperties(values, [\"name\", \"status\", \"purpose\", \"noTechnicalDefinitions\", \"technicalDefinitions\", \"group\", \"codeDynamics\", \"createContentBlocker\", \"createContentBlockerId\", \"consentForwardingUniqueName\", \"codeOptIn\", \"codeOptOut\", \"codeOnPageLoad\"]);\n newMeta = _objectSpread(_objectSpread({}, meta), {}, {\n codeOptIn: codeToBase64(codeOptIn),\n codeOptOut: codeToBase64(codeOptOut),\n codeOnPageLoad: codeToBase64(codeOnPageLoad),\n noTechnicalDefinitions: noTechnicalDefinitions,\n codeDynamics: JSON.stringify(codeDynamics),\n // Still hold the data of `technicalDefinitions` in database so it is not cleared when activating this option\n technicalDefinitions: JSON.stringify(noTechnicalDefinitions ? initialValues.technicalDefinitions : technicalDefinitions),\n consentForwardingUniqueName: consentForwardingUniqueName || slugify(name)\n });\n delete newMeta.presetCheck;\n\n if (!queried) {\n _context.next = 15;\n break;\n }\n\n cookie.setName(name);\n cookie.setStatus(status);\n cookie.setPurpose(purpose);\n cookie.setMeta(newMeta);\n cookie.setGroup(_group);\n _context.next = 13;\n return cookie.patch();\n\n case 13:\n _context.next = 20;\n break;\n\n case 15:\n _useGroup = cookieStore.groups.entries.get(_group);\n draft = new CookieModel(_useGroup.cookies, {\n title: {\n rendered: name\n },\n content: {\n rendered: purpose,\n protected: false\n },\n status: status,\n meta: _objectSpread(_objectSpread({}, newMeta), {}, {\n presetId: preset === null || preset === void 0 ? void 0 : preset.identifier,\n presetVersion: preset === null || preset === void 0 ? void 0 : preset.version\n })\n });\n _context.next = 19;\n return draft.persist();\n\n case 19:\n onCreated === null || onCreated === void 0 ? void 0 : onCreated(draft);\n\n case 20:\n setHasChanges(false);\n\n _message.success(__(\"You have successfully saved the service.\") + (createContentBlocker ? \" \".concat(__(\"Continue with the corresponding Content Blocker!\")) : \"\")); // Remove the item from the \"Services with empty privacy policy\" global notice\n\n\n noticeId = \"#rcb-services-with-empty-privacy-policy-notice\";\n (_document$querySelect = document.querySelector(\"\".concat(noticeId, \" li[data-id=\\\"\").concat(id, \"\\\"]\"))) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.classList.add(\"hidden\");\n\n if (!document.querySelectorAll(\"\".concat(noticeId, \" > ul > li:not(.hidden)\")).length) {\n (_document$querySelect2 = document.querySelector(noticeId)) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.remove();\n } // Navigate back after creation\n\n\n navigateAfterCreation && setTimeout(function () {\n return createContentBlocker ? // Navigate to content blocker form and forward `navigateAfterCreation` if given\n history.push(\"/blocker/new?force=\".concat(createContentBlockerId || preset.identifier, \"&cookieCreationPrompt=1\").concat(typeof navigateAfterCreation === \"string\" ? \"&navigateAfterCreation=\".concat(encodeURIComponent(navigateAfterCreation)) : \"\")) : // Navigate back to overview or custom link\n typeof navigateAfterCreation === \"string\" ? window.location.href = navigateAfterCreation : history.push(\"\".concat(link.slice(1), \"/\").concat(_group));\n }, 0);\n _context.next = 32;\n break;\n\n case 28:\n _context.prev = 28;\n _context.t0 = _context[\"catch\"](0);\n\n _message.error(_context.t0.responseJSON.message);\n\n throw _context.t0;\n\n case 32:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 28]]);\n }));\n\n return function (_x) {\n return _ref4.apply(this, arguments);\n };\n }(), [queried, cookie, cookieStore, useEncodedStringForScriptInputs]);\n var onFinish = useCallback( /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(values) {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n setIsBusy(true);\n _context2.prev = 1;\n _context2.next = 4;\n return handleSave(values);\n\n case 4:\n _context2.next = 8;\n break;\n\n case 6:\n _context2.prev = 6;\n _context2.t0 = _context2[\"catch\"](1);\n\n case 8:\n _context2.prev = 8;\n setIsBusy(false);\n return _context2.finish(8);\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[1, 6, 8, 11]]);\n }));\n\n return function (_x2) {\n return _ref5.apply(this, arguments);\n };\n }(), [form, handleSave]);\n var onFinishFailed = useCallback(function (errorInfo) {\n _message.error(__(\"The service could not be saved due to missing/invalid form values.\"));\n\n if (errorInfo.errorFields.length) {\n var instance = form.getFieldInstance(errorInfo.errorFields[0].name);\n instance.parentElement.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\"\n });\n }\n }, []);\n var handleBeforeUnload = useCallback(function () {\n if (!hasChanges) {\n return true;\n }\n\n return __('You have unsaved changes. If you click on \"confirm\", your changes will be discarded.');\n }, [form, initialValues]);\n\n if (queried && !fetched) {\n return /*#__PURE__*/React.createElement(_Skeleton, {\n active: true,\n paragraph: {\n rows: 8\n }\n });\n }\n\n return /*#__PURE__*/React.createElement(_Spin, {\n spinning: isBusy || (presetModel === null || presetModel === void 0 ? void 0 : presetModel.busy) || false\n }, /*#__PURE__*/React.createElement(Prompt, {\n message: handleBeforeUnload\n }), /*#__PURE__*/React.createElement(_Form, _extends({\n name: \"cookie-\".concat(group.key, \"-\").concat(id),\n form: form\n }, CookieEditFormLayout, {\n initialValues: initialValues,\n onFinish: onFinish,\n onFinishFailed: onFinishFailed,\n onValuesChange: function onValuesChange(_ref6) {\n var technicalDefinitions = _ref6.technicalDefinitions;\n setHasChanges(true); // Listen to `sessionDuration` changes and validate the `required` field\n // Listen to `type` changes and validate the technical host field\n\n var td = (technicalDefinitions || []).filter(Boolean);\n\n if (td.length === 1) {\n var tdChangedKeys = Object.keys(td[0]);\n\n if (tdChangedKeys.length === 1 && [\"sessionDuration\", \"type\"].indexOf(tdChangedKeys[0]) > -1) {\n setTimeout(function () {\n return form.validateFields();\n }, 100); // wait a bit so there are not false-positives\n }\n }\n }\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref7) {\n var _presetModel$attribut3;\n\n var getFieldValue = _ref7.getFieldValue;\n return /*#__PURE__*/React.createElement(CookieEditFormGeneralFields, {\n groupNotices: [{\n message: presetModel && typeof useGroup === \"number\" && getFieldValue(\"group\") !== useGroup ? __(\"The groups specified in service templates were chosen wisely. Are you sure that this service should be assigned to another group for your case?\") : undefined,\n severity: \"warning\"\n }, {\n message: (attributes === null || attributes === void 0 ? void 0 : attributes.groupNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut3 = presetModel.attributes) === null || _presetModel$attribut3 === void 0 ? void 0 : _presetModel$attribut3.groupNotice),\n severity: \"info\"\n }],\n providerPrivacyPolicyNotices: [{\n message: !fetched && presetModel !== null && presetModel !== void 0 && presetModel.attributes && !initialValues.providerPrivacyPolicy ? __('You have not yet set a privacy policy in the settings, so this field could not be filled in automatically. Please enter the URL of your privacy policy here and <a href=\"%s\" target=\"_blank\">set the corresponding page in your settings.</a>', \"#/settings\") : undefined,\n severity: \"warning\"\n }],\n showNoticePresetGroupNotFound: useGroup === \"preset-group-not-found\" ? attributes.group : false\n });\n }), /*#__PURE__*/React.createElement(CookieEditFormTechnicalFields, null), /*#__PURE__*/React.createElement(CookieEditFormHandlingFields, {\n dynamicFields: (attributes === null || attributes === void 0 ? void 0 : attributes.dynamicFields) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut4 = presetModel.attributes) === null || _presetModel$attribut4 === void 0 ? void 0 : _presetModel$attribut4.dynamicFields),\n notices: [{\n message: (attributes === null || attributes === void 0 ? void 0 : attributes.technicalHandlingNotice) || (presetModel === null || presetModel === void 0 ? void 0 : (_presetModel$attribut5 = presetModel.attributes) === null || _presetModel$attribut5 === void 0 ? void 0 : _presetModel$attribut5.technicalHandlingNotice),\n severity: \"info\"\n }, {\n // Example: Hotjar (hidden content blocker)\n message: showOptInNoticeScanned && !allowContentBlockerCreation && __(\"If you have already used %s before creating this service, please deactivate the script/plugin with which the service was loaded so far. The opt-in script will now take care of the correct integration.\", presetModel.data.attributes_name),\n severity: \"warning\"\n }, {\n // Example: Google Analytics (scanned, found in custom script (e.g. `functions.php`))\n message: showOptInNoticeScanned && allowContentBlockerCreation && __('You are currently embedding \"%1$s\" outside of Real Cookie Banner. You can have it blocked via a content blocker before consenting. Alternatively, you can use the following opt-in script to load %1$s directly into Real Cookie Banner.<br /><br />If you want to embed \"%1$s\" via Real Cookie Banner, you have to deactivate the content blocker at the end of the form and remove \"%1$s\" outside Real Cookie Banner.<br /><br />If you prefer to keep the current integration, you only have to delete the opt-in script in this form.', presetModel.data.attributes_name),\n severity: \"warning\"\n }].filter(function (_ref8) {\n var message = _ref8.message;\n return message;\n })\n }), !!preset && /*#__PURE__*/React.createElement(React.Fragment, null, allowContentBlockerCreation && navigateAfterCreation && /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.group !== nextValues.group;\n }\n }, function (_ref9) {\n var getFieldValue = _ref9.getFieldValue;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: \"createContentBlocker\",\n valuePropName: \"checked\",\n dependencies: [\"group\"],\n rules: [{\n validator: function validator(_, value) {\n return getFieldValue(\"group\") === essentialGroup.key && value ? Promise.reject(__('Services that should be associated with a content blocker cannot be in the \"Essential\" group, because it cannot be rejected.')) : Promise.resolve();\n }\n }]\n }, /*#__PURE__*/React.createElement(_Checkbox, null, __(\"Create content blocker for this service.\")));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.createContentBlocker !== nextValues.createContentBlocker;\n }\n }, function (_ref10) {\n var getFieldValue = _ref10.getFieldValue;\n return /*#__PURE__*/React.createElement(React.Fragment, null, getFieldValue(\"createContentBlocker\") && /*#__PURE__*/React.createElement(React.Fragment, null, Object.keys(preset.contentBlockerPresets).length > 1 && /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: \"createContentBlockerId\",\n rules: [{\n required: true,\n message: __(\"Please select a template for the Content Blocker!\")\n }]\n }, /*#__PURE__*/React.createElement(_Select, {\n style: {\n maxWidth: 500,\n marginTop: 10,\n display: \"block\"\n },\n placeholder: __(\"Select Content Blocker template...\")\n }, Object.keys(preset.contentBlockerPresets).map(function (contentBlockerId) {\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: contentBlockerId,\n value: contentBlockerId\n }, preset.contentBlockerPresets[contentBlockerId]);\n }))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\",\n style: {\n marginTop: 10\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"Immediately after submitting this form you will be forwarded to another form that allows you to create the Content Blocker.\")))), !!createContentBlockerNotice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: createContentBlockerNotice\n }\n })));\n })), /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"presetCheck\",\n valuePropName: \"checked\",\n required: true,\n rules: [{\n type: \"boolean\",\n required: true,\n transform: function transform(value) {\n return value || undefined;\n },\n message: __(\"Please confirm that you have checked the contents of the service.\")\n }],\n wrapperCol: {\n offset: CookieEditFormLayout.labelCol.span\n }\n }, /*#__PURE__*/React.createElement(_Checkbox, null, __(\"I have checked the information in the service template myself and added any missing information or corrected any information that does not fit to my use case.\"), \" \", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/\")\n })))), /*#__PURE__*/React.createElement(_Form.Item, {\n className: \"rcb-form-sticky-submit\"\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"input\", {\n type: \"submit\",\n className: \"button button-primary right\",\n value: __(\"Save\")\n })))));\n});\nexport { CookieEditFormLayout, technicalDefinitionDefaults, CookieEditForm };","import _Form from \"antd/es/form\";\n\nvar FormHeadline = function FormHeadline(_ref) {\n var children = _ref.children,\n description = _ref.description,\n offset = _ref.offset;\n return /*#__PURE__*/React.createElement(_Form.Item, {\n wrapperCol: {\n offset: offset\n },\n style: {\n borderBottom: \"1px solid #e7e7e7\"\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n margin: \"0 0 \".concat(description ? 3 : 15, \"px 0\")\n }\n }, children), !!description && /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n marginBottom: 15\n }\n }, description));\n};\n\nexport { FormHeadline };","import { useLocation } from \"react-router-dom\";\nimport { Url } from \"@devowl-wp/utils\";\n/**\n * Allows to parse query arguments from the `react-router` string.\n */\n\nfunction useLocationQuery() {\n return new Url(\"/\".concat(useLocation().search), true).query;\n}\n\nexport { useLocationQuery };","import { useRouteMatch } from \"react-router-dom\";\nimport { useStores } from \"../store\";\nimport { useCallback } from \"react\";\nimport { CookieGroupModel } from \"../models\";\n\nvar useRouteCookieGroup = function useRouteCookieGroup() {\n var _useRouteMatch = useRouteMatch(),\n cookieGroup = _useRouteMatch.params.cookieGroup;\n\n var _useStores = useStores(),\n cookieStore = _useStores.cookieStore; // Get cookie group or return draft object\n\n\n var id = isNaN(+cookieGroup) ? 0 : +cookieGroup;\n var queried = !!cookieGroup;\n var group = cookieStore.groups.entries.get(id) || new CookieGroupModel(cookieStore.groups, {\n id: 0\n });\n var link = \"#/cookies\";\n var editLink = useCallback(function (_ref) {\n var key = _ref.key;\n return \"#/cookies/\".concat(group.key, \"/edit/\").concat(key);\n }, [group]);\n var addCookieLink = \"#/cookies/\".concat(group.key, \"/new\");\n return {\n group: group,\n id: id,\n queried: queried,\n fetched: group.key !== 0,\n link: link,\n editLink: editLink,\n addCookieLink: addCookieLink\n };\n};\n\nexport { useRouteCookieGroup };"],"names":["getCookieTypeLocalizationMap","http","name","abbr","backgroundColor","local","session","flash","indexedDb","base64EncodeUnicodeSafe","str","btoa","encodeURIComponent","replace","match","p1","String","fromCharCode","parseInt","slugify","toLowerCase","from","i","l","length","RegExp","charAt","useRouteCookie","routeGroup","useRouteCookieGroup","group","params","useRouteMatch","id","isNaN","cookie","queried","cookies","entries","get","fetched","key","Notices","_ref","notices","React","createElement","Fragment","map","_ref2","message","severity","className","concat","dangerouslySetInnerHTML","__html","CookieEditFormGeneralFields","_cookie$presetModel","_cookie$presetModel$d","_ref$showNoticePreset","showNoticePresetGroupNotFound","groupNotices","providerPrivacyPolicyNotices","_useStores","_useStores$cookieStor","cookieStore","groups","essentialGroup","_useStores$optionStor","optionStore","ePrivacyUSA","consentForwarding","_useRouteCookie","isRealCookieBannerPreset","presetModel","data","identifier","findByUniqueCookieName","useCallback","_callee","slug","_context","prev","next","request","location","abrupt","sent","filter","d","ID","t0","undefined","stop","_x","apply","this","arguments","validateUniqueCookieName","_ref3","_callee2","allowOverwrite","found","_consentForwardingUniqueName","matchRegexp","foundGenerated","_context2","__","metas","consentForwardingUniqueName","_","g1","g2","_x2","_x3","offset","CookieEditFormLayout","labelCol","span","url","label","required","noStyle","rules","value","sortedGroups","_ref4","_ref4$data","autoSize","minRows","_i","a","href","target","rel","type","shouldUpdate","prevValues","nextValues","_ref5","_validator","getFieldValue","setFieldsValue","isEssentialGroup","style","display","validateTrigger","validator","_callee3","_context3","_x4","_x5","placeholder","disabled","margin","strong","_ref6","valuePropName","WP_LIST_TABLE_FORM_ITEM_PROPS","wrapperCol","CookieEditFormTechnicalFields","cookieTypeLocalized","tbodyRef","useRef","_useMemo","useMemo","DragHandle","MenuOutlined","cursor","color","marginTop","SortableItem","props","SortableBody","ref","handleSortStart","node","helper","childNodes","forEach","td","index","width","offsetWidth","noTechnicalDefinitions","technicalDefinitions","fields","add","remove","move","description","marginBottom","align","title","code","QuestionCircleFilled","useDragHandle","onSortEnd","oldIndex","newIndex","onSortStart","helperContainer","current","field","fieldKey","Object","keys","_prevValues$technical","_nextValues$technical","cookieName","r","Array","isArray","test","_prevValues$technical2","_nextValues$technical2","indexOf","isUrl","Promise","resolve","reject","_prevValues$technical3","_nextValues$technical3","host","_ref7","startsWith","substr","_prevValues$technical4","_nextValues$technical4","_ref8","float","_prevValues$technical5","_nextValues$technical5","sessionDuration","_ref9","min","addonAfter","maxWidth","rows","maxRows","onClick","DeleteOutlined","colSpan","technicalDefinitionDefaults","PlusOutlined","CookieEditFormManagerFields","manager","onlyWhenManagerIs","hasManagerAttributeName","thisIsManagerAttributeName","inEventNameAttributeName","outEventNameAttributeName","setCookiesViaManager","hasManager","isPro","others","curValues","isActive","active","inEventName","outEventName","addonBefore","marginRight","DYNAMICS_VARIABLE_REGEXP","DYNAMICS_SEARCH_IN","CookieEditFormCodeDynamics","dynamicFields","k","Boolean","searchInResolved","join","matches","matchAll","added","formName","_ref5$invalidMessage","invalidMessage","example","expression","hint","push","pattern","NoticeFormItemContainsSkipIfActiveAttribute","activePlugins","activePluginKeys","split","plugin","flat","uniq","CookieEditFormHandlingFields","createHiddenFormItemsWithCodeMirror","visible","opacity","height","thisIsGoogleTagManager","u","thisIsMatomoTagManager","settings","window","cm_settings","duration","durationUnit","purpose","CookieEditForm","_cookieStore$groups$s","_cookieStore$groups$s2","_presetModel$attribut","_presetModel$attribut2","_presetModel$attribut4","_presetModel$attribut5","preset","attributes","_ref$navigateAfterCre","navigateAfterCreation","_ref$scrollToTop","scrollToTop","onCreated","_useRouteCookie$route","link","_Form$useForm","form","_useState","useState","_useState2","isBusy","setIsBusy","_useState3","_useState4","hasChanges","setHasChanges","history","useHistory","useEncodedStringForScriptInputs","presetsCookie","useGroup","allowContentBlockerCreation","contentBlockerPresets","createContentBlockerNotice","showOptInNoticeScanned","scanned","codeOptIn","initialValues","raw","status","content","provider","meta","providerPrivacyPolicy","legalBasis","JSON","parse","stringify","codeDynamics","googleTagManagerInEventName","googleTagManagerOutEventName","matomoTagManagerInEventName","matomoTagManagerOutEventName","codeOptInNoGoogleTagManager","codeOptInNoMatomoTagManager","codeOptOut","codeOptOutNoGoogleTagManager","codeOptOutNoMatomoTagManager","codeOnPageLoad","codeOptOutDelete","createContentBlocker","deactivateAutomaticContentBlockerCreation","createContentBlockerId","presetCheck","useEffect","values","getSingle","context","fetchAttributes","scrollTo","handleSave","_document$querySelect","codeToBase64","_group","newMeta","_useGroup","draft","noticeId","_document$querySelect2","setName","setStatus","setPurpose","setMeta","setGroup","patch","rendered","protected","presetId","presetVersion","version","persist","document","querySelector","classList","querySelectorAll","setTimeout","slice","responseJSON","onFinish","finish","onFinishFailed","errorInfo","errorFields","getFieldInstance","parentElement","scrollIntoView","behavior","block","handleBeforeUnload","paragraph","spinning","busy","Prompt","onValuesChange","tdChangedKeys","validateFields","_presetModel$attribut3","groupNotice","technicalHandlingNotice","attributes_name","dependencies","_ref10","contentBlockerId","transform","FormHeadline","children","borderBottom","useLocationQuery","Url","useLocation","search","query","cookieGroup","editLink","addCookieLink"],"sourceRoot":""}
|
public/dist/admin.lite.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
var realCookieBanner_admin;!function(){"use strict";var e,t,r,n={6833:function(e,t,r){var n,o;r.d(t,{r:function(){return n}}),function(e){e.Cookie="cookie",e.Web="web",e.App="app"}(n||(n={})),function(e){e.Bulgarian="bg",e.Catalan="ca",e.Czech="cs",e.Danish="da",e.German="de",e.Greek="el",e.Spanish="es",e.Estonian="et",e.Basque="eus",e.Finnish="fi",e.French="fr",e.Galician="gl",e.Croatian="hr",e.Hungarian="hu",e.Italian="it",e.Japanese="ja",e.Lithuanian="lt",e.Latvian="lv",e.Maltese="mt",e.Dutch="nl",e.Norwegian="no",e.Polish="pl",e.Portuguese="pt",e.Romanian="ro",e.SerbianCyrillic="sr-Cyrl",e.SerbianLatin="sr-Latn",e.Russian="ru",e.Slovak="sk",e.Slovenian="sl",e.Swedish="sv",e.Turkish="tr",e.Chinese="zh"}(o||(o={}))},3137:function(e,t,r){function n(e){return!!/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e)}r.d(t,{C:function(){return n}})},5954:function(e,t,r){r.r(t),r.d(t,{locationRestChecklistGet:function(){return Z.gn},locationRestChecklistPut:function(){return Z.s5},locationRestConsentAllDelete:function(){return Z.Ok},locationRestConsentAllGet:function(){return Z.cI},locationRestConsentClearDelete:function(){return Z.rz},locationRestConsentDynamicPredecisionGet:function(){return Z.aY},locationRestConsentForwardPost:function(){return Z.vY},locationRestConsentGet:function(){return Z.JQ},locationRestConsentPost:function(){return Z.PM},locationRestConsentRefererGet:function(){return Z.qD},locationRestCookieGroupOrderPut:function(){return Z.BI},locationRestCookieUnassignedGet:function(){return Z.pV},locationRestCookiesOrderPut:function(){return Z.It},locationRestCountryBypassDatabasePut:function(){return Z._3},locationRestExportConsentsGet:function(){return Z.QB},locationRestExportGet:function(){return Z.Vm},locationRestForwardCookieGet:function(){return Z.Vc},locationRestForwardEndpointsGet:function(){return Z.AW},locationRestImportPost:function(){return Z.HR},locationRestLiteDismissConfigPageProNotice:function(){return Z.nQ},locationRestMigrationDelete:function(){return Z.oW},locationRestMigrationPost:function(){return Z.nX},locationRestNavMenuAddLinksPost:function(){return Z.iO},locationRestPresetsBannerGet:function(){return Z.tX},locationRestPresetsBlockerAttributesGet:function(){return Z.N9},locationRestPresetsBlockerGet:function(){return Z.Wu},locationRestPresetsCookiesAttributesGet:function(){return Z.tw},locationRestPresetsCookiesGet:function(){return Z.zf},locationRestRevisionCurrentGet:function(){return Z.GQ},locationRestRevisionCurrentPut:function(){return Z.a4},locationRestRevisionGet:function(){return Z.Z1},locationRestRevisionIndependentGet:function(){return Z.TB},locationRestScannerQueuePost:function(){return Z.kv},locationRestScannerResultAllExternalUrlsByHostGet:function(){return Z.ME},locationRestScannerResultExternalPatch:function(){return Z.Ce},locationRestScannerResultExternalsGet:function(){return Z.MQ},locationRestScannerResultMarkupGet:function(){return Z.$5},locationRestScannerResultPresetsGet:function(){return Z.eO},locationRestStatsButtonsClickedGet:function(){return Z.$Q},locationRestStatsCustomBypassGet:function(){return Z.gh},locationRestStatsMainGet:function(){return Z.BV},locationRestTcfDeclarationsGet:function(){return Z.Y3},locationRestTcfGvlPut:function(){return Z.yR},locationRestTcfVendorsGet:function(){return Z.fs},locationRestWpSettings:function(){return Z.g3},locationRestWpSettingsPatch:function(){return Z.J3},ChecklistStore:function(){return k.L_},ConsentStore:function(){return k.v},CookieStore:function(){return k.hc},CustomizeBannerStore:function(){return k.WS},OptionStore:function(){return k.aZ},RootStore:function(){return k.My},ScannerStore:function(){return k.Cu},StatsStore:function(){return k.et},TcfStore:function(){return k.z},useStores:function(){return k.mZ}});var n=r(8782),o=r(3249),i=r(63),a=r(7938),s=r(5450),c=r.n(s),l=(r(3523),r(1533)),u=r(4163),p=r(7110),f=(r(5036),r(7830),r(8488)),b=r.n(f),h=r(8700),d=r(1629),v={};for(var m in h)"default"!==m&&(v[m]=function(e){return h[e]}.bind(0,m));r.d(t,v);var y,g,Z=r(836),k=r(8783);r.p=(0,h.getWebpackPublicPath)({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367}),null===h.handleCorrupRestApi||void 0===h.handleCorrupRestApi||(0,h.handleCorrupRestApi)((y={},(0,i.Z)(y,u.M.get.optionStore.restNamespace,(0,a.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.W)({location:{path:"/plugin"}});case 2:case"end":return e.stop()}}),e)})))),(0,i.Z)(y,"wp/v2",(g=(0,a.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.W)({location:{path:"/settings",namespace:"wp/v2"}});case 2:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)})),y)),o.ZP.config({prefixCls:"rcb-antd"}),n.ZP.config({top:50});var w=document.getElementById("".concat(u.M.get.optionStore.slug,"-component"));w&&(0,l.render)(React.createElement(o.ZP,{prefixCls:"rcb-antd",locale:{locale:b().locale()}},React.createElement(u.M.StoreProvider,null,React.createElement(p.K,null))),w)},6395:function(e,t,r){r.d(t,{b:function(){return w}});var n=r(9591),o=r(4094),i=r(4741),a=r(6107),s=r(7228),c=r(4115),l=r(7363),u=r(3554),p=r(8630),f=r(1857),b=r(5406),h=r(8719),d=r(3025),v=r(4163),m=r(2780),y=r(971),g=r(3004),Z=(0,u.Pi)((function(e){var t=e.id,r=e.checked,n=e.title,o=e.description,i=e.link,s=e.linkText,c=e.linkTarget,l=e.needsPro,u=e.onLinkClick,Z=(0,v.m)().optionStore,k=Z.others.isPro,w=Z.fomoCoupon,R=!k&&l,C=null,P=null,S=i;switch(t){case"scanner":var E=(0,m.p)(),_=E.percent,x=E.remaining,O=E.currentJob;x>0&&_>0&&(null==O?void 0:O.group_position)>0&&(C=React.createElement(a.Z,null,(0,p.__)("Currently scanning (%d %%)",_)));break;case"get-pro":P=React.createElement(g.S,null),w&&(S+="&".concat(g.Q))}return React.createElement("div",{style:{margin:"5px 0"}},React.createElement(f.Z,{title:r&&o},React.createElement("span",null,R?React.createElement(b.Z,{style:{color:"#7ec8ec"}}):r?React.createElement(h.Z,{style:{color:"#52c41a"}}):React.createElement(d.Z,{style:{color:"#e2e2e2"}})," ",React.createElement("span",{style:{textDecoration:r?"line-through":void 0,fontWeight:"bold"}},n),!!S&&!!s&&React.createElement(React.Fragment,null," • ",React.createElement("a",{href:S,target:c,rel:"noreferrer",onClick:u},s)))),R&&"get-pro"!==t&&React.createElement(React.Fragment,null," ",React.createElement(a.Z,{color:y.k},(0,p.__)("Needs PRO"))),!!C&&React.createElement(React.Fragment,null," ",C),!!o&&!r&&React.createElement("p",{className:"description",style:{paddingLeft:17}},o),!!P&&React.createElement("div",{style:{paddingLeft:17}},P))})),k=r(2046),w=(0,u.Pi)((function(e){var t=e.onLinkClick,r=(0,c.Z)(e,["onLinkClick"]),u=(0,v.m)().checklistStore,f=u.busyChecklist,b=u.items,h=u.completed,m=u.checkable,y=u.done,g=u.checklist.overdue,w=(0,l.useState)("boolean"==typeof r.showHidden?r.showHidden:!y),R=(0,s.Z)(w,2),C=R[0],P=R[1];return React.createElement(n.Z,{spinning:f},React.createElement(o.Z,{direction:"vertical",size:"large"},g&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:0}},React.createElement("p",null,(0,p.__)("How time flies! You have installed Real Cookie Banner some time ago, but you still haven't finished the configuration yet."))),React.createElement("p",{className:"description"},(0,p.__)("We have collected all relevant steps for the legally compliant use of Real Cookie Banner after the first installation. Set up the cookie banner step by step to add an opt-in cookie banner to your website in compliance with the ePrivacy Directive and GDPR.")),React.createElement("div",null,y&&(C?React.createElement(a.Z,{icon:React.createElement(k.Z,null),color:"default",style:{cursor:"pointer"},onClick:function(){return P(!1)}},(0,p.__)("Hide completed steps")):React.createElement(a.Z,{icon:React.createElement(d.Z,null),color:"success",style:{cursor:"pointer"},onClick:function(){return P(!0)}},(0,p.__)("%d / %d steps completed",h.length>m.length?m.length:h.length,m.length))),b.map((function(e){var r=e.id,n=(0,c.Z)(e,["id"]);return!C&&n.checked?null:React.createElement(Z,(0,i.Z)({key:r,id:r},n,{onLinkClick:function(e){["get-pro"].indexOf(r)>-1&&u.toggleChecklistItem(r,!0),null==t||t(e)}}))})))))}))},5283:function(e,t,r){r.d(t,{DR:function(){return m},Gh:function(){return d},Ki:function(){return v}});var n=r(2519),o=r(8920),i=r(9943),a=r(6315),s=r(6478),c=r(7363),l=r(3554),u=r(8630),p=r(6839),f=r(8383),b=r(7943),h=r(4163),d="Google Tag Manager",v="Matomo Tag Manager",m=(0,l.Pi)((function(){var e=(0,h.m)().optionStore,t=e.refreshSiteAfterConsent,r=e.imprintExternalUrl,l=e.imprintIsExternalUrl,m=e.privacyPolicyExternalUrl,y=e.privacyPolicyIsExternalUrl,g=e.others,Z=g.isPro,k=g.customizeBannerUrl,w=(0,c.useCallback)((function(e){return"".concat(k.replace(/autofocus\[panel]=[\w-]+/,"autofocus[section]=".concat(e)),"&return=").concat(encodeURIComponent(window.location.href))}),[k])("real-cookie-banner-banner-legal");return React.createElement(React.Fragment,null,React.createElement(a.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.bannerActive!==t.bannerActive}},(function(e){var t=e.getFieldValue,r=e.setFieldsValue,n=t("bannerActive");return React.createElement(React.Fragment,null,React.createElement(a.Z.Item,{label:(0,u.__)("Cookie Banner/Dialog")},React.createElement(a.Z.Item,{noStyle:!0,name:"bannerActive",valuePropName:"checked"},React.createElement(s.Z,{style:{display:n?void 0:"none"}})),!n&&React.createElement(i.Z,{title:(0,u.__)("I have already checked/will check all text in the cookie banner and content blocker myself. I have added missing information and corrected information that does not fit my use case."),cancelText:(0,u.__)("Cancel"),okText:(0,u.__)("Activate now!"),overlayStyle:{maxWidth:450},onCancel:function(){r({bannerActive:!1})},onConfirm:function(){r({bannerActive:!0})},placement:"bottomLeft"},React.createElement(s.Z,{checked:!1})),React.createElement("p",{className:"description",style:{marginTop:5}},(0,u.__)("You can enable and disable the cookie banner. We recommend to activate the cookie banner on your website after you have added all services."))),React.createElement(a.Z.Item,{label:(0,u.__)("Content Blocker"),style:{display:n?void 0:"none"}},React.createElement(a.Z.Item,{name:"blockerActive",valuePropName:"checked",noStyle:!0},React.createElement(s.Z,{style:{marginTop:5}})),React.createElement("p",{className:"description",style:{marginTop:5}},(0,u.__)("This feature allows you to block content that would process personal data and set cookies, but for which you do not yet have the visitor's consent."))))})),React.createElement(a.Z.Item,{label:(0,u.__)("Refresh site after consent"),style:{display:t?void 0:"none"}},React.createElement(a.Z.Item,{name:"refreshSiteAfterConsent",noStyle:!0},React.createElement(o.ZP.Group,null,React.createElement(o.ZP.Button,{value:!1},(0,u.__)("Do not refresh")),React.createElement(o.ZP.Button,{value:!0},(0,u.__)("Refresh")))),React.createElement("p",{className:"description"},(0,u.__)("Depending on how services are loaded, e.g. by other plugins on your website, it may be necessary to reload the website after the user has consented to the setting of cookies (only necessary in very rare cases)."))),React.createElement(a.Z.Item,{label:(0,u.__)("Hide cookie banner on specific pages")},React.createElement("p",{className:"description",style:{marginTop:7}},(0,u.__)("According to the ePrivacy Directive, legally required pages such as the privacy policy or the imprint (depending on the country) may be accessible without the user having to give consent to services and their cookies. Therefore, it is recommended to avoid processing personal data and setting cookies on these pages and not to display a cookie banner.")),React.createElement(a.Z.Item,{label:(0,u.__)("Imprint Page"),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},l?React.createElement(n.Z,{value:r,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:w},(0,u.__)("Edit"))}):React.createElement(a.Z.Item,{name:"imprintId",noStyle:!0},React.createElement(p.m,{postType:"pages",forceDefaultLanguage:!0,postStatus:["publish"],perPage:100}))),React.createElement(a.Z.Item,{label:(0,u.__)("Privacy policy page"),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},y?React.createElement(n.Z,{value:m,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:w},(0,u.__)("Edit"))}):React.createElement(a.Z.Item,{name:"privacyPolicyId",noStyle:!0},React.createElement(p.m,{postType:"pages",forceDefaultLanguage:!0,postStatus:["publish"],perPage:100}))),React.createElement(a.Z.Item,{label:React.createElement(React.Fragment,null,(0,u.__)("Hide on additional pages")," ",React.createElement(f.g,{title:(0,u.__)("Want to hide cookie banner on more pages?"),testDrive:!0,feature:"hide-page-ids",description:(0,u.__)("Cookie banners are legally necessary, but distract your users from the essentials. For example, on landing pages for advertising campaigns, they lead to lower conversion rates. On these pages, it can be useful to avoid processing personal data and setting cookies to keep the conversion rate high. You can hide the cookie banner on these pages.")})),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},React.createElement(a.Z.Item,{name:"hidePageIds",noStyle:!0},React.createElement(p.m,{postType:"pages",multiple:!0,disabled:!Z,forceDefaultLanguage:!0,postStatus:["publish"],perPage:100})))),React.createElement(a.Z.Item,{label:(0,u.__)("Load services after consent via")},React.createElement(a.Z.Item,{name:"setCookiesViaManager",noStyle:!0},React.createElement(o.ZP.Group,null,React.createElement(o.ZP.Button,{disabled:!Z,value:"none"},(0,u.__)("HTML/JavaScript Snippet")),React.createElement(o.ZP.Button,{disabled:!Z,value:"googleTagManager"},(0,u.__)("%s Event",d)),React.createElement(o.ZP.Button,{disabled:!Z,value:"matomoTagManager"},(0,u.__)("%s Event",v)))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(b.r,{url:(0,u.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")}),React.createElement(f.g,{title:(0,u.__)("Want to use a Tag Manager legally?"),testDrive:!0,feature:"set-cookies-via-manager",assetName:(0,u.__)("pro-modal/set-cookies-via-manager.png"),description:(0,u.__)("You can integrate services via Google Tag Manager or Matomo Tag Manager. At the same time, you can obtain and document consents via Real Cookie Banner in accordance with data protection regulations.")})),React.createElement("p",{className:"description"},React.createElement("strong",null,(0,u.__)("You only need to change this option if you use Google Tag Manager or Matomo Tag Manager."))," ",(0,u._i)((0,u.__)("If you opt-in to or opt-out from services, you will normally execute JavaScript code to ensure that scripts are enabled/disabled and cookies are set/removed on the visitor's client. If you are a Google Tag Manager or Matomo Tag Manager user, you can map this behavior by using tags that are triggered by an event in the data layer. {{strong}}If you enable this option,{{/strong}} the Google Tag Manager or Matomo Tag Manager should not yet be integrated into your website. Instead, you must integrate it as an opt-in script of a service you create for the Tag Manager. For each service listed in this plugin, you will receive an additional field where you can specify the name of the event that is automatically triggered when the user opt-in or opt-out. We have a full integration for tag managers which should allow you to run it legally compliant in the EU."),{strong:React.createElement("strong",null)}))))}))},7110:function(e,t,r){r.d(t,{K:function(){return F},m:function(){return T}});var n=r(2202),o=r(7228),i=r(9591),a=r(7363),s=r(3554),c=r(6711),l=r(8630),u=r(4163),p=r(9943),f=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=(0,c.useLocation)().pathname;return e.needsRevisionRetrigger&&-1===t.indexOf("/edit/")&&-1===t.indexOf("/new")&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l.__)("You have changed settings that affect the content or behavior of the cookie banner. You should ask all visitors for their consent again.")," ","•"," ",React.createElement("a",{style:{cursor:"pointer",textDecoration:"underline"},onClick:function(){return e.updateCurrentRevision({needs_retrigger:!0})}},(0,l.__)("Request new consent"))," ","•"," ",React.createElement(p.Z,{title:React.createElement(React.Fragment,null,React.createElement("strong",null,(0,l.__)("Are you sure you don't want to collect new consents?")),React.createElement("br",null),React.createElement("br",null),(0,l._i)((0,l.__)("Consent must be obtained in accordance with {{a}}Art. 7 GDPR{{/a}}. Your visitor must be informed about all circumstances of the consent. However, you have made changes to your cookie banner, which lead to the fact that previously visitors have consented differently or to something different than is now in the cookie banner. Therefore, previously collected consents may have become partially invalid."),{a:React.createElement("a",{href:(0,l.__)("https://gdpr-info.eu/art-7-gdpr/"),rel:"noreferrer",target:"_blank"})}),React.createElement("br",null),React.createElement("br",null),(0,l.__)("If you have created a new service like Google Analytics (without visual content blocker), previous visitors can never consent without collecting new consents and you cannot track them, for example.")),placement:"bottomRight",onConfirm:function(){return e.updateCurrentRevision({needs_retrigger:!1})},okText:(0,l.__)("Dismiss notice"),cancelText:(0,l.__)("Cancel"),overlayStyle:{maxWidth:450}},React.createElement("a",{style:{cursor:"pointer",textDecoration:"underline"}},(0,l.__)("Dismiss notice")))))})),b=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=e.publicCookieCount,r=e.busySettings;return e.bannerActive&&!t&&!r&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l.__)("The cookie banner is activated, but unfortunately you have not yet created or enabled services.")))})),h=r(3438),d=(0,s.Pi)((function(){return!!(0,h.u)().showNoticeAnonymousScriptNotWritable&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l._i)((0,l.__)("Your {{code}}wp-content{{/code}} folder is not writable. Please check your permissions!"),{code:React.createElement("code",null)})))})),v=(0,s.Pi)((function(e){var t=e.manager,r=e.managerId,n=e.hasManagerAttributeName,o=e.presetId,i=(0,u.m)().optionStore,a=i.setCookiesViaManager,s=i[n],p=(0,c.useLocation)().pathname;return a===r&&!s&&/^\/cookies\/\d+$/.test(p)&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l._i)((0,l.__)("You have not yet defined a %s service. To use {{strong}}%s{{/strong}} with Real Cookie Banner, you must create the appropriate service.",t,t),{strong:React.createElement("strong",null)})," ","• ",React.createElement("a",{href:"#".concat(p,"/new?force=").concat(o)},(0,l.__)("Create now"))))})),m=r(7819),y=function(){var e=(0,c.useHistory)().listen;return(0,a.useEffect)((function(){var t=e((function(){(0,m.X)(0)}));return function(){t()}}),[e]),null},g=r(5283),Z=r(6069),k=r(3025),w=r(6800),R=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=e.others,r=t.proUrl,n=t.isPro,o=t.isConfigProNoticeVisible,i="".concat(r,"&feature=main-button"),s=(0,a.useCallback)((function(){window.open(i,"_blank"),e.dismissConfigProNotice()}),[e]),c=(0,a.useCallback)((function(){e.dismissConfigProNotice()}),[e]);return!n&&React.createElement(p.Z,{visible:!!o,title:(0,l.__)("Thank you for using the free version of Real Cookie Banner. You might also be interested in the PRO version, which offers you more features, 20+ design templates, 100+ service templates, 60+ content blocker templates and much more."),icon:React.createElement(w.Z,{style:{color:"#1890ff"}}),placement:"bottom",onConfirm:s,onCancel:c,cancelText:(0,l.__)("No, not interested..."),okText:(0,l.__)("I want to learn more!"),overlayStyle:{maxWidth:450}},React.createElement("a",{className:"page-title-action",rel:"noreferrer",onClick:s},(0,l.__)("Get PRO version")))})),C=r(6395),P=(0,s.Pi)((function(){var e=(0,a.useState)(!1),t=(0,o.Z)(e,2),r=t[0],n=t[1],i=(0,u.m)(),s=i.optionStore,p=i.checklistStore,f=(0,c.useLocation)().pathname,b=s.others.customizeBannerUrl,h=s.publicUrl,d=p.completed,v=p.checkable,m=p.done;(0,a.useEffect)((function(){p.fetchChecklist()}),[]);var y=(0,a.useCallback)((function(e){window.location.href="".concat(b,"&return=").concat(encodeURIComponent(window.location.href)),e.preventDefault()}),[]),g=(0,a.useCallback)((function(){n(!0),p.fetchChecklist()}),[n]),w=(0,a.useCallback)((function(){n(!1)}),[n]);return React.createElement(React.Fragment,null,React.createElement("h1",{className:"wp-heading-inline"},(0,l.__)("Real Cookie Banner")),React.createElement("img",{className:"rcb-nav-logo",src:"".concat(h,"images/logos/real-cookie-banner.svg")}),React.createElement("a",{className:"page-title-action",href:"#",onClick:y},(0,l.__)("Customize banner")),React.createElement(R,null),!m&&"/"!==f&&React.createElement(React.Fragment,null,React.createElement("a",{className:"page-title-action",style:{color:"#52c41a",background:"#f6ffed",borderColor:"#85af65"},onClick:g},React.createElement(k.Z,null)," ",(0,l.__)("%d / %d steps completed",d.length>v.length?v.length:d.length,v.length)),React.createElement(Z.Z,{visible:r,title:(0,l.__)("Set up the cookie banner"),onCancel:w,okButtonProps:{style:{display:"none"}},cancelText:(0,l.__)("Close"),width:800},React.createElement(C.b,{showHidden:!0,onLinkClick:w}))),React.createElement("hr",{className:"wp-header-end"}))})),S=r(9871),E=(0,s.Pi)((function(){var e=(0,u.m)().optionStore.publicUrl;return React.createElement("div",{className:"rcb-config-footer"},(0,l._i)((0,l.__)("Real Cookie Banner is brought to you with {{icon/}} by"),{icon:React.createElement(S.Z,{style:{color:"#dca7a7"}})}),React.createElement("a",{href:"https://devowl.io/",target:"_blank",rel:"noreferrer"},React.createElement("img",{src:"".concat(e,"images/logos/devowl-with-text.svg")})))})),_=r(8700),x=r(2780),O=r(6),D=r(4548),z={display:"block",marginTop:10},T=function(e,t){return{default:function(){return React.createElement(_.SuspenseChunkTranslation,{chunkFile:r.u("chunk-config-tab-".concat(e)),options:function(){return(0,u.m)().optionStore},fallback:React.createElement(i.Z,{spinning:!0,style:z})},t)}}},I=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(914),r.e(716),r.e(379)]).then(r.bind(r,8662)).then((function(e){var t=e.DashboardCards;return T("dashboard",React.createElement(t,null))}))})),A=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(768)]).then(r.bind(r,597)).then((function(e){var t=e.SettingsForm;return T("settings",React.createElement(t,null))}))})),M=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(930),r.e(795),r.e(193),r.e(756),r.e(826),r.e(3)]).then(r.bind(r,1502)).then((function(e){var t=e.ScannerRouter;return T("scanner",React.createElement(t,null))}))})),N=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(930),r.e(418),r.e(348),r.e(826),r.e(548),r.e(718)]).then(r.bind(r,5182)).then((function(e){var t=e.CookieGroupsTabRouter;return T("cookies",React.createElement(t,null))}))})),B=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(914),r.e(930),r.e(795),r.e(625)]).then(r.bind(r,6720)).then((function(e){var t=e.ConsentTabRouter;return T("consent",React.createElement(t,null))}))})),j=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(418),r.e(716),r.e(276),r.e(826),r.e(548),r.e(478)]).then(r.bind(r,4528)).then((function(e){var t=e.BlockerRouter;return T("blocker",React.createElement(t,null))}))})),U=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(914),r.e(193),r.e(954),r.e(357)]).then(r.bind(r,9962)).then((function(e){var t=e.ImportExportCards;return T("import",React.createElement(t,null))}))})),V=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(322)]).then(r.bind(r,117)).then((function(e){var t=e.ConfigLicensing;return T("licensing",React.createElement(t,null))}))})),F=(0,s.Pi)((function(){var e=(0,x.p)(),t=e.percent,r=e.remaining,s=e.currentJob,p=(0,u.m)(),h=p.optionStore,m=p.checklistStore,Z=h.others,k=Z.showLicenseFormImmediate,w=(0,o.Z)(Z.colorScheme,3)[2];return(0,a.useLayoutEffect)((function(){h.fetchSettings();var e=function(){m.fetchChecklist()},t="".concat(O.JOB_DONE_EVENT_PREFIX).concat(D.b);return document.addEventListener(t,e),function(){document.removeEventListener(t,e)}}),[]),k?React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(V,null)):React.createElement(c.HashRouter,null,React.createElement(P,null),React.createElement("nav",{className:"nav-tab-wrapper wp-clearfix"},React.createElement(c.NavLink,{to:"/",className:"nav-tab",activeClassName:"nav-tab-active",exact:!0},(0,l.__)("Dashboard")),React.createElement(c.NavLink,{to:"/settings",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Settings")),React.createElement(c.NavLink,{to:"/scanner",className:"nav-tab",activeClassName:"nav-tab-active"},r>0&&t>0&&(null==s?void 0:s.group_position)>0?React.createElement(n.Z,{count:"".concat(t," %"),style:{top:-11,fontSize:10,height:16,lineHeight:"16px",background:w}},(0,l.__)("Scanner")):(0,l.__)("Scanner")),React.createElement(c.NavLink,{to:"/cookies",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Services (Cookies)")),React.createElement(c.NavLink,{to:"/blocker",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Content Blocker")),React.createElement(c.NavLink,{to:"/consent",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Consent")),React.createElement(c.NavLink,{to:"/import",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Import / Export")),"try.devowl.io"!==window.location.host&&React.createElement(c.NavLink,{to:"/licensing",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Licensing")),React.createElement("a",{href:(0,l.__)("https://devowl.io/support/"),className:"nav-tab",target:"_blank",rel:"noreferrer"},(0,l.__)("Support"))),React.createElement(f,null),React.createElement(b,null),React.createElement(d,null),React.createElement(v,{manager:g.Gh,managerId:"googleTagManager",hasManagerAttributeName:"hasGTM",presetId:"gtm"}),React.createElement(v,{manager:g.Ki,managerId:"matomoTagManager",hasManagerAttributeName:"hasMTM",presetId:"mtm"}),React.createElement(y,null),React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(c.Switch,null,React.createElement(c.Route,{path:"/",exact:!0},React.createElement(I,null)),React.createElement(c.Route,{path:"/settings/:tab?"},h.areSettingsFetched?React.createElement(A,null):null),React.createElement(c.Route,{path:"/scanner"},React.createElement(M,null)),React.createElement(c.Route,{path:"/cookies/:cookieGroup?"},React.createElement(N,null)),React.createElement(c.Route,{path:"/consent/:tab?"},React.createElement(B,null)),React.createElement(c.Route,{path:"/blocker"},React.createElement(j,null)),React.createElement(c.Route,{path:"/import"},React.createElement(U,null)),React.createElement(c.Route,{path:"/licensing"},React.createElement(V,null)))),React.createElement(E,null))}))},3004:function(e,t,r){r.d(t,{Q:function(){return f},S:function(){return b}});var n=r(9037),o=r(6107),i=r(8782),a=r(7228),s=r(3554),c=r(7363),l=r(4163),u=r(8630),p=r(4913),f="promo=in-app",b=(0,s.Pi)((function(e){var t=e.style,r=(0,l.m)().optionStore.fomoCoupon,s=null==r?void 0:r.coupon,f=null==r?void 0:r.valueInPercent,b=null==r?void 0:r.validUntil,h=(0,c.useCallback)((function(){if(b){var e=new Date(b).getTime()-(new Date).getTime();if(e<=0)return;var t=e/1e3;return[Math.floor(t/3600),Math.floor(t/60)%60,Math.floor(t%60)].map((function(e){return e<10?"0".concat(e):e})).filter((function(e,t){return"00"!==e||t>0})).join(":")}}),[b]),d=(0,c.useState)(),v=(0,a.Z)(d,2)[1];(0,c.useEffect)((function(){var e=setInterval((function(){v((new Date).getTime())}),1e3);return function(){clearInterval(e)}}),[]);var m=h();return m?React.createElement(n.Z,{style:t,message:(0,u._i)((0,u.__)("Use coupon {{tag}}%s{{/tag}} in the next {{strongHours}}%s hours{{/strongHours}} and save {{strongPercent}}%d %%{{/strongPercent}} in the first year!",s,m,f),{tag:React.createElement(o.Z,{color:"success",style:{marginRight:0,cursor:"pointer"},onClick:function(){(0,p.v)(s),i.ZP.success((0,u.__)("Successfully copied coupon to clipboard!"))}}),strongHours:React.createElement("strong",{style:{color:"#d33131"}}),strongPercent:React.createElement("strong",null)})}):null}))},7943:function(e,t,r){r.d(t,{r:function(){return s}});var n=r(6107),o=r(2711),i=r(7088),a=r(8630),s=function(e){var t=e.url,r=e.style,s=void 0===r?void 0:r,c=e.label,l=void 0===c?(0,a.__)("Learn more"):c,u=(0,o.Z)({cursor:"pointer"},s);return React.createElement(n.Z,{style:u,onClick:function(){return window.open(t,"_blank")}},React.createElement(i.Z,null)," ",l)}},6839:function(e,t,r){r.d(t,{m:function(){return m}});var n=r(3828),o=r(9591),i=r(2711),a=r(7938),s=r(7228),c=r(5450),l=r.n(c),u=r(7363),p=r(3438),f=r(1629),b=r(8630),h=r(2186),d=r(8700),v=r(3137),m=function(e){var t=e.postType,r=e.postStatus,c=void 0===r?["draft","publish","private"]:r,m=e.perPage,y=void 0===m?10:m,g=e.value,Z=e.multiple,k=e.disabled,w=e.forceDefaultLanguage,R=e.onChange,C=e.titleRender,P=void 0===C?function(e){return e.title.rendered}:C,S=e.filter,E=void 0===S?function(){return!0}:S,_=(0,u.useState)(!1),x=(0,s.Z)(_,2),O=x[0],D=x[1],z=(0,u.useState)(g),T=(0,s.Z)(z,2),I=T[0],A=T[1],M=(0,u.useState)(!1),N=(0,s.Z)(M,2),B=N[0],j=N[1],U=(0,u.useState)([]),V=(0,s.Z)(U,2),F=V[0],G=V[1],L=(0,u.useCallback)(function(){var e=(0,a.Z)(l().mark((function e(r){var n,o,a,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),n=(0,p.u)(),o=n.defaultLanguage,a=n.currentLanguage,e.next=4,(0,f.W)({location:{path:"/".concat(t),method:d.RouteHttpVerb.GET,namespace:"wp/v2"},request:(0,i.Z)({status:r.include?["draft","publish","private"]:c,orderby:r.search?"relevance":"title"},r),params:{_dataLocale:w?o:a}});case 4:s=e.sent,G(s),j(!1);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return(0,h.N)(O,""===O?0:800,(function(e){!1!==e&&L({search:e,per_page:e.length?50:y})}),(function(e){!1!==e&&j(!0),G([])})),(0,u.useEffect)((function(){(I>0||Array.isArray(I)&&I.length>0)&&L({include:Array.isArray(I)?I:[I]})}),[]),(0,u.useEffect)((function(){JSON.stringify(I)!==JSON.stringify(g)&&(g>0||Array.isArray(g)&&g.length>0)&&(A(g),L({include:Array.isArray(g)?g:[g]}))}),[g,I]),React.createElement(n.Z,{mode:Z?"multiple":void 0,disabled:k,showSearch:!0,value:I,placeholder:(0,b.__)("Search..."),notFoundContent:B?React.createElement(o.Z,{size:"small"}):null,onClick:function(){return D("")},onSearch:D,onChange:function(e){var t=Array.isArray(e)?e.map(Number):+e;A(t),null==R||R(t)},filterOption:!1,loading:B},!Z&&!B&&React.createElement(n.Z.Option,{value:0},(0,b.__)("— Select —")),F.map((function(e){return React.createElement(n.Z.Option,{key:e.id,value:e.id,style:{display:E(e)?void 0:"none"}},(t=P(e),(0,v.C)(t)?null===(r=(new DOMParser).parseFromString('<a href="'.concat(t,'"></a>'),"text/html").querySelector("a"))||void 0===r?void 0:r.href:(new DOMParser).parseFromString(t,"text/html").documentElement.textContent));var t,r})))}},8137:function(e,t,r){r.d(t,{B:function(){return f}});var n=r(6069),o=r(7228),i=r(7363),a=r(9635),s=r(3438),c=r(8630),l=r(4957),u=r(3004),p=r(5053),f=function(e){var t=e.visible,r=void 0!==t&&t,f=e.showHints,b=void 0===f||f,h=e.showFomoCouponCounter,d=void 0===h||h,v=e.title,m=e.testDrive,y=void 0!==m&&m,g=e.assetName,Z=e.description,k=e.feature,w=e.onClose,R=e.inContainer,C=e.inContainerElement,P=(0,s.u)(),S=P.proUrl,E=P.hints,_=(0,i.useState)(),x=(0,o.Z)(_,2),O=x[0],D=x[1],z=(0,i.useCallback)((function(){window.open("".concat(S,"&feature=").concat(k,"&").concat(u.Q),"_blank").focus(),null==w||w()}),[w]);(0,i.useEffect)((function(){R&&O&&(null==O?void 0:O.parentElement.parentElement.previousElementSibling).removeAttribute("tabIndex")}),[O]);var T=null==E?void 0:E.proDialog;return R&&!C?null:React.createElement(n.Z,{visible:!!R||r,title:React.createElement("span",null,React.createElement(a.Z,null)," ",v," ",(0,c.__)("Get PRO!")),onOk:z,onCancel:w,cancelText:(0,c.__)("No, not interested..."),okText:(0,c.__)("I want to learn more!"),className:"rcb-pro-modal",width:g?800:700,getContainer:R?C:void 0},!!g&&React.createElement("img",{style:{marginTop:10},src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/".concat(g)}),React.createElement("div",{style:{maxWidth:600,margin:"auto"},ref:D},React.createElement("p",null,(0,l.E)(Z)),y&&React.createElement("p",null,(0,c._i)((0,c.__)("Check out this feature with a {{a}}free sandbox{{/a}} before buying!"),{a:React.createElement("a",{href:"https://try.devowl.io/?product=RCB",target:"_blank",rel:"noreferrer"})}))),!!T&&b&&React.createElement("div",{style:{maxWidth:600,margin:"auto",textAlign:"left"}},React.createElement(p.j,T)),d&&React.createElement(u.S,{style:{marginBottom:15}}))}},5053:function(e,t,r){r.d(t,{j:function(){return a}});var n=r(5489),o=r(8503),i=r(2841),a=function(e){var t=e.title,r=e.description,a=e.link,s=e.linkText,c=e.logo;return React.createElement(React.Fragment,null,React.createElement(i.Z,null,t),React.createElement(n.Z,{wrap:!1,style:{marginBottom:10}},React.createElement(o.Z,{flex:"auto"},!!r&&React.createElement("p",{style:{margin:0}},React.createElement("span",{dangerouslySetInnerHTML:{__html:r}})," ",!!a&&!!s&&React.createElement("a",{href:a,target:"_blank",rel:"noreferrer",className:"button-link"},s))),React.createElement(o.Z,{flex:"150px",style:{alignSelf:"center"}},!!c&&React.createElement("img",{src:c,style:{maxWidth:"calc(100% - 20px)",height:"auto",marginLeft:20}}))))}},8383:function(e,t,r){r.d(t,{g:function(){return i}});var n=r(4115),o=r(971),i=function(e){e.children;var t=e.wrapperAttributes,r=void 0===t?{}:t,i=(0,n.Z)(e,["children","wrapperAttributes"]),a=(0,o.t)(i),s=a.modal,c=a.tag;return React.createElement(React.Fragment,null,s,React.createElement("span",r,c))}},2186:function(e,t,r){r.d(t,{N:function(){return i}});var n=r(7228),o=r(7363);function i(e,t,r,i){var a=(0,o.useState)(e),s=(0,n.Z)(a,2),c=s[0],l=s[1];return(0,o.useEffect)((function(){var r=setTimeout((function(){l(e)}),t);return null==i||i(e),function(){clearTimeout(r)}}),[e]),(0,o.useEffect)((function(){r(c)}),[c]),c}},971:function(e,t,r){r.d(t,{t:function(){return f},k:function(){return p}});var n=r(4741),o=r(6107),i=r(7228),a=r(2193),s=r(8630),c=r(4163),l=r(7363),u=r(8137),p="#2db7f5";function f(e,t){var r=(0,l.useState)(!1),f=(0,i.Z)(r,2),b=f[0],h=f[1],d=(0,c.m)().optionStore.others.isPro,v="boolean"==typeof t?t:d,m=(0,l.useCallback)((function(e){h(!0),null==e||e.preventDefault()}),[h]),y=(0,l.useMemo)((function(){return v?null:React.createElement(o.Z,{icon:React.createElement(a.Z,null),color:p,style:{cursor:"pointer"},onClick:m},e.tagText||(0,s.__)("Unlock feature"))}),[m,e]),g=(0,l.useMemo)((function(){return v?null:React.createElement(u.B,(0,n.Z)({visible:b,onClose:function(){return h(!1)}},e))}),[b,h,e]);return{isPro:v,tag:y,modal:g,open:m}}},2780:function(e,t,r){r.d(t,{p:function(){return s}});var n=r(6),o=r(7363),i=r(4163),a=r(4548);function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,s=(0,i.m)(),c=s.scannerStore;return(0,n.useProgress)({type:a.u,fetchStatusInterval:e,fetchAdditionalData:t,onAdditionalData:(0,o.useCallback)((function(e){var t=e["rcb-scan-list"],r=t.presets,n=t.externalUrls;c.resultPresetsFromResponse(r),c.resultExternalUrlsFromResponse(n)}),[c]),onCancel:r})}},9507:function(e,t,r){r.d(t,{p:function(){return v}});var n,o,i,a,s,c,l,u=r(6724),p=r(6762),f=r(3340),b=r(9303),h=r(7821),d=r(490),v=(n=function(){function e(t,r){var n=this;(0,p.Z)(this,e),(0,u.Z)(this,"id",o,this),(0,u.Z)(this,"name",i,this),(0,u.Z)(this,"needsPro",a,this),(0,u.Z)(this,"description",s,this),(0,u.Z)(this,"tags",c,this),(0,u.Z)(this,"settings",l,this),this.store=void 0,this.resetPreviewInUiSettings=void 0,(0,h.runInAction)((function(){return(0,h.set)(n,t)})),this.store=r}return(0,f.Z)(e,[{key:"applyInUi",value:function(){var e=this;return!(!this.store.rootStore.optionStore.others.isPro&&this.needsPro||(this.previewInUi(),setTimeout((function(){var t=(0,d.getSidebarCustomize)();e.store.presetDefaults.forEach((function(r,n){t(n).set(void 0===e.settings[n]?r:e.settings[n])}))}),100),0))}},{key:"previewInUi",value:function(){var t=(0,d.getSidebarCustomize)(),r=this.store.presetDefaults,n=this.store.rootStore.optionStore.others.customizeIdsBanner.settings,o=[];this.resetPreviewInUiSettings={};for(var i=0,a=Object.keys(n);i<a.length;i++)for(var s=a[i],c=n[s],l=0,u=Object.keys(c);l<u.length;l++){var p=u[l],f=c[p];if(r.has(f)){this.resetPreviewInUiSettings[f]=[s,p,t(f).get()];var b=Object.prototype.hasOwnProperty.call(this.settings,f)?this.settings[f]:r.get(f);o.push([s,p,b])}}e.getIframeStore().customizeBannerStore.setBannerFromPreset(o)}},{key:"resetPreviewInUi",value:function(){this.resetPreviewInUiSettings&&(e.getIframeStore().customizeBannerStore.setBannerFromPreset(Object.values(this.resetPreviewInUiSettings)),this.resetPreviewInUiSettings={})}}],[{key:"getIframeStore",value:function(){try{return document.querySelector("#customize-preview > iframe").contentWindow.realCookieBanner_customize_banner.RootStore.get}catch(e){return}}}]),e}(),o=(0,b.Z)(n.prototype,"id",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,b.Z)(n.prototype,"name",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.Z)(n.prototype,"needsPro",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,b.Z)(n.prototype,"description",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,b.Z)(n.prototype,"tags",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,b.Z)(n.prototype,"settings",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},1031:function(e,t,r){r.d(t,{R:function(){return p}});var n,o=r(6762),i=r(3340),a=r(3841),s=r(5952),c=r(8700),l=r(1629),u=r(7598),p=c.ClientCollection.annotate({path:"/rcb-blocker",singlePath:"/rcb-blocker/:id",namespace:"wp/v2",methods:[c.RouteHttpVerb.GET],request:l.W})(n=function(e){(0,a.Z)(r,e);var t=(0,s.Z)(r);function r(e){var n;return(0,o.Z)(this,r),(n=t.call(this)).store=void 0,n.store=e,n}return(0,i.Z)(r,[{key:"instance",value:function(e){return new u.p(this).fromResponse(e)}}]),r}(c.AbstractPostCollection))||n},7598:function(e,t,r){r.d(t,{p:function(){return Z}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(5558),u=r(3071),p=r(8067),f=r(3841),b=r(5952),h=r(9303),d=r(8700),v=r(1629),m=r(1073),y=r(7821),g=r(4163),Z=d.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:v.W,create:{path:"/rcb-blocker"},patch:{path:"/rcb-blocker/:id"},delete:{path:"/rcb-blocker/:id"}})((o=function(e){(0,f.Z)(r,e);var t=(0,b.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.Z)(this,r),n=t.call(this,e,o),(0,a.Z)(n,"presetModel",i,(0,l.Z)(n)),(0,y.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,y.runInAction)((function(){n.presetModel=e?new m.w(e,g.M.get.cookieStore):void 0}))}),{fireImmediately:!0}),n}return(0,c.Z)(r,[{key:"hosts",get:function(){var e;return null===(e=this.data)||void 0===e?void 0:e.meta.hosts.split("\n")}},{key:"tcfVendors",get:function(){var e;return null!==(e=this.data)&&void 0!==e&&e.meta.tcfVendors?this.data.meta.tcfVendors.split(",").filter(Boolean).map(Number):[]}},{key:"cookies",get:function(){var e;return null===(e=this.data)||void 0===e?void 0:e.meta.cookies.split(",").filter(Boolean).map(Number)}},{key:"setName",value:function(e){this.data.title.rendered=e}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setDescription",value:function(e){this.data.content.rendered=e}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPatch",value:function(){var e=(0,u.Z)((0,p.Z)(r.prototype),"transformDataForPatch",this).call(this);return{title:e.title,content:e.content,status:e.status,meta:e.meta,slug:e.title}}},{key:"afterPatch",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterDelete",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(d.AbstractPost),i=(0,h.Z)(o.prototype,"presetModel",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(o.prototype,"hosts",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"hosts"),o.prototype),(0,h.Z)(o.prototype,"tcfVendors",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"tcfVendors"),o.prototype),(0,h.Z)(o.prototype,"cookies",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookies"),o.prototype),(0,h.Z)(o.prototype,"setName",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,h.Z)(o.prototype,"setStatus",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,h.Z)(o.prototype,"setDescription",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,h.Z)(o.prototype,"setMeta",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},1073:function(e,t,r){r.d(t,{w:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1535),d=r(1629),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,d.W)({location:h.N,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},8466:function(e,t,r){r.d(t,{y:function(){return j}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P,S,E,_,x,O,D,z,T=r(2711),I=r(6724),A=r(6762),M=r(3340),N=r(9303),B=r(7821),j=(n=function(){function e(t,r){var n=this;(0,A.Z)(this,e),(0,I.Z)(this,"id",o,this),(0,I.Z)(this,"plugin_version",i,this),(0,I.Z)(this,"design_version",a,this),(0,I.Z)(this,"ipv4",s,this),(0,I.Z)(this,"ipv6",c,this),(0,I.Z)(this,"ipv4_hash",l,this),(0,I.Z)(this,"ipv6_hash",u,this),(0,I.Z)(this,"uuid",p,this),(0,I.Z)(this,"previous_decision",f,this),(0,I.Z)(this,"decision",b,this),(0,I.Z)(this,"decision_labels",h,this),(0,I.Z)(this,"created",d,this),(0,I.Z)(this,"blocker",v,this),(0,I.Z)(this,"blocker_thumbnail",m,this),(0,I.Z)(this,"dnt",y,this),(0,I.Z)(this,"custom_bypass",g,this),(0,I.Z)(this,"user_country",Z,this),(0,I.Z)(this,"revision_hash",k,this),(0,I.Z)(this,"revision_independent_hash",w,this),(0,I.Z)(this,"button_clicked",R,this),(0,I.Z)(this,"context",C,this),(0,I.Z)(this,"viewport_width",P,this),(0,I.Z)(this,"viewport_height",S,this),(0,I.Z)(this,"viewed_page",E,this),(0,I.Z)(this,"url_imprint",_,this),(0,I.Z)(this,"url_privacy_policy",x,this),(0,I.Z)(this,"forwarded",O,this),(0,I.Z)(this,"forwarded_blocker",D,this),(0,I.Z)(this,"tcf_string",z,this),this.store=void 0,this.plain=void 0,(0,B.runInAction)((function(){return(0,B.set)(n,t)})),this.store=r,this.plain=t}return(0,M.Z)(e,[{key:"revision",get:function(){return this.store.revisions.get(this.revision_hash)}},{key:"revision_independent",get:function(){return this.store.revisionsIndependent.get(this.revision_independent_hash)}},{key:"custom_bypass_readable",get:function(){var e=this.custom_bypass;return e?e.charAt(0).toUpperCase()+e.slice(1):""}},{key:"export",get:function(){return JSON.parse(JSON.stringify((0,T.Z)((0,T.Z)({},this.plain),{},{revision:this.revision.data,revision_independent:this.revision_independent.data})))}},{key:"fetchRevisions",value:function(){return Promise.all([this.store.fetchRevision({hash:this.revision_hash}),this.store.fetchRevisionIndependent({hash:this.revision_independent_hash})])}}]),e}(),o=(0,N.Z)(n.prototype,"id",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,N.Z)(n.prototype,"plugin_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,N.Z)(n.prototype,"design_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,N.Z)(n.prototype,"ipv4",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,N.Z)(n.prototype,"ipv6",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,N.Z)(n.prototype,"ipv4_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,N.Z)(n.prototype,"ipv6_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,N.Z)(n.prototype,"uuid",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,N.Z)(n.prototype,"previous_decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,N.Z)(n.prototype,"decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,N.Z)(n.prototype,"decision_labels",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,N.Z)(n.prototype,"created",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,N.Z)(n.prototype,"blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,N.Z)(n.prototype,"blocker_thumbnail",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,N.Z)(n.prototype,"dnt",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,N.Z)(n.prototype,"custom_bypass",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,N.Z)(n.prototype,"user_country",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,N.Z)(n.prototype,"revision_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,N.Z)(n.prototype,"revision_independent_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,N.Z)(n.prototype,"button_clicked",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,N.Z)(n.prototype,"context",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,N.Z)(n.prototype,"viewport_width",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,N.Z)(n.prototype,"viewport_height",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,N.Z)(n.prototype,"viewed_page",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,N.Z)(n.prototype,"url_imprint",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,N.Z)(n.prototype,"url_privacy_policy",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,N.Z)(n.prototype,"forwarded",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,N.Z)(n.prototype,"forwarded_blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,N.Z)(n.prototype,"tcf_string",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,N.Z)(n.prototype,"revision",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision"),n.prototype),(0,N.Z)(n.prototype,"revision_independent",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision_independent"),n.prototype),(0,N.Z)(n.prototype,"custom_bypass_readable",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"custom_bypass_readable"),n.prototype),n)},3374:function(e,t,r){r.d(t,{b:function(){return y}});var n,o,i=r(38),a=r(6762),s=r(3340),c=r(3841),l=r(5952),u=r(9303),p=r(5450),f=r.n(p),b=r(8700),h=r(1629),d=r(6926),v=r(7821),m=r(7068),y=b.ClientCollection.annotate({path:"/rcb-cookie",singlePath:"/rcb-cookie/:id",namespace:"wp/v2",methods:[b.RouteHttpVerb.GET],request:h.W})((o=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,a.Z)(this,r),(n=t.call(this)).store=void 0,n.orderCookies=(0,v.flow)(f().mark((function e(t){var r,n,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busy=!0,e.prev=1,e.next=4,(0,h.W)({location:m.I,request:{ids:t}});case 4:r=0,n=(0,i.Z)(t);try{for(n.s();!(o=n.n()).done;)a=o.value,this.entries.get(a).setOrder(r),r++}catch(e){n.e(e)}finally{n.f()}e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.store=e,n}return(0,s.Z)(r,[{key:"sortedCookies",get:function(){var e=Array.from(this.entries.values());return e.sort((function(e,t){return e.data.menu_order<t.data.menu_order?-1:e.data.menu_order>t.data.menu_order||e.key<t.key?1:e.key>t.key?-1:0})),e}},{key:"instance",value:function(e){return new d.U(this).fromResponse(e)}}]),r}(b.AbstractPostCollection),(0,u.Z)(o.prototype,"sortedCookies",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedCookies"),o.prototype),n=o))||n},9818:function(e,t,r){r.d(t,{w:function(){return y}});var n,o,i=r(38),a=r(6762),s=r(3340),c=r(3841),l=r(5952),u=r(9303),p=r(5450),f=r.n(p),b=r(8700),h=r(1629),d=r(5706),v=r(7821),m=r(5354),y=b.ClientCollection.annotate({path:"/rcb-cookie-group",singlePath:"/rcb-cookie-group/:id",namespace:"wp/v2",methods:[b.RouteHttpVerb.GET],request:h.W})((o=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,a.Z)(this,r),(n=t.call(this)).store=void 0,n.orderCookieGroups=(0,v.flow)(f().mark((function e(t){var r,n,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busy=!0,e.prev=1,e.next=4,(0,h.W)({location:m.B,request:{ids:t}});case 4:r=0,n=(0,i.Z)(t);try{for(n.s();!(o=n.n()).done;)a=o.value,this.entries.get(a).setOrder(r),r++}catch(e){n.e(e)}finally{n.f()}e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.store=e,n}return(0,s.Z)(r,[{key:"sortedGroups",get:function(){var e=Array.from(this.entries.values());return e.sort((function(e,t){return e.data.meta.order<t.data.meta.order?-1:e.data.meta.order>t.data.meta.order?1:0})),e}},{key:"instance",value:function(e){return new d.O(this).fromResponse(e)}}]),r}(b.AbstractCategoryCollection),(0,u.Z)(o.prototype,"sortedGroups",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedGroups"),o.prototype),n=o))||n},5706:function(e,t,r){r.d(t,{O:function(){return Z}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3841),f=r(5952),b=r(9303),h=r(5450),d=r.n(h),v=r(8700),m=r(1629),y=r(3374),g=r(7821),Z=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-cookie-group"},patch:{path:"/rcb-cookie-group/:id"},delete:{path:"/rcb-cookie-group/:id"}})((o=function(e){(0,p.Z)(r,e);var t=(0,f.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"cookies",i,(0,u.Z)(n)),(0,s.Z)(n,"fetchedAllCookies",a,(0,u.Z)(n)),n.fetchCookies=(0,g.flow)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cookies.get({request:{status:["draft","publish","private"]},params:{per_page:100,"rcb-cookie-group":this.key,context:"edit"}});case 2:this.fetchedAllCookies=!0;case 3:case"end":return e.stop()}}),e,this)}))),(0,g.runInAction)((function(){n.cookies=new y.b((0,u.Z)(n))})),n}return(0,l.Z)(r,[{key:"cookiesCount",get:function(){return this.fetchedAllCookies?this.cookies.entries.size:this.data.count}},{key:"setName",value:function(e){this.data.name=e}},{key:"setDescription",value:function(e){this.data.description=e}},{key:"setOrder",value:function(e){this.data.meta.order=e}},{key:"afterDelete",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPatch",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(v.AbstractCategory),i=(0,b.Z)(o.prototype,"cookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.Z)(o.prototype,"fetchedAllCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,b.Z)(o.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookiesCount"),o.prototype),(0,b.Z)(o.prototype,"setName",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,b.Z)(o.prototype,"setDescription",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,b.Z)(o.prototype,"setOrder",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),n=o))||n},6926:function(e,t,r){r.d(t,{U:function(){return w}});var n,o,i,a=r(2711),s=r(7228),c=r(6724),l=r(6762),u=r(3340),p=r(5558),f=r(3071),b=r(8067),h=r(3841),d=r(5952),v=r(9303),m=r(8700),y=r(1629),g=r(8213),Z=r(7821),k=r(4163),w=m.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.W,create:{path:"/rcb-cookie"},patch:{path:"/rcb-cookie/:id"},delete:{path:"/rcb-cookie/:id"}})((o=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.Z)(this,r),n=t.call(this,e,o),(0,c.Z)(n,"presetModel",i,(0,p.Z)(n)),n.store=void 0,(0,Z.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,Z.runInAction)((function(){n.presetModel=e?new g.g(e,k.M.get.cookieStore):void 0}))}),{fireImmediately:!0}),n}return(0,u.Z)(r,[{key:"rootStore",get:function(){return this.collection.store.collection.store.rootStore}},{key:"tagManagerSettings",get:function(){var e=this.rootStore.optionStore;return e.others.isPro,e.setCookiesViaManager,!1}},{key:"technicalDefinitions",get:function(){return JSON.parse(this.data.meta.technicalDefinitions)}},{key:"codeDynamics",get:function(){return JSON.parse(this.data.meta.codeDynamics||"{}")}},{key:"firstTechnicalDefinition",get:function(){var e;return null===(e=this.technicalDefinitions)||void 0===e?void 0:e[0]}},{key:"afterPatch",value:function(){var e=this,t=this.collection.store.collection,r=(0,s.Z)(this.data["rcb-cookie-group"],1)[0];t.entries.forEach((function(t){r!==t.key?t.cookies.entries.delete(e.key):t.cookies.entries.set(e.key,e)})),this.rootStore.optionStore.fetchCurrentRevision(),this.rootStore.cookieStore.unassignedCookies.delete(this.key)}},{key:"setOrder",value:function(e){this.data.menu_order=e}},{key:"setName",value:function(e){this.data.title.rendered=e}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setPurpose",value:function(e){this.data.content.rendered=e}},{key:"setGroup",value:function(e){this.data["rcb-cookie-group"]=[e]}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPersist",value:function(){var e=(0,f.Z)((0,b.Z)(r.prototype),"transformDataForPersist",this).call(this);return(0,a.Z)((0,a.Z)({},e),{},{"rcb-cookie-group":[this.collection.store.key]})}},{key:"transformDataForPatch",value:function(){var e=(0,f.Z)((0,b.Z)(r.prototype),"transformDataForPatch",this).call(this);return{title:e.title,content:e.content,status:e.status,meta:e.meta,menu_order:e.menu_order,"rcb-cookie-group":this.data["rcb-cookie-group"],slug:e.title}}},{key:"afterDelete",value:function(){this.collection.store.cookies.store.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){var e=this.collection.store.cookies.store.collection.store.rootStore,t=e.optionStore,r=e.checklistStore;t.fetchCurrentRevision(),r.probablyFetchByChangedItem("add-cookie")}}]),r}(m.AbstractPost),i=(0,v.Z)(o.prototype,"presetModel",[Z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,v.Z)(o.prototype,"rootStore",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"rootStore"),o.prototype),(0,v.Z)(o.prototype,"tagManagerSettings",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"tagManagerSettings"),o.prototype),(0,v.Z)(o.prototype,"technicalDefinitions",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"technicalDefinitions"),o.prototype),(0,v.Z)(o.prototype,"codeDynamics",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"codeDynamics"),o.prototype),(0,v.Z)(o.prototype,"firstTechnicalDefinition",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"firstTechnicalDefinition"),o.prototype),(0,v.Z)(o.prototype,"afterPatch",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"afterPatch"),o.prototype),(0,v.Z)(o.prototype,"setOrder",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),(0,v.Z)(o.prototype,"setName",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,v.Z)(o.prototype,"setStatus",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,v.Z)(o.prototype,"setPurpose",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setPurpose"),o.prototype),(0,v.Z)(o.prototype,"setGroup",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setGroup"),o.prototype),(0,v.Z)(o.prototype,"setMeta",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},8213:function(e,t,r){r.d(t,{g:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1500),d=r(1629),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,d.W)({location:h.t,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},508:function(e,t,r){r.d(t,{k:function(){return o}});var n=r(6762),o=function e(t,r){(0,n.Z)(this,e),this.data=void 0,this.store=void 0,this.data=t,this.store=r}},502:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(6762),o=function e(t,r){(0,n.Z)(this,e),this.data=void 0,this.store=void 0,this.data=t,this.store=r}},936:function(e,t,r){r.d(t,{o:function(){return v}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(9303),u=r(5450),p=r.n(u),f=r(7821),b=r(4227),h=r(1629),d=r(8630),v=(n=function(){function e(t,r){var n=this;(0,s.Z)(this,e),(0,a.Z)(this,"busy",o,this),(0,a.Z)(this,"data",i,this),this.store=void 0,this.ignore=(0,f.flow)(p().mark((function e(){var t,r=arguments;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(r.length>1&&void 0!==r[1])||r[1],e.prev=1,e.next=4,(0,h.W)({location:b.C,request:{ignored:t},params:{host:this.data.host.replace(/\./g,"_")}});case 4:this.data.ignored=t,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[1,7]])}))),(0,f.runInAction)((function(){n.data=t})),this.store=r}return(0,c.Z)(e,[{key:"identifier",get:function(){return this.data.host}},{key:"inactive",get:function(){return"full"===this.blockedStatus||this.data.ignored}},{key:"blockedStatus",get:function(){var e=this.data,t=e.foundCount,r=e.blockedCount;return 0===r?"none":t===r?"full":"partial"}},{key:"blockedStatusText",get:function(){switch(this.blockedStatus){case"full":return(0,d.__)("Fully blocked");case"partial":return(0,d.__)("Partially blocked");default:return(0,d.__)("Not blocked")}}}]),e}(),o=(0,l.Z)(n.prototype,"busy",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,l.Z)(n.prototype,"data",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(n.prototype,"identifier",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,l.Z)(n.prototype,"inactive",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),(0,l.Z)(n.prototype,"blockedStatus",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedStatus"),n.prototype),(0,l.Z)(n.prototype,"blockedStatusText",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedStatusText"),n.prototype),n)},1313:function(e,t,r){r.d(t,{a:function(){return h}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(9303),u=r(5450),p=r.n(u),f=r(7821),b=r(3190),h=(n=function(){function e(t,r){var n=this;(0,s.Z)(this,e),(0,a.Z)(this,"busy",o,this),(0,a.Z)(this,"data",i,this),this.store=void 0,this.fetchMarkup=(0,f.flow)(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.fetchMarkup(this.data.id);case 2:case"end":return e.stop()}}),e,this)}))),(0,f.runInAction)((function(){n.data=t})),this.store=r}return(0,c.Z)(e,[{key:"markup",get:function(){return this.store.resultMarkup.get(this.data.id)}},{key:"blockedUrlTruncate",get:function(){return(0,b.r)(this.data.blockedUrl,50,"[...]")}},{key:"sourceUrlTruncate",get:function(){return(0,b.r)(this.data.sourceUrl,50,"[...]")}}]),e}(),o=(0,l.Z)(n.prototype,"busy",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,l.Z)(n.prototype,"data",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(n.prototype,"markup",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"markup"),n.prototype),(0,l.Z)(n.prototype,"blockedUrlTruncate",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedUrlTruncate"),n.prototype),(0,l.Z)(n.prototype,"sourceUrlTruncate",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"sourceUrlTruncate"),n.prototype),n)},1680:function(e,t,r){r.d(t,{g:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1629),d=r(1535),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,h.W)({location:d.N,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"identifier",get:function(){return this.data.identifier}},{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}},{key:"inactive",get:function(){return this.data.created}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"identifier",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),(0,u.Z)(n.prototype,"inactive",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),n)},6846:function(e,t,r){r.d(t,{i:function(){return u}});var n,o,i,a=r(6724),s=r(6762),c=r(9303),l=r(7821),u=(n=function e(t,r,n){var c=this;(0,s.Z)(this,e),(0,a.Z)(this,"data",o,this),(0,a.Z)(this,"special",i,this),this.store=void 0,(0,l.runInAction)((function(){c.special=r,c.data=t})),this.store=n},o=(0,c.Z)(n.prototype,"data",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,c.Z)(n.prototype,"special",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},8905:function(e,t,r){r.d(t,{v:function(){return u}});var n,o,i,a=r(6724),s=r(6762),c=r(9303),l=r(7821),u=(n=function e(t,r,n){var c=this;(0,s.Z)(this,e),(0,a.Z)(this,"data",o,this),(0,a.Z)(this,"special",i,this),this.store=void 0,(0,l.runInAction)((function(){c.special=r,c.data=t})),this.store=n},o=(0,c.Z)(n.prototype,"data",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,c.Z)(n.prototype,"special",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},7037:function(e,t,r){r.d(t,{C:function(){return b}});var n,o,i=r(7870),a=r(38),s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(7821),f=r(6833),b=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"data",o,this),this.store=void 0,(0,p.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"vendorConfiguration",get:function(){var e,t=(0,a.Z)(this.store.vendorConfigurations.entries.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(r.vendorModel.data.id===this.data.id)return r}}catch(e){t.e(e)}finally{t.f()}}},{key:"deviceStorageDisclosure",get:function(){var e=this.data,t=e.usesCookies,r=e.cookieMaxAgeSeconds,n=e.cookieRefresh,o=e.usesNonCookieAccess,a=e.deviceStorageDisclosure,s=null!=a&&a.disclosures.length?(0,i.Z)(a.disclosures):[];return o&&s.unshift({type:f.r.Web,identifier:"*",purposes:void 0,cookieRefresh:void 0,domain:"*",maxAgeSeconds:null}),t&&s.unshift({type:f.r.Cookie,identifier:"*",purposes:void 0,cookieRefresh:n,domain:"*",maxAgeSeconds:r}),s}},{key:"allPurposes",get:function(){return[].concat((0,i.Z)(this.legIntPurposes),(0,i.Z)(this.purposes),(0,i.Z)(this.specialPurposes)).filter(Boolean)}},{key:"allFeatures",get:function(){return[].concat((0,i.Z)(this.features),(0,i.Z)(this.specialFeatures)).filter(Boolean)}},{key:"restrictivePurposes",get:function(){for(var e={normal:{}},t=0,r=[].concat((0,i.Z)(this.legIntPurposes),(0,i.Z)(this.purposes));t<r.length;t++){var n=r[t];e.normal[n.data.id.toString()]={enabled:!0,legInt:this.legIntPurposes.indexOf(n)>-1&&!n.special?"yes":"no"}}return e}},{key:"purposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.purposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"legIntPurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.legIntPurposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"flexiblePurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.flexiblePurposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"specialPurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.specialPurposes.map((function(e){return t.store.specialPurposes.get("".concat(e))}))}},{key:"features",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.features.map((function(e){return t.store.features.get("".concat(e))}))}},{key:"specialFeatures",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.specialFeatures.map((function(e){return t.store.specialFeatures.get("".concat(e))}))}}]),e}(),o=(0,u.Z)(n.prototype,"data",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"vendorConfiguration",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"vendorConfiguration"),n.prototype),(0,u.Z)(n.prototype,"deviceStorageDisclosure",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"deviceStorageDisclosure"),n.prototype),(0,u.Z)(n.prototype,"allPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"allPurposes"),n.prototype),(0,u.Z)(n.prototype,"allFeatures",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"allFeatures"),n.prototype),(0,u.Z)(n.prototype,"restrictivePurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"restrictivePurposes"),n.prototype),(0,u.Z)(n.prototype,"purposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"purposes"),n.prototype),(0,u.Z)(n.prototype,"legIntPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"legIntPurposes"),n.prototype),(0,u.Z)(n.prototype,"flexiblePurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"flexiblePurposes"),n.prototype),(0,u.Z)(n.prototype,"specialPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"specialPurposes"),n.prototype),(0,u.Z)(n.prototype,"features",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"features"),n.prototype),(0,u.Z)(n.prototype,"specialFeatures",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"specialFeatures"),n.prototype),n)},1833:function(e,t,r){r.d(t,{C:function(){return p}});var n,o=r(6762),i=r(3340),a=r(3841),s=r(5952),c=r(8700),l=r(1629),u=r(9533),p=c.ClientCollection.annotate({path:"/rcb-tcf-vendor-conf",singlePath:"/rcb-tcf-vendor-conf/:id",namespace:"wp/v2",methods:[c.RouteHttpVerb.GET],request:l.W})(n=function(e){(0,a.Z)(r,e);var t=(0,s.Z)(r);function r(e){var n;return(0,o.Z)(this,r),(n=t.call(this)).store=void 0,n.store=e,n}return(0,i.Z)(r,[{key:"instance",value:function(e){return new u.S(this).fromResponse(e)}}]),r}(c.AbstractPostCollection))||n},9533:function(e,t,r){r.d(t,{S:function(){return w}});var n,o,i,a=r(7870),s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3071),f=r(8067),b=r(3841),h=r(5952),d=r(9303),v=r(8700),m=r(1629),y=r(7821),g=r(7037),Z=r(5311),k=r.n(Z),w=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-tcf-vendor-conf"},patch:{path:"/rcb-tcf-vendor-conf/:id"},delete:{path:"/rcb-tcf-vendor-conf/:id"}})((o=function(e){(0,b.Z)(r,e);var t=(0,h.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"vendorModel",i,(0,u.Z)(n)),(0,y.reaction)((function(){return n.data.vendor}),(function(e){return(0,y.runInAction)((function(){if(e){var t=n.collection.store.vendors,r=e.id.toString(),o=t.get(r);o||(o=new g.C(e,n.collection.store),t.set(r,o)),n.vendorModel=o}}))}),{fireImmediately:!0}),(0,y.reaction)((function(){var e;return null===(e=n.data.meta)||void 0===e?void 0:e.vendorId}),(function(e){e&&(n.vendorModel=n.collection.store.vendors.get(e.toString()))}),{fireImmediately:!0}),n}return(0,l.Z)(r,[{key:"hasVendor",get:function(){return!!this.vendorModel}},{key:"restrictivePurposes",get:function(){var e,t,r="global"===this.collection.store.rootStore.optionStore.tcfScopeOfConsent,n=(null===(e=this.vendorModel)||void 0===e?void 0:e.restrictivePurposes)||{normal:{}};if(r)return n;var o=JSON.parse(this.data.meta.restrictivePurposes);return k().extend(!0,{},(null===(t=this.vendorModel)||void 0===t?void 0:t.restrictivePurposes)||{},o)}},{key:"stats",get:function(){var e,t=this.restrictivePurposes.normal,r=(0,a.Z)(Object.values(t));return{activePurposes:r.filter((function(e){return e.enabled})).length,legIntPurposes:r.filter((function(e){var t=e.enabled,r=e.legInt;return t&&"yes"===r})).length,activeFeatures:(null===(e=this.vendorModel)||void 0===e?void 0:e.allFeatures.length)||0}}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPatch",value:function(){var e=(0,p.Z)((0,f.Z)(r.prototype),"transformDataForPatch",this).call(this);return{status:e.status,meta:e.meta}}},{key:"afterPatch",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterDelete",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(v.AbstractPost),i=(0,d.Z)(o.prototype,"vendorModel",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(o.prototype,"hasVendor",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"hasVendor"),o.prototype),(0,d.Z)(o.prototype,"restrictivePurposes",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"restrictivePurposes"),o.prototype),(0,d.Z)(o.prototype,"stats",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"stats"),o.prototype),(0,d.Z)(o.prototype,"setStatus",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,d.Z)(o.prototype,"setMeta",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},2819:function(e,t,r){r.d(t,{L:function(){return k}});var n,o,i,a=r(2711),s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3841),f=r(5952),b=r(9303),h=r(5450),d=r.n(h),v=r(7821),m=r(8700),y=r(986),g=r(8930),Z=r(1629),k=(n=function(e){(0,p.Z)(r,e);var t=(0,f.Z)(r);function r(e){var n;return(0,c.Z)(this,r),n=t.call(this),(0,s.Z)(n,"busyChecklist",o,(0,u.Z)(n)),(0,s.Z)(n,"checklist",i,(0,u.Z)(n)),n.rootStore=void 0,n.probablyFetchByChangedItem=(0,v.flow)(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=4;break}return e.next=3,this.fetchChecklist();case 3:return e.abrupt("return");case 4:if(n=Array.isArray(t)?t:[t],!(this.items.filter((function(e){var t=e.id,r=e.checked;return n.indexOf(t)>-1&&!r})).length>0)){e.next=8;break}return e.next=8,this.fetchChecklist();case 8:case"end":return e.stop()}}),e,this)}))),n.fetchChecklist=(0,v.flow)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyChecklist=!0,e.prev=1,e.next=4,(0,Z.W)({location:y.g,params:{_wp_http_referer:window.location.href}});case 4:this.checklist=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busyChecklist=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.toggleChecklistItem=(0,v.flow)(d().mark((function e(t,r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyChecklist=!0,e.prev=1,e.next=4,(0,Z.W)({location:g.s,request:{state:r},params:{id:t,_wp_http_referer:window.location.href}});case 4:this.checklist=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busyChecklist=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.rootStore=e,n}return(0,l.Z)(r,[{key:"items",get:function(){var e=this;return this.checklist&&Object.keys(this.checklist.items).map((function(t){return(0,a.Z)({id:t},e.checklist.items[t])}))||[]}},{key:"completed",get:function(){return this.items.filter((function(e){return e.checked}))}},{key:"checkable",get:function(){var e=this.rootStore.optionStore.others.isPro;return this.items.filter((function(t){var r=t.needsPro;return!r||e&&r}))}},{key:"done",get:function(){var e;return this.completed.length>=this.checkable.length||!(null===(e=this.checklist)||void 0===e||!e.dismissed)}}]),r}(m.BaseOptions),o=(0,b.Z)(n.prototype,"busyChecklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,b.Z)(n.prototype,"checklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(n.prototype,"items",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"items"),n.prototype),(0,b.Z)(n.prototype,"completed",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"completed"),n.prototype),(0,b.Z)(n.prototype,"checkable",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"checkable"),n.prototype),(0,b.Z)(n.prototype,"done",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"done"),n.prototype),n)},3880:function(e,t,r){r.d(t,{v:function(){return I}});var n,o,i,a,s,c,l,u,p,f,b=r(38),h=r(6724),d=r(6762),v=r(3340),m=r(5558),y=r(3841),g=r(5952),Z=r(9303),k=r(5450),w=r.n(k),R=r(7821),C=r(8700),P=r(1629),S=r(5151),E=r(2616),_=r(5253),x=r(9437),O=r(6465),D=r(8466),z=r(508),T=r(502),I=(n=function(e){(0,y.Z)(r,e);var t=(0,g.Z)(r);function r(e){var n;return(0,d.Z)(this,r),n=t.call(this),(0,h.Z)(n,"busyConsent",o,(0,m.Z)(n)),(0,h.Z)(n,"busyReferer",i,(0,m.Z)(n)),(0,h.Z)(n,"count",a,(0,m.Z)(n)),(0,h.Z)(n,"perPage",s,(0,m.Z)(n)),(0,h.Z)(n,"offset",c,(0,m.Z)(n)),(0,h.Z)(n,"pageCollection",l,(0,m.Z)(n)),(0,h.Z)(n,"revisions",u,(0,m.Z)(n)),(0,h.Z)(n,"revisionsIndependent",p,(0,m.Z)(n)),(0,h.Z)(n,"referer",f,(0,m.Z)(n)),n.filters=R.observable.object({page:1,dates:[void 0,void 0],context:void 0,referer:void 0,ip:void 0,uuid:void 0},{},{deep:!1}),n.rootStore=void 0,n.fetchAll=(0,R.flow)(w().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,h;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyConsent=!0,e.prev=1,t=this.filters,r=t.page,n=t.referer,o=t.ip,i=t.uuid,a=t.context,s=this.filters.dates.map((function(e){return e?e.format("YYYY-MM-DD"):""})),e.next=6,(0,P.W)({location:S.c,params:{per_page:this.perPage,offset:(r-1)*this.perPage,from:s[0],to:s[1],ip:o,uuid:i,referer:n,context:a}});case 6:c=e.sent,l=c.count,u=c.items,this.count=l,this.pageCollection.clear(),p=(0,b.Z)(u);try{for(p.s();!(f=p.n()).done;)h=f.value,this.pageCollection.set(h.id,new D.y(h,this))}catch(e){p.e(e)}finally{p.f()}e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(1),console.log(e.t0),e.t0;case 19:return e.prev=19,this.busyConsent=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,15,19,22]])}))),n.fetchRevision=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,P.W)({location:E.Z,params:t});case 3:r=e.sent,this.revisions.set(t.hash,new z.k(r,this)),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.fetchRevisionIndependent=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,P.W)({location:_.T,params:t});case 3:r=e.sent,this.revisionsIndependent.set(t.hash,new T.I(r,this)),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.fetchReferer=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyReferer=!0,e.prev=1,e.next=4,(0,P.W)({location:x.q,params:t});case 4:r=e.sent,this.referer=r.items,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busyReferer=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[1,8,12,15]])}))),n.deleteAll=(0,R.flow)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyConsent=!0,e.prev=1,e.next=4,(0,P.W)({location:O.O});case 4:return this.applyPage(0),e.next=7,this.fetchAll();case 7:e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyConsent=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,(0,R.runInAction)((function(){n.filters.context=n.rootStore.optionStore.others.context})),n}return(0,v.Z)(r,[{key:"applyPage",value:function(e){this.filters.page=e}},{key:"applyDates",value:function(e){this.filters.dates=e}},{key:"applyContext",value:function(e){this.filters.context=e}},{key:"applyReferer",value:function(e){this.filters.referer=e}},{key:"applyIp",value:function(e){this.filters.ip=e}},{key:"applyUuid",value:function(e){this.filters.uuid=e}}]),r}(C.BaseOptions),o=(0,Z.Z)(n.prototype,"busyConsent",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,Z.Z)(n.prototype,"busyReferer",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,Z.Z)(n.prototype,"count",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,Z.Z)(n.prototype,"perPage",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),c=(0,Z.Z)(n.prototype,"offset",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,Z.Z)(n.prototype,"pageCollection",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),u=(0,Z.Z)(n.prototype,"revisions",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),p=(0,Z.Z)(n.prototype,"revisionsIndependent",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),f=(0,Z.Z)(n.prototype,"referer",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,Z.Z)(n.prototype,"applyPage",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyPage"),n.prototype),(0,Z.Z)(n.prototype,"applyDates",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,Z.Z)(n.prototype,"applyContext",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),(0,Z.Z)(n.prototype,"applyReferer",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyReferer"),n.prototype),(0,Z.Z)(n.prototype,"applyIp",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyIp"),n.prototype),(0,Z.Z)(n.prototype,"applyUuid",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyUuid"),n.prototype),n)},2237:function(e,t,r){r.d(t,{h:function(){return _}});var n,o,i,a,s,c,l,u,p,f,b=r(6724),h=r(6762),d=r(3340),v=r(9303),m=r(5450),y=r.n(m),g=r(7821),Z=r(1073),k=r(8213),w=r(9818),R=r(1031),C=r(6764),P=r(7689),S=r(3352),E=r(1629),_=(n=function(){function e(t){var r=this;(0,h.Z)(this,e),(0,b.Z)(this,"busy",o,this),(0,b.Z)(this,"groups",i,this),(0,b.Z)(this,"unassignedCookies",a,this),(0,b.Z)(this,"blockers",s,this),(0,b.Z)(this,"presetsBlocker",c,this),(0,b.Z)(this,"busyPresetsBlocker",l,this),(0,b.Z)(this,"presetsCookie",u,this),(0,b.Z)(this,"busyPresetsCookie",p,this),(0,b.Z)(this,"fetchedAllBlockers",f,this),this.rootStore=void 0,this.fetchGroups=(0,g.flow)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.groups.get({params:{per_page:100}});case 2:return e.next=4,this.fetchUnassignedCookies();case 4:case"end":return e.stop()}}),e,this)}))),this.fetchUnassignedCookies=(0,g.flow)(y().mark((function e(){var t,r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,E.W)({location:C.p});case 3:for(t=e.sent,r=0,n=Object.values(t);r<n.length;r++)o=n[r],this.unassignedCookies.set(o.id,o);e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),this.fetchBlockers=(0,g.flow)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.blockers.get({request:{status:["draft","publish","private"]},params:{per_page:100,context:"edit"}});case 2:this.fetchedAllBlockers=!0;case 3:case"end":return e.stop()}}),e,this)}))),this.fetchPresetsBlocker=(0,g.flow)(y().mark((function e(){var t,r,n,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresetsBlocker=!0,e.prev=1,e.next=4,(0,E.W)({location:P.W});case 4:for(t=e.sent,r=t.items,n=0,o=Object.keys(r);n<o.length;n++)i=o[n],this.presetsBlocker.set(i,new Z.w(r[i],this));e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyPresetsBlocker=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),this.fetchPresetsCookie=(0,g.flow)(y().mark((function e(){var t,r,n,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresetsCookie=!0,e.prev=1,e.next=4,(0,E.W)({location:S.z});case 4:for(t=e.sent,r=t.items,n=0,o=Object.keys(r);n<o.length;n++)i=o[n],this.presetsCookie.set(i,new k.g(r[i],this));e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyPresetsCookie=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),this.rootStore=t,(0,g.runInAction)((function(){r.groups=new w.w(r),r.blockers=new R.R(r)}))}return(0,d.Z)(e,[{key:"blockersCount",get:function(){return this.fetchedAllBlockers?this.blockers.entries.size:this.rootStore.optionStore.allBlockerCount}},{key:"cookiesCount",get:function(){return Array.from(this.groups.entries.values()).map((function(e){return e.cookiesCount})).reduce((function(e,t){return e+t}),0)}},{key:"essentialGroup",get:function(){if(0!==this.groups.entries.size){for(var e,t=this.groups.entries.values();(e=t.next().value)&&e.data.slug!==this.rootStore.optionStore.others.essentialGroup;);return e}}}]),e}(),o=(0,v.Z)(n.prototype,"busy",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,v.Z)(n.prototype,"groups",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,v.Z)(n.prototype,"unassignedCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),s=(0,v.Z)(n.prototype,"blockers",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,v.Z)(n.prototype,"presetsBlocker",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,v.Z)(n.prototype,"busyPresetsBlocker",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,v.Z)(n.prototype,"presetsCookie",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),p=(0,v.Z)(n.prototype,"busyPresetsCookie",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,v.Z)(n.prototype,"fetchedAllBlockers",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,v.Z)(n.prototype,"blockersCount",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockersCount"),n.prototype),(0,v.Z)(n.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"cookiesCount"),n.prototype),(0,v.Z)(n.prototype,"essentialGroup",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"essentialGroup"),n.prototype),n)},7602:function(e,t,r){r.d(t,{W:function(){return C}});var n,o,i,a,s,c,l,u=r(7228),p=r(38),f=r(2711),b=r(6724),h=r(6762),d=r(3340),v=r(9303),m=r(5450),y=r.n(m),g=r(7821),Z=r(4504),k=r(1629),w=r(9507),R=r(490),C=(n=function(){function e(t){(0,h.Z)(this,e),(0,b.Z)(this,"visible",o,this),(0,b.Z)(this,"animationVisible",i,this),(0,b.Z)(this,"individualPrivacyOpen",a,this),(0,b.Z)(this,"previewCheckboxActiveState",s,this),(0,b.Z)(this,"busyPresets",c,this),(0,b.Z)(this,"presets",l,this),this.rootStore=void 0,this.presetConstants=new Map,this.presetDefaults=new Map,this.debounceFromCustomize={},this.fetchPresets=(0,g.flow)(y().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,b,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresets=!0,e.prev=1,e.next=4,(0,k.W)({location:Z.t});case 4:for(t=e.sent,r=t.defaults,n=t.constants,o=t.items,i=0,a=Object.keys(r);i<a.length;i++)s=a[i],this.presetDefaults.set(s,r[s]);for(c=0,l=Object.keys(n);c<l.length;c++)u=l[c],this.presetConstants.set(u,n[u]);for(p=0,b=Object.keys(o);p<b.length;p++)h=b[p],this.presets.set(h,new w.p((0,f.Z)({id:h},o[h]),this));e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(1),console.log(e.t0),e.t0;case 17:return e.prev=17,this.busyPresets=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,13,17,20]])}))),this.rootStore=t}return(0,d.Z)(e,[{key:"setBannerFromCustomize",value:function(e,t,r){var n=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.rootStore.optionStore.others.customizeValuesBanner,a=t.toString();if(o&&["css","animationInDuration","animationOutDuration"].indexOf(a)>-1)clearTimeout(this.debounceFromCustomize[a]),this.debounceFromCustomize[a]=setTimeout((function(){return n.setBannerFromCustomize(e,t,r,!1)}),500);else{var s=i[e][t];i[e][t]=r,a.startsWith("animationOut")&&s!==r&&this.forceAnimationOutSimulation()}}},{key:"setBannerFromPreset",value:function(e){var t,r=(0,p.Z)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=(0,u.Z)(n,3),i=o[0],a=o[1],s=o[2];this.rootStore.optionStore.others.customizeValuesBanner[i][a]=s}}catch(e){r.e(e)}finally{r.f()}}},{key:"forceAnimationOutSimulation",value:function(){var e=this,t=this.rootStore.optionStore.others.customizeValuesBanner;"none"!==t.layout.animationOut&&(this.animationVisible=!1,setTimeout((function(){return(0,g.runInAction)((function(){e.animationVisible=!0}))}),+t.layout.animationOutDuration+1e3))}},{key:"setVisible",value:function(e){this.visible=e}},{key:"setIndividualPrivacyOpen",value:function(e){this.individualPrivacyOpen=e}},{key:"setPreviewCheckboxActiveState",value:function(e){this.previewCheckboxActiveState=e}},{key:"exportPhp",value:function(){var e=this,t={},r=(0,R.getSidebarCustomize)();return this.presetDefaults.forEach((function(n,o){var i=r(o).get();"boolean"==typeof n?i=!!+i:isNaN(i)||""===i||(i=+i),JSON.stringify(n)!==JSON.stringify(i)&&(t[e.presetConstants.get(o)]=i)})),this.jsonToPHPArray(t)}},{key:"jsonToPHPArray",value:function(e){var t=JSON.stringify(e,null,4).split("\n");return t.shift(),t.pop(),t.join("\n").replace(/^(\s+)"([A-Za-z\\]+::[A-Z_]+)"(:)/gm,"$1$2 =>").replace(/^(\s+)([A-Za-z\\]+)::/gm,(function(e,t,r){return"".concat(t).concat(r.replace(/\\\\/gm,"\\"),"::")}))}}]),e}(),o=(0,v.Z)(n.prototype,"visible",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,v.Z)(n.prototype,"animationVisible",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),a=(0,v.Z)(n.prototype,"individualPrivacyOpen",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,v.Z)(n.prototype,"previewCheckboxActiveState",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,v.Z)(n.prototype,"busyPresets",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=(0,v.Z)(n.prototype,"presets",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,v.Z)(n.prototype,"setBannerFromCustomize",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setBannerFromCustomize"),n.prototype),(0,v.Z)(n.prototype,"setBannerFromPreset",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setBannerFromPreset"),n.prototype),(0,v.Z)(n.prototype,"forceAnimationOutSimulation",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"forceAnimationOutSimulation"),n.prototype),(0,v.Z)(n.prototype,"setVisible",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setVisible"),n.prototype),(0,v.Z)(n.prototype,"setIndividualPrivacyOpen",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setIndividualPrivacyOpen"),n.prototype),(0,v.Z)(n.prototype,"setPreviewCheckboxActiveState",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setPreviewCheckboxActiveState"),n.prototype),n)},8783:function(e,t,r){r.d(t,{My:function(){return n.M},mZ:function(){return n.m},aZ:function(){return o.a},WS:function(){return i.W},hc:function(){return a.h},v:function(){return s.v},et:function(){return c.e},L_:function(){return l.L},z:function(){return u.z},Cu:function(){return p.C}});var n=r(4163),o=r(5951),i=r(7602),a=r(2237),s=r(3880),c=r(6228),l=r(2819),u=r(5305),p=r(6696)},5951:function(e,t,r){r.d(t,{a:function(){return Ce}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P,S,E,_,x,O,D,z,T,I,A,M,N,B,j,U,V,F,G,L,W,H,q,Y,J,Q,X,$,K,ee,te,re=r(2711),ne=r(6724),oe=r(6762),ie=r(3340),ae=r(5558),se=r(3841),ce=r(5952),le=r(9303),ue=r(5450),pe=r.n(ue),fe=r(7821),be=r(8700),he=r(8628),de=r(5614),ve=r(3531),me=r(5482),ye=r(7532),ge=r(3128),Ze=r(9925),ke=r(1719),we=r(1629),Re=r(8335),Ce=(n=function(e){(0,se.Z)(r,e);var t=(0,ce.Z)(r);function r(e){var n;return(0,oe.Z)(this,r),n=t.call(this),(0,ne.Z)(n,"busySettings",o,(0,ae.Z)(n)),(0,ne.Z)(n,"busyCountryBypassUpdate",i,(0,ae.Z)(n)),(0,ne.Z)(n,"busyAddLinksToNavigationMenu",a,(0,ae.Z)(n)),(0,ne.Z)(n,"needsRevisionRetrigger",s,(0,ae.Z)(n)),(0,ne.Z)(n,"publicCookieCount",c,(0,ae.Z)(n)),(0,ne.Z)(n,"allCookieCount",l,(0,ae.Z)(n)),(0,ne.Z)(n,"allBlockerCount",u,(0,ae.Z)(n)),(0,ne.Z)(n,"allTcfVendorConfigurationCount",p,(0,ae.Z)(n)),(0,ne.Z)(n,"allScannerResultPresetsCount",f,(0,ae.Z)(n)),(0,ne.Z)(n,"allScannerResultExternalUrlsCount",b,(0,ae.Z)(n)),(0,ne.Z)(n,"cookieCounts",h,(0,ae.Z)(n)),(0,ne.Z)(n,"nav_menus",d,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfVendorConfigurationCounts",v,(0,ae.Z)(n)),(0,ne.Z)(n,"hasGTM",m,(0,ae.Z)(n)),(0,ne.Z)(n,"hasMTM",y,(0,ae.Z)(n)),(0,ne.Z)(n,"contexts",g,(0,ae.Z)(n)),(0,ne.Z)(n,"dashboardMigration",Z,(0,ae.Z)(n)),(0,ne.Z)(n,"fomoCoupon",k,(0,ae.Z)(n)),(0,ne.Z)(n,"bannerActive",w,(0,ae.Z)(n)),(0,ne.Z)(n,"blockerActive",R,(0,ae.Z)(n)),(0,ne.Z)(n,"refreshSiteAfterConsent",C,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintId",P,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintExternalUrl",S,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintIsExternalUrl",E,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyId",_,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyExternalUrl",x,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyIsExternalUrl",O,(0,ae.Z)(n)),(0,ne.Z)(n,"hidePageIds",D,(0,ae.Z)(n)),(0,ne.Z)(n,"setCookiesViaManager",z,(0,ae.Z)(n)),(0,ne.Z)(n,"acceptAllForBots",T,(0,ae.Z)(n)),(0,ne.Z)(n,"respectDoNotTrack",I,(0,ae.Z)(n)),(0,ne.Z)(n,"cookieDuration",A,(0,ae.Z)(n)),(0,ne.Z)(n,"saveIp",M,(0,ae.Z)(n)),(0,ne.Z)(n,"ePrivacyUSA",N,(0,ae.Z)(n)),(0,ne.Z)(n,"ageNotice",B,(0,ae.Z)(n)),(0,ne.Z)(n,"listServicesNotice",j,(0,ae.Z)(n)),(0,ne.Z)(n,"consentForwarding",U,(0,ae.Z)(n)),(0,ne.Z)(n,"forwardTo",V,(0,ae.Z)(n)),(0,ne.Z)(n,"crossDomains",F,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLink",G,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLabelBehind",L,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLabelDescription",W,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypass",H,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassCountries",q,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassType",Y,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassDbDownloadTime",J,(0,ae.Z)(n)),(0,ne.Z)(n,"tcf",Q,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfPublisherCc",X,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfAcceptedTime",$,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfGvlDownloadTime",K,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfScopeOfConsent",ee,(0,ae.Z)(n)),(0,ne.Z)(n,"others",te,(0,ae.Z)(n)),n.pureSlug=void 0,n.pureSlugCamelCased=void 0,n.rootStore=void 0,n.fetchSettings=(0,fe.flow)(pe().mark((function e(t){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.busySettings=!0,e.prev=1,e.t0=t,e.t0){e.next=7;break}return e.next=6,(0,we.W)({location:he.g});case 6:e.t0=e.sent;case 7:return r=e.t0,this.bannerActive=r["rcb-banner-active"],this.blockerActive=r["rcb-blocker-active"],this.refreshSiteAfterConsent=r["rcb-refresh-site-after-consent"],this.imprintId=r["rcb-banner-legal-imprint"],this.imprintExternalUrl=r["rcb-banner-legal-imprint-external-url"],this.imprintIsExternalUrl=r["rcb-banner-legal-imprint-is-external-url"],this.privacyPolicyId=r["rcb-banner-legal-privacy-policy"],this.privacyPolicyExternalUrl=r["rcb-banner-legal-privacy-policy-external-url"],this.privacyPolicyIsExternalUrl=r["rcb-banner-legal-privacy-policy-is-external-url"],this.hidePageIds=(r["rcb-hide-page-ids"]||"").split(",").map(Number).filter(Boolean),this.setCookiesViaManager=r["rcb-set-cookies-via-manager"]||"none",this.acceptAllForBots=r["rcb-accept-all-for-bots"],this.respectDoNotTrack=r["rcb-respect-do-not-track"],this.cookieDuration=r["rcb-cookie-duration"],this.saveIp=r["rcb-save-ip"],this.ePrivacyUSA=r["rcb-eprivacy-usa"],this.ageNotice=r["rcb-age-notice"],this.listServicesNotice=r["rcb-list-services-notice"],this.consentForwarding=r["rcb-consent-forwarding"]||!1,this.forwardTo=(r["rcb-forward-to"]||"").split("|").filter(Boolean),this.crossDomains=r["rcb-cross-domains"]||"",this.countryBypass=r["rcb-country-bypass"],this.countryBypassCountries=(r["rcb-country-bypass-countries"]||"").split(",").filter(Boolean),this.countryBypassType=r["rcb-country-bypass-type"],this.countryBypassDbDownloadTime=r["rcb-country-bypass-db-download-time"],this.tcf=r["rcb-tcf"],this.tcfPublisherCc=r["rcb-tcf-publisher-cc"],this.tcfAcceptedTime=r["rcb-tcf-accepted-time"],this.tcfGvlDownloadTime=r["rcb-tcf-gvl-download-time"],this.tcfScopeOfConsent=r["rcb-tcf-scope-of-consent"],e.next=41,this.fetchCurrentRevision();case 41:e.next=47;break;case 43:throw e.prev=43,e.t1=e.catch(1),console.log(e.t1),e.t1;case 47:return e.prev=47,this.busySettings=!1,e.finish(47);case 50:case"end":return e.stop()}}),e,this,[[1,43,47,50]])}))),n.updateSettings=(0,fe.flow)(pe().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.bannerActive,n=t.blockerActive,o=t.refreshSiteAfterConsent,i=t.imprintId,a=t.privacyPolicyId,s=t.hidePageIds,c=t.setCookiesViaManager,l=t.acceptAllForBots,u=t.respectDoNotTrack,p=t.cookieDuration,f=t.saveIp,b=t.ePrivacyUSA,h=t.ageNotice,d=t.listServicesNotice,v=t.consentForwarding,m=t.forwardTo,y=t.crossDomains,t.affiliateLink,t.affiliateLabelBehind,t.affiliateLabelDescription,g=t.countryBypass,Z=t.countryBypassCountries,k=t.countryBypassType,w=t.tcf,R=t.tcfPublisherCc,C=t.tcfScopeOfConsent,this.busySettings=!0,e.prev=2,e.next=5,(0,we.W)({location:de.J,request:(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},void 0===r?{}:{"rcb-banner-active":r}),void 0===n?{}:{"rcb-blocker-active":n}),void 0===o?{}:{"rcb-refresh-site-after-consent":o}),void 0===i?{}:{"rcb-banner-legal-imprint":i}),void 0===a?{}:{"rcb-banner-legal-privacy-policy":a}),void 0===s?{}:{"rcb-hide-page-ids":s.join(",")}),void 0===c?{}:{"rcb-set-cookies-via-manager":c}),void 0===l?{}:{"rcb-accept-all-for-bots":l}),void 0===u?{}:{"rcb-respect-do-not-track":u}),void 0===p?{}:{"rcb-cookie-duration":p}),void 0===f?{}:{"rcb-save-ip":f}),void 0===b?{}:{"rcb-eprivacy-usa":b}),void 0===h?{}:{"rcb-age-notice":h}),void 0===d?{}:{"rcb-list-services-notice":d}),void 0===v?{}:{"rcb-consent-forwarding":v}),void 0===m?{}:{"rcb-forward-to":m.join("|")}),void 0===y?{}:{"rcb-cross-domains":y}),void 0===g?{}:{"rcb-country-bypass":g}),void 0===Z?{}:{"rcb-country-bypass-countries":Z.join(",")}),void 0===k?{}:{"rcb-country-bypass-type":k}),void 0===w?{}:{"rcb-tcf":w}),void 0===R?{}:{"rcb-tcf-publisher-cc":R}),void 0===C?{}:{"rcb-tcf-scope-of-consent":C}),{}),{}),{})});case 5:P=e.sent,this.fetchSettings(P),this.rootStore.checklistStore.probablyFetchByChangedItem(["save-settings","activate-banner","privacy-policy"]),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(2),console.log(e.t0),e.t0;case 14:return e.prev=14,this.busySettings=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,10,14,17]])}))),n.fetchCurrentRevision=(0,fe.flow)(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,e.t0=this,e.next=5,(0,we.W)({location:ve.G});case 5:e.t1=e.sent,e.t0.setFromCurrentRevision.call(e.t0,e.t1),e.next=13;break;case 9:throw e.prev=9,e.t2=e.catch(1),console.log(e.t2),e.t2;case 13:return e.prev=13,this.busySettings=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.updateCurrentRevision=(0,fe.flow)(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,e.t0=this,e.next=5,(0,we.W)({location:me.a,request:t});case 5:e.t1=e.sent,e.t0.setFromCurrentRevision.call(e.t0,e.t1),e.next=13;break;case 9:throw e.prev=9,e.t2=e.catch(1),console.log(e.t2),e.t2;case 13:return e.prev=13,this.busySettings=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.setModalHintSeen=(0,fe.flow)(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,this.others.modalHints.push(t),e.next=5,(0,we.W)({location:Re.C,request:{identifier:t}});case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busySettings=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.dismissConfigProNotice=(0,fe.flow)(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.others.isConfigProNoticeVisible=!1,e.next=4,(0,we.W)({location:ye.n});case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),console.log(e.t0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),n.dismissMigration=(0,fe.flow)(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.dashboardMigration.id,this.dashboardMigration=void 0,e.next=5,(0,we.W)({location:ge.o,params:{migration:t}});case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.addLinksToNavigationMenu=(0,fe.flow)(pe().mark((function e(t){var r,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyAddLinksToNavigationMenu=!0,e.prev=1,e.next=4,(0,we.W)({location:Ze.i,request:{id:t}});case 4:if(r=e.sent,!(n=r.success)){e.next=10;break}return this.rootStore.checklistStore.fetchChecklist(),e.next=10,this.fetchCurrentRevision();case 10:return e.abrupt("return",n);case 13:throw e.prev=13,e.t0=e.catch(1),console.log(e.t0),e.t0;case 17:return e.prev=17,this.busyAddLinksToNavigationMenu=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,13,17,20]])}))),n.updateCountryBypassDatabase=(0,fe.flow)(pe().mark((function e(){var t,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyCountryBypassUpdate=!0,e.prev=1,e.next=4,(0,we.W)({location:ke._});case 4:t=e.sent,r=t.dbDownloadTime,this.countryBypassDbDownloadTime=r,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyCountryBypassUpdate=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,n.pureSlug=be.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367}),n.pureSlugCamelCased=be.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367},!0),(0,fe.runInAction)((function(){return Object.assign((0,ae.Z)(n),window[n.pureSlugCamelCased])})),n}return(0,ie.Z)(r,[{key:"isOnlyRcbCookieCreated",get:function(){return!(1!==this.allCookieCount||this.tcf&&this.allTcfVendorConfigurationCount)}},{key:"areSettingsFetched",get:function(){return void 0!==this.respectDoNotTrack}},{key:"setFromCurrentRevision",value:function(e){var t=e.contexts,r=e.has_gtm,n=e.has_mtm,o=e.needs_retrigger,i=e.public_cookie_count,a=e.all_cookie_count,s=e.all_blocker_count,c=e.all_tcf_vendor_configuration_count,l=e.all_scanner_result_presets_count,u=e.all_scanner_result_external_urls_count,p=e.cookie_counts,f=e.nav_menus,b=e.tcf_vendor_configuration_counts,h=e.dashboard_migration,d=e.fomo_coupon;this.hasGTM=r,this.hasMTM=n,this.needsRevisionRetrigger=o,this.publicCookieCount=i,this.allCookieCount=a,this.allBlockerCount=s,this.allTcfVendorConfigurationCount=c,this.allScannerResultPresetsCount=l,this.allScannerResultExternalUrlsCount=u,this.cookieCounts=p,this.nav_menus=f,this.tcfVendorConfigurationCounts=b,this.contexts=t,this.dashboardMigration=h,this.fomoCoupon=d}},{key:"setShowLicenseFormImmediate",value:function(e,t){this.others.showLicenseFormImmediate=e,this.others.isLicensed=t}}]),r}(be.BaseOptions),o=(0,le.Z)(n.prototype,"busySettings",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,le.Z)(n.prototype,"busyCountryBypassUpdate",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,le.Z)(n.prototype,"busyAddLinksToNavigationMenu",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,le.Z)(n.prototype,"needsRevisionRetrigger",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,le.Z)(n.prototype,"publicCookieCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,le.Z)(n.prototype,"allCookieCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,le.Z)(n.prototype,"allBlockerCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=(0,le.Z)(n.prototype,"allTcfVendorConfigurationCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,le.Z)(n.prototype,"allScannerResultPresetsCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=(0,le.Z)(n.prototype,"allScannerResultExternalUrlsCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,le.Z)(n.prototype,"cookieCounts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{draft:0,private:0,publish:0}}}),d=(0,le.Z)(n.prototype,"nav_menus",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,le.Z)(n.prototype,"tcfVendorConfigurationCounts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,le.Z)(n.prototype,"hasGTM",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,le.Z)(n.prototype,"hasMTM",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,le.Z)(n.prototype,"contexts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{"":""}}}),Z=(0,le.Z)(n.prototype,"dashboardMigration",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,le.Z)(n.prototype,"fomoCoupon",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,le.Z)(n.prototype,"bannerActive",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=(0,le.Z)(n.prototype,"blockerActive",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=(0,le.Z)(n.prototype,"refreshSiteAfterConsent",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=(0,le.Z)(n.prototype,"imprintId",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,le.Z)(n.prototype,"imprintExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,le.Z)(n.prototype,"imprintIsExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,le.Z)(n.prototype,"privacyPolicyId",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,le.Z)(n.prototype,"privacyPolicyExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,le.Z)(n.prototype,"privacyPolicyIsExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,le.Z)(n.prototype,"hidePageIds",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,le.Z)(n.prototype,"setCookiesViaManager",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,le.Z)(n.prototype,"acceptAllForBots",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,le.Z)(n.prototype,"respectDoNotTrack",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,le.Z)(n.prototype,"cookieDuration",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,le.Z)(n.prototype,"saveIp",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,le.Z)(n.prototype,"ePrivacyUSA",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,le.Z)(n.prototype,"ageNotice",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,le.Z)(n.prototype,"listServicesNotice",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,le.Z)(n.prototype,"consentForwarding",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,le.Z)(n.prototype,"forwardTo",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,le.Z)(n.prototype,"crossDomains",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,le.Z)(n.prototype,"affiliateLink",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,le.Z)(n.prototype,"affiliateLabelBehind",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,le.Z)(n.prototype,"affiliateLabelDescription",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,le.Z)(n.prototype,"countryBypass",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,le.Z)(n.prototype,"countryBypassCountries",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,le.Z)(n.prototype,"countryBypassType",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,le.Z)(n.prototype,"countryBypassDbDownloadTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,le.Z)(n.prototype,"tcf",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,le.Z)(n.prototype,"tcfPublisherCc",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,le.Z)(n.prototype,"tcfAcceptedTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,le.Z)(n.prototype,"tcfGvlDownloadTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,le.Z)(n.prototype,"tcfScopeOfConsent",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,le.Z)(n.prototype,"others",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,le.Z)(n.prototype,"isOnlyRcbCookieCreated",[fe.computed],Object.getOwnPropertyDescriptor(n.prototype,"isOnlyRcbCookieCreated"),n.prototype),(0,le.Z)(n.prototype,"areSettingsFetched",[fe.computed],Object.getOwnPropertyDescriptor(n.prototype,"areSettingsFetched"),n.prototype),(0,le.Z)(n.prototype,"setFromCurrentRevision",[fe.action],Object.getOwnPropertyDescriptor(n.prototype,"setFromCurrentRevision"),n.prototype),(0,le.Z)(n.prototype,"setShowLicenseFormImmediate",[fe.action],Object.getOwnPropertyDescriptor(n.prototype,"setShowLicenseFormImmediate"),n.prototype),n)},6696:function(e,t,r){r.d(t,{C:function(){return D}});var n,o,i,a,s,c,l,u,p,f,b=r(7870),h=r(38),d=r(6724),v=r(6762),m=r(3340),y=r(9303),g=r(5450),Z=r.n(g),k=r(7821),w=r(936),R=r(1313),C=r(1680),P=r(1629),S=r(6753),E=r(6354),_=r(5245),x=r(2091),O=r(3461),D=(n=function(){function e(t){(0,v.Z)(this,e),(0,d.Z)(this,"resultPresets",o,this),(0,d.Z)(this,"busyResultPresets",i,this),(0,d.Z)(this,"fetchedAllResultPresets",a,this),(0,d.Z)(this,"resultExternalUrls",s,this),(0,d.Z)(this,"resultAllExternalUrls",c,this),(0,d.Z)(this,"busyExternalUrls",l,this),(0,d.Z)(this,"fetchedAllResultExternalUrls",u,this),(0,d.Z)(this,"busyMarkup",p,this),(0,d.Z)(this,"resultMarkup",f,this),this.rootStore=void 0,this.addUrlsToQueue=(0,k.flow)(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.W)({location:S.k,request:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),this.fetchResultPresets=(0,k.flow)(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyResultPresets=!0,e.prev=1,e.t0=this,e.next=5,(0,P.W)({location:E.e});case 5:e.t1=e.sent,e.t0.resultPresetsFromResponse.call(e.t0,e.t1),this.fetchedAllResultPresets=!0,e.next=14;break;case 10:throw e.prev=10,e.t2=e.catch(1),console.log(e.t2),e.t2;case 14:return e.prev=14,this.busyResultPresets=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,10,14,17]])}))),this.fetchResultExternals=(0,k.flow)(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyExternalUrls=!0,e.prev=1,e.t0=this,e.next=5,(0,P.W)({location:_.M});case 5:e.t1=e.sent,e.t0.resultExternalUrlsFromResponse.call(e.t0,e.t1),this.fetchedAllResultExternalUrls=!0,e.next=14;break;case 10:throw e.prev=10,e.t2=e.catch(1),console.log(e.t2),e.t2;case 14:return e.prev=14,this.busyExternalUrls=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,10,14,17]])}))),this.fetchResultAllExternals=(0,k.flow)(Z().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,b;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t instanceof w.o?"host":"preset",n=t.identifier,t.busy=!0,e.prev=3,e.next=6,(0,P.W)({location:x.M,params:{type:r,identifier:"host"===r?n.replace(/\./g,"_"):n}});case 6:if(o=e.sent,i=o.items,a=this.resultAllExternalUrls.get(n)){s=i.map((function(e){return e.id})),c=(0,h.Z)(a.keys());try{for(c.s();!(l=c.n()).done;)u=l.value,-1===s.indexOf(u)&&a.delete(u)}catch(e){c.e(e)}finally{c.f()}}else a=new Map;for(p=0,f=Object.values(i);p<f.length;p++)b=f[p],a.set(b.id,new R.a(b,this)),this.resultAllExternalUrls.set(n,a);e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(3),console.log(e.t0),e.t0;case 17:return e.prev=17,t.busy=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[3,13,17,20]])}))),this.fetchMarkup=(0,k.flow)(Z().mark((function e(t){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyMarkup=!0,e.prev=1,e.next=4,(0,P.W)({location:O.$,params:{id:t}});case 4:r=e.sent,this.resultMarkup.set(t,r),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busyMarkup=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[1,8,12,15]])}))),this.rootStore=t}return(0,m.Z)(e,[{key:"sortedExternalUrls",get:function(){var e=Array.from(this.resultExternalUrls.values());return e.sort((function(e,t){return e.inactive===t.inactive?0:e.inactive?1:-1})),e}},{key:"presetsCount",get:function(){return this.fetchedAllResultPresets?this.resultPresets.size:this.rootStore.optionStore.allScannerResultPresetsCount}},{key:"externalUrlsCount",get:function(){return this.fetchedAllResultExternalUrls?this.resultExternalUrls.size:this.rootStore.optionStore.allScannerResultExternalUrlsCount}},{key:"canShowResults",get:function(){var e;return this.presetsCount+this.externalUrlsCount>0&&(null===(e=this.rootStore.checklistStore.checklist)||void 0===e?void 0:e.items.scanner.checked)}},{key:"foundScanResultsCount",get:function(){return this.resultPresets.size+this.resultExternalUrls.size}},{key:"needsAttentionCount",get:function(){return[].concat((0,b.Z)(this.resultPresets.values()),(0,b.Z)(this.resultExternalUrls.values())).filter((function(e){return!e.inactive})).length}},{key:"resultPresetsFromResponse",value:function(e){var t,r=e.items,n=Object.keys(r),o=(0,h.Z)(this.resultPresets.keys());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===n.indexOf(i)&&this.resultPresets.delete(i)}}catch(e){o.e(e)}finally{o.f()}for(var a=0,s=n;a<s.length;a++){var c=s[a];this.resultPresets.set(c,new C.g(r[c],this))}}},{key:"resultExternalUrlsFromResponse",value:function(e){var t,r=e.items,n=Object.keys(r),o=(0,h.Z)(this.resultExternalUrls.keys());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===n.indexOf(i)&&this.resultExternalUrls.delete(i)}}catch(e){o.e(e)}finally{o.f()}for(var a=0,s=n;a<s.length;a++){var c=s[a];this.resultExternalUrls.set(c,new w.o(r[c],this))}}}]),e}(),o=(0,y.Z)(n.prototype,"resultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),i=(0,y.Z)(n.prototype,"busyResultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,y.Z)(n.prototype,"fetchedAllResultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,y.Z)(n.prototype,"resultExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),c=(0,y.Z)(n.prototype,"resultAllExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,y.Z)(n.prototype,"busyExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,y.Z)(n.prototype,"fetchedAllResultExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,y.Z)(n.prototype,"busyMarkup",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,y.Z)(n.prototype,"resultMarkup",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,y.Z)(n.prototype,"sortedExternalUrls",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"sortedExternalUrls"),n.prototype),(0,y.Z)(n.prototype,"presetsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"presetsCount"),n.prototype),(0,y.Z)(n.prototype,"externalUrlsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"externalUrlsCount"),n.prototype),(0,y.Z)(n.prototype,"canShowResults",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"canShowResults"),n.prototype),(0,y.Z)(n.prototype,"foundScanResultsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"foundScanResultsCount"),n.prototype),(0,y.Z)(n.prototype,"needsAttentionCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"needsAttentionCount"),n.prototype),(0,y.Z)(n.prototype,"resultPresetsFromResponse",[k.action],Object.getOwnPropertyDescriptor(n.prototype,"resultPresetsFromResponse"),n.prototype),(0,y.Z)(n.prototype,"resultExternalUrlsFromResponse",[k.action],Object.getOwnPropertyDescriptor(n.prototype,"resultExternalUrlsFromResponse"),n.prototype),n)},6228:function(e,t,r){r.d(t,{e:function(){return y}});var n,o,i=r(6724),a=r(6762),s=r(3340),c=r(5558),l=r(3841),u=r(5952),p=r(9303),f=r(5450),b=r.n(f),h=r(7821),d=r(8700),v=r(8488),m=r.n(v),y=(n=function(e){(0,l.Z)(r,e);var t=(0,u.Z)(r);function r(e){var n;return(0,a.Z)(this,r),n=t.call(this),(0,i.Z)(n,"busyStats",o,(0,c.Z)(n)),n.rootStore=void 0,n.stats=h.observable.object({main:void 0,buttonsClicked:void 0,customBypass:void 0},{},{deep:!1}),n.filters=h.observable.object({dates:void 0,context:void 0},{},{deep:!1}),n.fetchMain=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.fetchButtonsClicked=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.fetchCustomBypass=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.rootStore=e,(0,h.runInAction)((function(){n.filters.dates=[m()().subtract(30,"days"),m()()],n.filters.context=n.rootStore.optionStore.others.context})),n}return(0,s.Z)(r,[{key:"applyDates",value:function(e){this.filters.dates=e}},{key:"applyContext",value:function(e){this.filters.context=e}}]),r}(d.BaseOptions),o=(0,p.Z)(n.prototype,"busyStats",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{main:!1,buttonClicked:!1,customBypass:!1}}}),(0,p.Z)(n.prototype,"applyDates",[h.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,p.Z)(n.prototype,"applyContext",[h.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),n)},4163:function(e,t,r){r.d(t,{M:function(){return d},m:function(){return v}});var n=r(6762),o=r(3340),i=r(7821),a=r(8700),s=r(5951),c=r(7602),l=r(2237),u=r(3880),p=r(6228),f=r(2819),b=r(5305),h=r(6696);(0,i.configure)({enforceActions:"always"});var d=function(){function e(){(0,n.Z)(this,e),this.optionStore=void 0,this.customizeBannerStore=void 0,this.cookieStore=void 0,this.consentStore=void 0,this.statsStore=void 0,this.checklistStore=void 0,this.tcfStore=void 0,this.scannerStore=void 0,this.contextMemo=void 0,this.optionStore=new s.a(this),this.customizeBannerStore=new c.W(this),this.cookieStore=new l.h(this),this.consentStore=new u.v(this),this.statsStore=new p.e(this),this.checklistStore=new f.L(this),this.tcfStore=new b.z(this),this.scannerStore=new h.C(this)}return(0,o.Z)(e,[{key:"context",get:function(){return this.contextMemo?this.contextMemo:this.contextMemo=(0,a.createContextFactory)(this)}}],[{key:"StoreProvider",get:function(){return e.get.context.StoreProvider}},{key:"get",get:function(){return e.me?e.me:e.me=new e}}]),e}();d.me=void 0;var v=function(){return d.get.context.useStores()}},5305:function(e,t,r){r.d(t,{z:function(){return M}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m=r(6724),y=r(6762),g=r(3340),Z=r(5558),k=r(3841),w=r(5952),R=r(9303),C=r(5450),P=r.n(C),S=r(7821),E=r(8700),_=r(8523),x=r(3854),O=r(9945),D=r(1629),z=r(7037),T=r(8905),I=r(6846),A=r(1833),M=(n=function(e){(0,k.Z)(r,e);var t=(0,w.Z)(r);function r(e){var n;return(0,y.Z)(this,r),n=t.call(this),(0,m.Z)(n,"busyGvl",o,(0,Z.Z)(n)),(0,m.Z)(n,"busyVendors",i,(0,Z.Z)(n)),(0,m.Z)(n,"busyDeclarations",a,(0,Z.Z)(n)),(0,m.Z)(n,"vendorConfigurations",s,(0,Z.Z)(n)),(0,m.Z)(n,"fetchedAllVendorConfigurations",c,(0,Z.Z)(n)),(0,m.Z)(n,"vendorListVersion",l,(0,Z.Z)(n)),(0,m.Z)(n,"gvlSpecificationVersion",u,(0,Z.Z)(n)),(0,m.Z)(n,"tcfPolicyVersion",p,(0,Z.Z)(n)),(0,m.Z)(n,"vendors",f,(0,Z.Z)(n)),(0,m.Z)(n,"purposes",b,(0,Z.Z)(n)),(0,m.Z)(n,"specialPurposes",h,(0,Z.Z)(n)),(0,m.Z)(n,"features",d,(0,Z.Z)(n)),(0,m.Z)(n,"specialFeatures",v,(0,Z.Z)(n)),n.rootStore=void 0,n.fetchVendorConfigurations=(0,S.flow)(P().mark((function e(){var t,r,n;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=100,r=Math.ceil(this.vendorConfigurationCount/t),n=0;case 3:if(!(n<r)){e.next=9;break}return e.next=6,this.vendorConfigurations.get({request:{status:["draft","publish","private"]},params:{offset:n*t,per_page:100,context:"edit"}});case 6:n++,e.next=3;break;case 9:this.fetchedAllVendorConfigurations=!0;case 10:case"end":return e.stop()}}),e,this)}))),n.fetchVendors=(0,S.flow)(P().mark((function e(){var t,r,n,o,i,a;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyVendors=!0,e.prev=1,e.next=4,(0,D.W)({location:x.f});case 4:for(t=e.sent,r=t.vendorListVersion,n=t.vendors,o=0,i=Object.keys(n);o<i.length;o++)a=i[o],this.vendors.set(a,new z.C(n[a],this));this.vendorListVersion=r,e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(1),console.log(e.t0),e.t0;case 15:return e.prev=15,this.busyVendors=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,11,15,18]])}))),n.fetchDeclarations=(0,S.flow)(P().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyDeclarations=!0,e.prev=1,e.next=4,(0,D.W)({location:_.Y});case 4:for(t=e.sent,r=t.gvlSpecificationVersion,n=t.tcfPolicyVersion,o=t.purposes,i=t.specialPurposes,a=t.features,s=t.specialFeatures,c=0,l=Object.keys(o);c<l.length;c++)u=l[c],this.purposes.set(u,new T.v(o[u],!1,this));for(p=0,f=Object.keys(i);p<f.length;p++)b=f[p],this.specialPurposes.set(b,new T.v(i[b],!0,this));for(h=0,d=Object.keys(a);h<d.length;h++)v=d[h],this.features.set(v,new I.i(a[v],!1,this));for(m=0,y=Object.keys(s);m<y.length;m++)g=y[m],this.specialFeatures.set(g,new I.i(s[g],!0,this));this.gvlSpecificationVersion=r,this.tcfPolicyVersion=n,e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),console.log(e.t0),e.t0;case 23:return e.prev=23,this.busyDeclarations=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[1,19,23,26]])}))),n.updateGvl=(0,S.flow)(P().mark((function e(){var t,r;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyGvl=!0,e.prev=1,e.next=4,(0,D.W)({location:O.y});case 4:t=e.sent,r=t.gvlDownloadTime,this.rootStore.optionStore.tcfGvlDownloadTime=r,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyGvl=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,(0,S.runInAction)((function(){n.vendorConfigurations=new A.C((0,Z.Z)(n))})),n}return(0,g.Z)(r,[{key:"vendorConfigurationCount",get:function(){return this.fetchedAllVendorConfigurations?this.vendorConfigurations.entries.size:this.rootStore.optionStore.allTcfVendorConfigurationCount}}]),r}(E.BaseOptions),o=(0,R.Z)(n.prototype,"busyGvl",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,R.Z)(n.prototype,"busyVendors",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,R.Z)(n.prototype,"busyDeclarations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,R.Z)(n.prototype,"vendorConfigurations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,R.Z)(n.prototype,"fetchedAllVendorConfigurations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=(0,R.Z)(n.prototype,"vendorListVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,R.Z)(n.prototype,"gvlSpecificationVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,R.Z)(n.prototype,"tcfPolicyVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,R.Z)(n.prototype,"vendors",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),b=(0,R.Z)(n.prototype,"purposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),h=(0,R.Z)(n.prototype,"specialPurposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),d=(0,R.Z)(n.prototype,"features",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),v=(0,R.Z)(n.prototype,"specialFeatures",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,R.Z)(n.prototype,"vendorConfigurationCount",[S.computed],Object.getOwnPropertyDescriptor(n.prototype,"vendorConfigurationCount"),n.prototype),n)},4548:function(e,t,r){r.d(t,{u:function(){return n},b:function(){return o}});var n="rcb-scan",o="rcb-automatic-scan-starter"},4913:function(e,t,r){function n(e){var t=document.createElement("textarea");t.innerText=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}r.d(t,{v:function(){return n}})},625:function(e,t,r){function n(){return window["real-cookie-banner".replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))]}r.d(t,{m:function(){return n}})},3438:function(e,t,r){r.d(t,{u:function(){return o}});var n=r(625);function o(){return(0,n.m)().others}},8630:function(e,t,r){r.d(t,{_n:function(){return a},__:function(){return s},_i:function(){return c}});var n,o=r(8700);function i(){return n||(n=(0,o.createLocalizationFactory)(o.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367})))}var a=function(){var e;return(e=i())._n.apply(e,arguments)},s=function(){var e;return(e=i()).__.apply(e,arguments)},c=function(){var e;return(e=i())._i.apply(e,arguments)}},4957:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(7363),o=/(\r\n|\r|\n|<br[ ]?\/>)/g,i=function(e){return e.split(o).map((function(e,t){return e.match(o)?(0,n.createElement)("br",{key:t}):e}))}},1629:function(e,t,r){r.d(t,{Y:function(){return a},W:function(){return s}});var n,o=r(8700);function i(){return n||(n=(0,o.createRequestFactory)(window[o.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367},!0)]))}var a=function(){var e;return(e=i()).urlBuilder.apply(e,arguments)},s=function(){var e;return(e=i()).request.apply(e,arguments)}},7819:function(e,t,r){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;document.body.scrollTop=e,document.documentElement.scrollTop=e}r.d(t,{X:function(){return n}})},3190:function(e,t,r){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";if(!e||e.length<=t)return e;var n=r.length,o=t-n,i=Math.ceil(o/2),a=Math.floor(o/2);return e.substr(0,i)+r+e.substr(e.length-a)}r.d(t,{r:function(){return n}})},986:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/checklist",method:r(8700).RouteHttpVerb.GET}},8930:function(e,t,r){r.d(t,{s:function(){return n}});var n={path:"/checklist/:id",method:r(8700).RouteHttpVerb.PUT}},6465:function(e,t,r){r.d(t,{O:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.DELETE}},5151:function(e,t,r){r.d(t,{c:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.GET}},9437:function(e,t,r){r.d(t,{q:function(){return n}});var n={path:"/consent/referer",method:r(8700).RouteHttpVerb.GET}},5354:function(e,t,r){r.d(t,{B:function(){return n}});var n={path:"/cookie-groups/order",method:r(8700).RouteHttpVerb.PUT}},6764:function(e,t,r){r.d(t,{p:function(){return n}});var n={path:"/cookies/unassigned",method:r(8700).RouteHttpVerb.GET}},7068:function(e,t,r){r.d(t,{I:function(){return n}});var n={path:"/cookies/order",method:r(8700).RouteHttpVerb.PUT}},1719:function(e,t,r){r.d(t,{_:function(){return n}});var n={path:"/country-bypass/database",method:r(8700).RouteHttpVerb.PUT}},9600:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/export",method:r(8700).RouteHttpVerb.GET}},7732:function(e,t,r){r.d(t,{Q:function(){return n}});var n={path:"/export/consents",method:r(8700).RouteHttpVerb.GET}},2388:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/forward/cookie/:slug",method:r(8700).RouteHttpVerb.GET}},7025:function(e,t,r){r.d(t,{A:function(){return n}});var n={path:"/forward/endpoints",method:r(8700).RouteHttpVerb.GET}},7972:function(e,t,r){r.d(t,{H:function(){return n}});var n={path:"/import",method:r(8700).RouteHttpVerb.POST}},836:function(e,t,r){r.d(t,{gn:function(){return C.g},s5:function(){return P.s},Ok:function(){return v.O},cI:function(){return d.c},rz:function(){return w},aY:function(){return B},vY:function(){return _},JQ:function(){return f},PM:function(){return p},qD:function(){return Y.q},BI:function(){return c.B},pV:function(){return S.p},It:function(){return l.I},_3:function(){return j._},QB:function(){return R.Q},Vm:function(){return Z.V},Vc:function(){return x.V},AW:function(){return E.A},HR:function(){return k.H},nQ:function(){return O.n},oW:function(){return V.o},nX:function(){return U.n},iO:function(){return J.i},tX:function(){return i.t},N9:function(){return T.N},Wu:function(){return a.W},tw:function(){return I.t},zf:function(){return s.z},GQ:function(){return b.G},a4:function(){return h.a},Z1:function(){return D.Z},TB:function(){return z.T},kv:function(){return F.k},ME:function(){return H.M},Ce:function(){return W.C},MQ:function(){return L.M},$5:function(){return q.$},eO:function(){return G.e},$Q:function(){return g},gh:function(){return y},BV:function(){return m},Y3:function(){return N.Y},yR:function(){return A.y},fs:function(){return M.f},g3:function(){return n.g},J3:function(){return o.J}});var n=r(8628),o=r(5614),i=r(4504),a=r(7689),s=r(3352),c=r(5354),l=r(7068),u=r(8700),p={path:"/consent",method:u.RouteHttpVerb.POST},f={path:"/consent",method:u.RouteHttpVerb.GET},b=r(3531),h=r(5482),d=r(5151),v=r(6465),m={path:"/stats/main",method:u.RouteHttpVerb.GET},y={path:"/stats/customBypass",method:u.RouteHttpVerb.GET},g={path:"/stats/buttonsClicked",method:u.RouteHttpVerb.GET},Z=r(9600),k=r(7972),w={path:"/consent/clear",method:u.RouteHttpVerb.DELETE},R=r(7732),C=r(986),P=r(8930),S=r(6764),E=r(7025),_={path:"/consent/forward",method:u.RouteHttpVerb.POST},x=r(2388),O=r(7532),D=r(2616),z=r(5253),T=r(1535),I=r(1500),A=r(9945),M=r(3854),N=r(8523),B={path:"/consent/dynamic-predecision",method:u.RouteHttpVerb.GET},j=r(1719),U=r(9564),V=r(3128),F=r(6753),G=r(6354),L=r(5245),W=r(4227),H=r(2091),q=r(3461),Y=r(9437),J=r(9925)},7532:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/dismiss-config-page-pro-notice",method:r(8700).RouteHttpVerb.DELETE}},3128:function(e,t,r){r.d(t,{o:function(){return n}});var n={path:"/migration/:migration",method:r(8700).RouteHttpVerb.DELETE}},9564:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/migration/:migration/:action",method:r(8700).RouteHttpVerb.POST}},8335:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/modal-hint",method:r(8700).RouteHttpVerb.PUT}},9925:function(e,t,r){r.d(t,{i:function(){return n}});var n={path:"/nav-menu/add-links",method:r(8700).RouteHttpVerb.POST}},4504:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/banner",method:r(8700).RouteHttpVerb.GET}},7689:function(e,t,r){r.d(t,{W:function(){return n}});var n={path:"/presets/blocker",method:r(8700).RouteHttpVerb.GET}},1535:function(e,t,r){r.d(t,{N:function(){return n}});var n={path:"/presets/blocker/:identifier",method:r(8700).RouteHttpVerb.GET}},3352:function(e,t,r){r.d(t,{z:function(){return n}});var n={path:"/presets/cookies",method:r(8700).RouteHttpVerb.GET}},1500:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/cookies/:identifier",method:r(8700).RouteHttpVerb.GET}},2616:function(e,t,r){r.d(t,{Z:function(){return n}});var n={path:"/revision/:hash",method:r(8700).RouteHttpVerb.GET}},3531:function(e,t,r){r.d(t,{G:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.GET}},5482:function(e,t,r){r.d(t,{a:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.PUT}},5253:function(e,t,r){r.d(t,{T:function(){return n}});var n={path:"/revision/independent/:hash",method:r(8700).RouteHttpVerb.GET}},6753:function(e,t,r){r.d(t,{k:function(){return n}});var n={path:"/scanner/queue",method:r(8700).RouteHttpVerb.POST}},2091:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals/:type/:identifier",method:r(8700).RouteHttpVerb.GET}},5245:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals",method:r(8700).RouteHttpVerb.GET}},4227:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/scanner/result/externals/:host",method:r(8700).RouteHttpVerb.PUT}},3461:function(e,t,r){r.d(t,{$:function(){return n}});var n={path:"/scanner/result/markup/:id",method:r(8700).RouteHttpVerb.GET}},6354:function(e,t,r){r.d(t,{e:function(){return n}});var n={path:"/scanner/result/presets",method:r(8700).RouteHttpVerb.GET}},8523:function(e,t,r){r.d(t,{Y:function(){return n}});var n={path:"/tcf/declarations",method:r(8700).RouteHttpVerb.GET}},9945:function(e,t,r){r.d(t,{y:function(){return n}});var n={path:"/tcf/gvl",method:r(8700).RouteHttpVerb.PUT}},3854:function(e,t,r){r.d(t,{f:function(){return n}});var n={path:"/tcf/vendors",method:r(8700).RouteHttpVerb.GET}},8628:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.GET}},5614:function(e,t,r){r.d(t,{J:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.PATCH}},7830:function(){},5036:function(){},7363:function(e){e.exports=React},1533:function(e){e.exports=ReactDOM},6711:function(e){e.exports=ReactRouterDOM},490:function(e){e.exports=devowlWp_customize},9445:function(e){e.exports=devowlWp_realProductManagerWpClient},6:function(e){e.exports=devowlWp_realQueue},8700:function(e){e.exports=devowlWp_utils},5311:function(e){e.exports=jQuery},7821:function(e){e.exports=mobx},8488:function(e){e.exports=moment},5998:function(e){e.exports=wp}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e](r,r.exports,i),r.loaded=!0,r.exports}i.m=n,e=[],i.O=function(t,r,n,o){if(!r){var a=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],o=e[u][2];for(var s=!0,c=0;c<r.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((function(e){return i.O[e](r[c])}))?r.splice(c--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(t,r){return i.f[r](e,t),t}),[]))},i.u=function(e){return({3:"chunk-config-tab-scanner",184:"chunk-config-tab-tcf",322:"chunk-config-tab-licensing",357:"chunk-config-tab-import",379:"chunk-config-tab-dashboard",478:"chunk-config-tab-blocker",625:"chunk-config-tab-consent",718:"chunk-config-tab-cookies",768:"chunk-config-tab-settings"}[e]||e)+".lite.js?ver="+{3:"2956a874b35ecbf5c1d4",184:"8e01456ddf3ceb597334",191:"59d6c6957751262b22aa",193:"ce7e07933bcbf069b690",276:"af4e20fa8568e0fd55dd",322:"05d28df7bf45371af89c",348:"abbf191fbb205192b084",357:"2f321ae523d2b24cd58e",379:"b53f9991d545168b5f7d",418:"c4956b21bc9d963cb475",440:"abce2a866d4b5996c6bb",478:"920d40edf32cad1bab5b",548:"7575f1f1df536f4467d6",625:"423d0415804ca845fcc5",716:"9f43a7db28c7f27ed0fa",718:"25acc5ba27bf6943953d",756:"f3849d000e561ec0fd57",768:"02f17a8c7bff83d53d83",795:"ef626740f77410656823",813:"71c7bddc18194198f907",826:"b946ad43404993839cb7",914:"2979ca58d101a6abfbf5",930:"f175c16c8bc4ff899699",954:"ae9f41fd529870001463"}[e]},i.miniCssF=function(e){return"admin.css"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},r="realCookieBanner_[name]:",i.l=function(e,n,o,a){if(t[e])t[e].push(n);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",r+o),s.src=e),t[e]=[n];var f=function(r,n){s.onerror=s.onload=null,clearTimeout(b);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(n)})),r)return r(n)},b=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),function(){var e={328:0};i.f.j=function(t,r){var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(function(r){if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}},i.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,a=r[0],s=r[1],c=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)var u=c(i)}for(t&&t(r);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0;return i.O(u)},r=self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var a=i.O(void 0,[194],(function(){return i(5954)}));a=i.O(a),realCookieBanner_admin=a}();
|
2 |
//# sourceMappingURL=admin.lite.js.map
|
1 |
+
var realCookieBanner_admin;!function(){"use strict";var e,t,r,n={6833:function(e,t,r){var n,o;r.d(t,{r:function(){return n}}),function(e){e.Cookie="cookie",e.Web="web",e.App="app"}(n||(n={})),function(e){e.Bulgarian="bg",e.Catalan="ca",e.Czech="cs",e.Danish="da",e.German="de",e.Greek="el",e.Spanish="es",e.Estonian="et",e.Basque="eus",e.Finnish="fi",e.French="fr",e.Galician="gl",e.Croatian="hr",e.Hungarian="hu",e.Italian="it",e.Japanese="ja",e.Lithuanian="lt",e.Latvian="lv",e.Maltese="mt",e.Dutch="nl",e.Norwegian="no",e.Polish="pl",e.Portuguese="pt",e.Romanian="ro",e.SerbianCyrillic="sr-Cyrl",e.SerbianLatin="sr-Latn",e.Russian="ru",e.Slovak="sk",e.Slovenian="sl",e.Swedish="sv",e.Turkish="tr",e.Chinese="zh"}(o||(o={}))},3137:function(e,t,r){function n(e){return!!/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e)}r.d(t,{C:function(){return n}})},4491:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(7363),o=/(\r\n|\r|\n|<br[ ]?\/>)/g,i=function(e){return e.split(o).map((function(e,t){return e.match(o)?(0,n.createElement)("br",{key:t}):e}))}},5954:function(e,t,r){r.r(t),r.d(t,{locationRestChecklistGet:function(){return Z.gn},locationRestChecklistPut:function(){return Z.s5},locationRestConsentAllDelete:function(){return Z.Ok},locationRestConsentAllGet:function(){return Z.cI},locationRestConsentClearDelete:function(){return Z.rz},locationRestConsentDynamicPredecisionGet:function(){return Z.aY},locationRestConsentForwardPost:function(){return Z.vY},locationRestConsentGet:function(){return Z.JQ},locationRestConsentPost:function(){return Z.PM},locationRestConsentRefererGet:function(){return Z.qD},locationRestCookieGroupOrderPut:function(){return Z.BI},locationRestCookieUnassignedGet:function(){return Z.pV},locationRestCookiesOrderPut:function(){return Z.It},locationRestCountryBypassDatabasePut:function(){return Z._3},locationRestExportConsentsGet:function(){return Z.QB},locationRestExportGet:function(){return Z.Vm},locationRestForwardCookieGet:function(){return Z.Vc},locationRestForwardEndpointsGet:function(){return Z.AW},locationRestImportPost:function(){return Z.HR},locationRestLiteDismissConfigPageProNotice:function(){return Z.nQ},locationRestMigrationDelete:function(){return Z.oW},locationRestMigrationPost:function(){return Z.nX},locationRestNavMenuAddLinksPost:function(){return Z.iO},locationRestPresetsBannerGet:function(){return Z.tX},locationRestPresetsBlockerAttributesGet:function(){return Z.N9},locationRestPresetsBlockerGet:function(){return Z.Wu},locationRestPresetsCookiesAttributesGet:function(){return Z.tw},locationRestPresetsCookiesGet:function(){return Z.zf},locationRestRevisionCurrentGet:function(){return Z.GQ},locationRestRevisionCurrentPut:function(){return Z.a4},locationRestRevisionGet:function(){return Z.Z1},locationRestRevisionIndependentGet:function(){return Z.TB},locationRestScannerQueuePost:function(){return Z.kv},locationRestScannerResultAllExternalUrlsByHostGet:function(){return Z.ME},locationRestScannerResultExternalPatch:function(){return Z.Ce},locationRestScannerResultExternalsGet:function(){return Z.MQ},locationRestScannerResultMarkupGet:function(){return Z.$5},locationRestScannerResultPresetsGet:function(){return Z.eO},locationRestStatsButtonsClickedGet:function(){return Z.$Q},locationRestStatsCustomBypassGet:function(){return Z.gh},locationRestStatsMainGet:function(){return Z.BV},locationRestTcfDeclarationsGet:function(){return Z.Y3},locationRestTcfGvlPut:function(){return Z.yR},locationRestTcfVendorsGet:function(){return Z.fs},locationRestWpSettings:function(){return Z.g3},locationRestWpSettingsPatch:function(){return Z.J3},ChecklistStore:function(){return k.L_},ConsentStore:function(){return k.v},CookieStore:function(){return k.hc},CustomizeBannerStore:function(){return k.WS},OptionStore:function(){return k.aZ},RootStore:function(){return k.My},ScannerStore:function(){return k.Cu},StatsStore:function(){return k.et},TcfStore:function(){return k.z},useStores:function(){return k.mZ}});var n=r(8782),o=r(3249),i=r(63),a=r(7938),s=r(5450),c=r.n(s),l=(r(3523),r(1533)),u=r(4163),p=r(7110),f=(r(5036),r(7830),r(8488)),b=r.n(f),h=r(8700),d=r(1629),v={};for(var m in h)"default"!==m&&(v[m]=function(e){return h[e]}.bind(0,m));r.d(t,v);var y,g,Z=r(836),k=r(8783);r.p=(0,h.getWebpackPublicPath)({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367}),null===h.handleCorrupRestApi||void 0===h.handleCorrupRestApi||(0,h.handleCorrupRestApi)((y={},(0,i.Z)(y,u.M.get.optionStore.restNamespace,(0,a.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.W)({location:{path:"/plugin"}});case 2:case"end":return e.stop()}}),e)})))),(0,i.Z)(y,"wp/v2",(g=(0,a.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.W)({location:{path:"/settings",namespace:"wp/v2"}});case 2:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)})),y)),o.ZP.config({prefixCls:"rcb-antd"}),n.ZP.config({top:50});var w=document.getElementById("".concat(u.M.get.optionStore.slug,"-component"));w&&(0,l.render)(React.createElement(o.ZP,{prefixCls:"rcb-antd",locale:{locale:b().locale()}},React.createElement(u.M.StoreProvider,null,React.createElement(p.K,null))),w)},6395:function(e,t,r){r.d(t,{b:function(){return w}});var n=r(9591),o=r(4094),i=r(4741),a=r(6107),s=r(7228),c=r(4115),l=r(7363),u=r(3554),p=r(8630),f=r(1857),b=r(5406),h=r(8719),d=r(3025),v=r(4163),m=r(2780),y=r(971),g=r(3004),Z=(0,u.Pi)((function(e){var t=e.id,r=e.checked,n=e.title,o=e.description,i=e.link,s=e.linkText,c=e.linkTarget,l=e.needsPro,u=e.onLinkClick,Z=(0,v.m)().optionStore,k=Z.others.isPro,w=Z.fomoCoupon,R=!k&&l,C=null,P=null,S=i;switch(t){case"scanner":var E=(0,m.p)(),_=E.percent,x=E.remaining,O=E.currentJob;x>0&&_>0&&(null==O?void 0:O.group_position)>0&&(C=React.createElement(a.Z,null,(0,p.__)("Currently scanning (%d %%)",_)));break;case"get-pro":P=React.createElement(g.S,null),w&&(S+="&".concat(g.Q))}return React.createElement("div",{style:{margin:"5px 0"}},React.createElement(f.Z,{title:r&&o},React.createElement("span",null,R?React.createElement(b.Z,{style:{color:"#7ec8ec"}}):r?React.createElement(h.Z,{style:{color:"#52c41a"}}):React.createElement(d.Z,{style:{color:"#e2e2e2"}})," ",React.createElement("span",{style:{textDecoration:r?"line-through":void 0,fontWeight:"bold"}},n),!!S&&!!s&&React.createElement(React.Fragment,null," • ",React.createElement("a",{href:S,target:c,rel:"noreferrer",onClick:u},s)))),R&&"get-pro"!==t&&React.createElement(React.Fragment,null," ",React.createElement(a.Z,{color:y.k},(0,p.__)("Needs PRO"))),!!C&&React.createElement(React.Fragment,null," ",C),!!o&&!r&&React.createElement("p",{className:"description",style:{paddingLeft:17}},o),!!P&&React.createElement("div",{style:{paddingLeft:17}},P))})),k=r(2046),w=(0,u.Pi)((function(e){var t=e.onLinkClick,r=(0,c.Z)(e,["onLinkClick"]),u=(0,v.m)().checklistStore,f=u.busyChecklist,b=u.items,h=u.completed,m=u.checkable,y=u.done,g=u.checklist.overdue,w=(0,l.useState)("boolean"==typeof r.showHidden?r.showHidden:!y),R=(0,s.Z)(w,2),C=R[0],P=R[1];return React.createElement(n.Z,{spinning:f},React.createElement(o.Z,{direction:"vertical",size:"large"},g&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:0}},React.createElement("p",null,(0,p.__)("How time flies! You have installed Real Cookie Banner some time ago, but you still haven't finished the configuration yet."))),React.createElement("p",{className:"description"},(0,p.__)("We have collected all relevant steps for the legally compliant use of Real Cookie Banner after the first installation. Set up the cookie banner step by step to add an opt-in cookie banner to your website in compliance with the ePrivacy Directive and GDPR.")),React.createElement("div",null,y&&(C?React.createElement(a.Z,{icon:React.createElement(k.Z,null),color:"default",style:{cursor:"pointer"},onClick:function(){return P(!1)}},(0,p.__)("Hide completed steps")):React.createElement(a.Z,{icon:React.createElement(d.Z,null),color:"success",style:{cursor:"pointer"},onClick:function(){return P(!0)}},(0,p.__)("%d / %d steps completed",h.length>m.length?m.length:h.length,m.length))),b.map((function(e){var r=e.id,n=(0,c.Z)(e,["id"]);return!C&&n.checked?null:React.createElement(Z,(0,i.Z)({key:r,id:r},n,{onLinkClick:function(e){["get-pro"].indexOf(r)>-1&&u.toggleChecklistItem(r,!0),null==t||t(e)}}))})))))}))},5283:function(e,t,r){r.d(t,{DR:function(){return m},Gh:function(){return d},Ki:function(){return v}});var n=r(2519),o=r(8920),i=r(9943),a=r(6315),s=r(6478),c=r(7363),l=r(3554),u=r(8630),p=r(6839),f=r(8383),b=r(7943),h=r(4163),d="Google Tag Manager",v="Matomo Tag Manager",m=(0,l.Pi)((function(){var e=(0,h.m)().optionStore,t=e.refreshSiteAfterConsent,r=e.imprintExternalUrl,l=e.imprintIsExternalUrl,m=e.privacyPolicyExternalUrl,y=e.privacyPolicyIsExternalUrl,g=e.others,Z=g.isPro,k=g.customizeBannerUrl,w=(0,c.useCallback)((function(e){return"".concat(k.replace(/autofocus\[panel]=[\w-]+/,"autofocus[section]=".concat(e)),"&return=").concat(encodeURIComponent(window.location.href))}),[k])("real-cookie-banner-banner-legal");return React.createElement(React.Fragment,null,React.createElement(a.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.bannerActive!==t.bannerActive}},(function(e){var t=e.getFieldValue,r=e.setFieldsValue,n=t("bannerActive");return React.createElement(React.Fragment,null,React.createElement(a.Z.Item,{label:(0,u.__)("Cookie Banner/Dialog")},React.createElement(a.Z.Item,{noStyle:!0,name:"bannerActive",valuePropName:"checked"},React.createElement(s.Z,{style:{display:n?void 0:"none"}})),!n&&React.createElement(i.Z,{title:(0,u.__)("I have already checked/will check all text in the cookie banner and content blocker myself. I have added missing information and corrected information that does not fit my use case."),cancelText:(0,u.__)("Cancel"),okText:(0,u.__)("Activate now!"),overlayStyle:{maxWidth:450},onCancel:function(){r({bannerActive:!1})},onConfirm:function(){r({bannerActive:!0})},placement:"bottomLeft"},React.createElement(s.Z,{checked:!1})),React.createElement("p",{className:"description",style:{marginTop:5}},(0,u.__)("You can enable and disable the cookie banner. We recommend to activate the cookie banner on your website after you have added all services."))),React.createElement(a.Z.Item,{label:(0,u.__)("Content Blocker"),style:{display:n?void 0:"none"}},React.createElement(a.Z.Item,{name:"blockerActive",valuePropName:"checked",noStyle:!0},React.createElement(s.Z,{style:{marginTop:5}})),React.createElement("p",{className:"description",style:{marginTop:5}},(0,u.__)("This feature allows you to block content that would process personal data and set cookies, but for which you do not yet have the visitor's consent."))))})),React.createElement(a.Z.Item,{label:(0,u.__)("Refresh site after consent"),style:{display:t?void 0:"none"}},React.createElement(a.Z.Item,{name:"refreshSiteAfterConsent",noStyle:!0},React.createElement(o.ZP.Group,null,React.createElement(o.ZP.Button,{value:!1},(0,u.__)("Do not refresh")),React.createElement(o.ZP.Button,{value:!0},(0,u.__)("Refresh")))),React.createElement("p",{className:"description"},(0,u.__)("Depending on how services are loaded, e.g. by other plugins on your website, it may be necessary to reload the website after the user has consented to the setting of cookies (only necessary in very rare cases)."))),React.createElement(a.Z.Item,{label:(0,u.__)("Hide cookie banner on specific pages")},React.createElement("p",{className:"description",style:{marginTop:7}},(0,u.__)("According to the ePrivacy Directive, legally required pages such as the privacy policy or the imprint (depending on the country) may be accessible without the user having to give consent to services and their cookies. Therefore, it is recommended to avoid processing personal data and setting cookies on these pages and not to display a cookie banner.")),React.createElement(a.Z.Item,{label:(0,u.__)("Imprint Page"),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},l?React.createElement(n.Z,{value:r,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:w},(0,u.__)("Edit"))}):React.createElement(a.Z.Item,{name:"imprintId",noStyle:!0},React.createElement(p.m,{postType:"pages",forceDefaultLanguage:!0,postStatus:["publish"],perPage:100}))),React.createElement(a.Z.Item,{label:(0,u.__)("Privacy policy page"),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},y?React.createElement(n.Z,{value:m,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:w},(0,u.__)("Edit"))}):React.createElement(a.Z.Item,{name:"privacyPolicyId",noStyle:!0},React.createElement(p.m,{postType:"pages",forceDefaultLanguage:!0,postStatus:["publish"],perPage:100}))),React.createElement(a.Z.Item,{label:React.createElement(React.Fragment,null,(0,u.__)("Hide on additional pages")," ",React.createElement(f.g,{title:(0,u.__)("Want to hide cookie banner on more pages?"),testDrive:!0,feature:"hide-page-ids",description:(0,u.__)("Cookie banners are legally necessary, but distract your users from the essentials. For example, on landing pages for advertising campaigns, they lead to lower conversion rates. On these pages, it can be useful to avoid processing personal data and setting cookies to keep the conversion rate high. You can hide the cookie banner on these pages.")})),labelCol:{span:24},wrapperCol:{span:12},style:{marginBottom:12}},React.createElement(a.Z.Item,{name:"hidePageIds",noStyle:!0},React.createElement(p.m,{postType:"pages",multiple:!0,disabled:!Z,forceDefaultLanguage:!0,postStatus:["publish"],perPage:100})))),React.createElement(a.Z.Item,{label:(0,u.__)("Load services after consent via")},React.createElement(a.Z.Item,{name:"setCookiesViaManager",noStyle:!0},React.createElement(o.ZP.Group,null,React.createElement(o.ZP.Button,{disabled:!Z,value:"none"},(0,u.__)("HTML/JavaScript Snippet")),React.createElement(o.ZP.Button,{disabled:!Z,value:"googleTagManager"},(0,u.__)("%s Event",d)),React.createElement(o.ZP.Button,{disabled:!Z,value:"matomoTagManager"},(0,u.__)("%s Event",v)))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(b.r,{url:(0,u.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")}),React.createElement(f.g,{title:(0,u.__)("Want to use a Tag Manager legally?"),testDrive:!0,feature:"set-cookies-via-manager",assetName:(0,u.__)("pro-modal/set-cookies-via-manager.png"),description:(0,u.__)("You can integrate services via Google Tag Manager or Matomo Tag Manager. At the same time, you can obtain and document consents via Real Cookie Banner in accordance with data protection regulations.")})),React.createElement("p",{className:"description"},React.createElement("strong",null,(0,u.__)("You only need to change this option if you use Google Tag Manager or Matomo Tag Manager."))," ",(0,u._i)((0,u.__)("If you opt-in to or opt-out from services, you will normally execute JavaScript code to ensure that scripts are enabled/disabled and cookies are set/removed on the visitor's client. If you are a Google Tag Manager or Matomo Tag Manager user, you can map this behavior by using tags that are triggered by an event in the data layer. {{strong}}If you enable this option,{{/strong}} the Google Tag Manager or Matomo Tag Manager should not yet be integrated into your website. Instead, you must integrate it as an opt-in script of a service you create for the Tag Manager. For each service listed in this plugin, you will receive an additional field where you can specify the name of the event that is automatically triggered when the user opt-in or opt-out. We have a full integration for tag managers which should allow you to run it legally compliant in the EU."),{strong:React.createElement("strong",null)}))))}))},7110:function(e,t,r){r.d(t,{K:function(){return F},m:function(){return T}});var n=r(2202),o=r(7228),i=r(9591),a=r(7363),s=r(3554),c=r(6711),l=r(8630),u=r(4163),p=r(9943),f=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=(0,c.useLocation)().pathname;return e.needsRevisionRetrigger&&-1===t.indexOf("/edit/")&&-1===t.indexOf("/new")&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l.__)("You have changed settings that affect the content or behavior of the cookie banner. You should ask all visitors for their consent again.")," ","•"," ",React.createElement("a",{style:{cursor:"pointer",textDecoration:"underline"},onClick:function(){return e.updateCurrentRevision({needs_retrigger:!0})}},(0,l.__)("Request new consent"))," ","•"," ",React.createElement(p.Z,{title:React.createElement(React.Fragment,null,React.createElement("strong",null,(0,l.__)("Are you sure you don't want to collect new consents?")),React.createElement("br",null),React.createElement("br",null),(0,l._i)((0,l.__)("Consent must be obtained in accordance with {{a}}Art. 7 GDPR{{/a}}. Your visitor must be informed about all circumstances of the consent. However, you have made changes to your cookie banner, which lead to the fact that previously visitors have consented differently or to something different than is now in the cookie banner. Therefore, previously collected consents may have become partially invalid."),{a:React.createElement("a",{href:(0,l.__)("https://gdpr-info.eu/art-7-gdpr/"),rel:"noreferrer",target:"_blank"})}),React.createElement("br",null),React.createElement("br",null),(0,l.__)("If you have created a new service like Google Analytics (without visual content blocker), previous visitors can never consent without collecting new consents and you cannot track them, for example.")),placement:"bottomRight",onConfirm:function(){return e.updateCurrentRevision({needs_retrigger:!1})},okText:(0,l.__)("Dismiss notice"),cancelText:(0,l.__)("Cancel"),overlayStyle:{maxWidth:450}},React.createElement("a",{style:{cursor:"pointer",textDecoration:"underline"}},(0,l.__)("Dismiss notice")))))})),b=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=e.publicCookieCount,r=e.busySettings;return e.bannerActive&&!t&&!r&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l.__)("The cookie banner is activated, but unfortunately you have not yet created or enabled services.")))})),h=r(3438),d=(0,s.Pi)((function(){return!!(0,h.u)().showNoticeAnonymousScriptNotWritable&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l._i)((0,l.__)("Your {{code}}wp-content{{/code}} folder is not writable. Please check your permissions!"),{code:React.createElement("code",null)})))})),v=(0,s.Pi)((function(e){var t=e.manager,r=e.managerId,n=e.hasManagerAttributeName,o=e.presetId,i=(0,u.m)().optionStore,a=i.setCookiesViaManager,s=i[n],p=(0,c.useLocation)().pathname;return a===r&&!s&&/^\/cookies\/\d+$/.test(p)&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0"}},React.createElement("p",null,(0,l._i)((0,l.__)("You have not yet defined a %s service. To use {{strong}}%s{{/strong}} with Real Cookie Banner, you must create the appropriate service.",t,t),{strong:React.createElement("strong",null)})," ","• ",React.createElement("a",{href:"#".concat(p,"/new?force=").concat(o)},(0,l.__)("Create now"))))})),m=r(7819),y=function(){var e=(0,c.useHistory)().listen;return(0,a.useEffect)((function(){var t=e((function(){(0,m.X)(0)}));return function(){t()}}),[e]),null},g=r(5283),Z=r(6069),k=r(3025),w=r(6800),R=(0,s.Pi)((function(){var e=(0,u.m)().optionStore,t=e.others,r=t.proUrl,n=t.isPro,o=t.isConfigProNoticeVisible,i="".concat(r,"&feature=main-button"),s=(0,a.useCallback)((function(){window.open(i,"_blank"),e.dismissConfigProNotice()}),[e]),c=(0,a.useCallback)((function(){e.dismissConfigProNotice()}),[e]);return!n&&React.createElement(p.Z,{visible:!!o,title:(0,l.__)("Thank you for using the free version of Real Cookie Banner. You might also be interested in the PRO version, which offers you more features, 20+ design templates, 100+ service templates, 60+ content blocker templates and much more."),icon:React.createElement(w.Z,{style:{color:"#1890ff"}}),placement:"bottom",onConfirm:s,onCancel:c,cancelText:(0,l.__)("No, not interested..."),okText:(0,l.__)("I want to learn more!"),overlayStyle:{maxWidth:450}},React.createElement("a",{className:"page-title-action",rel:"noreferrer",onClick:s},(0,l.__)("Get PRO version")))})),C=r(6395),P=(0,s.Pi)((function(){var e=(0,a.useState)(!1),t=(0,o.Z)(e,2),r=t[0],n=t[1],i=(0,u.m)(),s=i.optionStore,p=i.checklistStore,f=(0,c.useLocation)().pathname,b=s.others.customizeBannerUrl,h=s.publicUrl,d=p.completed,v=p.checkable,m=p.done;(0,a.useEffect)((function(){p.fetchChecklist()}),[]);var y=(0,a.useCallback)((function(e){window.location.href="".concat(b,"&return=").concat(encodeURIComponent(window.location.href)),e.preventDefault()}),[]),g=(0,a.useCallback)((function(){n(!0),p.fetchChecklist()}),[n]),w=(0,a.useCallback)((function(){n(!1)}),[n]);return React.createElement(React.Fragment,null,React.createElement("h1",{className:"wp-heading-inline"},(0,l.__)("Real Cookie Banner")),React.createElement("img",{className:"rcb-nav-logo",src:"".concat(h,"images/logos/real-cookie-banner.svg")}),React.createElement("a",{className:"page-title-action",href:"#",onClick:y},(0,l.__)("Customize banner")),React.createElement(R,null),!m&&"/"!==f&&React.createElement(React.Fragment,null,React.createElement("a",{className:"page-title-action",style:{color:"#52c41a",background:"#f6ffed",borderColor:"#85af65"},onClick:g},React.createElement(k.Z,null)," ",(0,l.__)("%d / %d steps completed",d.length>v.length?v.length:d.length,v.length)),React.createElement(Z.Z,{visible:r,title:(0,l.__)("Set up the cookie banner"),onCancel:w,okButtonProps:{style:{display:"none"}},cancelText:(0,l.__)("Close"),width:800},React.createElement(C.b,{showHidden:!0,onLinkClick:w}))),React.createElement("hr",{className:"wp-header-end"}))})),S=r(9871),E=(0,s.Pi)((function(){var e=(0,u.m)().optionStore.publicUrl;return React.createElement("div",{className:"rcb-config-footer"},(0,l._i)((0,l.__)("Real Cookie Banner is brought to you with {{icon/}} by"),{icon:React.createElement(S.Z,{style:{color:"#dca7a7"}})}),React.createElement("a",{href:"https://devowl.io/",target:"_blank",rel:"noreferrer"},React.createElement("img",{src:"".concat(e,"images/logos/devowl-with-text.svg")})))})),_=r(8700),x=r(2780),O=r(6),D=r(4548),z={display:"block",marginTop:10},T=function(e,t){return{default:function(){return React.createElement(_.SuspenseChunkTranslation,{chunkFile:r.u("chunk-config-tab-".concat(e)),options:function(){return(0,u.m)().optionStore},fallback:React.createElement(i.Z,{spinning:!0,style:z})},t)}}},I=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(914),r.e(716),r.e(379)]).then(r.bind(r,8662)).then((function(e){var t=e.DashboardCards;return T("dashboard",React.createElement(t,null))}))})),A=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(768)]).then(r.bind(r,597)).then((function(e){var t=e.SettingsForm;return T("settings",React.createElement(t,null))}))})),M=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(930),r.e(795),r.e(193),r.e(756),r.e(826),r.e(3)]).then(r.bind(r,1502)).then((function(e){var t=e.ScannerRouter;return T("scanner",React.createElement(t,null))}))})),N=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(930),r.e(418),r.e(348),r.e(826),r.e(548),r.e(718)]).then(r.bind(r,5182)).then((function(e){var t=e.CookieGroupsTabRouter;return T("cookies",React.createElement(t,null))}))})),B=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(914),r.e(930),r.e(795),r.e(625)]).then(r.bind(r,6720)).then((function(e){var t=e.ConsentTabRouter;return T("consent",React.createElement(t,null))}))})),j=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(191),r.e(813),r.e(418),r.e(716),r.e(276),r.e(826),r.e(548),r.e(478)]).then(r.bind(r,4528)).then((function(e){var t=e.BlockerRouter;return T("blocker",React.createElement(t,null))}))})),U=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(914),r.e(193),r.e(954),r.e(357)]).then(r.bind(r,9962)).then((function(e){var t=e.ImportExportCards;return T("import",React.createElement(t,null))}))})),V=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(322)]).then(r.bind(r,117)).then((function(e){var t=e.ConfigLicensing;return T("licensing",React.createElement(t,null))}))})),F=(0,s.Pi)((function(){var e=(0,x.p)(),t=e.percent,r=e.remaining,s=e.currentJob,p=(0,u.m)(),h=p.optionStore,m=p.checklistStore,Z=h.others,k=Z.showLicenseFormImmediate,w=(0,o.Z)(Z.colorScheme,3)[2];return(0,a.useLayoutEffect)((function(){h.fetchSettings();var e=function(){m.fetchChecklist()},t="".concat(O.JOB_DONE_EVENT_PREFIX).concat(D.b);return document.addEventListener(t,e),function(){document.removeEventListener(t,e)}}),[]),k?React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(V,null)):React.createElement(c.HashRouter,null,React.createElement(P,null),React.createElement("nav",{className:"nav-tab-wrapper wp-clearfix"},React.createElement(c.NavLink,{to:"/",className:"nav-tab",activeClassName:"nav-tab-active",exact:!0},(0,l.__)("Dashboard")),React.createElement(c.NavLink,{to:"/settings",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Settings")),React.createElement(c.NavLink,{to:"/scanner",className:"nav-tab",activeClassName:"nav-tab-active"},r>0&&t>0&&(null==s?void 0:s.group_position)>0?React.createElement(n.Z,{count:"".concat(t," %"),style:{top:-11,fontSize:10,height:16,lineHeight:"16px",background:w}},(0,l.__)("Scanner")):(0,l.__)("Scanner")),React.createElement(c.NavLink,{to:"/cookies",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Services (Cookies)")),React.createElement(c.NavLink,{to:"/blocker",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Content Blocker")),React.createElement(c.NavLink,{to:"/consent",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Consent")),React.createElement(c.NavLink,{to:"/import",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Import / Export")),"try.devowl.io"!==window.location.host&&React.createElement(c.NavLink,{to:"/licensing",className:"nav-tab",activeClassName:"nav-tab-active"},(0,l.__)("Licensing")),React.createElement("a",{href:(0,l.__)("https://devowl.io/support/"),className:"nav-tab",target:"_blank",rel:"noreferrer"},(0,l.__)("Support"))),React.createElement(f,null),React.createElement(b,null),React.createElement(d,null),React.createElement(v,{manager:g.Gh,managerId:"googleTagManager",hasManagerAttributeName:"hasGTM",presetId:"gtm"}),React.createElement(v,{manager:g.Ki,managerId:"matomoTagManager",hasManagerAttributeName:"hasMTM",presetId:"mtm"}),React.createElement(y,null),React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(c.Switch,null,React.createElement(c.Route,{path:"/",exact:!0},React.createElement(I,null)),React.createElement(c.Route,{path:"/settings/:tab?"},h.areSettingsFetched?React.createElement(A,null):null),React.createElement(c.Route,{path:"/scanner"},React.createElement(M,null)),React.createElement(c.Route,{path:"/cookies/:cookieGroup?"},React.createElement(N,null)),React.createElement(c.Route,{path:"/consent/:tab?"},React.createElement(B,null)),React.createElement(c.Route,{path:"/blocker"},React.createElement(j,null)),React.createElement(c.Route,{path:"/import"},React.createElement(U,null)),React.createElement(c.Route,{path:"/licensing"},React.createElement(V,null)))),React.createElement(E,null))}))},3004:function(e,t,r){r.d(t,{Q:function(){return f},S:function(){return b}});var n=r(9037),o=r(6107),i=r(8782),a=r(7228),s=r(3554),c=r(7363),l=r(4163),u=r(8630),p=r(4913),f="promo=in-app",b=(0,s.Pi)((function(e){var t=e.style,r=(0,l.m)().optionStore.fomoCoupon,s=null==r?void 0:r.coupon,f=null==r?void 0:r.valueInPercent,b=null==r?void 0:r.validUntil,h=(0,c.useCallback)((function(){if(b){var e=new Date(b).getTime()-(new Date).getTime();if(e<=0)return;var t=e/1e3;return[Math.floor(t/3600),Math.floor(t/60)%60,Math.floor(t%60)].map((function(e){return e<10?"0".concat(e):e})).filter((function(e,t){return"00"!==e||t>0})).join(":")}}),[b]),d=(0,c.useState)(),v=(0,a.Z)(d,2)[1];(0,c.useEffect)((function(){var e=setInterval((function(){v((new Date).getTime())}),1e3);return function(){clearInterval(e)}}),[]);var m=h();return m?React.createElement(n.Z,{style:t,message:(0,u._i)((0,u.__)("Use coupon {{tag}}%s{{/tag}} in the next {{strongHours}}%s hours{{/strongHours}} and save {{strongPercent}}%d %%{{/strongPercent}} in the first year!",s,m,f),{tag:React.createElement(o.Z,{color:"success",style:{marginRight:0,cursor:"pointer"},onClick:function(){(0,p.v)(s),i.ZP.success((0,u.__)("Successfully copied coupon to clipboard!"))}}),strongHours:React.createElement("strong",{style:{color:"#d33131"}}),strongPercent:React.createElement("strong",null)})}):null}))},7943:function(e,t,r){r.d(t,{r:function(){return s}});var n=r(6107),o=r(2711),i=r(7088),a=r(8630),s=function(e){var t=e.url,r=e.style,s=void 0===r?void 0:r,c=e.label,l=void 0===c?(0,a.__)("Learn more"):c,u=(0,o.Z)({cursor:"pointer"},s);return React.createElement(n.Z,{style:u,onClick:function(){return window.open(t,"_blank")}},React.createElement(i.Z,null)," ",l)}},6839:function(e,t,r){r.d(t,{m:function(){return m}});var n=r(3828),o=r(9591),i=r(2711),a=r(7938),s=r(7228),c=r(5450),l=r.n(c),u=r(7363),p=r(3438),f=r(1629),b=r(8630),h=r(2186),d=r(8700),v=r(3137),m=function(e){var t=e.postType,r=e.postStatus,c=void 0===r?["draft","publish","private"]:r,m=e.perPage,y=void 0===m?10:m,g=e.value,Z=e.multiple,k=e.disabled,w=e.forceDefaultLanguage,R=e.onChange,C=e.titleRender,P=void 0===C?function(e){return e.title.rendered}:C,S=e.filter,E=void 0===S?function(){return!0}:S,_=(0,u.useState)(!1),x=(0,s.Z)(_,2),O=x[0],D=x[1],z=(0,u.useState)(g),T=(0,s.Z)(z,2),I=T[0],A=T[1],M=(0,u.useState)(!1),N=(0,s.Z)(M,2),B=N[0],j=N[1],U=(0,u.useState)([]),V=(0,s.Z)(U,2),F=V[0],G=V[1],L=(0,u.useCallback)(function(){var e=(0,a.Z)(l().mark((function e(r){var n,o,a,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),n=(0,p.u)(),o=n.defaultLanguage,a=n.currentLanguage,e.next=4,(0,f.W)({location:{path:"/".concat(t),method:d.RouteHttpVerb.GET,namespace:"wp/v2"},request:(0,i.Z)({status:r.include?["draft","publish","private"]:c,orderby:r.search?"relevance":"title"},r),params:{_dataLocale:w?o:a}});case 4:s=e.sent,G(s),j(!1);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return(0,h.N)(O,""===O?0:800,(function(e){!1!==e&&L({search:e,per_page:e.length?50:y})}),(function(e){!1!==e&&j(!0),G([])})),(0,u.useEffect)((function(){(I>0||Array.isArray(I)&&I.length>0)&&L({include:Array.isArray(I)?I:[I]})}),[]),(0,u.useEffect)((function(){JSON.stringify(I)!==JSON.stringify(g)&&(g>0||Array.isArray(g)&&g.length>0)&&(A(g),L({include:Array.isArray(g)?g:[g]}))}),[g,I]),React.createElement(n.Z,{mode:Z?"multiple":void 0,disabled:k,showSearch:!0,value:I,placeholder:(0,b.__)("Search..."),notFoundContent:B?React.createElement(o.Z,{size:"small"}):null,onClick:function(){return D("")},onSearch:D,onChange:function(e){var t=Array.isArray(e)?e.map(Number):+e;A(t),null==R||R(t)},filterOption:!1,loading:B},!Z&&!B&&React.createElement(n.Z.Option,{value:0},(0,b.__)("— Select —")),F.map((function(e){return React.createElement(n.Z.Option,{key:e.id,value:e.id,style:{display:E(e)?void 0:"none"}},(t=P(e),(0,v.C)(t)?null===(r=(new DOMParser).parseFromString('<a href="'.concat(t,'"></a>'),"text/html").querySelector("a"))||void 0===r?void 0:r.href:(new DOMParser).parseFromString(t,"text/html").documentElement.textContent));var t,r})))}},8137:function(e,t,r){r.d(t,{B:function(){return f}});var n=r(6069),o=r(7228),i=r(7363),a=r(9635),s=r(3438),c=r(8630),l=r(3004),u=r(5053),p=r(4491),f=function(e){var t=e.visible,r=void 0!==t&&t,f=e.showHints,b=void 0===f||f,h=e.showFomoCouponCounter,d=void 0===h||h,v=e.title,m=e.testDrive,y=void 0!==m&&m,g=e.assetName,Z=e.description,k=e.feature,w=e.onClose,R=e.inContainer,C=e.inContainerElement,P=(0,s.u)(),S=P.proUrl,E=P.hints,_=(0,i.useState)(),x=(0,o.Z)(_,2),O=x[0],D=x[1],z=(0,i.useCallback)((function(){window.open("".concat(S,"&feature=").concat(k,"&").concat(l.Q),"_blank").focus(),null==w||w()}),[w]);(0,i.useEffect)((function(){R&&O&&(null==O?void 0:O.parentElement.parentElement.previousElementSibling).removeAttribute("tabIndex")}),[O]);var T=null==E?void 0:E.proDialog;return R&&!C?null:React.createElement(n.Z,{visible:!!R||r,title:React.createElement("span",null,React.createElement(a.Z,null)," ",v," ",(0,c.__)("Get PRO!")),onOk:z,onCancel:w,cancelText:(0,c.__)("No, not interested..."),okText:(0,c.__)("I want to learn more!"),className:"rcb-pro-modal",width:g?800:700,getContainer:R?C:void 0},!!g&&React.createElement("img",{style:{marginTop:10},src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/".concat(g)}),React.createElement("div",{style:{maxWidth:600,margin:"auto"},ref:D},React.createElement("p",null,(0,p.E)(Z)),y&&React.createElement("p",null,(0,c._i)((0,c.__)("Check out this feature with a {{a}}free sandbox{{/a}} before buying!"),{a:React.createElement("a",{href:"https://try.devowl.io/?product=RCB",target:"_blank",rel:"noreferrer"})}))),!!T&&b&&React.createElement("div",{style:{maxWidth:600,margin:"auto",textAlign:"left"}},React.createElement(u.j,T)),d&&React.createElement(l.S,{style:{marginBottom:15}}))}},5053:function(e,t,r){r.d(t,{j:function(){return a}});var n=r(5489),o=r(8503),i=r(2841),a=function(e){var t=e.title,r=e.description,a=e.link,s=e.linkText,c=e.logo;return React.createElement(React.Fragment,null,React.createElement(i.Z,null,t),React.createElement(n.Z,{wrap:!1,style:{marginBottom:10}},React.createElement(o.Z,{flex:"auto"},!!r&&React.createElement("p",{style:{margin:0}},React.createElement("span",{dangerouslySetInnerHTML:{__html:r}})," ",!!a&&!!s&&React.createElement("a",{href:a,target:"_blank",rel:"noreferrer",className:"button-link"},s))),React.createElement(o.Z,{flex:"150px",style:{alignSelf:"center"}},!!c&&React.createElement("img",{src:c,style:{maxWidth:"calc(100% - 20px)",height:"auto",marginLeft:20}}))))}},8383:function(e,t,r){r.d(t,{g:function(){return i}});var n=r(4115),o=r(971),i=function(e){e.children;var t=e.wrapperAttributes,r=void 0===t?{}:t,i=(0,n.Z)(e,["children","wrapperAttributes"]),a=(0,o.t)(i),s=a.modal,c=a.tag;return React.createElement(React.Fragment,null,s,React.createElement("span",r,c))}},2186:function(e,t,r){r.d(t,{N:function(){return i}});var n=r(7228),o=r(7363);function i(e,t,r,i){var a=(0,o.useState)(e),s=(0,n.Z)(a,2),c=s[0],l=s[1];return(0,o.useEffect)((function(){var r=setTimeout((function(){l(e)}),t);return null==i||i(e),function(){clearTimeout(r)}}),[e]),(0,o.useEffect)((function(){r(c)}),[c]),c}},971:function(e,t,r){r.d(t,{t:function(){return f},k:function(){return p}});var n=r(4741),o=r(6107),i=r(7228),a=r(2193),s=r(8630),c=r(4163),l=r(7363),u=r(8137),p="#2db7f5";function f(e,t){var r=(0,l.useState)(!1),f=(0,i.Z)(r,2),b=f[0],h=f[1],d=(0,c.m)().optionStore.others.isPro,v="boolean"==typeof t?t:d,m=(0,l.useCallback)((function(e){h(!0),null==e||e.preventDefault()}),[h]),y=(0,l.useMemo)((function(){return v?null:React.createElement(o.Z,{icon:React.createElement(a.Z,null),color:p,style:{cursor:"pointer"},onClick:m},e.tagText||(0,s.__)("Unlock feature"))}),[m,e]),g=(0,l.useMemo)((function(){return v?null:React.createElement(u.B,(0,n.Z)({visible:b,onClose:function(){return h(!1)}},e))}),[b,h,e]);return{isPro:v,tag:y,modal:g,open:m}}},2780:function(e,t,r){r.d(t,{p:function(){return s}});var n=r(6),o=r(7363),i=r(4163),a=r(4548);function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,s=(0,i.m)(),c=s.scannerStore;return(0,n.useProgress)({type:a.u,fetchStatusInterval:e,fetchAdditionalData:t,onAdditionalData:(0,o.useCallback)((function(e){var t=e["rcb-scan-list"],r=t.presets,n=t.externalUrls;c.resultPresetsFromResponse(r),c.resultExternalUrlsFromResponse(n)}),[c]),onCancel:r})}},9507:function(e,t,r){r.d(t,{p:function(){return v}});var n,o,i,a,s,c,l,u=r(6724),p=r(6762),f=r(3340),b=r(9303),h=r(7821),d=r(490),v=(n=function(){function e(t,r){var n=this;(0,p.Z)(this,e),(0,u.Z)(this,"id",o,this),(0,u.Z)(this,"name",i,this),(0,u.Z)(this,"needsPro",a,this),(0,u.Z)(this,"description",s,this),(0,u.Z)(this,"tags",c,this),(0,u.Z)(this,"settings",l,this),this.store=void 0,this.resetPreviewInUiSettings=void 0,(0,h.runInAction)((function(){return(0,h.set)(n,t)})),this.store=r}return(0,f.Z)(e,[{key:"applyInUi",value:function(){var e=this;return!(!this.store.rootStore.optionStore.others.isPro&&this.needsPro||(this.previewInUi(),setTimeout((function(){var t=(0,d.getSidebarCustomize)();e.store.presetDefaults.forEach((function(r,n){t(n).set(void 0===e.settings[n]?r:e.settings[n])}))}),100),0))}},{key:"previewInUi",value:function(){var t=(0,d.getSidebarCustomize)(),r=this.store.presetDefaults,n=this.store.rootStore.optionStore.others.customizeIdsBanner.settings,o=[];this.resetPreviewInUiSettings={};for(var i=0,a=Object.keys(n);i<a.length;i++)for(var s=a[i],c=n[s],l=0,u=Object.keys(c);l<u.length;l++){var p=u[l],f=c[p];if(r.has(f)){this.resetPreviewInUiSettings[f]=[s,p,t(f).get()];var b=Object.prototype.hasOwnProperty.call(this.settings,f)?this.settings[f]:r.get(f);o.push([s,p,b])}}e.getIframeStore().customizeBannerStore.setBannerFromPreset(o)}},{key:"resetPreviewInUi",value:function(){this.resetPreviewInUiSettings&&(e.getIframeStore().customizeBannerStore.setBannerFromPreset(Object.values(this.resetPreviewInUiSettings)),this.resetPreviewInUiSettings={})}}],[{key:"getIframeStore",value:function(){try{return document.querySelector("#customize-preview > iframe").contentWindow.realCookieBanner_customize_banner.RootStore.get}catch(e){return}}}]),e}(),o=(0,b.Z)(n.prototype,"id",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,b.Z)(n.prototype,"name",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.Z)(n.prototype,"needsPro",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,b.Z)(n.prototype,"description",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,b.Z)(n.prototype,"tags",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,b.Z)(n.prototype,"settings",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},1031:function(e,t,r){r.d(t,{R:function(){return p}});var n,o=r(6762),i=r(3340),a=r(3841),s=r(5952),c=r(8700),l=r(1629),u=r(7598),p=c.ClientCollection.annotate({path:"/rcb-blocker",singlePath:"/rcb-blocker/:id",namespace:"wp/v2",methods:[c.RouteHttpVerb.GET],request:l.W})(n=function(e){(0,a.Z)(r,e);var t=(0,s.Z)(r);function r(e){var n;return(0,o.Z)(this,r),(n=t.call(this)).store=void 0,n.store=e,n}return(0,i.Z)(r,[{key:"instance",value:function(e){return new u.p(this).fromResponse(e)}}]),r}(c.AbstractPostCollection))||n},7598:function(e,t,r){r.d(t,{p:function(){return Z}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(5558),u=r(3071),p=r(8067),f=r(3841),b=r(5952),h=r(9303),d=r(8700),v=r(1629),m=r(1073),y=r(7821),g=r(4163),Z=d.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:v.W,create:{path:"/rcb-blocker"},patch:{path:"/rcb-blocker/:id"},delete:{path:"/rcb-blocker/:id"}})((o=function(e){(0,f.Z)(r,e);var t=(0,b.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.Z)(this,r),n=t.call(this,e,o),(0,a.Z)(n,"presetModel",i,(0,l.Z)(n)),(0,y.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,y.runInAction)((function(){n.presetModel=e?new m.w(e,g.M.get.cookieStore):void 0}))}),{fireImmediately:!0}),n}return(0,c.Z)(r,[{key:"hosts",get:function(){var e;return null===(e=this.data)||void 0===e?void 0:e.meta.hosts.split("\n")}},{key:"tcfVendors",get:function(){var e;return null!==(e=this.data)&&void 0!==e&&e.meta.tcfVendors?this.data.meta.tcfVendors.split(",").filter(Boolean).map(Number):[]}},{key:"cookies",get:function(){var e;return null===(e=this.data)||void 0===e?void 0:e.meta.cookies.split(",").filter(Boolean).map(Number)}},{key:"setName",value:function(e){this.data.title.rendered=e}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setDescription",value:function(e){this.data.content.rendered=e}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPatch",value:function(){var e=(0,u.Z)((0,p.Z)(r.prototype),"transformDataForPatch",this).call(this);return{title:e.title,content:e.content,status:e.status,meta:e.meta,slug:e.title}}},{key:"afterPatch",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterDelete",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(d.AbstractPost),i=(0,h.Z)(o.prototype,"presetModel",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(o.prototype,"hosts",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"hosts"),o.prototype),(0,h.Z)(o.prototype,"tcfVendors",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"tcfVendors"),o.prototype),(0,h.Z)(o.prototype,"cookies",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookies"),o.prototype),(0,h.Z)(o.prototype,"setName",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,h.Z)(o.prototype,"setStatus",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,h.Z)(o.prototype,"setDescription",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,h.Z)(o.prototype,"setMeta",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},1073:function(e,t,r){r.d(t,{w:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1535),d=r(1629),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,d.W)({location:h.N,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},8466:function(e,t,r){r.d(t,{y:function(){return j}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P,S,E,_,x,O,D,z,T=r(2711),I=r(6724),A=r(6762),M=r(3340),N=r(9303),B=r(7821),j=(n=function(){function e(t,r){var n=this;(0,A.Z)(this,e),(0,I.Z)(this,"id",o,this),(0,I.Z)(this,"plugin_version",i,this),(0,I.Z)(this,"design_version",a,this),(0,I.Z)(this,"ipv4",s,this),(0,I.Z)(this,"ipv6",c,this),(0,I.Z)(this,"ipv4_hash",l,this),(0,I.Z)(this,"ipv6_hash",u,this),(0,I.Z)(this,"uuid",p,this),(0,I.Z)(this,"previous_decision",f,this),(0,I.Z)(this,"decision",b,this),(0,I.Z)(this,"decision_labels",h,this),(0,I.Z)(this,"created",d,this),(0,I.Z)(this,"blocker",v,this),(0,I.Z)(this,"blocker_thumbnail",m,this),(0,I.Z)(this,"dnt",y,this),(0,I.Z)(this,"custom_bypass",g,this),(0,I.Z)(this,"user_country",Z,this),(0,I.Z)(this,"revision_hash",k,this),(0,I.Z)(this,"revision_independent_hash",w,this),(0,I.Z)(this,"button_clicked",R,this),(0,I.Z)(this,"context",C,this),(0,I.Z)(this,"viewport_width",P,this),(0,I.Z)(this,"viewport_height",S,this),(0,I.Z)(this,"viewed_page",E,this),(0,I.Z)(this,"url_imprint",_,this),(0,I.Z)(this,"url_privacy_policy",x,this),(0,I.Z)(this,"forwarded",O,this),(0,I.Z)(this,"forwarded_blocker",D,this),(0,I.Z)(this,"tcf_string",z,this),this.store=void 0,this.plain=void 0,(0,B.runInAction)((function(){return(0,B.set)(n,t)})),this.store=r,this.plain=t}return(0,M.Z)(e,[{key:"revision",get:function(){return this.store.revisions.get(this.revision_hash)}},{key:"revision_independent",get:function(){return this.store.revisionsIndependent.get(this.revision_independent_hash)}},{key:"custom_bypass_readable",get:function(){var e=this.custom_bypass;return e?e.charAt(0).toUpperCase()+e.slice(1):""}},{key:"export",get:function(){return JSON.parse(JSON.stringify((0,T.Z)((0,T.Z)({},this.plain),{},{revision:this.revision.data,revision_independent:this.revision_independent.data})))}},{key:"fetchRevisions",value:function(){return Promise.all([this.store.fetchRevision({hash:this.revision_hash}),this.store.fetchRevisionIndependent({hash:this.revision_independent_hash})])}}]),e}(),o=(0,N.Z)(n.prototype,"id",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,N.Z)(n.prototype,"plugin_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,N.Z)(n.prototype,"design_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,N.Z)(n.prototype,"ipv4",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,N.Z)(n.prototype,"ipv6",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,N.Z)(n.prototype,"ipv4_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,N.Z)(n.prototype,"ipv6_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,N.Z)(n.prototype,"uuid",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,N.Z)(n.prototype,"previous_decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,N.Z)(n.prototype,"decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,N.Z)(n.prototype,"decision_labels",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,N.Z)(n.prototype,"created",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,N.Z)(n.prototype,"blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,N.Z)(n.prototype,"blocker_thumbnail",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,N.Z)(n.prototype,"dnt",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,N.Z)(n.prototype,"custom_bypass",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,N.Z)(n.prototype,"user_country",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,N.Z)(n.prototype,"revision_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,N.Z)(n.prototype,"revision_independent_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,N.Z)(n.prototype,"button_clicked",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,N.Z)(n.prototype,"context",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,N.Z)(n.prototype,"viewport_width",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,N.Z)(n.prototype,"viewport_height",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,N.Z)(n.prototype,"viewed_page",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,N.Z)(n.prototype,"url_imprint",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,N.Z)(n.prototype,"url_privacy_policy",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,N.Z)(n.prototype,"forwarded",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,N.Z)(n.prototype,"forwarded_blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,N.Z)(n.prototype,"tcf_string",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,N.Z)(n.prototype,"revision",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision"),n.prototype),(0,N.Z)(n.prototype,"revision_independent",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision_independent"),n.prototype),(0,N.Z)(n.prototype,"custom_bypass_readable",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"custom_bypass_readable"),n.prototype),n)},3374:function(e,t,r){r.d(t,{b:function(){return y}});var n,o,i=r(38),a=r(6762),s=r(3340),c=r(3841),l=r(5952),u=r(9303),p=r(5450),f=r.n(p),b=r(8700),h=r(1629),d=r(6926),v=r(7821),m=r(7068),y=b.ClientCollection.annotate({path:"/rcb-cookie",singlePath:"/rcb-cookie/:id",namespace:"wp/v2",methods:[b.RouteHttpVerb.GET],request:h.W})((o=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,a.Z)(this,r),(n=t.call(this)).store=void 0,n.orderCookies=(0,v.flow)(f().mark((function e(t){var r,n,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busy=!0,e.prev=1,e.next=4,(0,h.W)({location:m.I,request:{ids:t}});case 4:r=0,n=(0,i.Z)(t);try{for(n.s();!(o=n.n()).done;)a=o.value,this.entries.get(a).setOrder(r),r++}catch(e){n.e(e)}finally{n.f()}e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.store=e,n}return(0,s.Z)(r,[{key:"sortedCookies",get:function(){var e=Array.from(this.entries.values());return e.sort((function(e,t){return e.data.menu_order<t.data.menu_order?-1:e.data.menu_order>t.data.menu_order||e.key<t.key?1:e.key>t.key?-1:0})),e}},{key:"instance",value:function(e){return new d.U(this).fromResponse(e)}}]),r}(b.AbstractPostCollection),(0,u.Z)(o.prototype,"sortedCookies",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedCookies"),o.prototype),n=o))||n},9818:function(e,t,r){r.d(t,{w:function(){return y}});var n,o,i=r(38),a=r(6762),s=r(3340),c=r(3841),l=r(5952),u=r(9303),p=r(5450),f=r.n(p),b=r(8700),h=r(1629),d=r(5706),v=r(7821),m=r(5354),y=b.ClientCollection.annotate({path:"/rcb-cookie-group",singlePath:"/rcb-cookie-group/:id",namespace:"wp/v2",methods:[b.RouteHttpVerb.GET],request:h.W})((o=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,a.Z)(this,r),(n=t.call(this)).store=void 0,n.orderCookieGroups=(0,v.flow)(f().mark((function e(t){var r,n,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busy=!0,e.prev=1,e.next=4,(0,h.W)({location:m.B,request:{ids:t}});case 4:r=0,n=(0,i.Z)(t);try{for(n.s();!(o=n.n()).done;)a=o.value,this.entries.get(a).setOrder(r),r++}catch(e){n.e(e)}finally{n.f()}e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.store=e,n}return(0,s.Z)(r,[{key:"sortedGroups",get:function(){var e=Array.from(this.entries.values());return e.sort((function(e,t){return e.data.meta.order<t.data.meta.order?-1:e.data.meta.order>t.data.meta.order?1:0})),e}},{key:"instance",value:function(e){return new d.O(this).fromResponse(e)}}]),r}(b.AbstractCategoryCollection),(0,u.Z)(o.prototype,"sortedGroups",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedGroups"),o.prototype),n=o))||n},5706:function(e,t,r){r.d(t,{O:function(){return Z}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3841),f=r(5952),b=r(9303),h=r(5450),d=r.n(h),v=r(8700),m=r(1629),y=r(3374),g=r(7821),Z=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-cookie-group"},patch:{path:"/rcb-cookie-group/:id"},delete:{path:"/rcb-cookie-group/:id"}})((o=function(e){(0,p.Z)(r,e);var t=(0,f.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"cookies",i,(0,u.Z)(n)),(0,s.Z)(n,"fetchedAllCookies",a,(0,u.Z)(n)),n.fetchCookies=(0,g.flow)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cookies.get({request:{status:["draft","publish","private"]},params:{per_page:100,"rcb-cookie-group":this.key,context:"edit"}});case 2:this.fetchedAllCookies=!0;case 3:case"end":return e.stop()}}),e,this)}))),(0,g.runInAction)((function(){n.cookies=new y.b((0,u.Z)(n))})),n}return(0,l.Z)(r,[{key:"cookiesCount",get:function(){return this.fetchedAllCookies?this.cookies.entries.size:this.data.count}},{key:"setName",value:function(e){this.data.name=e}},{key:"setDescription",value:function(e){this.data.description=e}},{key:"setOrder",value:function(e){this.data.meta.order=e}},{key:"afterDelete",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPatch",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(v.AbstractCategory),i=(0,b.Z)(o.prototype,"cookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.Z)(o.prototype,"fetchedAllCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,b.Z)(o.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookiesCount"),o.prototype),(0,b.Z)(o.prototype,"setName",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,b.Z)(o.prototype,"setDescription",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,b.Z)(o.prototype,"setOrder",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),n=o))||n},6926:function(e,t,r){r.d(t,{U:function(){return w}});var n,o,i,a=r(2711),s=r(7228),c=r(6724),l=r(6762),u=r(3340),p=r(5558),f=r(3071),b=r(8067),h=r(3841),d=r(5952),v=r(9303),m=r(8700),y=r(1629),g=r(8213),Z=r(7821),k=r(4163),w=m.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.W,create:{path:"/rcb-cookie"},patch:{path:"/rcb-cookie/:id"},delete:{path:"/rcb-cookie/:id"}})((o=function(e){(0,h.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.Z)(this,r),n=t.call(this,e,o),(0,c.Z)(n,"presetModel",i,(0,p.Z)(n)),n.store=void 0,(0,Z.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,Z.runInAction)((function(){n.presetModel=e?new g.g(e,k.M.get.cookieStore):void 0}))}),{fireImmediately:!0}),n}return(0,u.Z)(r,[{key:"rootStore",get:function(){return this.collection.store.collection.store.rootStore}},{key:"tagManagerSettings",get:function(){var e=this.rootStore.optionStore;return e.others.isPro,e.setCookiesViaManager,!1}},{key:"technicalDefinitions",get:function(){return JSON.parse(this.data.meta.technicalDefinitions)}},{key:"codeDynamics",get:function(){return JSON.parse(this.data.meta.codeDynamics||"{}")}},{key:"firstTechnicalDefinition",get:function(){var e;return null===(e=this.technicalDefinitions)||void 0===e?void 0:e[0]}},{key:"afterPatch",value:function(){var e=this,t=this.collection.store.collection,r=(0,s.Z)(this.data["rcb-cookie-group"],1)[0];t.entries.forEach((function(t){r!==t.key?t.cookies.entries.delete(e.key):t.cookies.entries.set(e.key,e)})),this.rootStore.optionStore.fetchCurrentRevision(),this.rootStore.cookieStore.unassignedCookies.delete(this.key)}},{key:"setOrder",value:function(e){this.data.menu_order=e}},{key:"setName",value:function(e){this.data.title.rendered=e}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setPurpose",value:function(e){this.data.content.rendered=e}},{key:"setGroup",value:function(e){this.data["rcb-cookie-group"]=[e]}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPersist",value:function(){var e=(0,f.Z)((0,b.Z)(r.prototype),"transformDataForPersist",this).call(this);return(0,a.Z)((0,a.Z)({},e),{},{"rcb-cookie-group":[this.collection.store.key]})}},{key:"transformDataForPatch",value:function(){var e=(0,f.Z)((0,b.Z)(r.prototype),"transformDataForPatch",this).call(this);return{title:e.title,content:e.content,status:e.status,meta:e.meta,menu_order:e.menu_order,"rcb-cookie-group":this.data["rcb-cookie-group"],slug:e.title}}},{key:"afterDelete",value:function(){this.collection.store.cookies.store.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){var e=this.collection.store.cookies.store.collection.store.rootStore,t=e.optionStore,r=e.checklistStore;t.fetchCurrentRevision(),r.probablyFetchByChangedItem("add-cookie")}}]),r}(m.AbstractPost),i=(0,v.Z)(o.prototype,"presetModel",[Z.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,v.Z)(o.prototype,"rootStore",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"rootStore"),o.prototype),(0,v.Z)(o.prototype,"tagManagerSettings",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"tagManagerSettings"),o.prototype),(0,v.Z)(o.prototype,"technicalDefinitions",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"technicalDefinitions"),o.prototype),(0,v.Z)(o.prototype,"codeDynamics",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"codeDynamics"),o.prototype),(0,v.Z)(o.prototype,"firstTechnicalDefinition",[Z.computed],Object.getOwnPropertyDescriptor(o.prototype,"firstTechnicalDefinition"),o.prototype),(0,v.Z)(o.prototype,"afterPatch",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"afterPatch"),o.prototype),(0,v.Z)(o.prototype,"setOrder",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),(0,v.Z)(o.prototype,"setName",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,v.Z)(o.prototype,"setStatus",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,v.Z)(o.prototype,"setPurpose",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setPurpose"),o.prototype),(0,v.Z)(o.prototype,"setGroup",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setGroup"),o.prototype),(0,v.Z)(o.prototype,"setMeta",[Z.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},8213:function(e,t,r){r.d(t,{g:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1500),d=r(1629),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,d.W)({location:h.t,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},508:function(e,t,r){r.d(t,{k:function(){return o}});var n=r(6762),o=function e(t,r){(0,n.Z)(this,e),this.data=void 0,this.store=void 0,this.data=t,this.store=r}},502:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(6762),o=function e(t,r){(0,n.Z)(this,e),this.data=void 0,this.store=void 0,this.data=t,this.store=r}},936:function(e,t,r){r.d(t,{o:function(){return v}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(9303),u=r(5450),p=r.n(u),f=r(7821),b=r(4227),h=r(1629),d=r(8630),v=(n=function(){function e(t,r){var n=this;(0,s.Z)(this,e),(0,a.Z)(this,"busy",o,this),(0,a.Z)(this,"data",i,this),this.store=void 0,this.ignore=(0,f.flow)(p().mark((function e(){var t,r=arguments;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(r.length>1&&void 0!==r[1])||r[1],e.prev=1,e.next=4,(0,h.W)({location:b.C,request:{ignored:t},params:{host:this.data.host.replace(/\./g,"_")}});case 4:this.data.ignored=t,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[1,7]])}))),(0,f.runInAction)((function(){n.data=t})),this.store=r}return(0,c.Z)(e,[{key:"identifier",get:function(){return this.data.host}},{key:"inactive",get:function(){return"full"===this.blockedStatus||this.data.ignored}},{key:"blockedStatus",get:function(){var e=this.data,t=e.foundCount,r=e.blockedCount;return 0===r?"none":t===r?"full":"partial"}},{key:"blockedStatusText",get:function(){switch(this.blockedStatus){case"full":return(0,d.__)("Fully blocked");case"partial":return(0,d.__)("Partially blocked");default:return(0,d.__)("Not blocked")}}}]),e}(),o=(0,l.Z)(n.prototype,"busy",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,l.Z)(n.prototype,"data",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(n.prototype,"identifier",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,l.Z)(n.prototype,"inactive",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),(0,l.Z)(n.prototype,"blockedStatus",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedStatus"),n.prototype),(0,l.Z)(n.prototype,"blockedStatusText",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedStatusText"),n.prototype),n)},1313:function(e,t,r){r.d(t,{a:function(){return h}});var n,o,i,a=r(6724),s=r(6762),c=r(3340),l=r(9303),u=r(5450),p=r.n(u),f=r(7821),b=r(3190),h=(n=function(){function e(t,r){var n=this;(0,s.Z)(this,e),(0,a.Z)(this,"busy",o,this),(0,a.Z)(this,"data",i,this),this.store=void 0,this.fetchMarkup=(0,f.flow)(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.store.fetchMarkup(this.data.id);case 2:case"end":return e.stop()}}),e,this)}))),(0,f.runInAction)((function(){n.data=t})),this.store=r}return(0,c.Z)(e,[{key:"markup",get:function(){return this.store.resultMarkup.get(this.data.id)}},{key:"blockedUrlTruncate",get:function(){return(0,b.r)(this.data.blockedUrl,50,"[...]")}},{key:"sourceUrlTruncate",get:function(){return(0,b.r)(this.data.sourceUrl,50,"[...]")}}]),e}(),o=(0,l.Z)(n.prototype,"busy",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,l.Z)(n.prototype,"data",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(n.prototype,"markup",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"markup"),n.prototype),(0,l.Z)(n.prototype,"blockedUrlTruncate",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockedUrlTruncate"),n.prototype),(0,l.Z)(n.prototype,"sourceUrlTruncate",[f.computed],Object.getOwnPropertyDescriptor(n.prototype,"sourceUrlTruncate"),n.prototype),n)},1680:function(e,t,r){r.d(t,{g:function(){return v}});var n,o,i,a,s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(5450),f=r.n(p),b=r(7821),h=r(1629),d=r(1535),v=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"busy",o,this),(0,s.Z)(this,"data",i,this),(0,s.Z)(this,"attributes",a,this),this.store=void 0,this.fetchAttributes=(0,b.flow)(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,(0,h.W)({location:d.N,params:{identifier:this.data.identifier}});case 4:t=e.sent,this.attributes=t,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,8,12,15]])}))),(0,b.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"identifier",get:function(){return this.data.identifier}},{key:"fullLogoUrl",get:function(){var e=this.data.logoFile,t=this.store.rootStore.optionStore.publicUrl;return e.startsWith("http")?e:"".concat(t,"images/logos/").concat(e)}},{key:"inactive",get:function(){return this.data.created}}]),e}(),o=(0,u.Z)(n.prototype,"busy",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"identifier",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,u.Z)(n.prototype,"fullLogoUrl",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),(0,u.Z)(n.prototype,"inactive",[b.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),n)},6846:function(e,t,r){r.d(t,{i:function(){return u}});var n,o,i,a=r(6724),s=r(6762),c=r(9303),l=r(7821),u=(n=function e(t,r,n){var c=this;(0,s.Z)(this,e),(0,a.Z)(this,"data",o,this),(0,a.Z)(this,"special",i,this),this.store=void 0,(0,l.runInAction)((function(){c.special=r,c.data=t})),this.store=n},o=(0,c.Z)(n.prototype,"data",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,c.Z)(n.prototype,"special",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},8905:function(e,t,r){r.d(t,{v:function(){return u}});var n,o,i,a=r(6724),s=r(6762),c=r(9303),l=r(7821),u=(n=function e(t,r,n){var c=this;(0,s.Z)(this,e),(0,a.Z)(this,"data",o,this),(0,a.Z)(this,"special",i,this),this.store=void 0,(0,l.runInAction)((function(){c.special=r,c.data=t})),this.store=n},o=(0,c.Z)(n.prototype,"data",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,c.Z)(n.prototype,"special",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},7037:function(e,t,r){r.d(t,{C:function(){return b}});var n,o,i=r(7870),a=r(38),s=r(6724),c=r(6762),l=r(3340),u=r(9303),p=r(7821),f=r(6833),b=(n=function(){function e(t,r){var n=this;(0,c.Z)(this,e),(0,s.Z)(this,"data",o,this),this.store=void 0,(0,p.runInAction)((function(){n.data=t})),this.store=r}return(0,l.Z)(e,[{key:"vendorConfiguration",get:function(){var e,t=(0,a.Z)(this.store.vendorConfigurations.entries.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(r.vendorModel.data.id===this.data.id)return r}}catch(e){t.e(e)}finally{t.f()}}},{key:"deviceStorageDisclosure",get:function(){var e=this.data,t=e.usesCookies,r=e.cookieMaxAgeSeconds,n=e.cookieRefresh,o=e.usesNonCookieAccess,a=e.deviceStorageDisclosure,s=null!=a&&a.disclosures.length?(0,i.Z)(a.disclosures):[];return o&&s.unshift({type:f.r.Web,identifier:"*",purposes:void 0,cookieRefresh:void 0,domain:"*",maxAgeSeconds:null}),t&&s.unshift({type:f.r.Cookie,identifier:"*",purposes:void 0,cookieRefresh:n,domain:"*",maxAgeSeconds:r}),s}},{key:"allPurposes",get:function(){return[].concat((0,i.Z)(this.legIntPurposes),(0,i.Z)(this.purposes),(0,i.Z)(this.specialPurposes)).filter(Boolean)}},{key:"allFeatures",get:function(){return[].concat((0,i.Z)(this.features),(0,i.Z)(this.specialFeatures)).filter(Boolean)}},{key:"restrictivePurposes",get:function(){for(var e={normal:{}},t=0,r=[].concat((0,i.Z)(this.legIntPurposes),(0,i.Z)(this.purposes));t<r.length;t++){var n=r[t];e.normal[n.data.id.toString()]={enabled:!0,legInt:this.legIntPurposes.indexOf(n)>-1&&!n.special?"yes":"no"}}return e}},{key:"purposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.purposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"legIntPurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.legIntPurposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"flexiblePurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.flexiblePurposes.map((function(e){return t.store.purposes.get("".concat(e))}))}},{key:"specialPurposes",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.specialPurposes.map((function(e){return t.store.specialPurposes.get("".concat(e))}))}},{key:"features",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.features.map((function(e){return t.store.features.get("".concat(e))}))}},{key:"specialFeatures",get:function(){var e,t=this;return null===(e=this.data)||void 0===e?void 0:e.specialFeatures.map((function(e){return t.store.specialFeatures.get("".concat(e))}))}}]),e}(),o=(0,u.Z)(n.prototype,"data",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"vendorConfiguration",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"vendorConfiguration"),n.prototype),(0,u.Z)(n.prototype,"deviceStorageDisclosure",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"deviceStorageDisclosure"),n.prototype),(0,u.Z)(n.prototype,"allPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"allPurposes"),n.prototype),(0,u.Z)(n.prototype,"allFeatures",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"allFeatures"),n.prototype),(0,u.Z)(n.prototype,"restrictivePurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"restrictivePurposes"),n.prototype),(0,u.Z)(n.prototype,"purposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"purposes"),n.prototype),(0,u.Z)(n.prototype,"legIntPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"legIntPurposes"),n.prototype),(0,u.Z)(n.prototype,"flexiblePurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"flexiblePurposes"),n.prototype),(0,u.Z)(n.prototype,"specialPurposes",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"specialPurposes"),n.prototype),(0,u.Z)(n.prototype,"features",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"features"),n.prototype),(0,u.Z)(n.prototype,"specialFeatures",[p.computed],Object.getOwnPropertyDescriptor(n.prototype,"specialFeatures"),n.prototype),n)},1833:function(e,t,r){r.d(t,{C:function(){return p}});var n,o=r(6762),i=r(3340),a=r(3841),s=r(5952),c=r(8700),l=r(1629),u=r(9533),p=c.ClientCollection.annotate({path:"/rcb-tcf-vendor-conf",singlePath:"/rcb-tcf-vendor-conf/:id",namespace:"wp/v2",methods:[c.RouteHttpVerb.GET],request:l.W})(n=function(e){(0,a.Z)(r,e);var t=(0,s.Z)(r);function r(e){var n;return(0,o.Z)(this,r),(n=t.call(this)).store=void 0,n.store=e,n}return(0,i.Z)(r,[{key:"instance",value:function(e){return new u.S(this).fromResponse(e)}}]),r}(c.AbstractPostCollection))||n},9533:function(e,t,r){r.d(t,{S:function(){return w}});var n,o,i,a=r(7870),s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3071),f=r(8067),b=r(3841),h=r(5952),d=r(9303),v=r(8700),m=r(1629),y=r(7821),g=r(7037),Z=r(5311),k=r.n(Z),w=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-tcf-vendor-conf"},patch:{path:"/rcb-tcf-vendor-conf/:id"},delete:{path:"/rcb-tcf-vendor-conf/:id"}})((o=function(e){(0,b.Z)(r,e);var t=(0,h.Z)(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"vendorModel",i,(0,u.Z)(n)),(0,y.reaction)((function(){return n.data.vendor}),(function(e){return(0,y.runInAction)((function(){if(e){var t=n.collection.store.vendors,r=e.id.toString(),o=t.get(r);o||(o=new g.C(e,n.collection.store),t.set(r,o)),n.vendorModel=o}}))}),{fireImmediately:!0}),(0,y.reaction)((function(){var e;return null===(e=n.data.meta)||void 0===e?void 0:e.vendorId}),(function(e){e&&(n.vendorModel=n.collection.store.vendors.get(e.toString()))}),{fireImmediately:!0}),n}return(0,l.Z)(r,[{key:"hasVendor",get:function(){return!!this.vendorModel}},{key:"restrictivePurposes",get:function(){var e,t,r="global"===this.collection.store.rootStore.optionStore.tcfScopeOfConsent,n=(null===(e=this.vendorModel)||void 0===e?void 0:e.restrictivePurposes)||{normal:{}};if(r)return n;var o=JSON.parse(this.data.meta.restrictivePurposes);return k().extend(!0,{},(null===(t=this.vendorModel)||void 0===t?void 0:t.restrictivePurposes)||{},o)}},{key:"stats",get:function(){var e,t=this.restrictivePurposes.normal,r=(0,a.Z)(Object.values(t));return{activePurposes:r.filter((function(e){return e.enabled})).length,legIntPurposes:r.filter((function(e){var t=e.enabled,r=e.legInt;return t&&"yes"===r})).length,activeFeatures:(null===(e=this.vendorModel)||void 0===e?void 0:e.allFeatures.length)||0}}},{key:"setStatus",value:function(e){this.data.status=e}},{key:"setMeta",value:function(e){this.data.meta=e}},{key:"transformDataForPatch",value:function(){var e=(0,p.Z)((0,f.Z)(r.prototype),"transformDataForPatch",this).call(this);return{status:e.status,meta:e.meta}}},{key:"afterPatch",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterDelete",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}},{key:"afterPersist",value:function(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}]),r}(v.AbstractPost),i=(0,d.Z)(o.prototype,"vendorModel",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(o.prototype,"hasVendor",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"hasVendor"),o.prototype),(0,d.Z)(o.prototype,"restrictivePurposes",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"restrictivePurposes"),o.prototype),(0,d.Z)(o.prototype,"stats",[y.computed],Object.getOwnPropertyDescriptor(o.prototype,"stats"),o.prototype),(0,d.Z)(o.prototype,"setStatus",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,d.Z)(o.prototype,"setMeta",[y.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},2819:function(e,t,r){r.d(t,{L:function(){return k}});var n,o,i,a=r(2711),s=r(6724),c=r(6762),l=r(3340),u=r(5558),p=r(3841),f=r(5952),b=r(9303),h=r(5450),d=r.n(h),v=r(7821),m=r(8700),y=r(986),g=r(8930),Z=r(1629),k=(n=function(e){(0,p.Z)(r,e);var t=(0,f.Z)(r);function r(e){var n;return(0,c.Z)(this,r),n=t.call(this),(0,s.Z)(n,"busyChecklist",o,(0,u.Z)(n)),(0,s.Z)(n,"checklist",i,(0,u.Z)(n)),n.rootStore=void 0,n.probablyFetchByChangedItem=(0,v.flow)(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=4;break}return e.next=3,this.fetchChecklist();case 3:return e.abrupt("return");case 4:if(n=Array.isArray(t)?t:[t],!(this.items.filter((function(e){var t=e.id,r=e.checked;return n.indexOf(t)>-1&&!r})).length>0)){e.next=8;break}return e.next=8,this.fetchChecklist();case 8:case"end":return e.stop()}}),e,this)}))),n.fetchChecklist=(0,v.flow)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyChecklist=!0,e.prev=1,e.next=4,(0,Z.W)({location:y.g,params:{_wp_http_referer:window.location.href}});case 4:this.checklist=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busyChecklist=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.toggleChecklistItem=(0,v.flow)(d().mark((function e(t,r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyChecklist=!0,e.prev=1,e.next=4,(0,Z.W)({location:g.s,request:{state:r},params:{id:t,_wp_http_referer:window.location.href}});case 4:this.checklist=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busyChecklist=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.rootStore=e,n}return(0,l.Z)(r,[{key:"items",get:function(){var e=this;return this.checklist&&Object.keys(this.checklist.items).map((function(t){return(0,a.Z)({id:t},e.checklist.items[t])}))||[]}},{key:"completed",get:function(){return this.items.filter((function(e){return e.checked}))}},{key:"checkable",get:function(){var e=this.rootStore.optionStore.others.isPro;return this.items.filter((function(t){var r=t.needsPro;return!r||e&&r}))}},{key:"done",get:function(){var e;return this.completed.length>=this.checkable.length||!(null===(e=this.checklist)||void 0===e||!e.dismissed)}}]),r}(m.BaseOptions),o=(0,b.Z)(n.prototype,"busyChecklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,b.Z)(n.prototype,"checklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(n.prototype,"items",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"items"),n.prototype),(0,b.Z)(n.prototype,"completed",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"completed"),n.prototype),(0,b.Z)(n.prototype,"checkable",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"checkable"),n.prototype),(0,b.Z)(n.prototype,"done",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"done"),n.prototype),n)},3880:function(e,t,r){r.d(t,{v:function(){return I}});var n,o,i,a,s,c,l,u,p,f,b=r(38),h=r(6724),d=r(6762),v=r(3340),m=r(5558),y=r(3841),g=r(5952),Z=r(9303),k=r(5450),w=r.n(k),R=r(7821),C=r(8700),P=r(1629),S=r(5151),E=r(2616),_=r(5253),x=r(9437),O=r(6465),D=r(8466),z=r(508),T=r(502),I=(n=function(e){(0,y.Z)(r,e);var t=(0,g.Z)(r);function r(e){var n;return(0,d.Z)(this,r),n=t.call(this),(0,h.Z)(n,"busyConsent",o,(0,m.Z)(n)),(0,h.Z)(n,"busyReferer",i,(0,m.Z)(n)),(0,h.Z)(n,"count",a,(0,m.Z)(n)),(0,h.Z)(n,"perPage",s,(0,m.Z)(n)),(0,h.Z)(n,"offset",c,(0,m.Z)(n)),(0,h.Z)(n,"pageCollection",l,(0,m.Z)(n)),(0,h.Z)(n,"revisions",u,(0,m.Z)(n)),(0,h.Z)(n,"revisionsIndependent",p,(0,m.Z)(n)),(0,h.Z)(n,"referer",f,(0,m.Z)(n)),n.filters=R.observable.object({page:1,dates:[void 0,void 0],context:void 0,referer:void 0,ip:void 0,uuid:void 0},{},{deep:!1}),n.rootStore=void 0,n.fetchAll=(0,R.flow)(w().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,h;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyConsent=!0,e.prev=1,t=this.filters,r=t.page,n=t.referer,o=t.ip,i=t.uuid,a=t.context,s=this.filters.dates.map((function(e){return e?e.format("YYYY-MM-DD"):""})),e.next=6,(0,P.W)({location:S.c,params:{per_page:this.perPage,offset:(r-1)*this.perPage,from:s[0],to:s[1],ip:o,uuid:i,referer:n,context:a}});case 6:c=e.sent,l=c.count,u=c.items,this.count=l,this.pageCollection.clear(),p=(0,b.Z)(u);try{for(p.s();!(f=p.n()).done;)h=f.value,this.pageCollection.set(h.id,new D.y(h,this))}catch(e){p.e(e)}finally{p.f()}e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(1),console.log(e.t0),e.t0;case 19:return e.prev=19,this.busyConsent=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,15,19,22]])}))),n.fetchRevision=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,P.W)({location:E.Z,params:t});case 3:r=e.sent,this.revisions.set(t.hash,new z.k(r,this)),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.fetchRevisionIndependent=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,P.W)({location:_.T,params:t});case 3:r=e.sent,this.revisionsIndependent.set(t.hash,new T.I(r,this)),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.fetchReferer=(0,R.flow)(w().mark((function e(t){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyReferer=!0,e.prev=1,e.next=4,(0,P.W)({location:x.q,params:t});case 4:r=e.sent,this.referer=r.items,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busyReferer=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[1,8,12,15]])}))),n.deleteAll=(0,R.flow)(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyConsent=!0,e.prev=1,e.next=4,(0,P.W)({location:O.O});case 4:return this.applyPage(0),e.next=7,this.fetchAll();case 7:e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyConsent=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,(0,R.runInAction)((function(){n.filters.context=n.rootStore.optionStore.others.context})),n}return(0,v.Z)(r,[{key:"applyPage",value:function(e){this.filters.page=e}},{key:"applyDates",value:function(e){this.filters.dates=e}},{key:"applyContext",value:function(e){this.filters.context=e}},{key:"applyReferer",value:function(e){this.filters.referer=e}},{key:"applyIp",value:function(e){this.filters.ip=e}},{key:"applyUuid",value:function(e){this.filters.uuid=e}}]),r}(C.BaseOptions),o=(0,Z.Z)(n.prototype,"busyConsent",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,Z.Z)(n.prototype,"busyReferer",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,Z.Z)(n.prototype,"count",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,Z.Z)(n.prototype,"perPage",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),c=(0,Z.Z)(n.prototype,"offset",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,Z.Z)(n.prototype,"pageCollection",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),u=(0,Z.Z)(n.prototype,"revisions",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),p=(0,Z.Z)(n.prototype,"revisionsIndependent",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),f=(0,Z.Z)(n.prototype,"referer",[R.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,Z.Z)(n.prototype,"applyPage",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyPage"),n.prototype),(0,Z.Z)(n.prototype,"applyDates",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,Z.Z)(n.prototype,"applyContext",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),(0,Z.Z)(n.prototype,"applyReferer",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyReferer"),n.prototype),(0,Z.Z)(n.prototype,"applyIp",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyIp"),n.prototype),(0,Z.Z)(n.prototype,"applyUuid",[R.action],Object.getOwnPropertyDescriptor(n.prototype,"applyUuid"),n.prototype),n)},2237:function(e,t,r){r.d(t,{h:function(){return _}});var n,o,i,a,s,c,l,u,p,f,b=r(6724),h=r(6762),d=r(3340),v=r(9303),m=r(5450),y=r.n(m),g=r(7821),Z=r(1073),k=r(8213),w=r(9818),R=r(1031),C=r(6764),P=r(7689),S=r(3352),E=r(1629),_=(n=function(){function e(t){var r=this;(0,h.Z)(this,e),(0,b.Z)(this,"busy",o,this),(0,b.Z)(this,"groups",i,this),(0,b.Z)(this,"unassignedCookies",a,this),(0,b.Z)(this,"blockers",s,this),(0,b.Z)(this,"presetsBlocker",c,this),(0,b.Z)(this,"busyPresetsBlocker",l,this),(0,b.Z)(this,"presetsCookie",u,this),(0,b.Z)(this,"busyPresetsCookie",p,this),(0,b.Z)(this,"fetchedAllBlockers",f,this),this.rootStore=void 0,this.fetchGroups=(0,g.flow)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.groups.get({params:{per_page:100}});case 2:return e.next=4,this.fetchUnassignedCookies();case 4:case"end":return e.stop()}}),e,this)}))),this.fetchUnassignedCookies=(0,g.flow)(y().mark((function e(){var t,r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,E.W)({location:C.p});case 3:for(t=e.sent,r=0,n=Object.values(t);r<n.length;r++)o=n[r],this.unassignedCookies.set(o.id,o);e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),this.fetchBlockers=(0,g.flow)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.blockers.get({request:{status:["draft","publish","private"]},params:{per_page:100,context:"edit"}});case 2:this.fetchedAllBlockers=!0;case 3:case"end":return e.stop()}}),e,this)}))),this.fetchPresetsBlocker=(0,g.flow)(y().mark((function e(){var t,r,n,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresetsBlocker=!0,e.prev=1,e.next=4,(0,E.W)({location:P.W});case 4:for(t=e.sent,r=t.items,n=0,o=Object.keys(r);n<o.length;n++)i=o[n],this.presetsBlocker.set(i,new Z.w(r[i],this));e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyPresetsBlocker=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),this.fetchPresetsCookie=(0,g.flow)(y().mark((function e(){var t,r,n,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresetsCookie=!0,e.prev=1,e.next=4,(0,E.W)({location:S.z});case 4:for(t=e.sent,r=t.items,n=0,o=Object.keys(r);n<o.length;n++)i=o[n],this.presetsCookie.set(i,new k.g(r[i],this));e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyPresetsCookie=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),this.rootStore=t,(0,g.runInAction)((function(){r.groups=new w.w(r),r.blockers=new R.R(r)}))}return(0,d.Z)(e,[{key:"blockersCount",get:function(){return this.fetchedAllBlockers?this.blockers.entries.size:this.rootStore.optionStore.allBlockerCount}},{key:"cookiesCount",get:function(){return Array.from(this.groups.entries.values()).map((function(e){return e.cookiesCount})).reduce((function(e,t){return e+t}),0)}},{key:"essentialGroup",get:function(){if(0!==this.groups.entries.size){for(var e,t=this.groups.entries.values();(e=t.next().value)&&e.data.slug!==this.rootStore.optionStore.others.essentialGroup;);return e}}}]),e}(),o=(0,v.Z)(n.prototype,"busy",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,v.Z)(n.prototype,"groups",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,v.Z)(n.prototype,"unassignedCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),s=(0,v.Z)(n.prototype,"blockers",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,v.Z)(n.prototype,"presetsBlocker",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,v.Z)(n.prototype,"busyPresetsBlocker",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,v.Z)(n.prototype,"presetsCookie",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),p=(0,v.Z)(n.prototype,"busyPresetsCookie",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,v.Z)(n.prototype,"fetchedAllBlockers",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,v.Z)(n.prototype,"blockersCount",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"blockersCount"),n.prototype),(0,v.Z)(n.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"cookiesCount"),n.prototype),(0,v.Z)(n.prototype,"essentialGroup",[g.computed],Object.getOwnPropertyDescriptor(n.prototype,"essentialGroup"),n.prototype),n)},7602:function(e,t,r){r.d(t,{W:function(){return C}});var n,o,i,a,s,c,l,u=r(7228),p=r(38),f=r(2711),b=r(6724),h=r(6762),d=r(3340),v=r(9303),m=r(5450),y=r.n(m),g=r(7821),Z=r(4504),k=r(1629),w=r(9507),R=r(490),C=(n=function(){function e(t){(0,h.Z)(this,e),(0,b.Z)(this,"visible",o,this),(0,b.Z)(this,"animationVisible",i,this),(0,b.Z)(this,"individualPrivacyOpen",a,this),(0,b.Z)(this,"previewCheckboxActiveState",s,this),(0,b.Z)(this,"busyPresets",c,this),(0,b.Z)(this,"presets",l,this),this.rootStore=void 0,this.presetConstants=new Map,this.presetDefaults=new Map,this.debounceFromCustomize={},this.fetchPresets=(0,g.flow)(y().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,b,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresets=!0,e.prev=1,e.next=4,(0,k.W)({location:Z.t});case 4:for(t=e.sent,r=t.defaults,n=t.constants,o=t.items,i=0,a=Object.keys(r);i<a.length;i++)s=a[i],this.presetDefaults.set(s,r[s]);for(c=0,l=Object.keys(n);c<l.length;c++)u=l[c],this.presetConstants.set(u,n[u]);for(p=0,b=Object.keys(o);p<b.length;p++)h=b[p],this.presets.set(h,new w.p((0,f.Z)({id:h},o[h]),this));e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(1),console.log(e.t0),e.t0;case 17:return e.prev=17,this.busyPresets=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,13,17,20]])}))),this.rootStore=t}return(0,d.Z)(e,[{key:"setBannerFromCustomize",value:function(e,t,r){var n=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.rootStore.optionStore.others.customizeValuesBanner,a=t.toString();if(o&&["css","animationInDuration","animationOutDuration"].indexOf(a)>-1)clearTimeout(this.debounceFromCustomize[a]),this.debounceFromCustomize[a]=setTimeout((function(){return n.setBannerFromCustomize(e,t,r,!1)}),500);else{var s=i[e][t];i[e][t]=r,a.startsWith("animationOut")&&s!==r&&this.forceAnimationOutSimulation()}}},{key:"setBannerFromPreset",value:function(e){var t,r=(0,p.Z)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=(0,u.Z)(n,3),i=o[0],a=o[1],s=o[2];this.rootStore.optionStore.others.customizeValuesBanner[i][a]=s}}catch(e){r.e(e)}finally{r.f()}}},{key:"forceAnimationOutSimulation",value:function(){var e=this,t=this.rootStore.optionStore.others.customizeValuesBanner;"none"!==t.layout.animationOut&&(this.animationVisible=!1,setTimeout((function(){return(0,g.runInAction)((function(){e.animationVisible=!0}))}),+t.layout.animationOutDuration+1e3))}},{key:"setVisible",value:function(e){this.visible=e}},{key:"setIndividualPrivacyOpen",value:function(e){this.individualPrivacyOpen=e}},{key:"setPreviewCheckboxActiveState",value:function(e){this.previewCheckboxActiveState=e}},{key:"exportPhp",value:function(){var e=this,t={},r=(0,R.getSidebarCustomize)();return this.presetDefaults.forEach((function(n,o){var i=r(o).get();"boolean"==typeof n?i=!!+i:isNaN(i)||""===i||(i=+i),JSON.stringify(n)!==JSON.stringify(i)&&(t[e.presetConstants.get(o)]=i)})),this.jsonToPHPArray(t)}},{key:"jsonToPHPArray",value:function(e){var t=JSON.stringify(e,null,4).split("\n");return t.shift(),t.pop(),t.join("\n").replace(/^(\s+)"([A-Za-z\\]+::[A-Z_]+)"(:)/gm,"$1$2 =>").replace(/^(\s+)([A-Za-z\\]+)::/gm,(function(e,t,r){return"".concat(t).concat(r.replace(/\\\\/gm,"\\"),"::")}))}}]),e}(),o=(0,v.Z)(n.prototype,"visible",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,v.Z)(n.prototype,"animationVisible",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),a=(0,v.Z)(n.prototype,"individualPrivacyOpen",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,v.Z)(n.prototype,"previewCheckboxActiveState",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,v.Z)(n.prototype,"busyPresets",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=(0,v.Z)(n.prototype,"presets",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,v.Z)(n.prototype,"setBannerFromCustomize",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setBannerFromCustomize"),n.prototype),(0,v.Z)(n.prototype,"setBannerFromPreset",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setBannerFromPreset"),n.prototype),(0,v.Z)(n.prototype,"forceAnimationOutSimulation",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"forceAnimationOutSimulation"),n.prototype),(0,v.Z)(n.prototype,"setVisible",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setVisible"),n.prototype),(0,v.Z)(n.prototype,"setIndividualPrivacyOpen",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setIndividualPrivacyOpen"),n.prototype),(0,v.Z)(n.prototype,"setPreviewCheckboxActiveState",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"setPreviewCheckboxActiveState"),n.prototype),n)},8783:function(e,t,r){r.d(t,{My:function(){return n.M},mZ:function(){return n.m},aZ:function(){return o.a},WS:function(){return i.W},hc:function(){return a.h},v:function(){return s.v},et:function(){return c.e},L_:function(){return l.L},z:function(){return u.z},Cu:function(){return p.C}});var n=r(4163),o=r(5951),i=r(7602),a=r(2237),s=r(3880),c=r(6228),l=r(2819),u=r(5305),p=r(6696)},5951:function(e,t,r){r.d(t,{a:function(){return Ce}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P,S,E,_,x,O,D,z,T,I,A,M,N,B,j,U,V,F,G,L,W,H,q,Y,J,Q,X,$,K,ee,te,re=r(2711),ne=r(6724),oe=r(6762),ie=r(3340),ae=r(5558),se=r(3841),ce=r(5952),le=r(9303),ue=r(5450),pe=r.n(ue),fe=r(7821),be=r(8700),he=r(8628),de=r(5614),ve=r(3531),me=r(5482),ye=r(7532),ge=r(3128),Ze=r(9925),ke=r(1719),we=r(1629),Re=r(8335),Ce=(n=function(e){(0,se.Z)(r,e);var t=(0,ce.Z)(r);function r(e){var n;return(0,oe.Z)(this,r),n=t.call(this),(0,ne.Z)(n,"busySettings",o,(0,ae.Z)(n)),(0,ne.Z)(n,"busyCountryBypassUpdate",i,(0,ae.Z)(n)),(0,ne.Z)(n,"busyAddLinksToNavigationMenu",a,(0,ae.Z)(n)),(0,ne.Z)(n,"needsRevisionRetrigger",s,(0,ae.Z)(n)),(0,ne.Z)(n,"publicCookieCount",c,(0,ae.Z)(n)),(0,ne.Z)(n,"allCookieCount",l,(0,ae.Z)(n)),(0,ne.Z)(n,"allBlockerCount",u,(0,ae.Z)(n)),(0,ne.Z)(n,"allTcfVendorConfigurationCount",p,(0,ae.Z)(n)),(0,ne.Z)(n,"allScannerResultPresetsCount",f,(0,ae.Z)(n)),(0,ne.Z)(n,"allScannerResultExternalUrlsCount",b,(0,ae.Z)(n)),(0,ne.Z)(n,"cookieCounts",h,(0,ae.Z)(n)),(0,ne.Z)(n,"nav_menus",d,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfVendorConfigurationCounts",v,(0,ae.Z)(n)),(0,ne.Z)(n,"hasGTM",m,(0,ae.Z)(n)),(0,ne.Z)(n,"hasMTM",y,(0,ae.Z)(n)),(0,ne.Z)(n,"contexts",g,(0,ae.Z)(n)),(0,ne.Z)(n,"dashboardMigration",Z,(0,ae.Z)(n)),(0,ne.Z)(n,"fomoCoupon",k,(0,ae.Z)(n)),(0,ne.Z)(n,"bannerActive",w,(0,ae.Z)(n)),(0,ne.Z)(n,"blockerActive",R,(0,ae.Z)(n)),(0,ne.Z)(n,"refreshSiteAfterConsent",C,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintId",P,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintExternalUrl",S,(0,ae.Z)(n)),(0,ne.Z)(n,"imprintIsExternalUrl",E,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyId",_,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyExternalUrl",x,(0,ae.Z)(n)),(0,ne.Z)(n,"privacyPolicyIsExternalUrl",O,(0,ae.Z)(n)),(0,ne.Z)(n,"hidePageIds",D,(0,ae.Z)(n)),(0,ne.Z)(n,"setCookiesViaManager",z,(0,ae.Z)(n)),(0,ne.Z)(n,"acceptAllForBots",T,(0,ae.Z)(n)),(0,ne.Z)(n,"respectDoNotTrack",I,(0,ae.Z)(n)),(0,ne.Z)(n,"cookieDuration",A,(0,ae.Z)(n)),(0,ne.Z)(n,"saveIp",M,(0,ae.Z)(n)),(0,ne.Z)(n,"ePrivacyUSA",N,(0,ae.Z)(n)),(0,ne.Z)(n,"ageNotice",B,(0,ae.Z)(n)),(0,ne.Z)(n,"listServicesNotice",j,(0,ae.Z)(n)),(0,ne.Z)(n,"consentForwarding",U,(0,ae.Z)(n)),(0,ne.Z)(n,"forwardTo",V,(0,ae.Z)(n)),(0,ne.Z)(n,"crossDomains",F,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLink",G,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLabelBehind",L,(0,ae.Z)(n)),(0,ne.Z)(n,"affiliateLabelDescription",W,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypass",H,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassCountries",q,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassType",Y,(0,ae.Z)(n)),(0,ne.Z)(n,"countryBypassDbDownloadTime",J,(0,ae.Z)(n)),(0,ne.Z)(n,"tcf",Q,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfPublisherCc",X,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfAcceptedTime",$,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfGvlDownloadTime",K,(0,ae.Z)(n)),(0,ne.Z)(n,"tcfScopeOfConsent",ee,(0,ae.Z)(n)),(0,ne.Z)(n,"others",te,(0,ae.Z)(n)),n.pureSlug=void 0,n.pureSlugCamelCased=void 0,n.rootStore=void 0,n.fetchSettings=(0,fe.flow)(pe().mark((function e(t){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.busySettings=!0,e.prev=1,e.t0=t,e.t0){e.next=7;break}return e.next=6,(0,we.W)({location:he.g});case 6:e.t0=e.sent;case 7:return r=e.t0,this.bannerActive=r["rcb-banner-active"],this.blockerActive=r["rcb-blocker-active"],this.refreshSiteAfterConsent=r["rcb-refresh-site-after-consent"],this.imprintId=r["rcb-banner-legal-imprint"],this.imprintExternalUrl=r["rcb-banner-legal-imprint-external-url"],this.imprintIsExternalUrl=r["rcb-banner-legal-imprint-is-external-url"],this.privacyPolicyId=r["rcb-banner-legal-privacy-policy"],this.privacyPolicyExternalUrl=r["rcb-banner-legal-privacy-policy-external-url"],this.privacyPolicyIsExternalUrl=r["rcb-banner-legal-privacy-policy-is-external-url"],this.hidePageIds=(r["rcb-hide-page-ids"]||"").split(",").map(Number).filter(Boolean),this.setCookiesViaManager=r["rcb-set-cookies-via-manager"]||"none",this.acceptAllForBots=r["rcb-accept-all-for-bots"],this.respectDoNotTrack=r["rcb-respect-do-not-track"],this.cookieDuration=r["rcb-cookie-duration"],this.saveIp=r["rcb-save-ip"],this.ePrivacyUSA=r["rcb-eprivacy-usa"],this.ageNotice=r["rcb-age-notice"],this.listServicesNotice=r["rcb-list-services-notice"],this.consentForwarding=r["rcb-consent-forwarding"]||!1,this.forwardTo=(r["rcb-forward-to"]||"").split("|").filter(Boolean),this.crossDomains=r["rcb-cross-domains"]||"",this.countryBypass=r["rcb-country-bypass"],this.countryBypassCountries=(r["rcb-country-bypass-countries"]||"").split(",").filter(Boolean),this.countryBypassType=r["rcb-country-bypass-type"],this.countryBypassDbDownloadTime=r["rcb-country-bypass-db-download-time"],this.tcf=r["rcb-tcf"],this.tcfPublisherCc=r["rcb-tcf-publisher-cc"],this.tcfAcceptedTime=r["rcb-tcf-accepted-time"],this.tcfGvlDownloadTime=r["rcb-tcf-gvl-download-time"],this.tcfScopeOfConsent=r["rcb-tcf-scope-of-consent"],e.next=41,this.fetchCurrentRevision();case 41:e.next=47;break;case 43:throw e.prev=43,e.t1=e.catch(1),console.log(e.t1),e.t1;case 47:return e.prev=47,this.busySettings=!1,e.finish(47);case 50:case"end":return e.stop()}}),e,this,[[1,43,47,50]])}))),n.updateSettings=(0,fe.flow)(pe().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g,Z,k,w,R,C,P;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.bannerActive,n=t.blockerActive,o=t.refreshSiteAfterConsent,i=t.imprintId,a=t.privacyPolicyId,s=t.hidePageIds,c=t.setCookiesViaManager,l=t.acceptAllForBots,u=t.respectDoNotTrack,p=t.cookieDuration,f=t.saveIp,b=t.ePrivacyUSA,h=t.ageNotice,d=t.listServicesNotice,v=t.consentForwarding,m=t.forwardTo,y=t.crossDomains,t.affiliateLink,t.affiliateLabelBehind,t.affiliateLabelDescription,g=t.countryBypass,Z=t.countryBypassCountries,k=t.countryBypassType,w=t.tcf,R=t.tcfPublisherCc,C=t.tcfScopeOfConsent,this.busySettings=!0,e.prev=2,e.next=5,(0,we.W)({location:de.J,request:(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},void 0===r?{}:{"rcb-banner-active":r}),void 0===n?{}:{"rcb-blocker-active":n}),void 0===o?{}:{"rcb-refresh-site-after-consent":o}),void 0===i?{}:{"rcb-banner-legal-imprint":i}),void 0===a?{}:{"rcb-banner-legal-privacy-policy":a}),void 0===s?{}:{"rcb-hide-page-ids":s.join(",")}),void 0===c?{}:{"rcb-set-cookies-via-manager":c}),void 0===l?{}:{"rcb-accept-all-for-bots":l}),void 0===u?{}:{"rcb-respect-do-not-track":u}),void 0===p?{}:{"rcb-cookie-duration":p}),void 0===f?{}:{"rcb-save-ip":f}),void 0===b?{}:{"rcb-eprivacy-usa":b}),void 0===h?{}:{"rcb-age-notice":h}),void 0===d?{}:{"rcb-list-services-notice":d}),void 0===v?{}:{"rcb-consent-forwarding":v}),void 0===m?{}:{"rcb-forward-to":m.join("|")}),void 0===y?{}:{"rcb-cross-domains":y}),void 0===g?{}:{"rcb-country-bypass":g}),void 0===Z?{}:{"rcb-country-bypass-countries":Z.join(",")}),void 0===k?{}:{"rcb-country-bypass-type":k}),void 0===w?{}:{"rcb-tcf":w}),void 0===R?{}:{"rcb-tcf-publisher-cc":R}),void 0===C?{}:{"rcb-tcf-scope-of-consent":C}),{}),{}),{})});case 5:P=e.sent,this.fetchSettings(P),this.rootStore.checklistStore.probablyFetchByChangedItem(["save-settings","activate-banner","privacy-policy"]),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(2),console.log(e.t0),e.t0;case 14:return e.prev=14,this.busySettings=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,10,14,17]])}))),n.fetchCurrentRevision=(0,fe.flow)(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,e.t0=this,e.next=5,(0,we.W)({location:ve.G});case 5:e.t1=e.sent,e.t0.setFromCurrentRevision.call(e.t0,e.t1),e.next=13;break;case 9:throw e.prev=9,e.t2=e.catch(1),console.log(e.t2),e.t2;case 13:return e.prev=13,this.busySettings=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.updateCurrentRevision=(0,fe.flow)(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,e.t0=this,e.next=5,(0,we.W)({location:me.a,request:t});case 5:e.t1=e.sent,e.t0.setFromCurrentRevision.call(e.t0,e.t1),e.next=13;break;case 9:throw e.prev=9,e.t2=e.catch(1),console.log(e.t2),e.t2;case 13:return e.prev=13,this.busySettings=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.setModalHintSeen=(0,fe.flow)(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busySettings=!0,e.prev=1,this.others.modalHints.push(t),e.next=5,(0,we.W)({location:Re.C,request:{identifier:t}});case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),console.log(e.t0),e.t0;case 11:return e.prev=11,this.busySettings=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,7,11,14]])}))),n.dismissConfigProNotice=(0,fe.flow)(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.others.isConfigProNoticeVisible=!1,e.next=4,(0,we.W)({location:ye.n});case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(0),console.log(e.t0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),n.dismissMigration=(0,fe.flow)(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.dashboardMigration.id,this.dashboardMigration=void 0,e.next=5,(0,we.W)({location:ge.o,params:{migration:t}});case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),console.log(e.t0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),n.addLinksToNavigationMenu=(0,fe.flow)(pe().mark((function e(t){var r,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyAddLinksToNavigationMenu=!0,e.prev=1,e.next=4,(0,we.W)({location:Ze.i,request:{id:t}});case 4:if(r=e.sent,!(n=r.success)){e.next=10;break}return this.rootStore.checklistStore.fetchChecklist(),e.next=10,this.fetchCurrentRevision();case 10:return e.abrupt("return",n);case 13:throw e.prev=13,e.t0=e.catch(1),console.log(e.t0),e.t0;case 17:return e.prev=17,this.busyAddLinksToNavigationMenu=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,13,17,20]])}))),n.updateCountryBypassDatabase=(0,fe.flow)(pe().mark((function e(){var t,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyCountryBypassUpdate=!0,e.prev=1,e.next=4,(0,we.W)({location:ke._});case 4:t=e.sent,r=t.dbDownloadTime,this.countryBypassDbDownloadTime=r,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyCountryBypassUpdate=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,n.pureSlug=be.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367}),n.pureSlugCamelCased=be.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367},!0),(0,fe.runInAction)((function(){return Object.assign((0,ae.Z)(n),window[n.pureSlugCamelCased])})),n}return(0,ie.Z)(r,[{key:"isOnlyRcbCookieCreated",get:function(){return!(1!==this.allCookieCount||this.tcf&&this.allTcfVendorConfigurationCount)}},{key:"areSettingsFetched",get:function(){return void 0!==this.respectDoNotTrack}},{key:"setFromCurrentRevision",value:function(e){var t=e.contexts,r=e.has_gtm,n=e.has_mtm,o=e.needs_retrigger,i=e.public_cookie_count,a=e.all_cookie_count,s=e.all_blocker_count,c=e.all_tcf_vendor_configuration_count,l=e.all_scanner_result_presets_count,u=e.all_scanner_result_external_urls_count,p=e.cookie_counts,f=e.nav_menus,b=e.tcf_vendor_configuration_counts,h=e.dashboard_migration,d=e.fomo_coupon;this.hasGTM=r,this.hasMTM=n,this.needsRevisionRetrigger=o,this.publicCookieCount=i,this.allCookieCount=a,this.allBlockerCount=s,this.allTcfVendorConfigurationCount=c,this.allScannerResultPresetsCount=l,this.allScannerResultExternalUrlsCount=u,this.cookieCounts=p,this.nav_menus=f,this.tcfVendorConfigurationCounts=b,this.contexts=t,this.dashboardMigration=h,this.fomoCoupon=d}},{key:"setShowLicenseFormImmediate",value:function(e,t){this.others.showLicenseFormImmediate=e,this.others.isLicensed=t}}]),r}(be.BaseOptions),o=(0,le.Z)(n.prototype,"busySettings",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,le.Z)(n.prototype,"busyCountryBypassUpdate",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,le.Z)(n.prototype,"busyAddLinksToNavigationMenu",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,le.Z)(n.prototype,"needsRevisionRetrigger",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,le.Z)(n.prototype,"publicCookieCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,le.Z)(n.prototype,"allCookieCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,le.Z)(n.prototype,"allBlockerCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=(0,le.Z)(n.prototype,"allTcfVendorConfigurationCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,le.Z)(n.prototype,"allScannerResultPresetsCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b=(0,le.Z)(n.prototype,"allScannerResultExternalUrlsCount",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,le.Z)(n.prototype,"cookieCounts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{draft:0,private:0,publish:0}}}),d=(0,le.Z)(n.prototype,"nav_menus",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,le.Z)(n.prototype,"tcfVendorConfigurationCounts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,le.Z)(n.prototype,"hasGTM",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,le.Z)(n.prototype,"hasMTM",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,le.Z)(n.prototype,"contexts",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{"":""}}}),Z=(0,le.Z)(n.prototype,"dashboardMigration",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,le.Z)(n.prototype,"fomoCoupon",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,le.Z)(n.prototype,"bannerActive",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=(0,le.Z)(n.prototype,"blockerActive",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=(0,le.Z)(n.prototype,"refreshSiteAfterConsent",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=(0,le.Z)(n.prototype,"imprintId",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,le.Z)(n.prototype,"imprintExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,le.Z)(n.prototype,"imprintIsExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,le.Z)(n.prototype,"privacyPolicyId",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,le.Z)(n.prototype,"privacyPolicyExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,le.Z)(n.prototype,"privacyPolicyIsExternalUrl",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,le.Z)(n.prototype,"hidePageIds",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,le.Z)(n.prototype,"setCookiesViaManager",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,le.Z)(n.prototype,"acceptAllForBots",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,le.Z)(n.prototype,"respectDoNotTrack",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,le.Z)(n.prototype,"cookieDuration",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,le.Z)(n.prototype,"saveIp",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,le.Z)(n.prototype,"ePrivacyUSA",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,le.Z)(n.prototype,"ageNotice",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,le.Z)(n.prototype,"listServicesNotice",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,le.Z)(n.prototype,"consentForwarding",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,le.Z)(n.prototype,"forwardTo",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,le.Z)(n.prototype,"crossDomains",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,le.Z)(n.prototype,"affiliateLink",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,le.Z)(n.prototype,"affiliateLabelBehind",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,le.Z)(n.prototype,"affiliateLabelDescription",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,le.Z)(n.prototype,"countryBypass",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,le.Z)(n.prototype,"countryBypassCountries",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,le.Z)(n.prototype,"countryBypassType",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,le.Z)(n.prototype,"countryBypassDbDownloadTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,le.Z)(n.prototype,"tcf",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,le.Z)(n.prototype,"tcfPublisherCc",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,le.Z)(n.prototype,"tcfAcceptedTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,le.Z)(n.prototype,"tcfGvlDownloadTime",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,le.Z)(n.prototype,"tcfScopeOfConsent",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,le.Z)(n.prototype,"others",[fe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,le.Z)(n.prototype,"isOnlyRcbCookieCreated",[fe.computed],Object.getOwnPropertyDescriptor(n.prototype,"isOnlyRcbCookieCreated"),n.prototype),(0,le.Z)(n.prototype,"areSettingsFetched",[fe.computed],Object.getOwnPropertyDescriptor(n.prototype,"areSettingsFetched"),n.prototype),(0,le.Z)(n.prototype,"setFromCurrentRevision",[fe.action],Object.getOwnPropertyDescriptor(n.prototype,"setFromCurrentRevision"),n.prototype),(0,le.Z)(n.prototype,"setShowLicenseFormImmediate",[fe.action],Object.getOwnPropertyDescriptor(n.prototype,"setShowLicenseFormImmediate"),n.prototype),n)},6696:function(e,t,r){r.d(t,{C:function(){return D}});var n,o,i,a,s,c,l,u,p,f,b=r(7870),h=r(38),d=r(6724),v=r(6762),m=r(3340),y=r(9303),g=r(5450),Z=r.n(g),k=r(7821),w=r(936),R=r(1313),C=r(1680),P=r(1629),S=r(6753),E=r(6354),_=r(5245),x=r(2091),O=r(3461),D=(n=function(){function e(t){(0,v.Z)(this,e),(0,d.Z)(this,"resultPresets",o,this),(0,d.Z)(this,"busyResultPresets",i,this),(0,d.Z)(this,"fetchedAllResultPresets",a,this),(0,d.Z)(this,"resultExternalUrls",s,this),(0,d.Z)(this,"resultAllExternalUrls",c,this),(0,d.Z)(this,"busyExternalUrls",l,this),(0,d.Z)(this,"fetchedAllResultExternalUrls",u,this),(0,d.Z)(this,"busyMarkup",p,this),(0,d.Z)(this,"resultMarkup",f,this),this.rootStore=void 0,this.addUrlsToQueue=(0,k.flow)(Z().mark((function e(t){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.W)({location:S.k,request:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),this.fetchResultPresets=(0,k.flow)(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyResultPresets=!0,e.prev=1,e.t0=this,e.next=5,(0,P.W)({location:E.e});case 5:e.t1=e.sent,e.t0.resultPresetsFromResponse.call(e.t0,e.t1),this.fetchedAllResultPresets=!0,e.next=14;break;case 10:throw e.prev=10,e.t2=e.catch(1),console.log(e.t2),e.t2;case 14:return e.prev=14,this.busyResultPresets=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,10,14,17]])}))),this.fetchResultExternals=(0,k.flow)(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyExternalUrls=!0,e.prev=1,e.t0=this,e.next=5,(0,P.W)({location:_.M});case 5:e.t1=e.sent,e.t0.resultExternalUrlsFromResponse.call(e.t0,e.t1),this.fetchedAllResultExternalUrls=!0,e.next=14;break;case 10:throw e.prev=10,e.t2=e.catch(1),console.log(e.t2),e.t2;case 14:return e.prev=14,this.busyExternalUrls=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,10,14,17]])}))),this.fetchResultAllExternals=(0,k.flow)(Z().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,b;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t instanceof w.o?"host":"preset",n=t.identifier,t.busy=!0,e.prev=3,e.next=6,(0,P.W)({location:x.M,params:{type:r,identifier:"host"===r?n.replace(/\./g,"_"):n}});case 6:if(o=e.sent,i=o.items,a=this.resultAllExternalUrls.get(n)){s=i.map((function(e){return e.id})),c=(0,h.Z)(a.keys());try{for(c.s();!(l=c.n()).done;)u=l.value,-1===s.indexOf(u)&&a.delete(u)}catch(e){c.e(e)}finally{c.f()}}else a=new Map;for(p=0,f=Object.values(i);p<f.length;p++)b=f[p],a.set(b.id,new R.a(b,this)),this.resultAllExternalUrls.set(n,a);e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(3),console.log(e.t0),e.t0;case 17:return e.prev=17,t.busy=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[3,13,17,20]])}))),this.fetchMarkup=(0,k.flow)(Z().mark((function e(t){var r;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyMarkup=!0,e.prev=1,e.next=4,(0,P.W)({location:O.$,params:{id:t}});case 4:r=e.sent,this.resultMarkup.set(t,r),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),console.log(e.t0),e.t0;case 12:return e.prev=12,this.busyMarkup=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[1,8,12,15]])}))),this.rootStore=t}return(0,m.Z)(e,[{key:"sortedExternalUrls",get:function(){var e=Array.from(this.resultExternalUrls.values());return e.sort((function(e,t){return e.inactive===t.inactive?0:e.inactive?1:-1})),e}},{key:"presetsCount",get:function(){return this.fetchedAllResultPresets?this.resultPresets.size:this.rootStore.optionStore.allScannerResultPresetsCount}},{key:"externalUrlsCount",get:function(){return this.fetchedAllResultExternalUrls?this.resultExternalUrls.size:this.rootStore.optionStore.allScannerResultExternalUrlsCount}},{key:"canShowResults",get:function(){var e;return this.presetsCount+this.externalUrlsCount>0&&(null===(e=this.rootStore.checklistStore.checklist)||void 0===e?void 0:e.items.scanner.checked)}},{key:"foundScanResultsCount",get:function(){return this.resultPresets.size+this.resultExternalUrls.size}},{key:"needsAttentionCount",get:function(){return[].concat((0,b.Z)(this.resultPresets.values()),(0,b.Z)(this.resultExternalUrls.values())).filter((function(e){return!e.inactive})).length}},{key:"resultPresetsFromResponse",value:function(e){var t,r=e.items,n=Object.keys(r),o=(0,h.Z)(this.resultPresets.keys());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===n.indexOf(i)&&this.resultPresets.delete(i)}}catch(e){o.e(e)}finally{o.f()}for(var a=0,s=n;a<s.length;a++){var c=s[a];this.resultPresets.set(c,new C.g(r[c],this))}}},{key:"resultExternalUrlsFromResponse",value:function(e){var t,r=e.items,n=Object.keys(r),o=(0,h.Z)(this.resultExternalUrls.keys());try{for(o.s();!(t=o.n()).done;){var i=t.value;-1===n.indexOf(i)&&this.resultExternalUrls.delete(i)}}catch(e){o.e(e)}finally{o.f()}for(var a=0,s=n;a<s.length;a++){var c=s[a];this.resultExternalUrls.set(c,new w.o(r[c],this))}}}]),e}(),o=(0,y.Z)(n.prototype,"resultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),i=(0,y.Z)(n.prototype,"busyResultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,y.Z)(n.prototype,"fetchedAllResultPresets",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,y.Z)(n.prototype,"resultExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),c=(0,y.Z)(n.prototype,"resultAllExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,y.Z)(n.prototype,"busyExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,y.Z)(n.prototype,"fetchedAllResultExternalUrls",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,y.Z)(n.prototype,"busyMarkup",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,y.Z)(n.prototype,"resultMarkup",[k.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,y.Z)(n.prototype,"sortedExternalUrls",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"sortedExternalUrls"),n.prototype),(0,y.Z)(n.prototype,"presetsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"presetsCount"),n.prototype),(0,y.Z)(n.prototype,"externalUrlsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"externalUrlsCount"),n.prototype),(0,y.Z)(n.prototype,"canShowResults",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"canShowResults"),n.prototype),(0,y.Z)(n.prototype,"foundScanResultsCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"foundScanResultsCount"),n.prototype),(0,y.Z)(n.prototype,"needsAttentionCount",[k.computed],Object.getOwnPropertyDescriptor(n.prototype,"needsAttentionCount"),n.prototype),(0,y.Z)(n.prototype,"resultPresetsFromResponse",[k.action],Object.getOwnPropertyDescriptor(n.prototype,"resultPresetsFromResponse"),n.prototype),(0,y.Z)(n.prototype,"resultExternalUrlsFromResponse",[k.action],Object.getOwnPropertyDescriptor(n.prototype,"resultExternalUrlsFromResponse"),n.prototype),n)},6228:function(e,t,r){r.d(t,{e:function(){return y}});var n,o,i=r(6724),a=r(6762),s=r(3340),c=r(5558),l=r(3841),u=r(5952),p=r(9303),f=r(5450),b=r.n(f),h=r(7821),d=r(8700),v=r(8488),m=r.n(v),y=(n=function(e){(0,l.Z)(r,e);var t=(0,u.Z)(r);function r(e){var n;return(0,a.Z)(this,r),n=t.call(this),(0,i.Z)(n,"busyStats",o,(0,c.Z)(n)),n.rootStore=void 0,n.stats=h.observable.object({main:void 0,buttonsClicked:void 0,customBypass:void 0},{},{deep:!1}),n.filters=h.observable.object({dates:void 0,context:void 0},{},{deep:!1}),n.fetchMain=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.fetchButtonsClicked=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.fetchCustomBypass=(0,h.flow)(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:throw new Error("This feature is not available in the free version.");case 4:case"end":return e.stop()}}),e)}))),n.rootStore=e,(0,h.runInAction)((function(){n.filters.dates=[m()().subtract(30,"days"),m()()],n.filters.context=n.rootStore.optionStore.others.context})),n}return(0,s.Z)(r,[{key:"applyDates",value:function(e){this.filters.dates=e}},{key:"applyContext",value:function(e){this.filters.context=e}}]),r}(d.BaseOptions),o=(0,p.Z)(n.prototype,"busyStats",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{main:!1,buttonClicked:!1,customBypass:!1}}}),(0,p.Z)(n.prototype,"applyDates",[h.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,p.Z)(n.prototype,"applyContext",[h.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),n)},4163:function(e,t,r){r.d(t,{M:function(){return d},m:function(){return v}});var n=r(6762),o=r(3340),i=r(7821),a=r(8700),s=r(5951),c=r(7602),l=r(2237),u=r(3880),p=r(6228),f=r(2819),b=r(5305),h=r(6696);(0,i.configure)({enforceActions:"always"});var d=function(){function e(){(0,n.Z)(this,e),this.optionStore=void 0,this.customizeBannerStore=void 0,this.cookieStore=void 0,this.consentStore=void 0,this.statsStore=void 0,this.checklistStore=void 0,this.tcfStore=void 0,this.scannerStore=void 0,this.contextMemo=void 0,this.optionStore=new s.a(this),this.customizeBannerStore=new c.W(this),this.cookieStore=new l.h(this),this.consentStore=new u.v(this),this.statsStore=new p.e(this),this.checklistStore=new f.L(this),this.tcfStore=new b.z(this),this.scannerStore=new h.C(this)}return(0,o.Z)(e,[{key:"context",get:function(){return this.contextMemo?this.contextMemo:this.contextMemo=(0,a.createContextFactory)(this)}}],[{key:"StoreProvider",get:function(){return e.get.context.StoreProvider}},{key:"get",get:function(){return e.me?e.me:e.me=new e}}]),e}();d.me=void 0;var v=function(){return d.get.context.useStores()}},5305:function(e,t,r){r.d(t,{z:function(){return M}});var n,o,i,a,s,c,l,u,p,f,b,h,d,v,m=r(6724),y=r(6762),g=r(3340),Z=r(5558),k=r(3841),w=r(5952),R=r(9303),C=r(5450),P=r.n(C),S=r(7821),E=r(8700),_=r(8523),x=r(3854),O=r(9945),D=r(1629),z=r(7037),T=r(8905),I=r(6846),A=r(1833),M=(n=function(e){(0,k.Z)(r,e);var t=(0,w.Z)(r);function r(e){var n;return(0,y.Z)(this,r),n=t.call(this),(0,m.Z)(n,"busyGvl",o,(0,Z.Z)(n)),(0,m.Z)(n,"busyVendors",i,(0,Z.Z)(n)),(0,m.Z)(n,"busyDeclarations",a,(0,Z.Z)(n)),(0,m.Z)(n,"vendorConfigurations",s,(0,Z.Z)(n)),(0,m.Z)(n,"fetchedAllVendorConfigurations",c,(0,Z.Z)(n)),(0,m.Z)(n,"vendorListVersion",l,(0,Z.Z)(n)),(0,m.Z)(n,"gvlSpecificationVersion",u,(0,Z.Z)(n)),(0,m.Z)(n,"tcfPolicyVersion",p,(0,Z.Z)(n)),(0,m.Z)(n,"vendors",f,(0,Z.Z)(n)),(0,m.Z)(n,"purposes",b,(0,Z.Z)(n)),(0,m.Z)(n,"specialPurposes",h,(0,Z.Z)(n)),(0,m.Z)(n,"features",d,(0,Z.Z)(n)),(0,m.Z)(n,"specialFeatures",v,(0,Z.Z)(n)),n.rootStore=void 0,n.fetchVendorConfigurations=(0,S.flow)(P().mark((function e(){var t,r,n;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=100,r=Math.ceil(this.vendorConfigurationCount/t),n=0;case 3:if(!(n<r)){e.next=9;break}return e.next=6,this.vendorConfigurations.get({request:{status:["draft","publish","private"]},params:{offset:n*t,per_page:100,context:"edit"}});case 6:n++,e.next=3;break;case 9:this.fetchedAllVendorConfigurations=!0;case 10:case"end":return e.stop()}}),e,this)}))),n.fetchVendors=(0,S.flow)(P().mark((function e(){var t,r,n,o,i,a;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyVendors=!0,e.prev=1,e.next=4,(0,D.W)({location:x.f});case 4:for(t=e.sent,r=t.vendorListVersion,n=t.vendors,o=0,i=Object.keys(n);o<i.length;o++)a=i[o],this.vendors.set(a,new z.C(n[a],this));this.vendorListVersion=r,e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(1),console.log(e.t0),e.t0;case 15:return e.prev=15,this.busyVendors=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[1,11,15,18]])}))),n.fetchDeclarations=(0,S.flow)(P().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,b,h,d,v,m,y,g;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyDeclarations=!0,e.prev=1,e.next=4,(0,D.W)({location:_.Y});case 4:for(t=e.sent,r=t.gvlSpecificationVersion,n=t.tcfPolicyVersion,o=t.purposes,i=t.specialPurposes,a=t.features,s=t.specialFeatures,c=0,l=Object.keys(o);c<l.length;c++)u=l[c],this.purposes.set(u,new T.v(o[u],!1,this));for(p=0,f=Object.keys(i);p<f.length;p++)b=f[p],this.specialPurposes.set(b,new T.v(i[b],!0,this));for(h=0,d=Object.keys(a);h<d.length;h++)v=d[h],this.features.set(v,new I.i(a[v],!1,this));for(m=0,y=Object.keys(s);m<y.length;m++)g=y[m],this.specialFeatures.set(g,new I.i(s[g],!0,this));this.gvlSpecificationVersion=r,this.tcfPolicyVersion=n,e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),console.log(e.t0),e.t0;case 23:return e.prev=23,this.busyDeclarations=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[1,19,23,26]])}))),n.updateGvl=(0,S.flow)(P().mark((function e(){var t,r;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyGvl=!0,e.prev=1,e.next=4,(0,D.W)({location:O.y});case 4:t=e.sent,r=t.gvlDownloadTime,this.rootStore.optionStore.tcfGvlDownloadTime=r,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.t0;case 13:return e.prev=13,this.busyGvl=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),n.rootStore=e,(0,S.runInAction)((function(){n.vendorConfigurations=new A.C((0,Z.Z)(n))})),n}return(0,g.Z)(r,[{key:"vendorConfigurationCount",get:function(){return this.fetchedAllVendorConfigurations?this.vendorConfigurations.entries.size:this.rootStore.optionStore.allTcfVendorConfigurationCount}}]),r}(E.BaseOptions),o=(0,R.Z)(n.prototype,"busyGvl",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,R.Z)(n.prototype,"busyVendors",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,R.Z)(n.prototype,"busyDeclarations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,R.Z)(n.prototype,"vendorConfigurations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,R.Z)(n.prototype,"fetchedAllVendorConfigurations",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=(0,R.Z)(n.prototype,"vendorListVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,R.Z)(n.prototype,"gvlSpecificationVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,R.Z)(n.prototype,"tcfPolicyVersion",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,R.Z)(n.prototype,"vendors",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),b=(0,R.Z)(n.prototype,"purposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),h=(0,R.Z)(n.prototype,"specialPurposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),d=(0,R.Z)(n.prototype,"features",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),v=(0,R.Z)(n.prototype,"specialFeatures",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,R.Z)(n.prototype,"vendorConfigurationCount",[S.computed],Object.getOwnPropertyDescriptor(n.prototype,"vendorConfigurationCount"),n.prototype),n)},4548:function(e,t,r){r.d(t,{u:function(){return n},b:function(){return o}});var n="rcb-scan",o="rcb-automatic-scan-starter"},4913:function(e,t,r){function n(e){var t=document.createElement("textarea");t.innerText=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}r.d(t,{v:function(){return n}})},625:function(e,t,r){function n(){return window["real-cookie-banner".replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))]}r.d(t,{m:function(){return n}})},3438:function(e,t,r){r.d(t,{u:function(){return o}});var n=r(625);function o(){return(0,n.m)().others}},8630:function(e,t,r){r.d(t,{_n:function(){return a},__:function(){return s},_i:function(){return c}});var n,o=r(8700);function i(){return n||(n=(0,o.createLocalizationFactory)(o.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367})))}var a=function(){var e;return(e=i())._n.apply(e,arguments)},s=function(){var e;return(e=i()).__.apply(e,arguments)},c=function(){var e;return(e=i())._i.apply(e,arguments)}},1629:function(e,t,r){r.d(t,{Y:function(){return a},W:function(){return s}});var n,o=r(8700);function i(){return n||(n=(0,o.createRequestFactory)(window[o.BaseOptions.getPureSlug({NODE_ENV:"production",env:"production",rootSlug:"devowl-wp",slug:"real-cookie-banner",PLUGIN_CTX:"lite",ANTD_PREFIX:"rcb-antd",IS_TCF:"1",TCF_CMP_ID:367},!0)]))}var a=function(){var e;return(e=i()).urlBuilder.apply(e,arguments)},s=function(){var e;return(e=i()).request.apply(e,arguments)}},7819:function(e,t,r){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;document.body.scrollTop=e,document.documentElement.scrollTop=e}r.d(t,{X:function(){return n}})},3190:function(e,t,r){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";if(!e||e.length<=t)return e;var n=r.length,o=t-n,i=Math.ceil(o/2),a=Math.floor(o/2);return e.substr(0,i)+r+e.substr(e.length-a)}r.d(t,{r:function(){return n}})},986:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/checklist",method:r(8700).RouteHttpVerb.GET}},8930:function(e,t,r){r.d(t,{s:function(){return n}});var n={path:"/checklist/:id",method:r(8700).RouteHttpVerb.PUT}},6465:function(e,t,r){r.d(t,{O:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.DELETE}},5151:function(e,t,r){r.d(t,{c:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.GET}},9437:function(e,t,r){r.d(t,{q:function(){return n}});var n={path:"/consent/referer",method:r(8700).RouteHttpVerb.GET}},5354:function(e,t,r){r.d(t,{B:function(){return n}});var n={path:"/cookie-groups/order",method:r(8700).RouteHttpVerb.PUT}},6764:function(e,t,r){r.d(t,{p:function(){return n}});var n={path:"/cookies/unassigned",method:r(8700).RouteHttpVerb.GET}},7068:function(e,t,r){r.d(t,{I:function(){return n}});var n={path:"/cookies/order",method:r(8700).RouteHttpVerb.PUT}},1719:function(e,t,r){r.d(t,{_:function(){return n}});var n={path:"/country-bypass/database",method:r(8700).RouteHttpVerb.PUT}},9600:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/export",method:r(8700).RouteHttpVerb.GET}},7732:function(e,t,r){r.d(t,{Q:function(){return n}});var n={path:"/export/consents",method:r(8700).RouteHttpVerb.GET}},2388:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/forward/cookie/:slug",method:r(8700).RouteHttpVerb.GET}},7025:function(e,t,r){r.d(t,{A:function(){return n}});var n={path:"/forward/endpoints",method:r(8700).RouteHttpVerb.GET}},7972:function(e,t,r){r.d(t,{H:function(){return n}});var n={path:"/import",method:r(8700).RouteHttpVerb.POST}},836:function(e,t,r){r.d(t,{gn:function(){return C.g},s5:function(){return P.s},Ok:function(){return v.O},cI:function(){return d.c},rz:function(){return w},aY:function(){return B},vY:function(){return _},JQ:function(){return f},PM:function(){return p},qD:function(){return Y.q},BI:function(){return c.B},pV:function(){return S.p},It:function(){return l.I},_3:function(){return j._},QB:function(){return R.Q},Vm:function(){return Z.V},Vc:function(){return x.V},AW:function(){return E.A},HR:function(){return k.H},nQ:function(){return O.n},oW:function(){return V.o},nX:function(){return U.n},iO:function(){return J.i},tX:function(){return i.t},N9:function(){return T.N},Wu:function(){return a.W},tw:function(){return I.t},zf:function(){return s.z},GQ:function(){return b.G},a4:function(){return h.a},Z1:function(){return D.Z},TB:function(){return z.T},kv:function(){return F.k},ME:function(){return H.M},Ce:function(){return W.C},MQ:function(){return L.M},$5:function(){return q.$},eO:function(){return G.e},$Q:function(){return g},gh:function(){return y},BV:function(){return m},Y3:function(){return N.Y},yR:function(){return A.y},fs:function(){return M.f},g3:function(){return n.g},J3:function(){return o.J}});var n=r(8628),o=r(5614),i=r(4504),a=r(7689),s=r(3352),c=r(5354),l=r(7068),u=r(8700),p={path:"/consent",method:u.RouteHttpVerb.POST},f={path:"/consent",method:u.RouteHttpVerb.GET},b=r(3531),h=r(5482),d=r(5151),v=r(6465),m={path:"/stats/main",method:u.RouteHttpVerb.GET},y={path:"/stats/customBypass",method:u.RouteHttpVerb.GET},g={path:"/stats/buttonsClicked",method:u.RouteHttpVerb.GET},Z=r(9600),k=r(7972),w={path:"/consent/clear",method:u.RouteHttpVerb.DELETE},R=r(7732),C=r(986),P=r(8930),S=r(6764),E=r(7025),_={path:"/consent/forward",method:u.RouteHttpVerb.POST},x=r(2388),O=r(7532),D=r(2616),z=r(5253),T=r(1535),I=r(1500),A=r(9945),M=r(3854),N=r(8523),B={path:"/consent/dynamic-predecision",method:u.RouteHttpVerb.GET},j=r(1719),U=r(9564),V=r(3128),F=r(6753),G=r(6354),L=r(5245),W=r(4227),H=r(2091),q=r(3461),Y=r(9437),J=r(9925)},7532:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/dismiss-config-page-pro-notice",method:r(8700).RouteHttpVerb.DELETE}},3128:function(e,t,r){r.d(t,{o:function(){return n}});var n={path:"/migration/:migration",method:r(8700).RouteHttpVerb.DELETE}},9564:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/migration/:migration/:action",method:r(8700).RouteHttpVerb.POST}},8335:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/modal-hint",method:r(8700).RouteHttpVerb.PUT}},9925:function(e,t,r){r.d(t,{i:function(){return n}});var n={path:"/nav-menu/add-links",method:r(8700).RouteHttpVerb.POST}},4504:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/banner",method:r(8700).RouteHttpVerb.GET}},7689:function(e,t,r){r.d(t,{W:function(){return n}});var n={path:"/presets/blocker",method:r(8700).RouteHttpVerb.GET}},1535:function(e,t,r){r.d(t,{N:function(){return n}});var n={path:"/presets/blocker/:identifier",method:r(8700).RouteHttpVerb.GET}},3352:function(e,t,r){r.d(t,{z:function(){return n}});var n={path:"/presets/cookies",method:r(8700).RouteHttpVerb.GET}},1500:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/cookies/:identifier",method:r(8700).RouteHttpVerb.GET}},2616:function(e,t,r){r.d(t,{Z:function(){return n}});var n={path:"/revision/:hash",method:r(8700).RouteHttpVerb.GET}},3531:function(e,t,r){r.d(t,{G:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.GET}},5482:function(e,t,r){r.d(t,{a:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.PUT}},5253:function(e,t,r){r.d(t,{T:function(){return n}});var n={path:"/revision/independent/:hash",method:r(8700).RouteHttpVerb.GET}},6753:function(e,t,r){r.d(t,{k:function(){return n}});var n={path:"/scanner/queue",method:r(8700).RouteHttpVerb.POST}},2091:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals/:type/:identifier",method:r(8700).RouteHttpVerb.GET}},5245:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals",method:r(8700).RouteHttpVerb.GET}},4227:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/scanner/result/externals/:host",method:r(8700).RouteHttpVerb.PUT}},3461:function(e,t,r){r.d(t,{$:function(){return n}});var n={path:"/scanner/result/markup/:id",method:r(8700).RouteHttpVerb.GET}},6354:function(e,t,r){r.d(t,{e:function(){return n}});var n={path:"/scanner/result/presets",method:r(8700).RouteHttpVerb.GET}},8523:function(e,t,r){r.d(t,{Y:function(){return n}});var n={path:"/tcf/declarations",method:r(8700).RouteHttpVerb.GET}},9945:function(e,t,r){r.d(t,{y:function(){return n}});var n={path:"/tcf/gvl",method:r(8700).RouteHttpVerb.PUT}},3854:function(e,t,r){r.d(t,{f:function(){return n}});var n={path:"/tcf/vendors",method:r(8700).RouteHttpVerb.GET}},8628:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.GET}},5614:function(e,t,r){r.d(t,{J:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.PATCH}},7830:function(){},5036:function(){},7363:function(e){e.exports=React},1533:function(e){e.exports=ReactDOM},6711:function(e){e.exports=ReactRouterDOM},490:function(e){e.exports=devowlWp_customize},9445:function(e){e.exports=devowlWp_realProductManagerWpClient},6:function(e){e.exports=devowlWp_realQueue},8700:function(e){e.exports=devowlWp_utils},5311:function(e){e.exports=jQuery},7821:function(e){e.exports=mobx},8488:function(e){e.exports=moment},5998:function(e){e.exports=wp}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e](r,r.exports,i),r.loaded=!0,r.exports}i.m=n,e=[],i.O=function(t,r,n,o){if(!r){var a=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],o=e[u][2];for(var s=!0,c=0;c<r.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((function(e){return i.O[e](r[c])}))?r.splice(c--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(t,r){return i.f[r](e,t),t}),[]))},i.u=function(e){return({3:"chunk-config-tab-scanner",184:"chunk-config-tab-tcf",322:"chunk-config-tab-licensing",357:"chunk-config-tab-import",379:"chunk-config-tab-dashboard",478:"chunk-config-tab-blocker",625:"chunk-config-tab-consent",718:"chunk-config-tab-cookies",768:"chunk-config-tab-settings"}[e]||e)+".lite.js?ver="+{3:"2956a874b35ecbf5c1d4",184:"c32d36b137312e877227",191:"59d6c6957751262b22aa",193:"ce7e07933bcbf069b690",276:"af4e20fa8568e0fd55dd",322:"05d28df7bf45371af89c",348:"abbf191fbb205192b084",357:"aa4cceeded8c7886e587",379:"b53f9991d545168b5f7d",418:"c4956b21bc9d963cb475",440:"abce2a866d4b5996c6bb",478:"cd9b62f4a8f7c20e7804",548:"52f0a1d264ca2f3d2fd1",625:"423d0415804ca845fcc5",716:"9f43a7db28c7f27ed0fa",718:"247583cd22baf032c70c",756:"f3849d000e561ec0fd57",768:"02f17a8c7bff83d53d83",795:"ef626740f77410656823",813:"71c7bddc18194198f907",826:"b946ad43404993839cb7",914:"2979ca58d101a6abfbf5",930:"f175c16c8bc4ff899699",954:"ae9f41fd529870001463"}[e]},i.miniCssF=function(e){return"admin.css"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},r="realCookieBanner_[name]:",i.l=function(e,n,o,a){if(t[e])t[e].push(n);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",r+o),s.src=e),t[e]=[n];var f=function(r,n){s.onerror=s.onload=null,clearTimeout(b);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(n)})),r)return r(n)},b=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),function(){var e={328:0};i.f.j=function(t,r){var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(function(r){if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}},i.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,a=r[0],s=r[1],c=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)var u=c(i)}for(t&&t(r);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0;return i.O(u)},r=self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var a=i.O(void 0,[194],(function(){return i(5954)}));a=i.O(a),realCookieBanner_admin=a}();
|
2 |
//# sourceMappingURL=admin.lite.js.map
|
public/dist/admin.lite.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"admin.lite.js","mappings":"wDAAIA,ECAAC,EACAC,E,wBCAJ,IAAIC,EAQAC,E,gCANJ,SAAWD,GACTA,EAA8B,OAAI,SAClCA,EAA2B,IAAI,MAC/BA,EAA2B,IAAI,MAHjC,CAIGA,IAA0BA,EAAwB,KAIrD,SAAWC,GACTA,EAA2B,UAAI,KAC/BA,EAAyB,QAAI,KAC7BA,EAAuB,MAAI,KAC3BA,EAAwB,OAAI,KAC5BA,EAAwB,OAAI,KAC5BA,EAAuB,MAAI,KAC3BA,EAAyB,QAAI,KAC7BA,EAA0B,SAAI,KAC9BA,EAAwB,OAAI,MAC5BA,EAAyB,QAAI,KAC7BA,EAAwB,OAAI,KAC5BA,EAA0B,SAAI,KAC9BA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,EAAEld,IAG1BihB,EAAqBC,KAAyC,mCAAIA,KAAyC,oCAAK,GACpHD,EAAmB5pB,QAAQupB,EAAqBlB,KAAK,KAAM,IAC3DuB,EAAmBxoB,KAAOmoB,EAAqBlB,KAAK,KAAMuB,EAAmBxoB,KAAKinB,KAAKuB,I,GCpFvF,IAAIE,EAAsBtE,EAAoBK,OAAE/8B,EAAW,CAAC,MAAM,WAAa,OAAO08B,EAAoB,SAC1GsE,EAAsBtE,EAAoBK,EAAEiE,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///webpack/runtime/load script","webpack:///../../backends/real-cookie-banner-backend/src/types/service/tcf.ts","webpack:///../../frontend-packages/headless-content-unblocker/src/utils/isUrl.tsx","webpack:///./src/public/ts/admin.tsx","webpack:///./src/public/ts/components/config/dashboard/checklistItem.tsx","webpack:///./src/public/ts/components/config/dashboard/checklist.tsx","webpack:///./src/public/ts/components/config/settings/general.tsx","webpack:///./src/public/ts/components/config/noticeRevisionNeedsRetrigger.tsx","webpack:///./src/public/ts/components/config/noticeBannerActiveNoCookies.tsx","webpack:///./src/public/ts/components/config/noticeAnonymousScriptNotWritable.tsx","webpack:///./src/public/ts/components/config/noticeNoManager.tsx","webpack:///./src/public/ts/components/routerScrollToTop.tsx","webpack:///./src/public/ts/components/proHeadlineButton.tsx","webpack:///./src/public/ts/components/config/header.tsx","webpack:///./src/public/ts/components/config/footer.tsx","webpack:///./src/public/ts/components/configApp.tsx","webpack:///./src/public/ts/components/inAppFomoCouponCounter.tsx","webpack:///./src/public/ts/components/learnMoreTag.tsx","webpack:///./src/public/ts/components/postTypeSelect.tsx","webpack:///../../frontend-packages/headless-content-unblocker/src/utils/htmlDecode.tsx","webpack:///./src/public/ts/components/proModal.tsx","webpack:///./src/public/ts/components/proModalHint.tsx","webpack:///./src/public/ts/components/proTag.tsx","webpack:///./src/public/ts/hooks/useDebounce.tsx","webpack:///./src/public/ts/hooks/useProModal.tsx","webpack:///./src/public/ts/hooks/useScannerProgress.tsx","webpack:///./src/public/ts/models/bannerPreset.tsx","webpack:///./src/public/ts/models/blockerCollection.tsx","webpack:///./src/public/ts/models/blockerModel.tsx","webpack:///./src/public/ts/models/blockerPreset.tsx","webpack:///./src/public/ts/models/consent.tsx","webpack:///./src/public/ts/models/cookieCollection.tsx","webpack:///./src/public/ts/models/cookieGroupCollection.tsx","webpack:///./src/public/ts/models/cookieGroupModel.tsx","webpack:///./src/public/ts/models/cookieModel.tsx","webpack:///./src/public/ts/models/cookiePreset.tsx","webpack:///./src/public/ts/models/revision.tsx","webpack:///./src/public/ts/models/revisionIndependent.tsx","webpack:///./src/public/ts/models/scannerResultExternalUrl.tsx","webpack:///./src/public/ts/models/scannerResultExternalUrlSingle.tsx","webpack:///./src/public/ts/models/scannerResultPreset.tsx","webpack:///./src/public/ts/models/tcfFeature.tsx","webpack:///./src/public/ts/models/tcfPurpose.tsx","webpack:///./src/public/ts/models/tcfVendor.tsx","webpack:///./src/public/ts/models/tcfVendorConfigurationCollection.tsx","webpack:///./src/public/ts/models/tcfVendorConfigurationModel.tsx","webpack:///./src/public/ts/store/checklist.tsx","webpack:///./src/public/ts/store/consent.tsx","webpack:///./src/public/ts/store/cookie.tsx","webpack:///./src/public/ts/store/customizeBanner.tsx","webpack:///./src/public/ts/store/option.tsx","webpack:///./src/public/ts/store/scanner.tsx","webpack:///./src/public/ts/store/stats.tsx","webpack:///./src/public/ts/store/stores.tsx","webpack:///./src/public/ts/store/tcf.tsx","webpack:///./src/public/ts/types/queue.tsx","webpack:///./src/public/ts/utils/copyToClipboard.tsx","webpack:///./src/public/ts/utils/getOptionsFromWindow.tsx","webpack:///./src/public/ts/utils/getOtherOptionsFromWindow.tsx","webpack:///./src/public/ts/utils/i18n.tsx","webpack:///./src/public/ts/utils/reactNl2Br.tsx","webpack:///./src/public/ts/utils/request.tsx","webpack:///./src/public/ts/utils/scrollTo.tsx","webpack:///./src/public/ts/utils/truncateMiddle.tsx","webpack:///./src/public/ts/wp-api/checklist.get.tsx","webpack:///./src/public/ts/wp-api/checklist.put.tsx","webpack:///./src/public/ts/wp-api/consentAll.delete.tsx","webpack:///./src/public/ts/wp-api/consentAll.get.tsx","webpack:///./src/public/ts/wp-api/consentReferer.get.tsx","webpack:///./src/public/ts/wp-api/cookieGroupOrder.put.tsx","webpack:///./src/public/ts/wp-api/cookieUnassigned.get.tsx","webpack:///./src/public/ts/wp-api/cookiesOrder.put.tsx","webpack:///./src/public/ts/wp-api/countryBypassDatabase.put.tsx","webpack:///./src/public/ts/wp-api/export.get.tsx","webpack:///./src/public/ts/wp-api/exportConsents.get.tsx","webpack:///./src/public/ts/wp-api/forwardCookie.get.tsx","webpack:///./src/public/ts/wp-api/forwardEndpoints.get.tsx","webpack:///./src/public/ts/wp-api/import.post.tsx","webpack:///./src/public/ts/wp-api/consent.post.tsx","webpack:///./src/public/ts/wp-api/consent.get.tsx","webpack:///./src/public/ts/wp-api/statsMain.get.tsx","webpack:///./src/public/ts/wp-api/statsCustomBypass.get.tsx","webpack:///./src/public/ts/wp-api/statsButtonsClicked.tsx","webpack:///./src/public/ts/wp-api/consentClear.delete.tsx","webpack:///./src/public/ts/wp-api/consentForward.post.tsx","webpack:///./src/public/ts/wp-api/consentDynamicPredecision.get.tsx","webpack:///./src/public/ts/wp-api/liteDismissConfigPageProNotice.delete.tsx","webpack:///./src/public/ts/wp-api/migration.delete.tsx","webpack:///./src/public/ts/wp-api/migration.post.tsx","webpack:///./src/public/ts/wp-api/modalHintSeen.put.tsx","webpack:///./src/public/ts/wp-api/navMenuAddLinks.post.tsx","webpack:///./src/public/ts/wp-api/presetsBanner.get.tsx","webpack:///./src/public/ts/wp-api/presetsBlocker.get.tsx","webpack:///./src/public/ts/wp-api/presetsBlockerAttributes.get.tsx","webpack:///./src/public/ts/wp-api/presetsCookies.get.tsx","webpack:///./src/public/ts/wp-api/presetsCookiesAttributes.get.tsx","webpack:///./src/public/ts/wp-api/revision.get.tsx","webpack:///./src/public/ts/wp-api/revisionCurrent.get.tsx","webpack:///./src/public/ts/wp-api/revisionCurrent.put.tsx","webpack:///./src/public/ts/wp-api/revisionIndependent.get.tsx","webpack:///./src/public/ts/wp-api/scannerQueue.post.tsx","webpack:///./src/public/ts/wp-api/scannerResultsAllExternalUrls.get.tsx","webpack:///./src/public/ts/wp-api/scannerResultsExternal.get.tsx","webpack:///./src/public/ts/wp-api/scannerResultsExternalHost.put.tsx","webpack:///./src/public/ts/wp-api/scannerResultsMarkup.get.tsx","webpack:///./src/public/ts/wp-api/scannerResultsPreset.get.tsx","webpack:///./src/public/ts/wp-api/tcfDeclarations.get.tsx","webpack:///./src/public/ts/wp-api/tcfGvl.put.tsx","webpack:///./src/public/ts/wp-api/tcfVendors.get.tsx","webpack:///./src/public/ts/wp-api/wp/settings.get.tsx","webpack:///./src/public/ts/wp-api/wp/settings.patch.tsx","webpack:///external var \"React\"","webpack:///external var \"ReactDOM\"","webpack:///external var \"ReactRouterDOM\"","webpack:///external var \"devowlWp_customize\"","webpack:///external var \"devowlWp_realProductManagerWpClient\"","webpack:///external var \"devowlWp_realQueue\"","webpack:///external var \"devowlWp_utils\"","webpack:///external var \"jQuery\"","webpack:///external var \"mobx\"","webpack:///external var \"moment\"","webpack:///external var \"wp\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/get mini-css chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"realCookieBanner_[name]:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/* eslint-disable @typescript-eslint/no-empty-interface */\nvar ETcfGvlDisclosureType;\n\n(function (ETcfGvlDisclosureType) {\n ETcfGvlDisclosureType[\"Cookie\"] = \"cookie\";\n ETcfGvlDisclosureType[\"Web\"] = \"web\";\n ETcfGvlDisclosureType[\"App\"] = \"app\";\n})(ETcfGvlDisclosureType || (ETcfGvlDisclosureType = {}));\n\nvar ETcfGvlLanguage;\n\n(function (ETcfGvlLanguage) {\n ETcfGvlLanguage[\"Bulgarian\"] = \"bg\";\n ETcfGvlLanguage[\"Catalan\"] = \"ca\";\n ETcfGvlLanguage[\"Czech\"] = \"cs\";\n ETcfGvlLanguage[\"Danish\"] = \"da\";\n ETcfGvlLanguage[\"German\"] = \"de\";\n ETcfGvlLanguage[\"Greek\"] = \"el\";\n ETcfGvlLanguage[\"Spanish\"] = \"es\";\n ETcfGvlLanguage[\"Estonian\"] = \"et\";\n ETcfGvlLanguage[\"Basque\"] = \"eus\";\n ETcfGvlLanguage[\"Finnish\"] = \"fi\";\n ETcfGvlLanguage[\"French\"] = \"fr\";\n ETcfGvlLanguage[\"Galician\"] = \"gl\";\n ETcfGvlLanguage[\"Croatian\"] = \"hr\";\n ETcfGvlLanguage[\"Hungarian\"] = \"hu\";\n ETcfGvlLanguage[\"Italian\"] = \"it\";\n ETcfGvlLanguage[\"Japanese\"] = \"ja\";\n ETcfGvlLanguage[\"Lithuanian\"] = \"lt\";\n ETcfGvlLanguage[\"Latvian\"] = \"lv\";\n ETcfGvlLanguage[\"Maltese\"] = \"mt\";\n ETcfGvlLanguage[\"Dutch\"] = \"nl\";\n ETcfGvlLanguage[\"Norwegian\"] = \"no\";\n ETcfGvlLanguage[\"Polish\"] = \"pl\";\n ETcfGvlLanguage[\"Portuguese\"] = \"pt\";\n ETcfGvlLanguage[\"Romanian\"] = \"ro\";\n ETcfGvlLanguage[\"SerbianCyrillic\"] = \"sr-Cyrl\";\n ETcfGvlLanguage[\"SerbianLatin\"] = \"sr-Latn\";\n ETcfGvlLanguage[\"Russian\"] = \"ru\";\n ETcfGvlLanguage[\"Slovak\"] = \"sk\";\n ETcfGvlLanguage[\"Slovenian\"] = \"sl\";\n ETcfGvlLanguage[\"Swedish\"] = \"sv\";\n ETcfGvlLanguage[\"Turkish\"] = \"tr\";\n ETcfGvlLanguage[\"Chinese\"] = \"zh\";\n})(ETcfGvlLanguage || (ETcfGvlLanguage = {}));\n\nexport { ETcfGvlLanguage, ETcfGvlDisclosureType };","/**\n * Check if a given string is an URL.\n *\n * @see https://www.w3resource.com/javascript-exercises/javascript-regexp-exercise-9.php\n */\nfunction isUrl(url) {\n var pattern = /^(?:(?:https?|ftp):\\/\\/)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:\\/\\S*)?$/;\n return !!pattern.test(url);\n}\n\nexport { isUrl };","import _message from \"antd/es/message\";\nimport _ConfigProvider from \"antd/es/config-provider\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\n\nvar _handleCorrupRestApi;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\n/* istanbul ignore file: we do not need to care about the entry point file as errors are detected through integration tests (E2E) */\n\n/**\n * The entry point for the admin side wp-admin resource (config page).\n */\nimport \"mobx-react/batchingForReactDom\";\nimport { render } from \"react-dom\";\nimport { RootStore } from \"./store\";\nimport { ConfigApp } from \"./components/configApp\";\nimport \"./style/antd.less\";\nimport \"./style/admin.scss\"; // eslint-disable-next-line import/no-extraneous-dependencies\n\nimport moment from \"moment\";\nimport { handleCorrupRestApi, getWebpackPublicPath } from \"@devowl-wp/utils\";\nimport { request } from \"./utils\";\n__webpack_public_path__ = getWebpackPublicPath(process.env);\nhandleCorrupRestApi === null || handleCorrupRestApi === void 0 ? void 0 : handleCorrupRestApi((_handleCorrupRestApi = {}, _defineProperty(_handleCorrupRestApi, RootStore.get.optionStore.restNamespace, _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return request({\n location: {\n path: \"/plugin\"\n }\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n}))), _defineProperty(_handleCorrupRestApi, \"wp/v2\", function () {\n var _wpV = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return request({\n location: {\n path: \"/settings\",\n namespace: \"wp/v2\"\n }\n });\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function wpV2() {\n return _wpV.apply(this, arguments);\n }\n\n return wpV2;\n}()), _handleCorrupRestApi)); // Configure prefix for root (https://bit.ly/3wb2pv9)\n\n_ConfigProvider.config({\n prefixCls: process.env.ANTD_PREFIX\n});\n\n_message.config({\n top: 50\n});\n\nvar node = document.getElementById(\"\".concat(RootStore.get.optionStore.slug, \"-component\"));\n\nif (node) {\n render( /*#__PURE__*/React.createElement(_ConfigProvider, {\n prefixCls: process.env.ANTD_PREFIX,\n locale: {\n locale: moment.locale()\n }\n }, /*#__PURE__*/React.createElement(RootStore.StoreProvider, null, /*#__PURE__*/React.createElement(ConfigApp, null))), node);\n} // Expose this functionalities to add-ons, but you need to activate the library functionality\n// in your webpack configuration, see also https://webpack.js.org/guides/author-libraries/\n\n\nexport * from \"@devowl-wp/utils\";\nexport * from \"./wp-api\";\nexport * from \"./store\";","import _Tooltip from \"antd/es/tooltip\";\nimport _Tag from \"antd/es/tag\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../../utils\";\nimport { CheckCircleOutlined, CheckCircleFilled, InfoCircleFilled } from \"@ant-design/icons\";\nimport { useStores } from \"../../../store\";\nimport { PRO_TAG_BACKGROUND_COLOR, useScannerProgress } from \"../../../hooks\";\nimport { InAppFomoCouponCounter, IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO } from \"../..\";\nvar DashboardChecklistItem = observer(function (_ref) {\n var id = _ref.id,\n checked = _ref.checked,\n title = _ref.title,\n description = _ref.description,\n link = _ref.link,\n linkText = _ref.linkText,\n linkTarget = _ref.linkTarget,\n needsPro = _ref.needsPro,\n onLinkClick = _ref.onLinkClick;\n\n var _useStores = useStores(),\n _useStores$optionStor = _useStores.optionStore,\n isPro = _useStores$optionStor.others.isPro,\n fomoCoupon = _useStores$optionStor.fomoCoupon;\n\n var isInfo = !isPro && needsPro;\n var extraContentTag = null;\n var extraContentDescription = null;\n var useLink = link;\n\n switch (id) {\n case \"scanner\":\n {\n var _useScannerProgress = useScannerProgress(),\n scanPercent = _useScannerProgress.percent,\n scanRemaining = _useScannerProgress.remaining,\n currentJob = _useScannerProgress.currentJob;\n\n if (scanRemaining > 0 && scanPercent > 0 && (currentJob === null || currentJob === void 0 ? void 0 : currentJob.group_position) > 0) {\n extraContentTag = /*#__PURE__*/React.createElement(_Tag, null, __(\"Currently scanning (%d %%)\", scanPercent));\n }\n\n break;\n }\n\n case \"get-pro\":\n {\n extraContentDescription = /*#__PURE__*/React.createElement(InAppFomoCouponCounter, null);\n\n if (fomoCoupon) {\n useLink += \"&\".concat(IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO);\n }\n\n break;\n }\n\n default:\n break;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"5px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Tooltip, {\n title: checked && description\n }, /*#__PURE__*/React.createElement(\"span\", null, isInfo ? /*#__PURE__*/React.createElement(InfoCircleFilled, {\n style: {\n color: \"#7ec8ec\"\n }\n }) : checked ? /*#__PURE__*/React.createElement(CheckCircleFilled, {\n style: {\n color: \"#52c41a\"\n }\n }) : /*#__PURE__*/React.createElement(CheckCircleOutlined, {\n style: {\n color: \"#e2e2e2\"\n }\n }), \" \", /*#__PURE__*/React.createElement(\"span\", {\n style: {\n textDecoration: checked ? \"line-through\" : undefined,\n fontWeight: \"bold\"\n }\n }, title), !!useLink && !!linkText && /*#__PURE__*/React.createElement(React.Fragment, null, \"\\xA0\\xA0\\u2022\\xA0\\xA0\", /*#__PURE__*/React.createElement(\"a\", {\n href: useLink,\n target: linkTarget,\n rel: \"noreferrer\",\n onClick: onLinkClick\n }, linkText)))), isInfo && id !== \"get-pro\" && /*#__PURE__*/React.createElement(React.Fragment, null, \"\\xA0\", /*#__PURE__*/React.createElement(_Tag, {\n color: PRO_TAG_BACKGROUND_COLOR\n }, __(\"Needs PRO\"))), !!extraContentTag && /*#__PURE__*/React.createElement(React.Fragment, null, \"\\xA0\", extraContentTag), !!description && !checked && /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n paddingLeft: 17\n }\n }, description), !!extraContentDescription && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n paddingLeft: 17\n }\n }, extraContentDescription));\n});\nexport { DashboardChecklistItem };","import _Spin from \"antd/es/spin\";\nimport _Space from \"antd/es/space\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _Tag from \"antd/es/tag\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport { useState } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../../utils\";\nimport { DashboardChecklistItem } from \".\";\nimport { useStores } from \"../../../store\";\nimport { CheckCircleOutlined, MinusCircleOutlined } from \"@ant-design/icons\";\nvar DashboardChecklistCardContent = observer(function (_ref) {\n var _onLinkClick = _ref.onLinkClick,\n props = _objectWithoutProperties(_ref, [\"onLinkClick\"]);\n\n var _useStores = useStores(),\n checklistStore = _useStores.checklistStore;\n\n var busyChecklist = checklistStore.busyChecklist,\n items = checklistStore.items,\n completed = checklistStore.completed,\n checkable = checklistStore.checkable,\n done = checklistStore.done,\n overdue = checklistStore.checklist.overdue;\n\n var _useState = useState(typeof props.showHidden === \"boolean\" ? props.showHidden : done ? false : true),\n _useState2 = _slicedToArray(_useState, 2),\n showHidden = _useState2[0],\n setShowHidden = _useState2[1];\n\n return /*#__PURE__*/React.createElement(_Spin, {\n spinning: busyChecklist\n }, /*#__PURE__*/React.createElement(_Space, {\n direction: \"vertical\",\n size: \"large\"\n }, overdue && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: 0\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"How time flies! You have installed Real Cookie Banner some time ago, but you still haven't finished the configuration yet.\"))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"We have collected all relevant steps for the legally compliant use of Real Cookie Banner after the first installation. Set up the cookie banner step by step to add an opt-in cookie banner to your website in compliance with the ePrivacy Directive and GDPR.\")), /*#__PURE__*/React.createElement(\"div\", null, done && (showHidden ? /*#__PURE__*/React.createElement(_Tag, {\n icon: /*#__PURE__*/React.createElement(MinusCircleOutlined, null),\n color: \"default\",\n style: {\n cursor: \"pointer\"\n },\n onClick: function onClick() {\n return setShowHidden(false);\n }\n }, __(\"Hide completed steps\")) : /*#__PURE__*/React.createElement(_Tag, {\n icon: /*#__PURE__*/React.createElement(CheckCircleOutlined, null),\n color: \"success\",\n style: {\n cursor: \"pointer\"\n },\n onClick: function onClick() {\n return setShowHidden(true);\n }\n }, __(\"%d / %d steps completed\", completed.length > checkable.length ? checkable.length : completed.length, // avoid overflow due infos\n checkable.length))), items.map(function (_ref2) {\n var id = _ref2.id,\n rest = _objectWithoutProperties(_ref2, [\"id\"]);\n\n if (!showHidden && rest.checked) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(DashboardChecklistItem, _extends({\n key: id,\n id: id\n }, rest, {\n onLinkClick: function onLinkClick(e) {\n if ([\"get-pro\"].indexOf(id) > -1) {\n checklistStore.toggleChecklistItem(id, true);\n }\n\n _onLinkClick === null || _onLinkClick === void 0 ? void 0 : _onLinkClick(e);\n }\n }));\n }))));\n});\nexport { DashboardChecklistCardContent };","import _Input from \"antd/es/input\";\nimport _Radio from \"antd/es/radio\";\nimport _Popconfirm from \"antd/es/popconfirm\";\nimport _Form from \"antd/es/form\";\nimport _Switch from \"antd/es/switch\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __, _i } from \"../../../utils\";\nimport { PostTypeSelect, ProTag, LearnMoreTag } from \"../..\";\nimport { useStores } from \"../../../store\";\nvar MANAGER_GTM_LABEL = \"Google Tag Manager\";\nvar MANAGER_MTM_LABEL = \"Matomo Tag Manager\";\nvar SettingsFormGeneral = observer(function () {\n var _useStores = useStores(),\n _useStores$optionStor = _useStores.optionStore,\n refreshSiteAfterConsent = _useStores$optionStor.refreshSiteAfterConsent,\n imprintExternalUrl = _useStores$optionStor.imprintExternalUrl,\n imprintIsExternalUrl = _useStores$optionStor.imprintIsExternalUrl,\n privacyPolicyExternalUrl = _useStores$optionStor.privacyPolicyExternalUrl,\n privacyPolicyIsExternalUrl = _useStores$optionStor.privacyPolicyIsExternalUrl,\n _useStores$optionStor2 = _useStores$optionStor.others,\n isPro = _useStores$optionStor2.isPro,\n customizeBannerUrl = _useStores$optionStor2.customizeBannerUrl;\n\n var fnCustomizeSectionUrl = useCallback(function (id) {\n return \"\".concat(customizeBannerUrl.replace(/autofocus\\[panel]=[\\w-]+/, \"autofocus[section]=\".concat(id)), \"&return=\").concat(encodeURIComponent(window.location.href));\n }, [customizeBannerUrl]);\n var customizeLegalUrl = fnCustomizeSectionUrl(\"real-cookie-banner-banner-legal\");\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n shouldUpdate: function shouldUpdate(prevValues, nextValues) {\n return prevValues.bannerActive !== nextValues.bannerActive;\n }\n }, function (_ref) {\n var getFieldValue = _ref.getFieldValue,\n setFieldsValue = _ref.setFieldsValue;\n var bannerActive = getFieldValue(\"bannerActive\");\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Cookie Banner/Dialog\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n noStyle: true,\n name: \"bannerActive\",\n valuePropName: \"checked\"\n }, /*#__PURE__*/React.createElement(_Switch, {\n style: {\n display: bannerActive ? undefined : \"none\"\n }\n })), !bannerActive && /*#__PURE__*/React.createElement(_Popconfirm, {\n title: __(\"I have already checked/will check all text in the cookie banner and content blocker myself. I have added missing information and corrected information that does not fit my use case.\"),\n cancelText: __(\"Cancel\"),\n okText: __(\"Activate now!\"),\n overlayStyle: {\n maxWidth: 450\n },\n onCancel: function onCancel() {\n setFieldsValue({\n bannerActive: false\n });\n },\n onConfirm: function onConfirm() {\n setFieldsValue({\n bannerActive: true\n });\n },\n placement: \"bottomLeft\"\n }, /*#__PURE__*/React.createElement(_Switch, {\n checked: false\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n marginTop: 5\n }\n }, __(\"You can enable and disable the cookie banner. We recommend to activate the cookie banner on your website after you have added all services.\"))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Content Blocker\"),\n style: {\n display: bannerActive ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"blockerActive\",\n valuePropName: \"checked\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Switch, {\n style: {\n marginTop: 5\n }\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n marginTop: 5\n }\n }, __(\"This feature allows you to block content that would process personal data and set cookies, but for which you do not yet have the visitor's consent.\"))));\n }), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Refresh site after consent\"),\n style: {\n /**\n * This functionality is deprecated as it is in general not needed. We want to avoid\n * that users activate this feature, but we keep it active for BC.\n */\n display: refreshSiteAfterConsent ? undefined : \"none\"\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"refreshSiteAfterConsent\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Radio.Group, null, /*#__PURE__*/React.createElement(_Radio.Button, {\n value: false\n }, __(\"Do not refresh\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n value: true\n }, __(\"Refresh\")))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"Depending on how services are loaded, e.g. by other plugins on your website, it may be necessary to reload the website after the user has consented to the setting of cookies (only necessary in very rare cases).\"))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Hide cookie banner on specific pages\")\n }, /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n marginTop: 7\n }\n }, __(\"According to the ePrivacy Directive, legally required pages such as the privacy policy or the imprint (depending on the country) may be accessible without the user having to give consent to services and their cookies. Therefore, it is recommended to avoid processing personal data and setting cookies on these pages and not to display a cookie banner.\")), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Imprint Page\"),\n labelCol: {\n span: 24\n },\n wrapperCol: {\n span: 12\n },\n style: {\n marginBottom: 12\n }\n }, imprintIsExternalUrl ? /*#__PURE__*/React.createElement(_Input, {\n value: imprintExternalUrl,\n readOnly: true,\n addonAfter: /*#__PURE__*/React.createElement(\"a\", {\n className: \"button-link alignright\",\n rel: \"noreferrer\",\n target: \"_blank\",\n href: customizeLegalUrl\n }, __(\"Edit\"))\n }) : /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"imprintId\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(PostTypeSelect, {\n postType: \"pages\",\n forceDefaultLanguage: true,\n postStatus: [\"publish\"],\n perPage: 100\n }))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Privacy policy page\"),\n labelCol: {\n span: 24\n },\n wrapperCol: {\n span: 12\n },\n style: {\n marginBottom: 12\n }\n }, privacyPolicyIsExternalUrl ? /*#__PURE__*/React.createElement(_Input, {\n value: privacyPolicyExternalUrl,\n readOnly: true,\n addonAfter: /*#__PURE__*/React.createElement(\"a\", {\n className: \"button-link alignright\",\n rel: \"noreferrer\",\n target: \"_blank\",\n href: customizeLegalUrl\n }, __(\"Edit\"))\n }) : /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"privacyPolicyId\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(PostTypeSelect, {\n postType: \"pages\",\n forceDefaultLanguage: true,\n postStatus: [\"publish\"],\n perPage: 100\n }))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: /*#__PURE__*/React.createElement(React.Fragment, null, __(\"Hide on additional pages\"), \"\\xA0\", /*#__PURE__*/React.createElement(ProTag, {\n title: __(\"Want to hide cookie banner on more pages?\"),\n testDrive: true,\n feature: \"hide-page-ids\",\n description: __(\"Cookie banners are legally necessary, but distract your users from the essentials. For example, on landing pages for advertising campaigns, they lead to lower conversion rates. On these pages, it can be useful to avoid processing personal data and setting cookies to keep the conversion rate high. You can hide the cookie banner on these pages.\")\n })),\n labelCol: {\n span: 24\n },\n wrapperCol: {\n span: 12\n },\n style: {\n marginBottom: 12\n }\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"hidePageIds\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(PostTypeSelect, {\n postType: \"pages\",\n multiple: true,\n disabled: !isPro,\n forceDefaultLanguage: true,\n postStatus: [\"publish\"],\n perPage: 100\n })))), /*#__PURE__*/React.createElement(_Form.Item, {\n label: __(\"Load services after consent via\")\n }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"setCookiesViaManager\",\n noStyle: true\n }, /*#__PURE__*/React.createElement(_Radio.Group, null, /*#__PURE__*/React.createElement(_Radio.Button, {\n disabled: !isPro,\n value: \"none\"\n }, __(\"HTML/JavaScript Snippet\")), /*#__PURE__*/React.createElement(_Radio.Button, {\n disabled: !isPro,\n value: \"googleTagManager\"\n }, __(\"%s Event\", MANAGER_GTM_LABEL)), /*#__PURE__*/React.createElement(_Radio.Button, {\n disabled: !isPro,\n value: \"matomoTagManager\"\n }, __(\"%s Event\", MANAGER_MTM_LABEL)))), /*#__PURE__*/React.createElement(\"div\", {\n style: {\n margin: \"5px 0px 0px\"\n }\n }, /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/\")\n }), /*#__PURE__*/React.createElement(ProTag, {\n title: __(\"Want to use a Tag Manager legally?\"),\n testDrive: true,\n feature: \"set-cookies-via-manager\",\n assetName: __(\"pro-modal/set-cookies-via-manager.png\"),\n description: __(\"You can integrate services via Google Tag Manager or Matomo Tag Manager. At the same time, you can obtain and document consents via Real Cookie Banner in accordance with data protection regulations.\")\n })), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, /*#__PURE__*/React.createElement(\"strong\", null, __(\"You only need to change this option if you use Google Tag Manager or Matomo Tag Manager.\")), \"\\xA0\", _i(__(\"If you opt-in to or opt-out from services, you will normally execute JavaScript code to ensure that scripts are enabled/disabled and cookies are set/removed on the visitor's client. If you are a Google Tag Manager or Matomo Tag Manager user, you can map this behavior by using tags that are triggered by an event in the data layer. {{strong}}If you enable this option,{{/strong}} the Google Tag Manager or Matomo Tag Manager should not yet be integrated into your website. Instead, you must integrate it as an opt-in script of a service you create for the Tag Manager. For each service listed in this plugin, you will receive an additional field where you can specify the name of the event that is automatically triggered when the user opt-in or opt-out. We have a full integration for tag managers which should allow you to run it legally compliant in the EU.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n }))));\n});\nexport { SettingsFormGeneral, MANAGER_GTM_LABEL, MANAGER_MTM_LABEL };","import _Popconfirm from \"antd/es/popconfirm\";\nimport { observer } from \"mobx-react\";\nimport { _i, __ } from \"../../utils\";\nimport { useStores } from \"../../store\";\nimport { useLocation } from \"react-router-dom\";\nvar NoticeRevisionNeedsRetrigger = observer(function () {\n var _useStores = useStores(),\n optionStore = _useStores.optionStore;\n\n var _useLocation = useLocation(),\n pathname = _useLocation.pathname;\n\n return optionStore.needsRevisionRetrigger && pathname.indexOf(\"/edit/\") === -1 && pathname.indexOf(\"/new\") === -1 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"You have changed settings that affect the content or behavior of the cookie banner. You should ask all visitors for their consent again.\"), \" \", \"\\u2022\", \" \", /*#__PURE__*/React.createElement(\"a\", {\n style: {\n cursor: \"pointer\",\n textDecoration: \"underline\"\n },\n onClick: function onClick() {\n return optionStore.updateCurrentRevision({\n needs_retrigger: true\n });\n }\n }, __(\"Request new consent\")), \" \", \"\\u2022\", \" \", /*#__PURE__*/React.createElement(_Popconfirm, {\n title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"strong\", null, __(\"Are you sure you don't want to collect new consents?\")), /*#__PURE__*/React.createElement(\"br\", null), /*#__PURE__*/React.createElement(\"br\", null), _i(__(\"Consent must be obtained in accordance with {{a}}Art. 7 GDPR{{/a}}. Your visitor must be informed about all circumstances of the consent. However, you have made changes to your cookie banner, which lead to the fact that previously visitors have consented differently or to something different than is now in the cookie banner. Therefore, previously collected consents may have become partially invalid.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://gdpr-info.eu/art-7-gdpr/\"),\n rel: \"noreferrer\",\n target: \"_blank\"\n })\n }), /*#__PURE__*/React.createElement(\"br\", null), /*#__PURE__*/React.createElement(\"br\", null), __(\"If you have created a new service like Google Analytics (without visual content blocker), previous visitors can never consent without collecting new consents and you cannot track them, for example.\")),\n placement: \"bottomRight\",\n onConfirm: function onConfirm() {\n return optionStore.updateCurrentRevision({\n needs_retrigger: false\n });\n },\n okText: __(\"Dismiss notice\"),\n cancelText: __(\"Cancel\"),\n overlayStyle: {\n maxWidth: 450\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n style: {\n cursor: \"pointer\",\n textDecoration: \"underline\"\n }\n }, __(\"Dismiss notice\")))));\n});\nexport { NoticeRevisionNeedsRetrigger };","import { observer } from \"mobx-react\";\nimport { __ } from \"../../utils\";\nimport { useStores } from \"../../store\";\nvar NoticeBannerActiveNoCookies = observer(function () {\n var _useStores = useStores(),\n _useStores$optionStor = _useStores.optionStore,\n publicCookieCount = _useStores$optionStor.publicCookieCount,\n busySettings = _useStores$optionStor.busySettings,\n bannerActive = _useStores$optionStor.bannerActive;\n\n return bannerActive && !publicCookieCount && !busySettings && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, __(\"The cookie banner is activated, but unfortunately you have not yet created or enabled services.\")));\n});\nexport { NoticeBannerActiveNoCookies };","import { observer } from \"mobx-react\";\nimport { getOtherOptionsFromWindow, _i, __ } from \"../../utils\";\nvar NoticeAnonymousScriptNotWritable = observer(function () {\n var _getOtherOptionsFromW = getOtherOptionsFromWindow(),\n showNoticeAnonymousScriptNotWritable = _getOtherOptionsFromW.showNoticeAnonymousScriptNotWritable;\n\n return !!showNoticeAnonymousScriptNotWritable && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"Your {{code}}wp-content{{/code}} folder is not writable. Please check your permissions!\"), {\n code: /*#__PURE__*/React.createElement(\"code\", null)\n })));\n});\nexport { NoticeAnonymousScriptNotWritable };","import { observer } from \"mobx-react\";\nimport { __, _i } from \"../../utils\";\nimport { useStores } from \"../../store\";\nimport { useLocation } from \"react-router-dom\";\nvar NoticeNoManager = observer(function (_ref) {\n var manager = _ref.manager,\n managerId = _ref.managerId,\n hasManagerAttributeName = _ref.hasManagerAttributeName,\n presetId = _ref.presetId;\n\n var _useStores = useStores(),\n _useStores$optionStor = _useStores.optionStore,\n setCookiesViaManager = _useStores$optionStor.setCookiesViaManager,\n hasManager = _useStores$optionStor[hasManagerAttributeName];\n\n var _useLocation = useLocation(),\n pathname = _useLocation.pathname;\n\n return setCookiesViaManager === managerId && !hasManager && /^\\/cookies\\/\\d+$/.test(pathname) && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning inline below-h2 notice-alt\",\n style: {\n margin: \"10px 0 0 0\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"You have not yet defined a %s service. To use {{strong}}%s{{/strong}} with Real Cookie Banner, you must create the appropriate service.\", manager, manager), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n }), \" \", \"\\u2022 \", /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\".concat(pathname, \"/new?force=\").concat(presetId)\n }, __(\"Create now\"))));\n});\nexport { NoticeNoManager };","import { useEffect } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { scrollTo } from \"../utils\";\n/**\n * @see https://stackoverflow.com/a/54343182/5506547\n */\n\nvar RouterScrollToTop = function RouterScrollToTop() {\n var _useHistory = useHistory(),\n listen = _useHistory.listen;\n\n useEffect(function () {\n var destroy = listen(function () {\n scrollTo(0);\n });\n return function () {\n destroy();\n };\n }, [listen]);\n return null;\n};\n\nexport { RouterScrollToTop };","import _Popconfirm from \"antd/es/popconfirm\";\nimport { useCallback } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { InfoCircleOutlined } from \"@ant-design/icons\";\nimport { useStores } from \"../store\";\nimport { __ } from \"../utils\";\nvar ProHeadlineButton = observer(function () {\n var _useStores = useStores(),\n optionStore = _useStores.optionStore;\n\n var _optionStore$others = optionStore.others,\n proUrl = _optionStore$others.proUrl,\n isPro = _optionStore$others.isPro,\n isConfigProNoticeVisible = _optionStore$others.isConfigProNoticeVisible;\n var href = \"\".concat(proUrl, \"&feature=main-button\");\n var handleConfirm = useCallback(function () {\n window.open(href, \"_blank\");\n optionStore.dismissConfigProNotice();\n }, [optionStore]);\n var handleClose = useCallback(function () {\n optionStore.dismissConfigProNotice();\n }, [optionStore]);\n return !isPro && /*#__PURE__*/React.createElement(_Popconfirm, {\n visible: !!isConfigProNoticeVisible,\n title: __(\"Thank you for using the free version of Real Cookie Banner. You might also be interested in the PRO version, which offers you more features, 20+ design templates, 100+ service templates, 60+ content blocker templates and much more.\"),\n icon: /*#__PURE__*/React.createElement(InfoCircleOutlined, {\n style: {\n color: \"#1890ff\"\n }\n }),\n placement: \"bottom\",\n onConfirm: handleConfirm,\n onCancel: handleClose,\n cancelText: __(\"No, not interested...\"),\n okText: __(\"I want to learn more!\"),\n overlayStyle: {\n maxWidth: 450\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n className: \"page-title-action\",\n rel: \"noreferrer\",\n onClick: handleConfirm\n }, __(\"Get PRO version\")));\n});\nexport { ProHeadlineButton };","import _Modal from \"antd/es/modal\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { CheckCircleOutlined } from \"@ant-design/icons\";\nimport { observer } from \"mobx-react\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport { ProHeadlineButton, DashboardChecklistCardContent } from \"..\";\nimport { useStores } from \"../../store\";\nimport { __ } from \"../../utils\";\nvar ConfigHeader = observer(function () {\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n isChecklistModalOpen = _useState2[0],\n setChecklistModalOpen = _useState2[1];\n\n var _useStores = useStores(),\n optionStore = _useStores.optionStore,\n checklistStore = _useStores.checklistStore;\n\n var _useLocation = useLocation(),\n pathname = _useLocation.pathname;\n\n var customizeBannerUrl = optionStore.others.customizeBannerUrl,\n publicUrl = optionStore.publicUrl;\n var completed = checklistStore.completed,\n checkable = checklistStore.checkable,\n done = checklistStore.done;\n useEffect(function () {\n checklistStore.fetchChecklist();\n }, []);\n var handleCustomizeBannerButtonClick = useCallback(function (e) {\n window.location.href = \"\".concat(customizeBannerUrl, \"&return=\").concat(encodeURIComponent(window.location.href));\n e.preventDefault();\n }, []);\n var handleChecklistModalOpen = useCallback(function () {\n setChecklistModalOpen(true);\n checklistStore.fetchChecklist();\n }, [setChecklistModalOpen]);\n var handleChecklistModalClose = useCallback(function () {\n setChecklistModalOpen(false);\n }, [setChecklistModalOpen]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h1\", {\n className: \"wp-heading-inline\"\n }, __(\"Real Cookie Banner\")), /*#__PURE__*/React.createElement(\"img\", {\n className: \"rcb-nav-logo\",\n src: \"\".concat(publicUrl, \"images/logos/real-cookie-banner.svg\")\n }), /*#__PURE__*/React.createElement(\"a\", {\n className: \"page-title-action\",\n href: \"#\",\n onClick: handleCustomizeBannerButtonClick\n }, __(\"Customize banner\")), /*#__PURE__*/React.createElement(ProHeadlineButton, null), !done && pathname !== \"/\" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"a\", {\n className: \"page-title-action\",\n style: {\n color: \"#52c41a\",\n background: \"#f6ffed\",\n borderColor: \"#85af65\"\n },\n onClick: handleChecklistModalOpen\n }, /*#__PURE__*/React.createElement(CheckCircleOutlined, null), \"\\xA0\", __(\"%d / %d steps completed\", completed.length > checkable.length ? checkable.length : completed.length, // avoid overflow due infos\n checkable.length)), /*#__PURE__*/React.createElement(_Modal, {\n visible: isChecklistModalOpen,\n title: __(\"Set up the cookie banner\"),\n onCancel: handleChecklistModalClose,\n okButtonProps: {\n style: {\n display: \"none\"\n }\n },\n cancelText: __(\"Close\"),\n width: 800\n }, /*#__PURE__*/React.createElement(DashboardChecklistCardContent, {\n showHidden: true,\n onLinkClick: handleChecklistModalClose\n }))), /*#__PURE__*/React.createElement(\"hr\", {\n className: \"wp-header-end\"\n }));\n});\nexport { ConfigHeader };","import { observer } from \"mobx-react\";\nimport { useStores } from \"../../store\";\nimport { HeartFilled } from \"@ant-design/icons\";\nimport { _i, __ } from \"../../utils\";\nvar ConfigFooter = observer(function () {\n var _useStores = useStores(),\n publicUrl = _useStores.optionStore.publicUrl;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rcb-config-footer\"\n }, _i(__(\"Real Cookie Banner is brought to you with {{icon/}} by\"), {\n icon: /*#__PURE__*/React.createElement(HeartFilled, {\n style: {\n color: \"#dca7a7\"\n }\n })\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://devowl.io/\",\n target: \"_blank\",\n rel: \"noreferrer\"\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: \"\".concat(publicUrl, \"images/logos/devowl-with-text.svg\")\n })));\n});\nexport { ConfigFooter };","import _Badge from \"antd/es/badge\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _Spin from \"antd/es/spin\";\nimport { lazy, Suspense } from \"react\";\nimport { useLayoutEffect } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { HashRouter as Router, Switch, Route, NavLink } from \"react-router-dom\";\nimport { __ } from \"../utils\";\nimport { useStores } from \"../store\";\nimport { NoticeRevisionNeedsRetrigger, NoticeBannerActiveNoCookies, NoticeAnonymousScriptNotWritable, NoticeNoManager, RouterScrollToTop, MANAGER_GTM_LABEL, MANAGER_MTM_LABEL } from \".\";\nimport { ConfigHeader, ConfigFooter } from \".\";\nimport { SuspenseChunkTranslation } from \"@devowl-wp/utils\";\nimport { useScannerProgress } from \"../hooks\";\nimport { JOB_DONE_EVENT_PREFIX } from \"@devowl-wp/real-queue\";\nimport { AUTOMATIC_SCAN_STATER_QUEUE_JOB } from \"../types\";\nvar CSS_SPINNER_IN_CONTENT = {\n display: \"block\",\n marginTop: 10\n}; // Lazy load components\n\nvar createSuspenseComponent = function createSuspenseComponent(tab, children) {\n return {\n // eslint-disable-next-line react/display-name\n default: function _default() {\n return /*#__PURE__*/React.createElement(SuspenseChunkTranslation, {\n chunkFile: __webpack_get_script_filename__(\"chunk-config-tab-\".concat(tab)),\n options: function options() {\n return useStores().optionStore;\n },\n fallback: /*#__PURE__*/React.createElement(_Spin, {\n spinning: true,\n style: CSS_SPINNER_IN_CONTENT\n })\n }, children);\n }\n };\n};\n\nvar DashboardCards = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-dashboard\" */\n \"./config/dashboard/cards\").then(function (_ref) {\n var DashboardCards = _ref.DashboardCards;\n return createSuspenseComponent(\"dashboard\", /*#__PURE__*/React.createElement(DashboardCards, null));\n });\n});\nvar SettingsForm = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-settings\" */\n \"./config/settings/form\").then(function (_ref2) {\n var SettingsForm = _ref2.SettingsForm;\n return createSuspenseComponent(\"settings\", /*#__PURE__*/React.createElement(SettingsForm, null));\n });\n});\nvar ScannerRouter = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-scanner\" */\n \"./config/scanner/router\").then(function (_ref3) {\n var ScannerRouter = _ref3.ScannerRouter;\n return createSuspenseComponent(\"scanner\", /*#__PURE__*/React.createElement(ScannerRouter, null));\n });\n});\nvar CookieGroupsTabRouter = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-cookies\" */\n \"./config/cookies/groups/tabRouter\").then(function (_ref4) {\n var CookieGroupsTabRouter = _ref4.CookieGroupsTabRouter;\n return createSuspenseComponent(\"cookies\", /*#__PURE__*/React.createElement(CookieGroupsTabRouter, null));\n });\n});\nvar ConsentTabRouter = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-consent\" */\n \"./config/consent/tabRouter\").then(function (_ref5) {\n var ConsentTabRouter = _ref5.ConsentTabRouter;\n return createSuspenseComponent(\"consent\", /*#__PURE__*/React.createElement(ConsentTabRouter, null));\n });\n});\nvar BlockerRouter = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-blocker\" */\n \"./config/blocker/router\").then(function (_ref6) {\n var BlockerRouter = _ref6.BlockerRouter;\n return createSuspenseComponent(\"blocker\", /*#__PURE__*/React.createElement(BlockerRouter, null));\n });\n});\nvar ImportExportCards = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-import\" */\n \"./config/import/cards\").then(function (_ref7) {\n var ImportExportCards = _ref7.ImportExportCards;\n return createSuspenseComponent(\"import\", /*#__PURE__*/React.createElement(ImportExportCards, null));\n });\n});\nvar ConfigLicensing = /*#__PURE__*/lazy(function () {\n return import(\n /* webpackChunkName: \"chunk-config-tab-licensing\" */\n \"./config/licensing/licensing\").then(function (_ref8) {\n var ConfigLicensing = _ref8.ConfigLicensing;\n return createSuspenseComponent(\"licensing\", /*#__PURE__*/React.createElement(ConfigLicensing, null));\n });\n});\nvar ConfigApp = observer(function () {\n var _useScannerProgress = useScannerProgress(),\n scanPercent = _useScannerProgress.percent,\n scanRemaining = _useScannerProgress.remaining,\n currentJob = _useScannerProgress.currentJob;\n\n var _useStores = useStores(),\n optionStore = _useStores.optionStore,\n checklistStore = _useStores.checklistStore;\n\n var _optionStore$others = optionStore.others,\n showLicenseFormImmediate = _optionStore$others.showLicenseFormImmediate,\n _optionStore$others$c = _slicedToArray(_optionStore$others.colorScheme, 3),\n badgeColor = _optionStore$others$c[2]; // Initially fetch settings here so the form is shown\n\n\n useLayoutEffect(function () {\n optionStore.fetchSettings(); // Listen to the automatic scan starter and update the checklist\n\n var listener = function listener()\n /*_: CustomEvent<JobDoneEvent>*/\n {\n checklistStore.fetchChecklist();\n };\n\n var event = \"\".concat(JOB_DONE_EVENT_PREFIX).concat(AUTOMATIC_SCAN_STATER_QUEUE_JOB);\n document.addEventListener(event, listener);\n return function () {\n document.removeEventListener(event, listener);\n };\n }, []);\n return showLicenseFormImmediate ? /*#__PURE__*/React.createElement(Suspense, {\n fallback: /*#__PURE__*/React.createElement(_Spin, {\n spinning: true,\n style: CSS_SPINNER_IN_CONTENT\n })\n }, /*#__PURE__*/React.createElement(ConfigLicensing, null)) : /*#__PURE__*/React.createElement(Router, null, /*#__PURE__*/React.createElement(ConfigHeader, null), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"nav-tab-wrapper wp-clearfix\"\n }, /*#__PURE__*/React.createElement(NavLink, {\n to: \"/\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\",\n exact: true\n }, __(\"Dashboard\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/settings\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Settings\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/scanner\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, scanRemaining > 0 && scanPercent > 0 && (currentJob === null || currentJob === void 0 ? void 0 : currentJob.group_position) > 0 ? /*#__PURE__*/React.createElement(_Badge, {\n count: \"\".concat(scanPercent, \" %\"),\n style: {\n top: -11,\n fontSize: 10,\n height: 16,\n lineHeight: \"16px\",\n background: badgeColor\n }\n }, __(\"Scanner\")) : __(\"Scanner\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/cookies\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Services (Cookies)\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/blocker\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Content Blocker\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/consent\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Consent\")), /*#__PURE__*/React.createElement(NavLink, {\n to: \"/import\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Import / Export\")), window.location.host !== \"try.devowl.io\" && /*#__PURE__*/React.createElement(NavLink, {\n to: \"/licensing\",\n className: \"nav-tab\",\n activeClassName: \"nav-tab-active\"\n }, __(\"Licensing\")), /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/support/\"),\n className: \"nav-tab\",\n target: \"_blank\",\n rel: \"noreferrer\"\n }, __(\"Support\"))), /*#__PURE__*/React.createElement(NoticeRevisionNeedsRetrigger, null), /*#__PURE__*/React.createElement(NoticeBannerActiveNoCookies, null), /*#__PURE__*/React.createElement(NoticeAnonymousScriptNotWritable, null), /*#__PURE__*/React.createElement(NoticeNoManager, {\n manager: MANAGER_GTM_LABEL,\n managerId: \"googleTagManager\",\n hasManagerAttributeName: \"hasGTM\",\n presetId: \"gtm\"\n }), /*#__PURE__*/React.createElement(NoticeNoManager, {\n manager: MANAGER_MTM_LABEL,\n managerId: \"matomoTagManager\",\n hasManagerAttributeName: \"hasMTM\",\n presetId: \"mtm\"\n }), /*#__PURE__*/React.createElement(RouterScrollToTop, null), /*#__PURE__*/React.createElement(Suspense, {\n fallback: /*#__PURE__*/React.createElement(_Spin, {\n spinning: true,\n style: CSS_SPINNER_IN_CONTENT\n })\n }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true\n }, /*#__PURE__*/React.createElement(DashboardCards, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/settings/:tab?\"\n }, !optionStore.areSettingsFetched ? null : /*#__PURE__*/React.createElement(SettingsForm, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/scanner\"\n }, /*#__PURE__*/React.createElement(ScannerRouter, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/cookies/:cookieGroup?\"\n }, /*#__PURE__*/React.createElement(CookieGroupsTabRouter, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/consent/:tab?\"\n }, /*#__PURE__*/React.createElement(ConsentTabRouter, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/blocker\"\n }, /*#__PURE__*/React.createElement(BlockerRouter, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/import\"\n }, /*#__PURE__*/React.createElement(ImportExportCards, null)), /*#__PURE__*/React.createElement(Route, {\n path: \"/licensing\"\n }, /*#__PURE__*/React.createElement(ConfigLicensing, null)))), /*#__PURE__*/React.createElement(ConfigFooter, null));\n});\nexport { ConfigApp, createSuspenseComponent };","import _Alert from \"antd/es/alert\";\nimport _Tag from \"antd/es/tag\";\nimport _message from \"antd/es/message\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { observer } from \"mobx-react\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { useStores } from \"../store\";\nimport { _i, __, copyToClipboard } from \"../utils\";\nvar IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO = \"promo=in-app\";\nvar InAppFomoCouponCounter = observer(function (_ref) {\n var style = _ref.style;\n\n var _useStores = useStores(),\n fomoCoupon = _useStores.optionStore.fomoCoupon;\n\n var coupon = fomoCoupon === null || fomoCoupon === void 0 ? void 0 : fomoCoupon.coupon;\n var valueInPercent = fomoCoupon === null || fomoCoupon === void 0 ? void 0 : fomoCoupon.valueInPercent;\n var validUntil = fomoCoupon === null || fomoCoupon === void 0 ? void 0 : fomoCoupon.validUntil;\n var createTimerString = useCallback(function () {\n if (validUntil) {\n var remaining = new Date(validUntil).getTime() - new Date().getTime(); // Already expired?\n\n if (remaining <= 0) {\n return undefined;\n }\n\n var fullSeconds = remaining / 1000;\n return [Math.floor(fullSeconds / 3600), Math.floor(fullSeconds / 60) % 60, Math.floor(fullSeconds % 60)].map(function (v) {\n return v < 10 ? \"0\".concat(v) : v;\n }).filter(function (v, i) {\n return v !== \"00\" || i > 0;\n }).join(\":\");\n } else {\n return undefined;\n }\n }, [validUntil]);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n setRerender = _useState2[1];\n\n useEffect(function () {\n var interval = setInterval(function () {\n setRerender(new Date().getTime());\n }, 1000);\n return function () {\n clearInterval(interval);\n };\n }, []);\n var timerString = createTimerString();\n return timerString ? /*#__PURE__*/React.createElement(_Alert, {\n style: style,\n message: _i(__(\"Use coupon {{tag}}%s{{/tag}} in the next {{strongHours}}%s hours{{/strongHours}} and save {{strongPercent}}%d %%{{/strongPercent}} in the first year!\", coupon, timerString, valueInPercent), {\n tag: /*#__PURE__*/React.createElement(_Tag, {\n color: \"success\",\n style: {\n marginRight: 0,\n cursor: \"pointer\"\n },\n onClick: function onClick() {\n copyToClipboard(coupon);\n\n _message.success(__(\"Successfully copied coupon to clipboard!\"));\n }\n }),\n strongHours: /*#__PURE__*/React.createElement(\"strong\", {\n style: {\n color: \"#d33131\"\n }\n }),\n strongPercent: /*#__PURE__*/React.createElement(\"strong\", null)\n })\n }) : null;\n});\nexport { IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO, InAppFomoCouponCounter };","import _Tag from \"antd/es/tag\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport { QuestionCircleFilled } from \"@ant-design/icons\";\nimport { __ } from \"../utils\";\n\nvar LearnMoreTag = function LearnMoreTag(_ref) {\n var url = _ref.url,\n _ref$style = _ref.style,\n style = _ref$style === void 0 ? undefined : _ref$style,\n _ref$label = _ref.label,\n label = _ref$label === void 0 ? __(\"Learn more\") : _ref$label;\n\n var useStyle = _objectSpread({\n cursor: \"pointer\"\n }, style);\n\n return /*#__PURE__*/React.createElement(_Tag, {\n style: useStyle,\n onClick: function onClick() {\n return window.open(url, \"_blank\");\n }\n }, /*#__PURE__*/React.createElement(QuestionCircleFilled, null), \" \", label);\n};\n\nexport { LearnMoreTag };","import _Select from \"antd/es/select\";\nimport _Spin from \"antd/es/spin\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { useState, useEffect, useCallback } from \"react\";\nimport { __, request as utilsRequest, getOtherOptionsFromWindow } from \"../utils\";\nimport { useDebounce } from \"../hooks\";\nimport { RouteHttpVerb } from \"@devowl-wp/utils\";\nimport { htmlDecode } from \"@devowl-wp/headless-content-unblocker\";\n\nvar PostTypeSelect = function PostTypeSelect(_ref) {\n var postType = _ref.postType,\n _ref$postStatus = _ref.postStatus,\n postStatus = _ref$postStatus === void 0 ? [\"draft\", \"publish\", \"private\"] : _ref$postStatus,\n _ref$perPage = _ref.perPage,\n perPage = _ref$perPage === void 0 ? 10 : _ref$perPage,\n value = _ref.value,\n multiple = _ref.multiple,\n disabled = _ref.disabled,\n forceDefaultLanguage = _ref.forceDefaultLanguage,\n _onChange = _ref.onChange,\n _ref$titleRender = _ref.titleRender,\n titleRender = _ref$titleRender === void 0 ? function (_ref2) {\n var rendered = _ref2.title.rendered;\n return rendered;\n } : _ref$titleRender,\n _ref$filter = _ref.filter,\n filter = _ref$filter === void 0 ? function () {\n return true;\n } : _ref$filter;\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n term = _useState2[0],\n setTerm = _useState2[1];\n\n var _useState3 = useState(value),\n _useState4 = _slicedToArray(_useState3, 2),\n postId = _useState4[0],\n setPostId = _useState4[1];\n\n var _useState5 = useState(false),\n _useState6 = _slicedToArray(_useState5, 2),\n fetching = _useState6[0],\n setFetching = _useState6[1];\n\n var _useState7 = useState([]),\n _useState8 = _slicedToArray(_useState7, 2),\n data = _useState8[0],\n setData = _useState8[1];\n\n var fetch = useCallback( /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(request) {\n var _getOtherOptionsFromW, defaultLanguage, currentLanguage, pages;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setFetching(true);\n _getOtherOptionsFromW = getOtherOptionsFromWindow(), defaultLanguage = _getOtherOptionsFromW.defaultLanguage, currentLanguage = _getOtherOptionsFromW.currentLanguage;\n _context.next = 4;\n return utilsRequest({\n location: {\n path: \"/\".concat(postType),\n method: RouteHttpVerb.GET,\n namespace: \"wp/v2\"\n },\n request: _objectSpread({\n status: request.include ? [\"draft\", \"publish\", \"private\"] : postStatus,\n orderby: request.search ? \"relevance\" : \"title\"\n }, request),\n params: {\n _dataLocale: forceDefaultLanguage ? defaultLanguage : currentLanguage\n }\n });\n\n case 4:\n pages = _context.sent;\n setData(pages);\n setFetching(false);\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref3.apply(this, arguments);\n };\n }(), []);\n useDebounce(term, term === \"\" ? 0 : 800, function (debouncedValue) {\n if (debouncedValue !== false) {\n fetch({\n search: debouncedValue,\n per_page: debouncedValue.length ? 50 : perPage\n });\n }\n }, function (changedValue) {\n if (changedValue !== false) {\n setFetching(true);\n }\n\n setData([]);\n });\n useEffect(function () {\n if (postId > 0 || Array.isArray(postId) && postId.length > 0) {\n fetch({\n include: Array.isArray(postId) ? postId : [postId]\n });\n }\n }, []); // Listen to changes from outside and refetch the data\n\n useEffect(function () {\n if (JSON.stringify(postId) !== JSON.stringify(value) && (value > 0 || Array.isArray(value) && value.length > 0)) {\n setPostId(value);\n fetch({\n include: Array.isArray(value) ? value : [value]\n });\n }\n }, [value, postId]);\n return /*#__PURE__*/React.createElement(_Select, {\n mode: multiple ? \"multiple\" : undefined,\n disabled: disabled,\n showSearch: true,\n value: postId,\n placeholder: __(\"Search...\"),\n notFoundContent: fetching ? /*#__PURE__*/React.createElement(_Spin, {\n size: \"small\"\n }) : null,\n onClick: function onClick() {\n return setTerm(\"\");\n },\n onSearch: setTerm,\n onChange: function onChange(e) {\n var value = Array.isArray(e) ? e.map(Number) : +e;\n setPostId(value);\n _onChange === null || _onChange === void 0 ? void 0 : _onChange(value);\n },\n filterOption: false,\n loading: fetching\n }, !multiple && !fetching && /*#__PURE__*/React.createElement(_Select.Option, {\n value: 0\n }, __(\"— Select —\")), data.map(function (d) {\n return /*#__PURE__*/React.createElement(_Select.Option, {\n key: d.id,\n value: d.id,\n style: {\n display: filter(d) ? undefined : \"none\"\n }\n }, htmlDecode(titleRender(d)));\n }));\n};\n\nexport { PostTypeSelect };","import { isUrl } from \".\";\n/**\n * Decode HTML entities in a given string.\n *\n * @see https://stackoverflow.com/a/34064434/5506547\n */\n\nfunction htmlDecode(input) {\n var inputIsUrl = isUrl(input);\n\n if (inputIsUrl) {\n var _doc$querySelector;\n\n // URLs needs to be handled a bit different as e.g. `?regionid` gets parsed to `'ionid=`\n var doc = new DOMParser().parseFromString(\"<a href=\\\"\".concat(input, \"\\\"></a>\"), \"text/html\");\n return (_doc$querySelector = doc.querySelector(\"a\")) === null || _doc$querySelector === void 0 ? void 0 : _doc$querySelector.href;\n } else {\n // Keep XSS protection intact\n var _doc = new DOMParser().parseFromString(input, \"text/html\");\n\n return _doc.documentElement.textContent;\n }\n}\n\nexport { htmlDecode };","import _Modal from \"antd/es/modal\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { useState } from \"react\";\nimport { useEffect } from \"react\";\nimport { useCallback } from \"react\";\nimport { UnlockFilled } from \"@ant-design/icons\";\nimport { __, getOtherOptionsFromWindow, _i, reactNl2Br } from \"../utils\";\nimport { ProModalHint, InAppFomoCouponCounter, IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO } from \".\";\n\nvar ProModal = function ProModal(_ref) {\n var _ref$visible = _ref.visible,\n visible = _ref$visible === void 0 ? false : _ref$visible,\n _ref$showHints = _ref.showHints,\n showHints = _ref$showHints === void 0 ? true : _ref$showHints,\n _ref$showFomoCouponCo = _ref.showFomoCouponCounter,\n showFomoCouponCounter = _ref$showFomoCouponCo === void 0 ? true : _ref$showFomoCouponCo,\n title = _ref.title,\n _ref$testDrive = _ref.testDrive,\n testDrive = _ref$testDrive === void 0 ? false : _ref$testDrive,\n assetName = _ref.assetName,\n description = _ref.description,\n feature = _ref.feature,\n onClose = _ref.onClose,\n inContainer = _ref.inContainer,\n inContainerElement = _ref.inContainerElement;\n\n var _getOtherOptionsFromW = getOtherOptionsFromWindow(),\n proUrl = _getOtherOptionsFromW.proUrl,\n hints = _getOtherOptionsFromW.hints;\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n descriptionRef = _useState2[0],\n setDescriptionRef = _useState2[1];\n\n var handleRedirect = useCallback(function () {\n window.open(\"\".concat(proUrl, \"&feature=\").concat(feature, \"&\").concat(IN_APP_FOMO_URL_PARAMETER_TO_DEACTIVATE_WEBSITE_FOMO), \"_blank\").focus();\n onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [onClose]); // Do not automatically scroll / focus the container if `inContainer` is set\n\n useEffect(function () {\n if (inContainer && descriptionRef) {\n (descriptionRef === null || descriptionRef === void 0 ? void 0 : descriptionRef.parentElement.parentElement.previousElementSibling).removeAttribute(\"tabIndex\");\n }\n }, [descriptionRef]);\n var hint = hints === null || hints === void 0 ? void 0 : hints.proDialog; // Do not output the model until the container is ready\n\n if (inContainer && !inContainerElement) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(_Modal, {\n visible: inContainer ? true : visible,\n title: /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(UnlockFilled, null), \"\\xA0\", title, \"\\xA0\", __(\"Get PRO!\")),\n onOk: handleRedirect,\n onCancel: onClose,\n cancelText: __(\"No, not interested...\"),\n okText: __(\"I want to learn more!\"),\n className: \"rcb-pro-modal\",\n width: assetName ? 800 : 700,\n getContainer: inContainer ? inContainerElement : undefined\n }, !!assetName && /*#__PURE__*/React.createElement(\"img\", {\n style: {\n marginTop: 10\n },\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/\".concat(assetName)\n }), /*#__PURE__*/React.createElement(\"div\", {\n style: {\n maxWidth: 600,\n margin: \"auto\"\n },\n ref: setDescriptionRef\n }, /*#__PURE__*/React.createElement(\"p\", null, reactNl2Br(description)), testDrive && /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"Check out this feature with a {{a}}free sandbox{{/a}} before buying!\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://try.devowl.io/?product=RCB\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }))), !!hint && showHints && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n maxWidth: 600,\n margin: \"auto\",\n textAlign: \"left\"\n }\n }, /*#__PURE__*/React.createElement(ProModalHint, hint)), showFomoCouponCounter && /*#__PURE__*/React.createElement(InAppFomoCouponCounter, {\n style: {\n marginBottom: 15\n }\n }));\n};\n\nexport { ProModal };","import _Row from \"antd/es/row\";\nimport _Col from \"antd/es/col\";\nimport _Divider from \"antd/es/divider\";\n\nvar ProModalHint = function ProModalHint(_ref) {\n var title = _ref.title,\n description = _ref.description,\n link = _ref.link,\n linkText = _ref.linkText,\n logo = _ref.logo;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Divider, null, title), /*#__PURE__*/React.createElement(_Row, {\n wrap: false,\n style: {\n marginBottom: 10\n }\n }, /*#__PURE__*/React.createElement(_Col, {\n flex: \"auto\"\n }, !!description && /*#__PURE__*/React.createElement(\"p\", {\n style: {\n margin: 0\n }\n }, /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: description\n }\n }), \"\\xA0\", !!link && !!linkText && /*#__PURE__*/React.createElement(\"a\", {\n href: link,\n target: \"_blank\",\n rel: \"noreferrer\",\n className: \"button-link\"\n }, linkText))), /*#__PURE__*/React.createElement(_Col, {\n flex: \"150px\",\n style: {\n alignSelf: \"center\"\n }\n }, !!logo && /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n style: {\n maxWidth: \"calc(100% - 20px)\",\n height: \"auto\",\n marginLeft: 20\n }\n }))));\n};\n\nexport { ProModalHint };","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport { useProModal } from \"../hooks\";\n\nvar ProTag = function ProTag(_ref) {\n var children = _ref.children,\n _ref$wrapperAttribute = _ref.wrapperAttributes,\n wrapperAttributes = _ref$wrapperAttribute === void 0 ? {} : _ref$wrapperAttribute,\n feature = _objectWithoutProperties(_ref, [\"children\", \"wrapperAttributes\"]);\n\n var _useProModal = useProModal(feature),\n modal = _useProModal.modal,\n tag = _useProModal.tag;\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, modal, /*#__PURE__*/React.createElement(\"span\", wrapperAttributes, tag));\n};\n\nexport { ProTag };","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { useState, useEffect } from \"react\";\n\nfunction useDebounce(value, delay, callback, changed) {\n var _useState = useState(value),\n _useState2 = _slicedToArray(_useState, 2),\n debounce = _useState2[0],\n setDebounce = _useState2[1];\n\n useEffect(function () {\n var handler = setTimeout(function () {\n setDebounce(value);\n }, delay);\n changed === null || changed === void 0 ? void 0 : changed(value);\n return function () {\n clearTimeout(handler);\n };\n }, [value]);\n useEffect(function () {\n callback(debounce);\n }, [debounce]);\n return debounce;\n}\n\nexport { useDebounce };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _Tag from \"antd/es/tag\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { UnlockOutlined } from \"@ant-design/icons\";\nimport { __ } from \"../utils\";\nimport { useStores } from \"../store\";\nimport { useCallback, useMemo, useState } from \"react\";\nimport { ProModal } from \"../components\";\nvar PRO_TAG_BACKGROUND_COLOR = \"#2db7f5\";\n/**\n * Provide a PRO modal when clicking a given button.\n *\n * @param overrideIsPro Allows to override the `isPro` attribute coming from the option store (e. g. for demo environment purposes, try.devowl.io)\n */\n\nfunction useProModal(feature, overrideIsPro) {\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n visible = _useState2[0],\n setVisible = _useState2[1];\n\n var _useStores = useStores(),\n isPro = _useStores.optionStore.others.isPro;\n\n var useIsPro = typeof overrideIsPro === \"boolean\" ? overrideIsPro : isPro;\n var open = useCallback(function (e) {\n setVisible(true);\n e === null || e === void 0 ? void 0 : e.preventDefault();\n }, [setVisible]);\n var tag = useMemo(function () {\n return useIsPro ? null : /*#__PURE__*/React.createElement(_Tag, {\n icon: /*#__PURE__*/React.createElement(UnlockOutlined, null),\n color: PRO_TAG_BACKGROUND_COLOR,\n style: {\n cursor: \"pointer\"\n },\n onClick: open\n }, feature.tagText || __(\"Unlock feature\"));\n }, [open, feature]);\n var modal = useMemo(function () {\n return useIsPro ? null : /*#__PURE__*/React.createElement(ProModal, _extends({\n visible: visible,\n onClose: function onClose() {\n return setVisible(false);\n }\n }, feature));\n }, [visible, setVisible, feature]);\n return {\n isPro: useIsPro,\n tag: tag,\n modal: modal,\n open: open\n };\n}\n\nexport { useProModal, PRO_TAG_BACKGROUND_COLOR };","import { useProgress } from \"@devowl-wp/real-queue\";\nimport { useCallback } from \"react\";\nimport { useStores } from \"../store\";\nimport { SCAN_QUEUE_JOB } from \"../types\";\n\n/**\n * Returns the status / progress of the scanner.\n */\nfunction useScannerProgress(fetchStatusInterval) {\n var fetchAdditionalData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var onCancel = arguments.length > 2 ? arguments[2] : undefined;\n\n var _useStores = useStores(),\n scannerStore = _useStores.scannerStore;\n\n return useProgress({\n type: SCAN_QUEUE_JOB,\n fetchStatusInterval: fetchStatusInterval,\n fetchAdditionalData: fetchAdditionalData,\n onAdditionalData: useCallback(function (_ref) {\n var rcbScanList = _ref[\"rcb-scan-list\"];\n var presets = rcbScanList.presets,\n externalUrls = rcbScanList.externalUrls;\n scannerStore.resultPresetsFromResponse(presets);\n scannerStore.resultExternalUrlsFromResponse(externalUrls);\n }, [scannerStore]),\n onCancel: onCancel\n });\n}\n\nexport { useScannerProgress };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n\nimport { observable, set, runInAction } from \"mobx\";\nimport { getSidebarCustomize } from \"@devowl-wp/customize\";\nvar BannerPreset = (_class = /*#__PURE__*/function () {\n /**\n * When hover the preview card we need to save the available settings.\n */\n function BannerPreset(preset, store) {\n var _this = this;\n\n _classCallCheck(this, BannerPreset);\n\n _initializerDefineProperty(this, \"id\", _descriptor, this);\n\n _initializerDefineProperty(this, \"name\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"needsPro\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"description\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"tags\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n\n this.store = void 0;\n this.resetPreviewInUiSettings = void 0;\n runInAction(function () {\n return set(_this, preset);\n });\n this.store = store;\n }\n\n _createClass(BannerPreset, [{\n key: \"applyInUi\",\n value: function applyInUi() {\n var _this2 = this;\n\n // Check if pro\n if (!this.store.rootStore.optionStore.others.isPro && this.needsPro) {\n return false;\n } // First, save all in our store so the paint is done correctly\n\n\n this.previewInUi(); // Afterwards, save in customize state\n\n setTimeout(function () {\n var customize = getSidebarCustomize();\n\n _this2.store.presetDefaults.forEach(function (defaultValue, key) {\n var setting = customize(key); // Apply it\n\n setting.set(_this2.settings[key] === undefined ? defaultValue : _this2.settings[key]);\n });\n }, 100);\n return true;\n }\n }, {\n key: \"previewInUi\",\n value: function previewInUi() {\n var customize = getSidebarCustomize();\n var presetDefaults = this.store.presetDefaults;\n var _ref = this.store.rootStore.optionStore.others.customizeIdsBanner,\n settings = _ref.settings;\n var batchUpdates = []; // Make it restorable\n\n this.resetPreviewInUiSettings = {};\n\n for (var _i = 0, _Object$keys = Object.keys(settings); _i < _Object$keys.length; _i++) {\n var section = _Object$keys[_i];\n var sectionSettings = settings[section];\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(sectionSettings); _i2 < _Object$keys2.length; _i2++) {\n var _setting = _Object$keys2[_i2];\n var customizeKey = sectionSettings[_setting];\n\n if (!presetDefaults.has(customizeKey)) {\n continue;\n }\n\n this.resetPreviewInUiSettings[customizeKey] = [section, _setting, customize(customizeKey).get()];\n var newValue = Object.prototype.hasOwnProperty.call(this.settings, customizeKey) ? this.settings[customizeKey] : presetDefaults.get(customizeKey);\n batchUpdates.push([section, _setting, newValue]);\n }\n }\n\n BannerPreset.getIframeStore().customizeBannerStore.setBannerFromPreset(batchUpdates);\n }\n }, {\n key: \"resetPreviewInUi\",\n value: function resetPreviewInUi() {\n if (this.resetPreviewInUiSettings) {\n BannerPreset.getIframeStore().customizeBannerStore.setBannerFromPreset(Object.values(this.resetPreviewInUiSettings));\n this.resetPreviewInUiSettings = {};\n }\n }\n }], [{\n key: \"getIframeStore\",\n value: function getIframeStore() {\n try {\n return document.querySelector(\"#customize-preview > iframe\").contentWindow.realCookieBanner_customize_banner.RootStore.get;\n } catch (e) {\n // Element does not yet exist\n return undefined;\n }\n }\n }]);\n\n return BannerPreset;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"name\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"needsPro\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"description\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tags\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n})), _class);\nexport { BannerPreset };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\n\nvar _dec, _class;\n\nimport { ClientCollection, RouteHttpVerb, AbstractPostCollection } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { BlockerModel } from \".\";\nvar BlockerCollection = (_dec = ClientCollection.annotate({\n path: \"/rcb-blocker\",\n singlePath: \"/rcb-blocker/:id\",\n namespace: \"wp/v2\",\n methods: [RouteHttpVerb.GET],\n request: request\n}), _dec(_class = /*#__PURE__*/function (_AbstractPostCollecti) {\n _inherits(BlockerCollection, _AbstractPostCollecti);\n\n var _super = _createSuper(BlockerCollection);\n\n function BlockerCollection(store) {\n var _this;\n\n _classCallCheck(this, BlockerCollection);\n\n _this = _super.call(this);\n _this.store = void 0;\n _this.store = store;\n return _this;\n }\n\n _createClass(BlockerCollection, [{\n key: \"instance\",\n value: function instance(response) {\n return new BlockerModel(this).fromResponse(response);\n }\n }]);\n\n return BlockerCollection;\n}(AbstractPostCollection)) || _class);\nexport { BlockerCollection };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _dec, _class, _class2, _descriptor;\n\nimport { ClientModel, AbstractPost } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { BlockerPreset } from \".\";\nimport { action, computed, observable, reaction, runInAction } from \"mobx\";\nimport { RootStore } from \"../store\";\nvar BlockerModel = (_dec = ClientModel.annotate({\n keyId: \"id\",\n namespace: \"wp/v2\",\n request: request,\n create: {\n path: \"/rcb-blocker\"\n },\n patch: {\n path: \"/rcb-blocker/:id\"\n },\n delete: {\n path: \"/rcb-blocker/:id\"\n }\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractPost) {\n _inherits(BlockerModel, _AbstractPost);\n\n var _super = _createSuper(BlockerModel);\n\n function BlockerModel(collection) {\n var _this;\n\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, BlockerModel);\n\n _this = _super.call(this, collection, data);\n\n _initializerDefineProperty(_this, \"presetModel\", _descriptor, _assertThisInitialized(_this));\n\n reaction(function () {\n var _this$data;\n\n return (_this$data = _this.data) === null || _this$data === void 0 ? void 0 : _this$data.preset;\n }, function (preset) {\n return runInAction(function () {\n _this.presetModel = preset ? new BlockerPreset(preset, RootStore.get.cookieStore) : undefined;\n });\n }, {\n fireImmediately: true\n });\n return _this;\n }\n\n _createClass(BlockerModel, [{\n key: \"hosts\",\n get: function get() {\n var _this$data2;\n\n return (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.meta.hosts.split(\"\\n\");\n }\n }, {\n key: \"tcfVendors\",\n get: function get() {\n var _this$data3;\n\n // In lite version this can be `null`\n if (!((_this$data3 = this.data) !== null && _this$data3 !== void 0 && _this$data3.meta.tcfVendors)) {\n return [];\n }\n\n return this.data.meta.tcfVendors.split(\",\").filter(Boolean).map(Number);\n }\n }, {\n key: \"cookies\",\n get: function get() {\n var _this$data4;\n\n return (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.meta.cookies.split(\",\").filter(Boolean).map(Number);\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.data.title.rendered = name;\n }\n }, {\n key: \"setStatus\",\n value: function setStatus(status) {\n this.data.status = status;\n }\n }, {\n key: \"setDescription\",\n value: function setDescription(purpose) {\n this.data.content.rendered = purpose;\n }\n }, {\n key: \"setMeta\",\n value: function setMeta(meta) {\n this.data.meta = meta;\n }\n }, {\n key: \"transformDataForPatch\",\n value: function transformDataForPatch() {\n var data = _get(_getPrototypeOf(BlockerModel.prototype), \"transformDataForPatch\", this).call(this);\n\n return {\n title: data.title,\n content: data.content,\n status: data.status,\n meta: data.meta,\n slug: data.title\n };\n }\n }, {\n key: \"afterPatch\",\n value: function afterPatch() {\n this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterDelete\",\n value: function afterDelete() {\n this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterPersist\",\n value: function afterPersist() {\n this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }]);\n\n return BlockerModel;\n}(AbstractPost), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"presetModel\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class2.prototype, \"hosts\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"hosts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"tcfVendors\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"tcfVendors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"cookies\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"cookies\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setName\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setStatus\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDescription\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDescription\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setMeta\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMeta\"), _class2.prototype)), _class2)) || _class);\nexport { BlockerModel };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, runInAction, computed, flow } from \"mobx\";\nimport { locationRestPresetsBlockerAttributesGet } from \"../wp-api\";\nimport { request } from \"../utils\";\nvar BlockerPreset = (_class = /*#__PURE__*/function () {\n function BlockerPreset(preset, store) {\n var _this = this;\n\n _classCallCheck(this, BlockerPreset);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"data\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"attributes\", _descriptor3, this);\n\n this.store = void 0;\n this.fetchAttributes = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n this.busy = true;\n _context.next = 4;\n return request({\n location: locationRestPresetsBlockerAttributesGet,\n params: {\n identifier: this.data.identifier\n }\n });\n\n case 4:\n response = _context.sent;\n this.attributes = response;\n _context.next = 12;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](0);\n console.log(_context.t0);\n throw _context.t0;\n\n case 12:\n _context.prev = 12;\n this.busy = false;\n return _context.finish(12);\n\n case 15:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[0, 8, 12, 15]]);\n }));\n runInAction(function () {\n _this.data = preset;\n });\n this.store = store;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(BlockerPreset, [{\n key: \"fullLogoUrl\",\n get: function get() {\n var logoFile = this.data.logoFile;\n var publicUrl = this.store.rootStore.optionStore.publicUrl;\n return logoFile.startsWith(\"http\") ? logoFile : \"\".concat(publicUrl, \"images/logos/\").concat(logoFile);\n }\n }]);\n\n return BlockerPreset;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attributes\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"fullLogoUrl\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"fullLogoUrl\"), _class.prototype)), _class);\nexport { BlockerPreset };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29;\n\nimport { observable, set, runInAction, computed } from \"mobx\";\nvar Consent = (_class = /*#__PURE__*/function () {\n function Consent(consent, store) {\n var _this = this;\n\n _classCallCheck(this, Consent);\n\n _initializerDefineProperty(this, \"id\", _descriptor, this);\n\n _initializerDefineProperty(this, \"plugin_version\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"design_version\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"ipv4\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"ipv6\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"ipv4_hash\", _descriptor6, this);\n\n _initializerDefineProperty(this, \"ipv6_hash\", _descriptor7, this);\n\n _initializerDefineProperty(this, \"uuid\", _descriptor8, this);\n\n _initializerDefineProperty(this, \"previous_decision\", _descriptor9, this);\n\n _initializerDefineProperty(this, \"decision\", _descriptor10, this);\n\n _initializerDefineProperty(this, \"decision_labels\", _descriptor11, this);\n\n _initializerDefineProperty(this, \"created\", _descriptor12, this);\n\n _initializerDefineProperty(this, \"blocker\", _descriptor13, this);\n\n _initializerDefineProperty(this, \"blocker_thumbnail\", _descriptor14, this);\n\n _initializerDefineProperty(this, \"dnt\", _descriptor15, this);\n\n _initializerDefineProperty(this, \"custom_bypass\", _descriptor16, this);\n\n _initializerDefineProperty(this, \"user_country\", _descriptor17, this);\n\n _initializerDefineProperty(this, \"revision_hash\", _descriptor18, this);\n\n _initializerDefineProperty(this, \"revision_independent_hash\", _descriptor19, this);\n\n _initializerDefineProperty(this, \"button_clicked\", _descriptor20, this);\n\n _initializerDefineProperty(this, \"context\", _descriptor21, this);\n\n _initializerDefineProperty(this, \"viewport_width\", _descriptor22, this);\n\n _initializerDefineProperty(this, \"viewport_height\", _descriptor23, this);\n\n _initializerDefineProperty(this, \"viewed_page\", _descriptor24, this);\n\n _initializerDefineProperty(this, \"url_imprint\", _descriptor25, this);\n\n _initializerDefineProperty(this, \"url_privacy_policy\", _descriptor26, this);\n\n _initializerDefineProperty(this, \"forwarded\", _descriptor27, this);\n\n _initializerDefineProperty(this, \"forwarded_blocker\", _descriptor28, this);\n\n _initializerDefineProperty(this, \"tcf_string\", _descriptor29, this);\n\n this.store = void 0;\n this.plain = void 0;\n runInAction(function () {\n return set(_this, consent);\n });\n this.store = store;\n this.plain = consent;\n }\n\n _createClass(Consent, [{\n key: \"revision\",\n get: function get() {\n return this.store.revisions.get(this.revision_hash);\n }\n }, {\n key: \"revision_independent\",\n get: function get() {\n return this.store.revisionsIndependent.get(this.revision_independent_hash);\n }\n }, {\n key: \"custom_bypass_readable\",\n get: function get() {\n var custom_bypass = this.custom_bypass;\n return custom_bypass ? custom_bypass.charAt(0).toUpperCase() + custom_bypass.slice(1) : \"\";\n }\n }, {\n key: \"export\",\n get:\n /**\n * Prepare the entry for JSON export.\n */\n function get() {\n return JSON.parse(JSON.stringify(_objectSpread(_objectSpread({}, this.plain), {}, {\n revision: this.revision.data,\n revision_independent: this.revision_independent.data\n })));\n }\n }, {\n key: \"fetchRevisions\",\n value: function fetchRevisions() {\n return Promise.all([this.store.fetchRevision({\n hash: this.revision_hash\n }), this.store.fetchRevisionIndependent({\n hash: this.revision_independent_hash\n })]);\n }\n }]);\n\n return Consent;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"plugin_version\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"design_version\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ipv4\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"ipv6\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"ipv4_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"ipv6_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uuid\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"previous_decision\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"decision\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"decision_labels\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"created\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"blocker\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"blocker_thumbnail\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"dnt\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"custom_bypass\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"user_country\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"revision_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"revision_independent_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"button_clicked\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"context\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"viewport_width\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"viewport_height\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"viewed_page\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"url_imprint\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"url_privacy_policy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"forwarded\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"forwarded_blocker\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"tcf_string\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"revision\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"revision\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"revision_independent\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"revision_independent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"custom_bypass_readable\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"custom_bypass_readable\"), _class.prototype)), _class);\nexport { Consent };","import _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\n\nvar _dec, _class, _class2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { ClientCollection, RouteHttpVerb, AbstractPostCollection } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { CookieModel } from \".\";\nimport { computed, flow } from \"mobx\";\nimport { locationRestCookiesOrderPut } from \"../wp-api\";\nvar CookieCollection = (_dec = ClientCollection.annotate({\n path: \"/rcb-cookie\",\n singlePath: \"/rcb-cookie/:id\",\n namespace: \"wp/v2\",\n methods: [RouteHttpVerb.GET],\n request: request\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractPostCollecti) {\n _inherits(CookieCollection, _AbstractPostCollecti);\n\n var _super = _createSuper(CookieCollection);\n\n function CookieCollection(store) {\n var _this;\n\n _classCallCheck(this, CookieCollection);\n\n _this = _super.call(this);\n _this.store = void 0;\n _this.orderCookies = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(ids) {\n var i, _iterator, _step, id, cookie;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.busy = true;\n _context.prev = 1;\n _context.next = 4;\n return request({\n location: locationRestCookiesOrderPut,\n request: {\n ids: ids\n }\n });\n\n case 4:\n // Apply the order to existing cached models instead of fetching again\n i = 0;\n _iterator = _createForOfIteratorHelper(ids);\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n id = _step.value;\n cookie = this.entries.get(id);\n cookie.setOrder(i);\n i++;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n throw _context.t0;\n\n case 13:\n _context.prev = 13;\n this.busy = false;\n return _context.finish(13);\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 9, 13, 16]]);\n }));\n _this.store = store;\n return _this;\n }\n\n _createClass(CookieCollection, [{\n key: \"sortedCookies\",\n get: function get() {\n var result = Array.from(this.entries.values());\n result.sort(function (a, b) {\n if (a.data.menu_order < b.data.menu_order) {\n return -1;\n } else if (a.data.menu_order > b.data.menu_order) {\n return 1;\n } else {\n // a.menu_order === b.menu_order\n if (a.key < b.key) {\n return 1;\n } else if (a.key > b.key) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n return result;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }, {\n key: \"instance\",\n value: function instance(response) {\n return new CookieModel(this).fromResponse(response);\n }\n }]);\n\n return CookieCollection;\n}(AbstractPostCollection), (_applyDecoratedDescriptor(_class2.prototype, \"sortedCookies\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortedCookies\"), _class2.prototype)), _class2)) || _class);\nexport { CookieCollection };","import _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\n\nvar _dec, _class, _class2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { ClientCollection, RouteHttpVerb, AbstractCategoryCollection } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { CookieGroupModel } from \".\";\nimport { computed, flow } from \"mobx\";\nimport { locationRestCookieGroupOrderPut } from \"../wp-api\";\nvar CookieGroupCollection = (_dec = ClientCollection.annotate({\n path: \"/rcb-cookie-group\",\n singlePath: \"/rcb-cookie-group/:id\",\n namespace: \"wp/v2\",\n methods: [RouteHttpVerb.GET],\n request: request\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractCategoryColl) {\n _inherits(CookieGroupCollection, _AbstractCategoryColl);\n\n var _super = _createSuper(CookieGroupCollection);\n\n function CookieGroupCollection(store) {\n var _this;\n\n _classCallCheck(this, CookieGroupCollection);\n\n _this = _super.call(this);\n _this.store = void 0;\n _this.orderCookieGroups = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(ids) {\n var i, _iterator, _step, id, group;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.busy = true;\n _context.prev = 1;\n _context.next = 4;\n return request({\n location: locationRestCookieGroupOrderPut,\n request: {\n ids: ids\n }\n });\n\n case 4:\n // Apply the order to existing cached models instead of fetching again\n i = 0;\n _iterator = _createForOfIteratorHelper(ids);\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n id = _step.value;\n group = this.entries.get(id);\n group.setOrder(i);\n i++;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n throw _context.t0;\n\n case 13:\n _context.prev = 13;\n this.busy = false;\n return _context.finish(13);\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 9, 13, 16]]);\n }));\n _this.store = store;\n return _this;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(CookieGroupCollection, [{\n key: \"sortedGroups\",\n get: function get() {\n var result = Array.from(this.entries.values());\n result.sort(function (a, b) {\n if (a.data.meta.order < b.data.meta.order) {\n return -1;\n } else if (a.data.meta.order > b.data.meta.order) {\n return 1;\n } else {\n return 0;\n }\n });\n return result;\n }\n }, {\n key: \"instance\",\n value: function instance(response) {\n return new CookieGroupModel(this).fromResponse(response);\n }\n }]);\n\n return CookieGroupCollection;\n}(AbstractCategoryCollection), (_applyDecoratedDescriptor(_class2.prototype, \"sortedGroups\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortedGroups\"), _class2.prototype)), _class2)) || _class);\nexport { CookieGroupCollection };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _dec, _class, _class2, _descriptor, _descriptor2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { ClientModel, AbstractCategory } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { CookieCollection } from \".\";\nimport { action, observable, runInAction, flow, computed } from \"mobx\";\nvar CookieGroupModel = (_dec = ClientModel.annotate({\n keyId: \"id\",\n namespace: \"wp/v2\",\n request: request,\n create: {\n path: \"/rcb-cookie-group\"\n },\n patch: {\n path: \"/rcb-cookie-group/:id\"\n },\n delete: {\n path: \"/rcb-cookie-group/:id\"\n }\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractCategory) {\n _inherits(CookieGroupModel, _AbstractCategory);\n\n var _super = _createSuper(CookieGroupModel);\n\n function CookieGroupModel(collection) {\n var _this;\n\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, CookieGroupModel);\n\n _this = _super.call(this, collection, data);\n\n _initializerDefineProperty(_this, \"cookies\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"fetchedAllCookies\", _descriptor2, _assertThisInitialized(_this));\n\n _this.fetchCookies = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.cookies.get({\n request: {\n status: [\"draft\", \"publish\", \"private\"]\n },\n params: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n per_page: 100,\n // Fetch all\n \"rcb-cookie-group\": this.key,\n context: \"edit\"\n }\n });\n\n case 2:\n this.fetchedAllCookies = true;\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n runInAction(function () {\n _this.cookies = new CookieCollection(_assertThisInitialized(_this));\n });\n return _this;\n }\n\n _createClass(CookieGroupModel, [{\n key: \"cookiesCount\",\n get: function get() {\n // TODO: this.data.count should return a count also of private cookies\n return this.fetchedAllCookies ? this.cookies.entries.size : this.data.count;\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.data.name = name;\n }\n }, {\n key: \"setDescription\",\n value: function setDescription(description) {\n this.data.description = description;\n }\n }, {\n key: \"setOrder\",\n value: function setOrder(order) {\n this.data.meta.order = order;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }, {\n key: \"afterDelete\",\n value: function afterDelete() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterPatch\",\n value: function afterPatch() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterPersist\",\n value: function afterPersist() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }]);\n\n return CookieGroupModel;\n}(AbstractCategory), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"cookies\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"fetchedAllCookies\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _applyDecoratedDescriptor(_class2.prototype, \"cookiesCount\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"cookiesCount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setName\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDescription\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDescription\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setOrder\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setOrder\"), _class2.prototype)), _class2)) || _class);\nexport { CookieGroupModel };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _dec, _class, _class2, _descriptor;\n\nimport { ClientModel, AbstractPost } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { CookiePreset } from \".\";\nimport { computed, action, observable, runInAction, reaction } from \"mobx\";\nimport { RootStore } from \"../store\";\nvar CookieModel = (_dec = ClientModel.annotate({\n keyId: \"id\",\n namespace: \"wp/v2\",\n request: request,\n create: {\n path: \"/rcb-cookie\"\n },\n patch: {\n path: \"/rcb-cookie/:id\"\n },\n delete: {\n path: \"/rcb-cookie/:id\"\n }\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractPost) {\n _inherits(CookieModel, _AbstractPost);\n\n var _super = _createSuper(CookieModel);\n\n function CookieModel(collection) {\n var _this;\n\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, CookieModel);\n\n _this = _super.call(this, collection, data);\n\n _initializerDefineProperty(_this, \"presetModel\", _descriptor, _assertThisInitialized(_this));\n\n _this.store = void 0;\n reaction(function () {\n var _this$data;\n\n return (_this$data = _this.data) === null || _this$data === void 0 ? void 0 : _this$data.preset;\n }, function (preset) {\n return runInAction(function () {\n _this.presetModel = preset ? new CookiePreset(preset, RootStore.get.cookieStore) : undefined;\n });\n }, {\n fireImmediately: true\n });\n return _this;\n }\n\n _createClass(CookieModel, [{\n key: \"rootStore\",\n get: function get() {\n return this.collection.store.collection.store.rootStore;\n }\n }, {\n key: \"tagManagerSettings\",\n get: function get() {\n var _this$rootStore$optio = this.rootStore.optionStore,\n isPro = _this$rootStore$optio.others.isPro,\n setCookiesViaManager = _this$rootStore$optio.setCookiesViaManager;\n\n if (isPro && setCookiesViaManager !== \"none\") {\n /* Silence is golden... Until you have PRO Version! */\n }\n\n return false;\n }\n }, {\n key: \"technicalDefinitions\",\n get: function get() {\n return JSON.parse(this.data.meta.technicalDefinitions);\n }\n }, {\n key: \"codeDynamics\",\n get: function get() {\n return JSON.parse(this.data.meta.codeDynamics || \"{}\");\n }\n }, {\n key: \"firstTechnicalDefinition\",\n get: function get() {\n var _this$technicalDefini;\n\n return (_this$technicalDefini = this.technicalDefinitions) === null || _this$technicalDefini === void 0 ? void 0 : _this$technicalDefini[0];\n }\n }, {\n key: \"afterPatch\",\n value: function afterPatch() {\n var _this2 = this;\n\n // Remove this cookie from all other groups\n var groups = this.collection.store.collection;\n\n var _this$data$rcbCookie = _slicedToArray(this.data[\"rcb-cookie-group\"], 1),\n thisGroup = _this$data$rcbCookie[0];\n\n groups.entries.forEach(function (group) {\n if (thisGroup !== group.key) {\n group.cookies.entries.delete(_this2.key);\n } else {\n group.cookies.entries.set(_this2.key, _this2);\n }\n });\n this.rootStore.optionStore.fetchCurrentRevision();\n this.rootStore.cookieStore.unassignedCookies.delete(this.key);\n }\n }, {\n key: \"setOrder\",\n value: function setOrder(order) {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n this.data.menu_order = order;\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.data.title.rendered = name;\n }\n }, {\n key: \"setStatus\",\n value: function setStatus(status) {\n this.data.status = status;\n }\n }, {\n key: \"setPurpose\",\n value: function setPurpose(purpose) {\n this.data.content.rendered = purpose;\n }\n }, {\n key: \"setGroup\",\n value: function setGroup(group) {\n this.data[\"rcb-cookie-group\"] = [group];\n }\n }, {\n key: \"setMeta\",\n value: function setMeta(meta) {\n this.data.meta = meta;\n }\n }, {\n key: \"transformDataForPersist\",\n value: function transformDataForPersist() {\n var data = _get(_getPrototypeOf(CookieModel.prototype), \"transformDataForPersist\", this).call(this);\n\n return _objectSpread(_objectSpread({}, data), {}, {\n \"rcb-cookie-group\": [this.collection.store.key]\n });\n }\n }, {\n key: \"transformDataForPatch\",\n value: function transformDataForPatch() {\n var data = _get(_getPrototypeOf(CookieModel.prototype), \"transformDataForPatch\", this).call(this);\n\n return {\n title: data.title,\n content: data.content,\n status: data.status,\n meta: data.meta,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n menu_order: data.menu_order,\n \"rcb-cookie-group\": this.data[\"rcb-cookie-group\"],\n // Force to rewrite slug\n slug: data.title\n };\n }\n }, {\n key: \"afterDelete\",\n value: function afterDelete() {\n this.collection.store.cookies.store.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterPersist\",\n value: function afterPersist() {\n var _this$collection$stor = this.collection.store.cookies.store.collection.store.rootStore,\n optionStore = _this$collection$stor.optionStore,\n checklistStore = _this$collection$stor.checklistStore;\n optionStore.fetchCurrentRevision();\n checklistStore.probablyFetchByChangedItem(\"add-cookie\");\n }\n }]);\n\n return CookieModel;\n}(AbstractPost), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"presetModel\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class2.prototype, \"rootStore\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"rootStore\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"tagManagerSettings\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"tagManagerSettings\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"technicalDefinitions\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"technicalDefinitions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"codeDynamics\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"codeDynamics\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"firstTechnicalDefinition\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"firstTechnicalDefinition\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"afterPatch\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"afterPatch\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setOrder\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setOrder\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setName\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setStatus\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPurpose\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPurpose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setGroup\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setGroup\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setMeta\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMeta\"), _class2.prototype)), _class2)) || _class);\nexport { CookieModel };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, runInAction, computed, flow } from \"mobx\";\nimport { locationRestPresetsCookiesAttributesGet } from \"../wp-api\";\nimport { request } from \"../utils\";\nvar CookiePreset = (_class = /*#__PURE__*/function () {\n function CookiePreset(preset, store) {\n var _this = this;\n\n _classCallCheck(this, CookiePreset);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"data\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"attributes\", _descriptor3, this);\n\n this.store = void 0;\n this.fetchAttributes = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n this.busy = true;\n _context.next = 4;\n return request({\n location: locationRestPresetsCookiesAttributesGet,\n params: {\n identifier: this.data.identifier\n }\n });\n\n case 4:\n response = _context.sent;\n this.attributes = response;\n _context.next = 12;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](0);\n console.log(_context.t0);\n throw _context.t0;\n\n case 12:\n _context.prev = 12;\n this.busy = false;\n return _context.finish(12);\n\n case 15:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[0, 8, 12, 15]]);\n }));\n runInAction(function () {\n _this.data = preset;\n });\n this.store = store;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(CookiePreset, [{\n key: \"fullLogoUrl\",\n get: function get() {\n var logoFile = this.data.logoFile;\n var publicUrl = this.store.rootStore.optionStore.publicUrl;\n return logoFile.startsWith(\"http\") ? logoFile : \"\".concat(publicUrl, \"images/logos/\").concat(logoFile);\n }\n }]);\n\n return CookiePreset;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attributes\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"fullLogoUrl\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"fullLogoUrl\"), _class.prototype)), _class);\nexport { CookiePreset };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\n\nvar Revision = // @observable: We never make changes\nfunction Revision(preset, store) {\n _classCallCheck(this, Revision);\n\n this.data = void 0;\n this.store = void 0;\n this.data = preset;\n this.store = store;\n};\n\nexport { Revision };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\n\nvar RevisionIndependent = // @observable: We never make changes\nfunction RevisionIndependent(preset, store) {\n _classCallCheck(this, RevisionIndependent);\n\n this.data = void 0;\n this.store = void 0;\n this.data = preset;\n this.store = store;\n};\n\nexport { RevisionIndependent };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { computed, flow, observable, runInAction } from \"mobx\";\nimport { locationRestScannerResultExternalPatch } from \"../wp-api\";\nimport { request, __ } from \"../utils\";\nvar ScannerResultExternalUrl = (_class = /*#__PURE__*/function () {\n function ScannerResultExternalUrl(externalUrl, store) {\n var _this = this;\n\n _classCallCheck(this, ScannerResultExternalUrl);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"data\", _descriptor2, this);\n\n this.store = void 0;\n this.ignore = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var state,\n _args = arguments;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n state = _args.length > 1 && _args[1] !== undefined ? _args[1] : true;\n _context.prev = 1;\n _context.next = 4;\n return request({\n location: locationRestScannerResultExternalPatch,\n request: {\n ignored: state\n },\n params: {\n host: this.data.host.replace(/\\./g, \"_\")\n }\n });\n\n case 4:\n this.data.ignored = state;\n _context.next = 11;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n throw _context.t0;\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 7]]);\n }));\n runInAction(function () {\n _this.data = externalUrl;\n });\n this.store = store;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(ScannerResultExternalUrl, [{\n key: \"identifier\",\n get: function get() {\n return this.data.host;\n }\n }, {\n key: \"inactive\",\n get: function get() {\n return this.blockedStatus === \"full\" || this.data.ignored;\n }\n }, {\n key: \"blockedStatus\",\n get: function get() {\n var _this$data = this.data,\n foundCount = _this$data.foundCount,\n blockedCount = _this$data.blockedCount;\n return blockedCount === 0 ? \"none\" : foundCount === blockedCount ? \"full\" : \"partial\";\n }\n }, {\n key: \"blockedStatusText\",\n get: function get() {\n switch (this.blockedStatus) {\n case \"full\":\n return __(\"Fully blocked\");\n\n case \"partial\":\n return __(\"Partially blocked\");\n\n default:\n return __(\"Not blocked\");\n }\n }\n }]);\n\n return ScannerResultExternalUrl;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"identifier\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"identifier\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"inactive\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"inactive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"blockedStatus\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"blockedStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"blockedStatusText\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"blockedStatusText\"), _class.prototype)), _class);\nexport { ScannerResultExternalUrl };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, runInAction, flow, computed } from \"mobx\";\nimport { truncateMiddle } from \"../utils\";\nvar ScannerResultExternalUrlSingle = (_class = /*#__PURE__*/function () {\n function ScannerResultExternalUrlSingle(preset, store) {\n var _this = this;\n\n _classCallCheck(this, ScannerResultExternalUrlSingle);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"data\", _descriptor2, this);\n\n this.store = void 0;\n this.fetchMarkup = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.store.fetchMarkup(this.data.id);\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n runInAction(function () {\n _this.data = preset;\n });\n this.store = store;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(ScannerResultExternalUrlSingle, [{\n key: \"markup\",\n get: function get() {\n return this.store.resultMarkup.get(this.data.id);\n }\n }, {\n key: \"blockedUrlTruncate\",\n get: function get() {\n return truncateMiddle(this.data.blockedUrl, 50, \"[...]\");\n }\n }, {\n key: \"sourceUrlTruncate\",\n get: function get() {\n return truncateMiddle(this.data.sourceUrl, 50, \"[...]\");\n }\n }]);\n\n return ScannerResultExternalUrlSingle;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"markup\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"markup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"blockedUrlTruncate\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"blockedUrlTruncate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sourceUrlTruncate\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"sourceUrlTruncate\"), _class.prototype)), _class);\nexport { ScannerResultExternalUrlSingle };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, runInAction, computed, flow } from \"mobx\";\nimport { request } from \"../utils\";\nimport { locationRestPresetsBlockerAttributesGet } from \"../wp-api\";\nvar ScannerResultPreset = (_class = /*#__PURE__*/function () {\n function ScannerResultPreset(preset, store) {\n var _this = this;\n\n _classCallCheck(this, ScannerResultPreset);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"data\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"attributes\", _descriptor3, this);\n\n this.store = void 0;\n this.fetchAttributes = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n this.busy = true;\n _context.next = 4;\n return request({\n location: locationRestPresetsBlockerAttributesGet,\n params: {\n identifier: this.data.identifier\n }\n });\n\n case 4:\n response = _context.sent;\n this.attributes = response;\n _context.next = 12;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](0);\n console.log(_context.t0);\n throw _context.t0;\n\n case 12:\n _context.prev = 12;\n this.busy = false;\n return _context.finish(12);\n\n case 15:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[0, 8, 12, 15]]);\n }));\n runInAction(function () {\n _this.data = preset;\n });\n this.store = store;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(ScannerResultPreset, [{\n key: \"identifier\",\n get: function get() {\n return this.data.identifier;\n }\n }, {\n key: \"fullLogoUrl\",\n get: function get() {\n var logoFile = this.data.logoFile;\n var publicUrl = this.store.rootStore.optionStore.publicUrl;\n return logoFile.startsWith(\"http\") ? logoFile : \"\".concat(publicUrl, \"images/logos/\").concat(logoFile);\n }\n /**\n * Determines if this preset needs further attention. It is inactive when it e.g. already exists.\n */\n\n }, {\n key: \"inactive\",\n get: function get() {\n return this.data.created;\n }\n }]);\n\n return ScannerResultPreset;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attributes\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"identifier\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"identifier\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fullLogoUrl\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"fullLogoUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"inactive\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"inactive\"), _class.prototype)), _class);\nexport { ScannerResultPreset };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2;\n\nimport { observable, runInAction } from \"mobx\";\nvar TcfFeature = (_class = function TcfFeature(data, special, store) {\n var _this = this;\n\n _classCallCheck(this, TcfFeature);\n\n _initializerDefineProperty(this, \"data\", _descriptor, this);\n\n _initializerDefineProperty(this, \"special\", _descriptor2, this);\n\n this.store = void 0;\n runInAction(function () {\n _this.special = special;\n _this.data = data;\n });\n this.store = store;\n}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"special\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n})), _class);\nexport { TcfFeature };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2;\n\nimport { observable, runInAction } from \"mobx\";\nvar TcfPurpose = (_class = function TcfPurpose(data, special, store) {\n var _this = this;\n\n _classCallCheck(this, TcfPurpose);\n\n _initializerDefineProperty(this, \"data\", _descriptor, this);\n\n _initializerDefineProperty(this, \"special\", _descriptor2, this);\n\n this.store = void 0;\n runInAction(function () {\n _this.special = special;\n _this.data = data;\n });\n this.store = store;\n}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"special\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n})), _class);\nexport { TcfPurpose };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor;\n\nimport { computed, observable, runInAction } from \"mobx\";\nimport { ETcfGvlDisclosureType } from \"@devowl-wp/real-cookie-banner-backend/src/types/service/tcf\";\nvar TcfVendor = (_class = /*#__PURE__*/function () {\n function TcfVendor(data, store) {\n var _this = this;\n\n _classCallCheck(this, TcfVendor);\n\n _initializerDefineProperty(this, \"data\", _descriptor, this);\n\n this.store = void 0;\n runInAction(function () {\n _this.data = data;\n });\n this.store = store;\n }\n\n _createClass(TcfVendor, [{\n key: \"vendorConfiguration\",\n get:\n /**\n * Get existing vendor configuration for this vendor.\n */\n function get() {\n var _iterator = _createForOfIteratorHelper(this.store.vendorConfigurations.entries.values()),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var c = _step.value;\n\n if (c.vendorModel.data.id === this.data.id) {\n return c;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return undefined;\n }\n }, {\n key: \"deviceStorageDisclosure\",\n get: function get() {\n var _this$data = this.data,\n usesCookies = _this$data.usesCookies,\n cookieMaxAgeSeconds = _this$data.cookieMaxAgeSeconds,\n cookieRefresh = _this$data.cookieRefresh,\n usesNonCookieAccess = _this$data.usesNonCookieAccess,\n deviceStorageDisclosure = _this$data.deviceStorageDisclosure;\n var result = deviceStorageDisclosure !== null && deviceStorageDisclosure !== void 0 && deviceStorageDisclosure.disclosures.length ? _toConsumableArray(deviceStorageDisclosure.disclosures) : []; // Include implicit device storage into table\n\n if (usesNonCookieAccess) {\n result.unshift({\n type: ETcfGvlDisclosureType.Web,\n identifier: \"*\",\n purposes: undefined,\n cookieRefresh: undefined,\n domain: \"*\",\n maxAgeSeconds: null\n });\n }\n\n if (usesCookies) {\n result.unshift({\n type: ETcfGvlDisclosureType.Cookie,\n identifier: \"*\",\n purposes: undefined,\n cookieRefresh: cookieRefresh,\n domain: \"*\",\n maxAgeSeconds: cookieMaxAgeSeconds\n });\n }\n\n return result;\n }\n }, {\n key: \"allPurposes\",\n get: function get() {\n return [].concat(_toConsumableArray(this.legIntPurposes), _toConsumableArray(this.purposes), _toConsumableArray(this.specialPurposes)).filter(Boolean);\n }\n }, {\n key: \"allFeatures\",\n get: function get() {\n return [].concat(_toConsumableArray(this.features), _toConsumableArray(this.specialFeatures)).filter(Boolean);\n }\n /**\n * Calculate a map of restrictions for this vendor. This can be used to make a form\n * configurable depending on the current vendor.\n */\n\n }, {\n key: \"restrictivePurposes\",\n get: function get() {\n var result = {\n normal: {}\n };\n\n for (var _i = 0, _arr = [].concat(_toConsumableArray(this.legIntPurposes), _toConsumableArray(this.purposes)); _i < _arr.length; _i++) {\n var purpose = _arr[_i];\n result.normal[purpose.data.id.toString()] = {\n enabled: true,\n legInt: this.legIntPurposes.indexOf(purpose) > -1 && !purpose.special ? \"yes\" : \"no\"\n };\n }\n\n return result;\n }\n /**\n * Map the integers to valid declaration objects.\n */\n\n }, {\n key: \"purposes\",\n get: function get() {\n var _this$data2,\n _this2 = this;\n\n return (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.purposes.map(function (id) {\n return _this2.store.purposes.get(\"\".concat(id));\n });\n }\n }, {\n key: \"legIntPurposes\",\n get: function get() {\n var _this$data3,\n _this3 = this;\n\n return (_this$data3 = this.data) === null || _this$data3 === void 0 ? void 0 : _this$data3.legIntPurposes.map(function (id) {\n return _this3.store.purposes.get(\"\".concat(id));\n });\n }\n }, {\n key: \"flexiblePurposes\",\n get: function get() {\n var _this$data4,\n _this4 = this;\n\n return (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.flexiblePurposes.map(function (id) {\n return _this4.store.purposes.get(\"\".concat(id));\n });\n }\n }, {\n key: \"specialPurposes\",\n get: function get() {\n var _this$data5,\n _this5 = this;\n\n return (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.specialPurposes.map(function (id) {\n return _this5.store.specialPurposes.get(\"\".concat(id));\n });\n }\n }, {\n key: \"features\",\n get: function get() {\n var _this$data6,\n _this6 = this;\n\n return (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.features.map(function (id) {\n return _this6.store.features.get(\"\".concat(id));\n });\n }\n }, {\n key: \"specialFeatures\",\n get: function get() {\n var _this$data7,\n _this7 = this;\n\n return (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.specialFeatures.map(function (id) {\n return _this7.store.specialFeatures.get(\"\".concat(id));\n });\n }\n }]);\n\n return TcfVendor;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"vendorConfiguration\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"vendorConfiguration\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deviceStorageDisclosure\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"deviceStorageDisclosure\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allPurposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"allPurposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allFeatures\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"allFeatures\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"restrictivePurposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"restrictivePurposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"purposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"purposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"legIntPurposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"legIntPurposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"flexiblePurposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"flexiblePurposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"specialPurposes\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"specialPurposes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"features\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"features\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"specialFeatures\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"specialFeatures\"), _class.prototype)), _class);\nexport { TcfVendor };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\n\nvar _dec, _class;\n\nimport { ClientCollection, RouteHttpVerb, AbstractPostCollection } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { TcfVendorConfigurationModel } from \".\";\nvar TcfVendorConfigurationCollection = (_dec = ClientCollection.annotate({\n path: \"/rcb-tcf-vendor-conf\",\n singlePath: \"/rcb-tcf-vendor-conf/:id\",\n namespace: \"wp/v2\",\n methods: [RouteHttpVerb.GET],\n request: request\n}), _dec(_class = /*#__PURE__*/function (_AbstractPostCollecti) {\n _inherits(TcfVendorConfigurationCollection, _AbstractPostCollecti);\n\n var _super = _createSuper(TcfVendorConfigurationCollection);\n\n function TcfVendorConfigurationCollection(store) {\n var _this;\n\n _classCallCheck(this, TcfVendorConfigurationCollection);\n\n _this = _super.call(this);\n _this.store = void 0;\n _this.store = store;\n return _this;\n }\n\n _createClass(TcfVendorConfigurationCollection, [{\n key: \"instance\",\n value: function instance(response) {\n return new TcfVendorConfigurationModel(this).fromResponse(response);\n }\n }]);\n\n return TcfVendorConfigurationCollection;\n}(AbstractPostCollection)) || _class);\nexport { TcfVendorConfigurationCollection };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _dec, _class, _class2, _descriptor;\n\nimport { ClientModel, AbstractPost } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { action, computed, observable, reaction, runInAction } from \"mobx\";\nimport { TcfVendor } from \"./tcfVendor\";\nimport $ from \"jquery\";\nvar TcfVendorConfigurationModel = (_dec = ClientModel.annotate({\n keyId: \"id\",\n namespace: \"wp/v2\",\n request: request,\n create: {\n path: \"/rcb-tcf-vendor-conf\"\n },\n patch: {\n path: \"/rcb-tcf-vendor-conf/:id\"\n },\n delete: {\n path: \"/rcb-tcf-vendor-conf/:id\"\n }\n}), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractPost) {\n _inherits(TcfVendorConfigurationModel, _AbstractPost);\n\n var _super = _createSuper(TcfVendorConfigurationModel);\n\n function TcfVendorConfigurationModel(collection) {\n var _this;\n\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, TcfVendorConfigurationModel);\n\n _this = _super.call(this, collection, data);\n\n _initializerDefineProperty(_this, \"vendorModel\", _descriptor, _assertThisInitialized(_this));\n\n reaction(function () {\n return _this.data.vendor;\n }, function (vendor) {\n return runInAction(function () {\n if (vendor) {\n var vendors = _this.collection.store.vendors;\n var vendorId = vendor.id.toString();\n var existing = vendors.get(vendorId);\n\n if (!existing) {\n existing = new TcfVendor(vendor, _this.collection.store);\n vendors.set(vendorId, existing);\n }\n\n _this.vendorModel = existing;\n }\n });\n }, {\n fireImmediately: true\n }); // Automatically set the vendor model (e.g. newly saved configuration)\n\n reaction(function () {\n var _this$data$meta;\n\n return (_this$data$meta = _this.data.meta) === null || _this$data$meta === void 0 ? void 0 : _this$data$meta.vendorId;\n }, function (vendorId) {\n if (vendorId) {\n _this.vendorModel = _this.collection.store.vendors.get(vendorId.toString());\n }\n }, {\n fireImmediately: true\n });\n return _this;\n }\n\n _createClass(TcfVendorConfigurationModel, [{\n key: \"hasVendor\",\n get:\n /**\n * In some cases, vendors can be abandoned by the GVL.\n */\n function get() {\n return !!this.vendorModel;\n }\n }, {\n key: \"restrictivePurposes\",\n get: function get() {\n var _this$vendorModel, _this$vendorModel2;\n\n // Fallback to original if we have changed to `global`\n var disableRestrictivePurposes = this.collection.store.rootStore.optionStore.tcfScopeOfConsent === \"global\";\n var originalRestrictivePurposes = ((_this$vendorModel = this.vendorModel) === null || _this$vendorModel === void 0 ? void 0 : _this$vendorModel.restrictivePurposes) || {\n normal: {}\n };\n\n if (disableRestrictivePurposes) {\n return originalRestrictivePurposes;\n }\n\n var result = JSON.parse(this.data.meta.restrictivePurposes); // Merge with original vendor purposes so all are listed\n\n return $.extend(true, {}, ((_this$vendorModel2 = this.vendorModel) === null || _this$vendorModel2 === void 0 ? void 0 : _this$vendorModel2.restrictivePurposes) || {}, result);\n }\n }, {\n key: \"stats\",\n get: function get() {\n var _this$vendorModel3;\n\n var normal = this.restrictivePurposes.normal;\n\n var arr = _toConsumableArray(Object.values(normal));\n\n return {\n activePurposes: arr.filter(function (_ref) {\n var enabled = _ref.enabled;\n return enabled;\n }).length,\n legIntPurposes: arr.filter(function (_ref2) {\n var enabled = _ref2.enabled,\n legInt = _ref2.legInt;\n return enabled && legInt === \"yes\";\n }).length,\n activeFeatures: ((_this$vendorModel3 = this.vendorModel) === null || _this$vendorModel3 === void 0 ? void 0 : _this$vendorModel3.allFeatures.length) || 0\n };\n }\n }, {\n key: \"setStatus\",\n value: function setStatus(status) {\n this.data.status = status;\n }\n }, {\n key: \"setMeta\",\n value: function setMeta(meta) {\n this.data.meta = meta;\n }\n }, {\n key: \"transformDataForPatch\",\n value: function transformDataForPatch() {\n var data = _get(_getPrototypeOf(TcfVendorConfigurationModel.prototype), \"transformDataForPatch\", this).call(this);\n\n return {\n status: data.status,\n meta: data.meta\n };\n }\n }, {\n key: \"afterPatch\",\n value: function afterPatch() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterDelete\",\n value: function afterDelete() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }, {\n key: \"afterPersist\",\n value: function afterPersist() {\n this.collection.store.rootStore.optionStore.fetchCurrentRevision();\n }\n }]);\n\n return TcfVendorConfigurationModel;\n}(AbstractPost), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"vendorModel\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class2.prototype, \"hasVendor\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"hasVendor\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"restrictivePurposes\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"restrictivePurposes\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"stats\", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, \"stats\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setStatus\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setMeta\", [action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMeta\"), _class2.prototype)), _class2)) || _class);\nexport { TcfVendorConfigurationModel };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, flow, computed } from \"mobx\";\nimport { BaseOptions } from \"@devowl-wp/utils\";\nimport { locationRestChecklistGet, locationRestChecklistPut } from \"../wp-api\";\nimport { request } from \"../utils\";\nvar ChecklistStore = (_class = /*#__PURE__*/function (_BaseOptions) {\n _inherits(ChecklistStore, _BaseOptions);\n\n var _super = _createSuper(ChecklistStore);\n\n function ChecklistStore(rootStore) {\n var _this;\n\n _classCallCheck(this, ChecklistStore);\n\n _this = _super.call(this);\n\n _initializerDefineProperty(_this, \"busyChecklist\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"checklist\", _descriptor2, _assertThisInitialized(_this));\n\n _this.rootStore = void 0;\n _this.probablyFetchByChangedItem = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(itemId, force) {\n var useItemIds;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!force) {\n _context.next = 4;\n break;\n }\n\n _context.next = 3;\n return this.fetchChecklist();\n\n case 3:\n return _context.abrupt(\"return\");\n\n case 4:\n useItemIds = !Array.isArray(itemId) ? [itemId] : itemId;\n\n if (!(this.items.filter(function (_ref) {\n var id = _ref.id,\n checked = _ref.checked;\n return useItemIds.indexOf(id) > -1 && !checked;\n }).length > 0)) {\n _context.next = 8;\n break;\n }\n\n _context.next = 8;\n return this.fetchChecklist();\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n _this.fetchChecklist = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.busyChecklist = true;\n _context2.prev = 1;\n _context2.next = 4;\n return request({\n location: locationRestChecklistGet,\n params: {\n _wp_http_referer: window.location.href\n }\n });\n\n case 4:\n this.checklist = _context2.sent;\n _context2.next = 11;\n break;\n\n case 7:\n _context2.prev = 7;\n _context2.t0 = _context2[\"catch\"](1);\n console.log(_context2.t0);\n throw _context2.t0;\n\n case 11:\n _context2.prev = 11;\n this.busyChecklist = false;\n return _context2.finish(11);\n\n case 14:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[1, 7, 11, 14]]);\n }));\n _this.toggleChecklistItem = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id, state) {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n this.busyChecklist = true;\n _context3.prev = 1;\n _context3.next = 4;\n return request({\n location: locationRestChecklistPut,\n request: {\n state: state\n },\n params: {\n id: id,\n _wp_http_referer: window.location.href\n }\n });\n\n case 4:\n this.checklist = _context3.sent;\n _context3.next = 11;\n break;\n\n case 7:\n _context3.prev = 7;\n _context3.t0 = _context3[\"catch\"](1);\n console.log(_context3.t0);\n throw _context3.t0;\n\n case 11:\n _context3.prev = 11;\n this.busyChecklist = false;\n return _context3.finish(11);\n\n case 14:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[1, 7, 11, 14]]);\n }));\n _this.rootStore = rootStore;\n return _this;\n }\n\n _createClass(ChecklistStore, [{\n key: \"items\",\n get: function get() {\n var _this2 = this;\n\n return this.checklist && Object.keys(this.checklist.items).map(function (id) {\n return _objectSpread({\n id: id\n }, _this2.checklist.items[id]);\n }) || [];\n }\n }, {\n key: \"completed\",\n get: function get() {\n return this.items.filter(function (_ref2) {\n var checked = _ref2.checked;\n return checked;\n });\n }\n }, {\n key: \"checkable\",\n get: function get() {\n var isPro = this.rootStore.optionStore.others.isPro;\n return this.items.filter(function (_ref3) {\n var needsPro = _ref3.needsPro;\n return !needsPro || isPro && needsPro;\n });\n }\n }, {\n key: \"done\",\n get: function get() {\n var _this$checklist;\n\n return this.completed.length >= this.checkable.length || !!((_this$checklist = this.checklist) !== null && _this$checklist !== void 0 && _this$checklist.dismissed);\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }]);\n\n return ChecklistStore;\n}(BaseOptions), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busyChecklist\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"checklist\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"items\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"items\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"completed\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"completed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkable\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"checkable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"done\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"done\"), _class.prototype)), _class);\nexport { ChecklistStore };","import _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, flow, action, runInAction } from \"mobx\";\nimport { BaseOptions } from \"@devowl-wp/utils\";\nimport { request } from \"../utils\";\nimport { locationRestRevisionGet, locationRestRevisionIndependentGet, locationRestConsentAllGet, locationRestConsentAllDelete, locationRestConsentRefererGet } from \"../wp-api\";\nimport { Consent, Revision, RevisionIndependent } from \"../models\";\nvar DATE_FORMAT = \"YYYY-MM-DD\";\nvar ConsentStore = (_class = /*#__PURE__*/function (_BaseOptions) {\n _inherits(ConsentStore, _BaseOptions);\n\n var _super = _createSuper(ConsentStore);\n\n /**\n * Current visible page in Consent tab\n */\n function ConsentStore(rootStore) {\n var _this;\n\n _classCallCheck(this, ConsentStore);\n\n _this = _super.call(this);\n\n _initializerDefineProperty(_this, \"busyConsent\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"busyReferer\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"count\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"perPage\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"offset\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"pageCollection\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"revisions\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"revisionsIndependent\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"referer\", _descriptor9, _assertThisInitialized(_this));\n\n _this.filters = observable.object({\n page: 1,\n dates: [undefined, undefined],\n context: undefined,\n referer: undefined,\n ip: undefined,\n uuid: undefined\n }, {}, {\n deep: false\n });\n _this.rootStore = void 0;\n _this.fetchAll = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this$filters, page, referer, ip, uuid, context, dates, _yield$request, count, items, _iterator, _step, item;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.busyConsent = true;\n _context.prev = 1;\n _this$filters = this.filters, page = _this$filters.page, referer = _this$filters.referer, ip = _this$filters.ip, uuid = _this$filters.uuid, context = _this$filters.context;\n dates = this.filters.dates.map(function (m) {\n return m ? m.format(DATE_FORMAT) : \"\";\n });\n _context.next = 6;\n return request({\n location: locationRestConsentAllGet,\n params: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n per_page: this.perPage,\n offset: (page - 1) * this.perPage,\n from: dates[0],\n to: dates[1],\n ip: ip,\n uuid: uuid,\n referer: referer,\n context: context\n }\n });\n\n case 6:\n _yield$request = _context.sent;\n count = _yield$request.count;\n items = _yield$request.items;\n this.count = count;\n this.pageCollection.clear();\n _iterator = _createForOfIteratorHelper(items);\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n item = _step.value;\n this.pageCollection.set(item.id, new Consent(item, this));\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n _context.next = 19;\n break;\n\n case 15:\n _context.prev = 15;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n throw _context.t0;\n\n case 19:\n _context.prev = 19;\n this.busyConsent = false;\n return _context.finish(19);\n\n case 22:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 15, 19, 22]]);\n }));\n _this.fetchRevision = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(params) {\n var response;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return request({\n location: locationRestRevisionGet,\n params: params\n });\n\n case 3:\n response = _context2.sent;\n this.revisions.set(params.hash, new Revision(response, this));\n _context2.next = 11;\n break;\n\n case 7:\n _context2.prev = 7;\n _context2.t0 = _context2[\"catch\"](0);\n console.log(_context2.t0);\n throw _context2.t0;\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[0, 7]]);\n }));\n _this.fetchRevisionIndependent = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(params) {\n var response;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return request({\n location: locationRestRevisionIndependentGet,\n params: params\n });\n\n case 3:\n response = _context3.sent;\n this.revisionsIndependent.set(params.hash, new RevisionIndependent(response, this));\n _context3.next = 11;\n break;\n\n case 7:\n _context3.prev = 7;\n _context3.t0 = _context3[\"catch\"](0);\n console.log(_context3.t0);\n throw _context3.t0;\n\n case 11:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[0, 7]]);\n }));\n _this.fetchReferer = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(params) {\n var response;\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n this.busyReferer = true;\n _context4.prev = 1;\n _context4.next = 4;\n return request({\n location: locationRestConsentRefererGet,\n params: params\n });\n\n case 4:\n response = _context4.sent;\n this.referer = response.items;\n _context4.next = 12;\n break;\n\n case 8:\n _context4.prev = 8;\n _context4.t0 = _context4[\"catch\"](1);\n console.log(_context4.t0);\n throw _context4.t0;\n\n case 12:\n _context4.prev = 12;\n this.busyReferer = false;\n return _context4.finish(12);\n\n case 15:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[1, 8, 12, 15]]);\n }));\n _this.deleteAll = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {\n return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.busyConsent = true;\n _context5.prev = 1;\n _context5.next = 4;\n return request({\n location: locationRestConsentAllDelete\n });\n\n case 4:\n this.applyPage(0);\n _context5.next = 7;\n return this.fetchAll();\n\n case 7:\n _context5.next = 13;\n break;\n\n case 9:\n _context5.prev = 9;\n _context5.t0 = _context5[\"catch\"](1);\n console.log(_context5.t0);\n throw _context5.t0;\n\n case 13:\n _context5.prev = 13;\n this.busyConsent = false;\n return _context5.finish(13);\n\n case 16:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this, [[1, 9, 13, 16]]);\n }));\n _this.rootStore = rootStore;\n runInAction(function () {\n _this.filters.context = _this.rootStore.optionStore.others.context;\n });\n return _this;\n }\n /**\n * This action does not actually refetch the list, you need to act on your components!\n */\n\n\n _createClass(ConsentStore, [{\n key: \"applyPage\",\n value: function applyPage(page) {\n this.filters.page = page;\n }\n /**\n * This action does not actually refetch the stats, you need to act on your components!\n *\n * @param dates\n */\n\n }, {\n key: \"applyDates\",\n value: function applyDates(dates) {\n this.filters.dates = dates;\n }\n /**\n * This action does not actually refetch the stats, you need to act on your components!\n *\n * @param context\n */\n\n }, {\n key: \"applyContext\",\n value: function applyContext(context) {\n this.filters.context = context;\n }\n /**\n * This action does not actually refetch the list, you need to act on your components!\n */\n\n }, {\n key: \"applyReferer\",\n value: function applyReferer(referer) {\n this.filters.referer = referer;\n }\n /**\n * This action does not actually refetch the list, you need to act on your components!\n */\n\n }, {\n key: \"applyIp\",\n value: function applyIp(ip) {\n this.filters.ip = ip;\n }\n /**\n * This action does not actually refetch the list, you need to act on your components!\n */\n\n }, {\n key: \"applyUuid\",\n value: function applyUuid(uuid) {\n this.filters.uuid = uuid;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }]);\n\n return ConsentStore;\n}(BaseOptions), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busyConsent\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"busyReferer\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"count\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"perPage\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 50;\n }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"offset\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pageCollection\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"revisions\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"revisionsIndependent\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"referer\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n}), _applyDecoratedDescriptor(_class.prototype, \"applyPage\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyDates\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyDates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyContext\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyContext\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyReferer\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyReferer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyIp\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyIp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyUuid\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"applyUuid\"), _class.prototype)), _class);\nexport { ConsentStore };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, flow, computed, runInAction } from \"mobx\";\nimport { CookieGroupCollection, BlockerCollection, CookiePreset, BlockerPreset } from \"../models\";\nimport { locationRestPresetsBlockerGet, locationRestPresetsCookiesGet, locationRestCookieUnassignedGet } from \"../wp-api\";\nimport { request } from \"../utils\";\nvar CookieStore = (_class = /*#__PURE__*/function () {\n function CookieStore(rootStore) {\n var _this = this;\n\n _classCallCheck(this, CookieStore);\n\n _initializerDefineProperty(this, \"busy\", _descriptor, this);\n\n _initializerDefineProperty(this, \"groups\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"unassignedCookies\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"blockers\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"presetsBlocker\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"busyPresetsBlocker\", _descriptor6, this);\n\n _initializerDefineProperty(this, \"presetsCookie\", _descriptor7, this);\n\n _initializerDefineProperty(this, \"busyPresetsCookie\", _descriptor8, this);\n\n _initializerDefineProperty(this, \"fetchedAllBlockers\", _descriptor9, this);\n\n this.rootStore = void 0;\n this.fetchGroups = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.groups.get({\n params: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n per_page: 100\n }\n });\n\n case 2:\n _context.next = 4;\n return this.fetchUnassignedCookies();\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n this.fetchUnassignedCookies = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var items, _i, _Object$values, item;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return request({\n location: locationRestCookieUnassignedGet\n });\n\n case 3:\n items = _context2.sent;\n\n // Save presets as object\n for (_i = 0, _Object$values = Object.values(items); _i < _Object$values.length; _i++) {\n item = _Object$values[_i];\n this.unassignedCookies.set(item.id, item);\n }\n\n _context2.next = 11;\n break;\n\n case 7:\n _context2.prev = 7;\n _context2.t0 = _context2[\"catch\"](0);\n console.log(_context2.t0);\n throw _context2.t0;\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[0, 7]]);\n }));\n this.fetchBlockers = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return this.blockers.get({\n request: {\n status: [\"draft\", \"publish\", \"private\"]\n },\n params: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n per_page: 100,\n // Fetch all\n context: \"edit\"\n }\n });\n\n case 2:\n this.fetchedAllBlockers = true;\n\n case 3:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n this.fetchPresetsBlocker = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {\n var _yield$request, items, _i2, _Object$keys, pid;\n\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n this.busyPresetsBlocker = true;\n _context4.prev = 1;\n _context4.next = 4;\n return request({\n location: locationRestPresetsBlockerGet\n });\n\n case 4:\n _yield$request = _context4.sent;\n items = _yield$request.items;\n\n // Save presets as object\n for (_i2 = 0, _Object$keys = Object.keys(items); _i2 < _Object$keys.length; _i2++) {\n pid = _Object$keys[_i2];\n this.presetsBlocker.set(pid, new BlockerPreset(items[pid], this));\n }\n\n _context4.next = 13;\n break;\n\n case 9:\n _context4.prev = 9;\n _context4.t0 = _context4[\"catch\"](1);\n console.log(_context4.t0);\n throw _context4.t0;\n\n case 13:\n _context4.prev = 13;\n this.busyPresetsBlocker = false;\n return _context4.finish(13);\n\n case 16:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[1, 9, 13, 16]]);\n }));\n this.fetchPresetsCookie = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {\n var _yield$request2, items, _i3, _Object$keys2, pid;\n\n return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.busyPresetsCookie = true;\n _context5.prev = 1;\n _context5.next = 4;\n return request({\n location: locationRestPresetsCookiesGet\n });\n\n case 4:\n _yield$request2 = _context5.sent;\n items = _yield$request2.items;\n\n // Save presets as object\n for (_i3 = 0, _Object$keys2 = Object.keys(items); _i3 < _Object$keys2.length; _i3++) {\n pid = _Object$keys2[_i3];\n this.presetsCookie.set(pid, new CookiePreset(items[pid], this));\n }\n\n _context5.next = 13;\n break;\n\n case 9:\n _context5.prev = 9;\n _context5.t0 = _context5[\"catch\"](1);\n console.log(_context5.t0);\n throw _context5.t0;\n\n case 13:\n _context5.prev = 13;\n this.busyPresetsCookie = false;\n return _context5.finish(13);\n\n case 16:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this, [[1, 9, 13, 16]]);\n }));\n this.rootStore = rootStore;\n runInAction(function () {\n _this.groups = new CookieGroupCollection(_this);\n _this.blockers = new BlockerCollection(_this);\n });\n }\n\n _createClass(CookieStore, [{\n key: \"blockersCount\",\n get: function get() {\n return this.fetchedAllBlockers ? this.blockers.entries.size : this.rootStore.optionStore.allBlockerCount;\n }\n }, {\n key: \"cookiesCount\",\n get: function get() {\n return Array.from(this.groups.entries.values()).map(function (_ref) {\n var cookiesCount = _ref.cookiesCount;\n return cookiesCount;\n }).reduce(function (total, num) {\n return total + num;\n }, 0);\n }\n }, {\n key: \"essentialGroup\",\n get: function get() {\n if (this.groups.entries.size === 0) {\n return undefined;\n }\n\n var it = this.groups.entries.values();\n var group;\n\n while (group = it.next().value) {\n if (group.data.slug === this.rootStore.optionStore.others.essentialGroup) {\n break;\n }\n }\n\n return group;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }]);\n\n return CookieStore;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"groups\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"unassignedCookies\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"blockers\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"presetsBlocker\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"busyPresetsBlocker\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"presetsCookie\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"busyPresetsCookie\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"fetchedAllBlockers\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _applyDecoratedDescriptor(_class.prototype, \"blockersCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"blockersCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cookiesCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"cookiesCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"essentialGroup\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"essentialGroup\"), _class.prototype)), _class);\nexport { CookieStore };","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { action, observable, flow, runInAction } from \"mobx\";\nimport { locationRestPresetsBannerGet } from \"../wp-api\";\nimport { request } from \"../utils\";\nimport { BannerPreset } from \"../models\";\nimport { getSidebarCustomize } from \"@devowl-wp/customize\";\nvar CustomizeBannerStore = (_class = /*#__PURE__*/function () {\n function CustomizeBannerStore(rootStore) {\n _classCallCheck(this, CustomizeBannerStore);\n\n _initializerDefineProperty(this, \"visible\", _descriptor, this);\n\n _initializerDefineProperty(this, \"animationVisible\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"individualPrivacyOpen\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"previewCheckboxActiveState\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"busyPresets\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"presets\", _descriptor6, this);\n\n this.rootStore = void 0;\n this.presetConstants = new Map();\n this.presetDefaults = new Map();\n this.debounceFromCustomize = {};\n this.fetchPresets = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _yield$request, defaults, constants, items, _i, _Object$keys, did, _i2, _Object$keys2, cid, _i3, _Object$keys3, pid;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.busyPresets = true;\n _context.prev = 1;\n _context.next = 4;\n return request({\n location: locationRestPresetsBannerGet\n });\n\n case 4:\n _yield$request = _context.sent;\n defaults = _yield$request.defaults;\n constants = _yield$request.constants;\n items = _yield$request.items;\n\n // Save defaults\n for (_i = 0, _Object$keys = Object.keys(defaults); _i < _Object$keys.length; _i++) {\n did = _Object$keys[_i];\n this.presetDefaults.set(did, defaults[did]);\n } // Save constants\n\n\n for (_i2 = 0, _Object$keys2 = Object.keys(constants); _i2 < _Object$keys2.length; _i2++) {\n cid = _Object$keys2[_i2];\n this.presetConstants.set(cid, constants[cid]);\n } // Save presets as object\n\n\n for (_i3 = 0, _Object$keys3 = Object.keys(items); _i3 < _Object$keys3.length; _i3++) {\n pid = _Object$keys3[_i3];\n this.presets.set(pid, new BannerPreset(_objectSpread({\n id: pid\n }, items[pid]), this));\n }\n\n _context.next = 17;\n break;\n\n case 13:\n _context.prev = 13;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n throw _context.t0;\n\n case 17:\n _context.prev = 17;\n this.busyPresets = false;\n return _context.finish(17);\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 13, 17, 20]]);\n }));\n this.rootStore = rootStore;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(CustomizeBannerStore, [{\n key: \"setBannerFromCustomize\",\n value: function setBannerFromCustomize(section, setting, value) {\n var _this = this;\n\n var maybeDebounce = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n var customizeValuesBanner = this.rootStore.optionStore.others.customizeValuesBanner; // Apply debounce for specific settings\n\n var debounceSetting = setting.toString();\n\n if (maybeDebounce && [\"css\", \"animationInDuration\", \"animationOutDuration\"].indexOf(debounceSetting) > -1) {\n clearTimeout(this.debounceFromCustomize[debounceSetting]);\n this.debounceFromCustomize[debounceSetting] = setTimeout(function () {\n return _this.setBannerFromCustomize(section, setting, value, false);\n }, 500);\n } else {\n var currentValue = customizeValuesBanner[section][setting];\n customizeValuesBanner[section][setting] = value; // When we want to customize the animation out, let's simulate a \"hide\"\n\n if (debounceSetting.startsWith(\"animationOut\") && currentValue !== value) {\n this.forceAnimationOutSimulation();\n }\n }\n }\n }, {\n key: \"setBannerFromPreset\",\n value: function setBannerFromPreset(batchUpdates) {\n var _iterator = _createForOfIteratorHelper(batchUpdates),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var row = _step.value;\n\n var _row = _slicedToArray(row, 3),\n section = _row[0],\n setting = _row[1],\n value = _row[2];\n\n this.rootStore.optionStore.others.customizeValuesBanner[section][setting] = value;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }, {\n key: \"forceAnimationOutSimulation\",\n value: function forceAnimationOutSimulation() {\n var _this2 = this;\n\n var customizeValuesBanner = this.rootStore.optionStore.others.customizeValuesBanner;\n\n if (customizeValuesBanner[\"layout\"][\"animationOut\"] === \"none\") {\n return;\n }\n\n this.animationVisible = false;\n setTimeout(function () {\n return runInAction(function () {\n _this2.animationVisible = true;\n });\n }, +customizeValuesBanner[\"layout\"][\"animationOutDuration\"] + 1000);\n }\n }, {\n key: \"setVisible\",\n value: function setVisible(state) {\n this.visible = state;\n }\n }, {\n key: \"setIndividualPrivacyOpen\",\n value: function setIndividualPrivacyOpen(state) {\n this.individualPrivacyOpen = state;\n }\n }, {\n key: \"setPreviewCheckboxActiveState\",\n value: function setPreviewCheckboxActiveState(state) {\n this.previewCheckboxActiveState = state;\n }\n /**\n * Allow developers to export the current customize settings via PHP.\n *\n * ```ts\n * realCookieBanner_customize.RootStore.get.customizeBannerStore.exportPhp()\n * ```\n */\n\n }, {\n key: \"exportPhp\",\n value: function exportPhp() {\n var _this3 = this;\n\n var result = {};\n var customize = getSidebarCustomize();\n this.presetDefaults.forEach(function (defaultValue, key) {\n var currentValue = customize(key).get(); // Fix booleans\n\n if (typeof defaultValue === \"boolean\") {\n currentValue = !!+currentValue;\n } else if (!isNaN(currentValue) && currentValue !== \"\") {\n // Fix integers\n currentValue = +currentValue;\n }\n\n if (JSON.stringify(defaultValue) !== JSON.stringify(currentValue)) {\n result[_this3.presetConstants.get(key)] = currentValue;\n }\n }); // Prepare output\n\n return this.jsonToPHPArray(result);\n }\n }, {\n key: \"jsonToPHPArray\",\n value: function jsonToPHPArray(result) {\n var output = JSON.stringify(result, null, 4).split(\"\\n\");\n output.shift();\n output.pop();\n return output.join(\"\\n\").replace(/^(\\s+)\"([A-Za-z\\\\]+::[A-Z_]+)\"(:)/gm, \"$1$2 =>\").replace(/^(\\s+)([A-Za-z\\\\]+)::/gm, function (full, spaces, namespaces) {\n return \"\".concat(spaces).concat(namespaces.replace(/\\\\\\\\/gm, \"\\\\\"), \"::\");\n });\n }\n }]);\n\n return CustomizeBannerStore;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"visible\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"animationVisible\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"individualPrivacyOpen\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"previewCheckboxActiveState\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"busyPresets\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"presets\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _applyDecoratedDescriptor(_class.prototype, \"setBannerFromCustomize\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setBannerFromCustomize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBannerFromPreset\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setBannerFromPreset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"forceAnimationOutSimulation\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"forceAnimationOutSimulation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setVisible\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setVisible\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIndividualPrivacyOpen\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIndividualPrivacyOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPreviewCheckboxActiveState\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPreviewCheckboxActiveState\"), _class.prototype)), _class);\nexport { CustomizeBannerStore };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, runInAction, flow, action, computed } from \"mobx\";\nimport { BaseOptions } from \"@devowl-wp/utils\";\nimport { locationRestWpSettings, locationRestWpSettingsPatch, locationRestRevisionCurrentGet, locationRestRevisionCurrentPut, locationRestLiteDismissConfigPageProNotice, locationRestCountryBypassDatabasePut, locationRestMigrationDelete, locationRestNavMenuAddLinksPost } from \"../wp-api\";\nimport { request } from \"../utils\";\nimport { locationRestModalHintSeenPut } from \"../wp-api/modalHintSeen.put\";\nvar OptionStore = (_class = /*#__PURE__*/function (_BaseOptions) {\n _inherits(OptionStore, _BaseOptions);\n\n var _super = _createSuper(OptionStore);\n\n function OptionStore(rootStore) {\n var _this;\n\n _classCallCheck(this, OptionStore);\n\n _this = _super.call(this);\n\n _initializerDefineProperty(_this, \"busySettings\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"busyCountryBypassUpdate\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"busyAddLinksToNavigationMenu\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"needsRevisionRetrigger\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"publicCookieCount\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allCookieCount\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allBlockerCount\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allTcfVendorConfigurationCount\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allScannerResultPresetsCount\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allScannerResultExternalUrlsCount\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"cookieCounts\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"nav_menus\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfVendorConfigurationCounts\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hasGTM\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hasMTM\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"contexts\", _descriptor16, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"dashboardMigration\", _descriptor17, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"fomoCoupon\", _descriptor18, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"bannerActive\", _descriptor19, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"blockerActive\", _descriptor20, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"refreshSiteAfterConsent\", _descriptor21, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintId\", _descriptor22, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintExternalUrl\", _descriptor23, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintIsExternalUrl\", _descriptor24, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyId\", _descriptor25, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyExternalUrl\", _descriptor26, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyIsExternalUrl\", _descriptor27, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hidePageIds\", _descriptor28, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"setCookiesViaManager\", _descriptor29, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"acceptAllForBots\", _descriptor30, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"respectDoNotTrack\", _descriptor31, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"cookieDuration\", _descriptor32, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"saveIp\", _descriptor33, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"ePrivacyUSA\", _descriptor34, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"ageNotice\", _descriptor35, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"listServicesNotice\", _descriptor36, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"consentForwarding\", _descriptor37, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"forwardTo\", _descriptor38, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"crossDomains\", _descriptor39, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLink\", _descriptor40, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLabelBehind\", _descriptor41, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLabelDescription\", _descriptor42, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypass\", _descriptor43, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassCountries\", _descriptor44, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassType\", _descriptor45, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassDbDownloadTime\", _descriptor46, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcf\", _descriptor47, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfPublisherCc\", _descriptor48, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfAcceptedTime\", _descriptor49, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfGvlDownloadTime\", _descriptor50, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfScopeOfConsent\", _descriptor51, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"others\", _descriptor52, _assertThisInitialized(_this));\n\n _this.pureSlug = void 0;\n _this.pureSlugCamelCased = void 0;\n _this.rootStore = void 0;\n _this.fetchSettings = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(setFrom) {\n var result;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.busySettings = true;\n _context.prev = 1;\n _context.t0 = setFrom;\n\n if (_context.t0) {\n _context.next = 7;\n break;\n }\n\n _context.next = 6;\n return request({\n location: locationRestWpSettings\n });\n\n case 6:\n _context.t0 = _context.sent;\n\n case 7:\n result = _context.t0;\n this.bannerActive = result[\"rcb-banner-active\"];\n this.blockerActive = result[\"rcb-blocker-active\"];\n this.refreshSiteAfterConsent = result[\"rcb-refresh-site-after-consent\"];\n this.imprintId = result[\"rcb-banner-legal-imprint\"];\n this.imprintExternalUrl = result[\"rcb-banner-legal-imprint-external-url\"];\n this.imprintIsExternalUrl = result[\"rcb-banner-legal-imprint-is-external-url\"];\n this.privacyPolicyId = result[\"rcb-banner-legal-privacy-policy\"];\n this.privacyPolicyExternalUrl = result[\"rcb-banner-legal-privacy-policy-external-url\"];\n this.privacyPolicyIsExternalUrl = result[\"rcb-banner-legal-privacy-policy-is-external-url\"];\n this.hidePageIds = (result[\"rcb-hide-page-ids\"] || \"\").split(\",\").map(Number).filter(Boolean);\n this.setCookiesViaManager = result[\"rcb-set-cookies-via-manager\"] || \"none\";\n this.acceptAllForBots = result[\"rcb-accept-all-for-bots\"];\n this.respectDoNotTrack = result[\"rcb-respect-do-not-track\"]; // this.onlyEuCookieBanner = result[\"rcb-only-eu-cookie-banner\"] || false;\n\n this.cookieDuration = result[\"rcb-cookie-duration\"];\n this.saveIp = result[\"rcb-save-ip\"];\n this.ePrivacyUSA = result[\"rcb-eprivacy-usa\"];\n this.ageNotice = result[\"rcb-age-notice\"];\n this.listServicesNotice = result[\"rcb-list-services-notice\"];\n this.consentForwarding = result[\"rcb-consent-forwarding\"] || false;\n this.forwardTo = (result[\"rcb-forward-to\"] || \"\").split(\"|\").filter(Boolean);\n this.crossDomains = result[\"rcb-cross-domains\"] || \"\";\n this.countryBypass = result[\"rcb-country-bypass\"];\n this.countryBypassCountries = (result[\"rcb-country-bypass-countries\"] || \"\").split(\",\").filter(Boolean);\n this.countryBypassType = result[\"rcb-country-bypass-type\"];\n this.countryBypassDbDownloadTime = result[\"rcb-country-bypass-db-download-time\"];\n this.tcf = result[\"rcb-tcf\"];\n this.tcfPublisherCc = result[\"rcb-tcf-publisher-cc\"];\n this.tcfAcceptedTime = result[\"rcb-tcf-accepted-time\"];\n this.tcfGvlDownloadTime = result[\"rcb-tcf-gvl-download-time\"];\n this.tcfScopeOfConsent = result[\"rcb-tcf-scope-of-consent\"];\n\n if (process.env.PLUGIN_CTX === \"pro\") {\n /* onlypro: start */\n this.affiliateLink = result[\"rcb-affiliate-link\"];\n this.affiliateLabelBehind = result[\"rcb-affiliate-label-behind\"];\n this.affiliateLabelDescription = result[\"rcb-affiliate-description\"];\n /* onlypro: end */\n }\n\n _context.next = 41;\n return this.fetchCurrentRevision();\n\n case 41:\n _context.next = 47;\n break;\n\n case 43:\n _context.prev = 43;\n _context.t1 = _context[\"catch\"](1);\n console.log(_context.t1);\n throw _context.t1;\n\n case 47:\n _context.prev = 47;\n this.busySettings = false;\n return _context.finish(47);\n\n case 50:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 43, 47, 50]]);\n }));\n _this.updateSettings = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref) {\n var bannerActive, blockerActive, refreshSiteAfterConsent, imprintId, privacyPolicyId, hidePageIds, setCookiesViaManager, acceptAllForBots, respectDoNotTrack, cookieDuration, saveIp, ePrivacyUSA, ageNotice, listServicesNotice, consentForwarding, forwardTo, crossDomains, affiliateLink, affiliateLabelBehind, affiliateLabelDescription, countryBypass, countryBypassCountries, countryBypassType, tcf, tcfPublisherCc, tcfScopeOfConsent, result;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n bannerActive = _ref.bannerActive, blockerActive = _ref.blockerActive, refreshSiteAfterConsent = _ref.refreshSiteAfterConsent, imprintId = _ref.imprintId, privacyPolicyId = _ref.privacyPolicyId, hidePageIds = _ref.hidePageIds, setCookiesViaManager = _ref.setCookiesViaManager, acceptAllForBots = _ref.acceptAllForBots, respectDoNotTrack = _ref.respectDoNotTrack, cookieDuration = _ref.cookieDuration, saveIp = _ref.saveIp, ePrivacyUSA = _ref.ePrivacyUSA, ageNotice = _ref.ageNotice, listServicesNotice = _ref.listServicesNotice, consentForwarding = _ref.consentForwarding, forwardTo = _ref.forwardTo, crossDomains = _ref.crossDomains, affiliateLink = _ref.affiliateLink, affiliateLabelBehind = _ref.affiliateLabelBehind, affiliateLabelDescription = _ref.affiliateLabelDescription, countryBypass = _ref.countryBypass, countryBypassCountries = _ref.countryBypassCountries, countryBypassType = _ref.countryBypassType, tcf = _ref.tcf, tcfPublisherCc = _ref.tcfPublisherCc, tcfScopeOfConsent = _ref.tcfScopeOfConsent;\n this.busySettings = true;\n _context2.prev = 2;\n _context2.next = 5;\n return request({\n location: locationRestWpSettingsPatch,\n request: _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bannerActive === undefined ? {} : {\n \"rcb-banner-active\": bannerActive\n }), blockerActive === undefined ? {} : {\n \"rcb-blocker-active\": blockerActive\n }), refreshSiteAfterConsent === undefined ? {} : {\n \"rcb-refresh-site-after-consent\": refreshSiteAfterConsent\n }), imprintId === undefined ? {} : {\n \"rcb-banner-legal-imprint\": imprintId\n }), privacyPolicyId === undefined ? {} : {\n \"rcb-banner-legal-privacy-policy\": privacyPolicyId\n }), hidePageIds === undefined ? {} : {\n \"rcb-hide-page-ids\": hidePageIds.join(\",\")\n }), setCookiesViaManager === undefined ? {} : {\n \"rcb-set-cookies-via-manager\": setCookiesViaManager\n }), acceptAllForBots === undefined ? {} : {\n \"rcb-accept-all-for-bots\": acceptAllForBots\n }), respectDoNotTrack === undefined ? {} : {\n \"rcb-respect-do-not-track\": respectDoNotTrack\n }), cookieDuration === undefined ? {} : {\n \"rcb-cookie-duration\": cookieDuration\n }), saveIp === undefined ? {} : {\n \"rcb-save-ip\": saveIp\n }), ePrivacyUSA === undefined ? {} : {\n \"rcb-eprivacy-usa\": ePrivacyUSA\n }), ageNotice === undefined ? {} : {\n \"rcb-age-notice\": ageNotice\n }), listServicesNotice === undefined ? {} : {\n \"rcb-list-services-notice\": listServicesNotice\n }), consentForwarding === undefined ? {} : {\n \"rcb-consent-forwarding\": consentForwarding\n }), forwardTo === undefined ? {} : {\n \"rcb-forward-to\": forwardTo.join(\"|\")\n }), crossDomains === undefined ? {} : {\n \"rcb-cross-domains\": crossDomains\n }), countryBypass === undefined ? {} : {\n \"rcb-country-bypass\": countryBypass\n }), countryBypassCountries === undefined ? {} : {\n \"rcb-country-bypass-countries\": countryBypassCountries.join(\",\")\n }), countryBypassType === undefined ? {} : {\n \"rcb-country-bypass-type\": countryBypassType\n }), tcf === undefined ? {} : {\n \"rcb-tcf\": tcf\n }), tcfPublisherCc === undefined ? {} : {\n \"rcb-tcf-publisher-cc\": tcfPublisherCc\n }), tcfScopeOfConsent === undefined ? {} : {\n \"rcb-tcf-scope-of-consent\": tcfScopeOfConsent\n }), process.env.PLUGIN_CTX === \"pro\" ? affiliateLink === undefined ? {} : {\n \"rcb-affiliate-link\": affiliateLink\n } : {}), process.env.PLUGIN_CTX === \"pro\" ? affiliateLabelBehind === undefined ? {} : {\n \"rcb-affiliate-label-behind\": affiliateLabelBehind\n } : {}), process.env.PLUGIN_CTX === \"pro\" ? affiliateLabelDescription === undefined ? {} : {\n \"rcb-affiliate-description\": affiliateLabelDescription\n } : {})\n });\n\n case 5:\n result = _context2.sent;\n this.fetchSettings(result);\n this.rootStore.checklistStore.probablyFetchByChangedItem([\"save-settings\", \"activate-banner\", \"privacy-policy\"]);\n _context2.next = 14;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2[\"catch\"](2);\n console.log(_context2.t0);\n throw _context2.t0;\n\n case 14:\n _context2.prev = 14;\n this.busySettings = false;\n return _context2.finish(14);\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 10, 14, 17]]);\n }));\n _this.fetchCurrentRevision = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n this.busySettings = true;\n _context3.prev = 1;\n _context3.t0 = this;\n _context3.next = 5;\n return request({\n location: locationRestRevisionCurrentGet\n });\n\n case 5:\n _context3.t1 = _context3.sent;\n\n _context3.t0.setFromCurrentRevision.call(_context3.t0, _context3.t1);\n\n _context3.next = 13;\n break;\n\n case 9:\n _context3.prev = 9;\n _context3.t2 = _context3[\"catch\"](1);\n console.log(_context3.t2);\n throw _context3.t2;\n\n case 13:\n _context3.prev = 13;\n this.busySettings = false;\n return _context3.finish(13);\n\n case 16:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[1, 9, 13, 16]]);\n }));\n _this.updateCurrentRevision = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(data) {\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n this.busySettings = true;\n _context4.prev = 1;\n _context4.t0 = this;\n _context4.next = 5;\n return request({\n location: locationRestRevisionCurrentPut,\n request: data\n });\n\n case 5:\n _context4.t1 = _context4.sent;\n\n _context4.t0.setFromCurrentRevision.call(_context4.t0, _context4.t1);\n\n _context4.next = 13;\n break;\n\n case 9:\n _context4.prev = 9;\n _context4.t2 = _context4[\"catch\"](1);\n console.log(_context4.t2);\n throw _context4.t2;\n\n case 13:\n _context4.prev = 13;\n this.busySettings = false;\n return _context4.finish(13);\n\n case 16:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[1, 9, 13, 16]]);\n }));\n _this.setModalHintSeen = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(identifier) {\n return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.busySettings = true;\n _context5.prev = 1;\n this.others.modalHints.push(identifier); // Immediate push as this can never fail\n\n _context5.next = 5;\n return request({\n location: locationRestModalHintSeenPut,\n request: {\n identifier: identifier\n }\n });\n\n case 5:\n _context5.next = 11;\n break;\n\n case 7:\n _context5.prev = 7;\n _context5.t0 = _context5[\"catch\"](1);\n console.log(_context5.t0);\n throw _context5.t0;\n\n case 11:\n _context5.prev = 11;\n this.busySettings = false;\n return _context5.finish(11);\n\n case 14:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this, [[1, 7, 11, 14]]);\n }));\n _this.dismissConfigProNotice = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {\n return _regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _context6.prev = 0;\n // Immediate set because it can not fail\n this.others.isConfigProNoticeVisible = false;\n _context6.next = 4;\n return request({\n location: locationRestLiteDismissConfigPageProNotice\n });\n\n case 4:\n _context6.next = 10;\n break;\n\n case 6:\n _context6.prev = 6;\n _context6.t0 = _context6[\"catch\"](0);\n console.log(_context6.t0);\n throw _context6.t0;\n\n case 10:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6, this, [[0, 6]]);\n }));\n _this.dismissMigration = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {\n var migration;\n return _regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n _context7.prev = 0;\n // Immediate set because it can not fail\n migration = this.dashboardMigration.id;\n this.dashboardMigration = undefined;\n _context7.next = 5;\n return request({\n location: locationRestMigrationDelete,\n params: {\n migration: migration\n }\n });\n\n case 5:\n _context7.next = 11;\n break;\n\n case 7:\n _context7.prev = 7;\n _context7.t0 = _context7[\"catch\"](0);\n console.log(_context7.t0);\n throw _context7.t0;\n\n case 11:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7, this, [[0, 7]]);\n }));\n _this.addLinksToNavigationMenu = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(id) {\n var _yield$request, success;\n\n return _regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n this.busyAddLinksToNavigationMenu = true;\n _context8.prev = 1;\n _context8.next = 4;\n return request({\n location: locationRestNavMenuAddLinksPost,\n request: {\n id: id\n }\n });\n\n case 4:\n _yield$request = _context8.sent;\n success = _yield$request.success;\n\n if (!success) {\n _context8.next = 10;\n break;\n }\n\n this.rootStore.checklistStore.fetchChecklist();\n _context8.next = 10;\n return this.fetchCurrentRevision();\n\n case 10:\n return _context8.abrupt(\"return\", success);\n\n case 13:\n _context8.prev = 13;\n _context8.t0 = _context8[\"catch\"](1);\n console.log(_context8.t0);\n throw _context8.t0;\n\n case 17:\n _context8.prev = 17;\n this.busyAddLinksToNavigationMenu = false;\n return _context8.finish(17);\n\n case 20:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8, this, [[1, 13, 17, 20]]);\n }));\n _this.updateCountryBypassDatabase = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {\n var _yield$request2, dbDownloadTime;\n\n return _regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n this.busyCountryBypassUpdate = true;\n _context9.prev = 1;\n _context9.next = 4;\n return request({\n location: locationRestCountryBypassDatabasePut\n });\n\n case 4:\n _yield$request2 = _context9.sent;\n dbDownloadTime = _yield$request2.dbDownloadTime;\n this.countryBypassDbDownloadTime = dbDownloadTime;\n _context9.next = 13;\n break;\n\n case 9:\n _context9.prev = 9;\n _context9.t0 = _context9[\"catch\"](1);\n console.log(_context9.t0);\n throw _context9.t0;\n\n case 13:\n _context9.prev = 13;\n this.busyCountryBypassUpdate = false;\n return _context9.finish(13);\n\n case 16:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9, this, [[1, 9, 13, 16]]);\n }));\n _this.rootStore = rootStore;\n _this.pureSlug = BaseOptions.getPureSlug(process.env);\n _this.pureSlugCamelCased = BaseOptions.getPureSlug(process.env, true); // Use the localized WP object to fill this object values.\n\n runInAction(function () {\n return Object.assign(_assertThisInitialized(_this), window[_this.pureSlugCamelCased]);\n });\n return _this;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(OptionStore, [{\n key: \"isOnlyRcbCookieCreated\",\n get:\n /**\n * Refresh site after consent.\n *\n * @deprecated See #m9dey3\n */\n\n /* @observable\n public onlyEuCookieBanner: ResponseRouteWpSettings[\"rcb-only-eu-cookie-banner\"]; */\n // Affiliate settings are only available and registered in PRO version\n // Country Bypass settings (all optional for free version)\n // TCF compatibility settings (all optional for free version)\n // Implement \"others\" property in your Assets.php;\n\n /**\n * Ignore real-cookie-banner cookie as it is hidden when no other cookie is created.\n */\n function get() {\n return this.allCookieCount === 1 && (!this.tcf || !this.allTcfVendorConfigurationCount);\n }\n }, {\n key: \"areSettingsFetched\",\n get: function get() {\n return this.respectDoNotTrack !== undefined;\n }\n }, {\n key: \"setFromCurrentRevision\",\n value: function setFromCurrentRevision(_ref2) {\n var contexts = _ref2.contexts,\n has_gtm = _ref2.has_gtm,\n has_mtm = _ref2.has_mtm,\n needs_retrigger = _ref2.needs_retrigger,\n public_cookie_count = _ref2.public_cookie_count,\n all_cookie_count = _ref2.all_cookie_count,\n all_blocker_count = _ref2.all_blocker_count,\n all_tcf_vendor_configuration_count = _ref2.all_tcf_vendor_configuration_count,\n all_scanner_result_presets_count = _ref2.all_scanner_result_presets_count,\n all_scanner_result_external_urls_count = _ref2.all_scanner_result_external_urls_count,\n cookie_counts = _ref2.cookie_counts,\n nav_menus = _ref2.nav_menus,\n tcf_vendor_configuration_counts = _ref2.tcf_vendor_configuration_counts,\n dashboard_migration = _ref2.dashboard_migration,\n fomo_coupon = _ref2.fomo_coupon;\n this.hasGTM = has_gtm;\n this.hasMTM = has_mtm;\n this.needsRevisionRetrigger = needs_retrigger;\n this.publicCookieCount = public_cookie_count;\n this.allCookieCount = all_cookie_count;\n this.allBlockerCount = all_blocker_count;\n this.allTcfVendorConfigurationCount = all_tcf_vendor_configuration_count;\n this.allScannerResultPresetsCount = all_scanner_result_presets_count;\n this.allScannerResultExternalUrlsCount = all_scanner_result_external_urls_count;\n this.cookieCounts = cookie_counts;\n this.nav_menus = nav_menus;\n this.tcfVendorConfigurationCounts = tcf_vendor_configuration_counts;\n this.contexts = contexts;\n this.dashboardMigration = dashboard_migration;\n this.fomoCoupon = fomo_coupon;\n }\n }, {\n key: \"setShowLicenseFormImmediate\",\n value: function setShowLicenseFormImmediate(state, isLicensed) {\n this.others.showLicenseFormImmediate = state;\n this.others.isLicensed = isLicensed;\n }\n }]);\n\n return OptionStore;\n}(BaseOptions), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"busySettings\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"busyCountryBypassUpdate\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"busyAddLinksToNavigationMenu\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"needsRevisionRetrigger\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"publicCookieCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"allCookieCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"allBlockerCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"allTcfVendorConfigurationCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allScannerResultPresetsCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"allScannerResultExternalUrlsCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"cookieCounts\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return {\n draft: 0,\n private: 0,\n publish: 0\n };\n }\n}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"nav_menus\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"tcfVendorConfigurationCounts\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"hasGTM\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasMTM\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"contexts\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return {\n \"\": \"\"\n };\n }\n}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"dashboardMigration\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fomoCoupon\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"bannerActive\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"blockerActive\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"refreshSiteAfterConsent\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"imprintId\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"imprintExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"imprintIsExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyId\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyIsExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"hidePageIds\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"setCookiesViaManager\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"acceptAllForBots\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"respectDoNotTrack\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"cookieDuration\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"saveIp\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, \"ePrivacyUSA\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, \"ageNotice\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, \"listServicesNotice\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, \"consentForwarding\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, \"forwardTo\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, \"crossDomains\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, \"affiliateLink\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor41 = _applyDecoratedDescriptor(_class.prototype, \"affiliateLabelBehind\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor42 = _applyDecoratedDescriptor(_class.prototype, \"affiliateLabelDescription\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor43 = _applyDecoratedDescriptor(_class.prototype, \"countryBypass\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor44 = _applyDecoratedDescriptor(_class.prototype, \"countryBypassCountries\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor45 = _applyDecoratedDescriptor(_class.prototype, \"countryBypassType\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor46 = _applyDecoratedDescriptor(_class.prototype, \"countryBypassDbDownloadTime\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor47 = _applyDecoratedDescriptor(_class.prototype, \"tcf\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor48 = _applyDecoratedDescriptor(_class.prototype, \"tcfPublisherCc\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor49 = _applyDecoratedDescriptor(_class.prototype, \"tcfAcceptedTime\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor50 = _applyDecoratedDescriptor(_class.prototype, \"tcfGvlDownloadTime\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor51 = _applyDecoratedDescriptor(_class.prototype, \"tcfScopeOfConsent\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor52 = _applyDecoratedDescriptor(_class.prototype, \"others\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _applyDecoratedDescriptor(_class.prototype, \"isOnlyRcbCookieCreated\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"isOnlyRcbCookieCreated\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"areSettingsFetched\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"areSettingsFetched\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFromCurrentRevision\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setFromCurrentRevision\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShowLicenseFormImmediate\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowLicenseFormImmediate\"), _class.prototype)), _class);\nexport { OptionStore };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _createForOfIteratorHelper from \"@babel/runtime/helpers/createForOfIteratorHelper\";\nimport _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { computed, flow, observable, action } from \"mobx\";\nimport { ScannerResultExternalUrl, ScannerResultPreset, ScannerResultExternalUrlSingle } from \"../models\";\nimport { request } from \"../utils\";\nimport { locationRestScannerResultAllExternalUrlsByHostGet, locationRestScannerResultPresetsGet, locationRestScannerQueuePost, locationRestScannerResultExternalsGet, locationRestScannerResultMarkupGet } from \"../wp-api\";\nvar ScannerStore = (_class = /*#__PURE__*/function () {\n function ScannerStore(rootStore) {\n _classCallCheck(this, ScannerStore);\n\n _initializerDefineProperty(this, \"resultPresets\", _descriptor, this);\n\n _initializerDefineProperty(this, \"busyResultPresets\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"fetchedAllResultPresets\", _descriptor3, this);\n\n _initializerDefineProperty(this, \"resultExternalUrls\", _descriptor4, this);\n\n _initializerDefineProperty(this, \"resultAllExternalUrls\", _descriptor5, this);\n\n _initializerDefineProperty(this, \"busyExternalUrls\", _descriptor6, this);\n\n _initializerDefineProperty(this, \"fetchedAllResultExternalUrls\", _descriptor7, this);\n\n _initializerDefineProperty(this, \"busyMarkup\", _descriptor8, this);\n\n _initializerDefineProperty(this, \"resultMarkup\", _descriptor9, this);\n\n this.rootStore = void 0;\n this.addUrlsToQueue = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return request({\n location: locationRestScannerQueuePost,\n request: data\n });\n\n case 2:\n return _context.abrupt(\"return\", _context.sent);\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n this.fetchResultPresets = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.busyResultPresets = true;\n _context2.prev = 1;\n _context2.t0 = this;\n _context2.next = 5;\n return request({\n location: locationRestScannerResultPresetsGet\n });\n\n case 5:\n _context2.t1 = _context2.sent;\n\n _context2.t0.resultPresetsFromResponse.call(_context2.t0, _context2.t1);\n\n this.fetchedAllResultPresets = true;\n _context2.next = 14;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t2 = _context2[\"catch\"](1);\n console.log(_context2.t2);\n throw _context2.t2;\n\n case 14:\n _context2.prev = 14;\n this.busyResultPresets = false;\n return _context2.finish(14);\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[1, 10, 14, 17]]);\n }));\n this.fetchResultExternals = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n this.busyExternalUrls = true;\n _context3.prev = 1;\n _context3.t0 = this;\n _context3.next = 5;\n return request({\n location: locationRestScannerResultExternalsGet\n });\n\n case 5:\n _context3.t1 = _context3.sent;\n\n _context3.t0.resultExternalUrlsFromResponse.call(_context3.t0, _context3.t1);\n\n this.fetchedAllResultExternalUrls = true;\n _context3.next = 14;\n break;\n\n case 10:\n _context3.prev = 10;\n _context3.t2 = _context3[\"catch\"](1);\n console.log(_context3.t2);\n throw _context3.t2;\n\n case 14:\n _context3.prev = 14;\n this.busyExternalUrls = false;\n return _context3.finish(14);\n\n case 17:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[1, 10, 14, 17]]);\n }));\n this.fetchResultAllExternals = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(instance) {\n var type, identifier, _yield$request, items, map, existing, _iterator, _step, probablyStaleKey, _i, _Object$values, item;\n\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n type = instance instanceof ScannerResultExternalUrl ? \"host\" : \"preset\";\n identifier = instance.identifier;\n instance.busy = true;\n _context4.prev = 3;\n _context4.next = 6;\n return request({\n location: locationRestScannerResultAllExternalUrlsByHostGet,\n params: {\n type: type,\n identifier: type === \"host\" ? identifier.replace(/\\./g, \"_\") : identifier\n }\n });\n\n case 6:\n _yield$request = _context4.sent;\n items = _yield$request.items;\n // Check if map for this host already exists\n map = this.resultAllExternalUrls.get(identifier);\n\n if (!map) {\n map = new Map();\n } else {\n // As we load all data within one request, we can safely remove stale objects\n existing = items.map(function (_ref) {\n var id = _ref.id;\n return id;\n });\n _iterator = _createForOfIteratorHelper(map.keys());\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n probablyStaleKey = _step.value;\n\n if (existing.indexOf(probablyStaleKey) === -1) {\n map.delete(probablyStaleKey);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } // Save presets as objects\n\n\n for (_i = 0, _Object$values = Object.values(items); _i < _Object$values.length; _i++) {\n item = _Object$values[_i];\n map.set(item.id, new ScannerResultExternalUrlSingle(item, this));\n this.resultAllExternalUrls.set(identifier, map);\n }\n\n _context4.next = 17;\n break;\n\n case 13:\n _context4.prev = 13;\n _context4.t0 = _context4[\"catch\"](3);\n console.log(_context4.t0);\n throw _context4.t0;\n\n case 17:\n _context4.prev = 17;\n instance.busy = false;\n return _context4.finish(17);\n\n case 20:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[3, 13, 17, 20]]);\n }));\n this.fetchMarkup = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(id) {\n var result;\n return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.busyMarkup = true;\n _context5.prev = 1;\n _context5.next = 4;\n return request({\n location: locationRestScannerResultMarkupGet,\n params: {\n id: id\n }\n });\n\n case 4:\n result = _context5.sent;\n this.resultMarkup.set(id, result);\n _context5.next = 12;\n break;\n\n case 8:\n _context5.prev = 8;\n _context5.t0 = _context5[\"catch\"](1);\n console.log(_context5.t0);\n throw _context5.t0;\n\n case 12:\n _context5.prev = 12;\n this.busyMarkup = false;\n return _context5.finish(12);\n\n case 15:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this, [[1, 8, 12, 15]]);\n }));\n this.rootStore = rootStore;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n _createClass(ScannerStore, [{\n key: \"sortedExternalUrls\",\n get: function get() {\n var result = Array.from(this.resultExternalUrls.values()); // Move inactive items to the bottom list\n\n result.sort(function (a, b) {\n return a.inactive === b.inactive ? 0 : a.inactive ? 1 : -1;\n });\n return result;\n }\n }, {\n key: \"presetsCount\",\n get: function get() {\n return this.fetchedAllResultPresets ? this.resultPresets.size : this.rootStore.optionStore.allScannerResultPresetsCount;\n }\n }, {\n key: \"externalUrlsCount\",\n get: function get() {\n return this.fetchedAllResultExternalUrls ? this.resultExternalUrls.size : this.rootStore.optionStore.allScannerResultExternalUrlsCount;\n }\n }, {\n key: \"canShowResults\",\n get: function get() {\n var _this$rootStore$check;\n\n return this.presetsCount + this.externalUrlsCount > 0 && ((_this$rootStore$check = this.rootStore.checklistStore.checklist) === null || _this$rootStore$check === void 0 ? void 0 : _this$rootStore$check.items[\"scanner\"].checked);\n }\n }, {\n key: \"foundScanResultsCount\",\n get: function get() {\n return this.resultPresets.size + this.resultExternalUrls.size;\n }\n /**\n * Count of presets and external URL hosts which still needs attention.\n */\n\n }, {\n key: \"needsAttentionCount\",\n get: function get() {\n return [].concat(_toConsumableArray(this.resultPresets.values()), _toConsumableArray(this.resultExternalUrls.values())).filter(function (_ref2) {\n var inactive = _ref2.inactive;\n return !inactive;\n }).length;\n }\n }, {\n key: \"resultPresetsFromResponse\",\n value: function resultPresetsFromResponse(_ref3) {\n var items = _ref3.items;\n // As we load all data within one request, we can safely remove stale objects\n var existing = Object.keys(items);\n\n var _iterator2 = _createForOfIteratorHelper(this.resultPresets.keys()),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var probablyStaleKey = _step2.value;\n\n if (existing.indexOf(probablyStaleKey) === -1) {\n this.resultPresets.delete(probablyStaleKey);\n }\n } // Save presets as object\n\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n for (var _i2 = 0, _existing = existing; _i2 < _existing.length; _i2++) {\n var pid = _existing[_i2];\n this.resultPresets.set(pid, new ScannerResultPreset(items[pid], this));\n }\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }, {\n key: \"resultExternalUrlsFromResponse\",\n value: function resultExternalUrlsFromResponse(_ref4) {\n var items = _ref4.items;\n // As we load all data within one request, we can safely remove stale objects\n var existing = Object.keys(items);\n\n var _iterator3 = _createForOfIteratorHelper(this.resultExternalUrls.keys()),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var probablyStaleKey = _step3.value;\n\n if (existing.indexOf(probablyStaleKey) === -1) {\n this.resultExternalUrls.delete(probablyStaleKey);\n }\n } // Save presets as objects\n\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n for (var _i3 = 0, _existing2 = existing; _i3 < _existing2.length; _i3++) {\n var externalHost = _existing2[_i3];\n this.resultExternalUrls.set(externalHost, new ScannerResultExternalUrl(items[externalHost], this));\n }\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n }]);\n\n return ScannerStore;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"resultPresets\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"busyResultPresets\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"fetchedAllResultPresets\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"resultExternalUrls\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"resultAllExternalUrls\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"busyExternalUrls\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"fetchedAllResultExternalUrls\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"busyMarkup\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"resultMarkup\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new Map();\n }\n}), _applyDecoratedDescriptor(_class.prototype, \"sortedExternalUrls\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"sortedExternalUrls\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"presetsCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"presetsCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"externalUrlsCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"externalUrlsCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canShowResults\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"canShowResults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"foundScanResultsCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"foundScanResultsCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"needsAttentionCount\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"needsAttentionCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resultPresetsFromResponse\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"resultPresetsFromResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resultExternalUrlsFromResponse\", [action], Object.getOwnPropertyDescriptor(_class.prototype, \"resultExternalUrlsFromResponse\"), _class.prototype)), _class);\nexport { ScannerStore };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/createSuper\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor;\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport { observable, flow, runInAction, action } from \"mobx\";\nimport { BaseOptions } from \"@devowl-wp/utils\";\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport moment from \"moment\";\nvar DATE_FORMAT = \"YYYY-MM-DD\";\nvar StatsStore = (_class = /*#__PURE__*/function (_BaseOptions) {\n _inherits(StatsStore, _BaseOptions);\n\n var _super = _createSuper(StatsStore);\n\n function StatsStore(rootStore) {\n var _this;\n\n _classCallCheck(this, StatsStore);\n\n _this = _super.call(this);\n\n _initializerDefineProperty(_this, \"busyStats\", _descriptor, _assertThisInitialized(_this));\n\n _this.rootStore = void 0;\n _this.stats = observable.object({\n main: undefined,\n buttonsClicked: undefined,\n customBypass: undefined\n }, {}, {\n deep: false\n });\n _this.filters = observable.object({\n dates: undefined,\n context: undefined\n }, {}, {\n deep: false\n });\n _this.fetchMain = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(process.env.PLUGIN_CTX === \"pro\")) {\n _context.next = 3;\n break;\n }\n\n _context.next = 4;\n break;\n\n case 3:\n throw new Error(\"This feature is not available in the free version.\");\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n _this.fetchButtonsClicked = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!(process.env.PLUGIN_CTX === \"pro\")) {\n _context2.next = 3;\n break;\n }\n\n _context2.next = 4;\n break;\n\n case 3:\n throw new Error(\"This feature is not available in the free version.\");\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n _this.fetchCustomBypass = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!(process.env.PLUGIN_CTX === \"pro\")) {\n _context3.next = 3;\n break;\n }\n\n _context3.next = 4;\n break;\n\n case 3:\n throw new Error(\"This feature is not available in the free version.\");\n\n case 4:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n _this.rootStore = rootStore;\n runInAction(function () {\n _this.filters.dates = [moment(
|
|