Real Cookie Banner: GDPR (DSGVO) & ePrivacy Cookie Consent - Version 2.16.1

Version Description

Download this release

Release Info

Developer devowl
Plugin Icon 128x128 Real Cookie Banner: GDPR (DSGVO) & ePrivacy Cookie Consent
Version 2.16.1
Comparing to
See all releases

Code changes from version 2.16.0 to 2.16.1

CHANGELOG.md CHANGED
@@ -3,6 +3,61 @@
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.16.0 (2022-03-01)
7
 
8
 
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.16.1 (2022-03-15)
7
+
8
+
9
+ ### chore
10
+
11
+ * review 1 (CU-1jkmq84)
12
+ * review 1 (CU-20ch93c)
13
+ * review 2 (CU-1jkmq84)
14
+ * update TCF library to latest version (CU-22bavpa)
15
+ * use wildcarded composer repository path (CU-1zvg32c)
16
+
17
+
18
+ ### fix
19
+
20
+ * adjust US data processing consent setting description (CU-20cherc)
21
+ * bypass geo-restriction when using Lighthouse page speed score user agent (CU-20chp0h)
22
+ * change priacy settings modal did not show accepted visual content blockers (CU-1znufvk)
23
+ * compatibility with latest Oxygen page builder version (CU-20crzbn)
24
+ * compatibility with SiteGround Optimizer (CU-1znmzvx)
25
+ * correctly invalidate scanner query transients for post deletion and when invalidating preset cache (CU-20jc4q1)
26
+ * correctly invalidate scanner query transients for post deletion and when invalidating preset cache (CU-20jc4q1)
27
+ * disable animations in Firefox mobile as it breaks the layout (CU-20jbyp5)
28
+ * fire OptInAll event after GTM/MTM datalayer pushes (CU-20162wr)
29
+ * notice while exporting consent by UUID (CU-2015tvy)
30
+ * recommend to use the change privacy preferences shortcode on every page (e.g. footer, CU-20chbhc)
31
+ * scanner on recurring exception reruns successful jobs again (CU-20jc0cf)
32
+ * show notice when changing the service group for a preset (CU-20ch93c)
33
+
34
+
35
+ ### perf
36
+
37
+ * cache dashboard notice about recommendations to speed up admin load (CU-20jc4q1)
38
+ * cache external URL hosts result as it slows down the admin area (CU-20jc4q1)
39
+ * use correct grouping for read external URLs (CU-20jc4q1)
40
+
41
+
42
+ ### refactor
43
+
44
+ * make plugin updates independent of single store (CU-1jkmq84)
45
+
46
+
47
+ ### style
48
+
49
+ * no line break in footer when using mobile experience (CU-20jbyp5)
50
+ * use correct text align when theme uses justified text align (CU-1znufvk)
51
+
52
+
53
+ ### test
54
+
55
+ * smoke tests
56
+
57
+
58
+
59
+
60
+
61
  # 2.16.0 (2022-03-01)
62
 
63
 
inc/Core.php CHANGED
@@ -328,6 +328,10 @@ class Core extends \DevOwl\RealCookieBanner\base\Core implements
328
  },
329
  0
330
  );
 
 
 
 
331
  add_shortcode(\DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::TAG, [
332
  \DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::class,
333
  'render'
328
  },
329
  0
330
  );
331
+ add_action('init', [$this->getBlocker(), 'registerOutputBuffer'], 11);
332
+ // SiteGround Optimizer (https://wordpress.org/support/topic/allow-to-modify-html-in-output-buffer/)
333
+ add_action('shutdown', [$this->getBlocker(), 'closeOutputBuffer'], 11);
334
+ // "
335
  add_shortcode(\DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::TAG, [
336
  \DevOwl\RealCookieBanner\view\shortcode\LinkShortcode::class,
337
  'render'
inc/UserConsent.php CHANGED
@@ -189,7 +189,7 @@ class UserConsent {
189
  'from' => '',
190
  'to' => '',
191
  'pure_referer' => '',
192
- 'context'
193
  ],
194
  $args
195
  );
189
  'from' => '',
190
  'to' => '',
191
  'pure_referer' => '',
192
+ 'context' => ''
193
  ],
194
  $args
195
  );
inc/Utils.php CHANGED
@@ -514,6 +514,8 @@ class Utils {
514
  isset($_GET['op3editor']) ||
515
  isset($_GET['us-builder']) ||
516
  isset($_GET['tve']) ||
 
 
517
  isset($_POST['cs_preview_time']);
518
  }
519
  /**
@@ -524,16 +526,6 @@ class Utils {
524
  public static function isCLI() {
525
  return \defined('WP_CLI') && \constant('WP_CLI');
526
  }
527
- /**
528
- * Checks if the given page request is a page builder frontend. This is a continuous function
529
- * and needs to be extended as needed.
530
- */
531
- public static function isPageBuilderFrontend() {
532
- if (isset($_GET['ct_builder'])) {
533
- return 'oxygen';
534
- }
535
- return \false;
536
- }
537
  /**
538
  * Checks if the current request is a WP REST API request.
539
  *
514
  isset($_GET['op3editor']) ||
515
  isset($_GET['us-builder']) ||
516
  isset($_GET['tve']) ||
517
+ isset($_GET['ct_builder']) ||
518
+ (isset($_GET['action']) && self::startsWith($_GET['action'], 'oxy_')) ||
519
  isset($_POST['cs_preview_time']);
520
  }
521
  /**
526
  public static function isCLI() {
527
  return \defined('WP_CLI') && \constant('WP_CLI');
528
  }
 
 
 
 
 
 
 
 
 
 
529
  /**
530
  * Checks if the current request is a WP REST API request.
531
  *
inc/api/services.php CHANGED
@@ -3,8 +3,10 @@
3
  use DevOwl\RealCookieBanner\Core;
4
  use DevOwl\RealCookieBanner\presets\BlockerPresets;
5
  use DevOwl\RealCookieBanner\presets\CookiePresets;
 
6
  use DevOwl\RealCookieBanner\settings\Cookie;
7
  use DevOwl\RealCookieBanner\settings\CookieGroup;
 
8
  // @codeCoverageIgnoreStart
9
  \defined('ABSPATH') or die('No script kiddies please!');
10
  // Avoid direct file request
@@ -18,6 +20,8 @@ if (!\function_exists('wp_rcb_invalidate_presets_cache')) {
18
  function wp_rcb_invalidate_presets_cache() {
19
  (new \DevOwl\RealCookieBanner\presets\CookiePresets())->forceRegeneration();
20
  (new \DevOwl\RealCookieBanner\presets\BlockerPresets())->forceRegeneration();
 
 
21
  }
22
  }
23
  if (!\function_exists('wp_rcb_service_groups')) {
3
  use DevOwl\RealCookieBanner\Core;
4
  use DevOwl\RealCookieBanner\presets\BlockerPresets;
5
  use DevOwl\RealCookieBanner\presets\CookiePresets;
6
+ use DevOwl\RealCookieBanner\scanner\Query;
7
  use DevOwl\RealCookieBanner\settings\Cookie;
8
  use DevOwl\RealCookieBanner\settings\CookieGroup;
9
+ use DevOwl\RealCookieBanner\view\Scanner;
10
  // @codeCoverageIgnoreStart
11
  \defined('ABSPATH') or die('No script kiddies please!');
12
  // Avoid direct file request
20
  function wp_rcb_invalidate_presets_cache() {
21
  (new \DevOwl\RealCookieBanner\presets\CookiePresets())->forceRegeneration();
22
  (new \DevOwl\RealCookieBanner\presets\BlockerPresets())->forceRegeneration();
23
+ \delete_transient(\DevOwl\RealCookieBanner\view\Scanner::TRANSIENT_SERVICES_FOR_NOTICE);
24
+ \delete_transient(\DevOwl\RealCookieBanner\scanner\Query::TRANSIENT_SCANNED_EXTERNAL_URLS);
25
  }
26
  }
27
  if (!\function_exists('wp_rcb_service_groups')) {
inc/base/others/cachebuster-lib.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* This file was automatically generated (Tue Mar 01 2022 08:32:15 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
  'animate.css' => '4.1.1',
5
  'mobx' => '4.15.7',
1
  <?php
2
+ /* This file was automatically generated (Tue Mar 15 2022 12:19:28 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,17 +1,17 @@
1
  <?php
2
- /* This file was automatically generated (Tue Mar 01 2022 08:32:15 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
- 'src/public/dist/138.lite.js' => '7f1f4bbe560485d08c2cfecee0b508a6',
5
  'src/public/dist/193.lite.js' => 'd7a0722155f835c915b08b6c93a9208d',
6
  'src/public/dist/193.pro.js' => 'd71177a05a4f8e8252c7a480e8a2842b',
7
- 'src/public/dist/289.pro.js' => '563878c0459586fe6879f65e63090891',
8
- 'src/public/dist/296.lite.js' => '5dc6944148c1c6ff79e5e8723b4cdb81',
9
- 'src/public/dist/374.pro.js' => '862930803747644a8b21ed9afc7de70c',
10
  'src/public/dist/411.lite.js' => '0b9dbd0c4ea1e5075a2826de3d3badac',
11
  'src/public/dist/411.pro.js' => '281b774d7ece3ace8d5b982a21a637dd',
12
- 'src/public/dist/425.pro.js' => '075631f44d99afaff7f85ae6a5fcf431',
13
  'src/public/dist/440.lite.js' => '507b1d1d30a2155478e54f9c41e43d3b',
14
  'src/public/dist/440.pro.js' => 'badf73a2c4dec1c055db004c0b24c6d3',
 
15
  'src/public/dist/547.lite.js' => '030380837587826d29b31ab8bbe67567',
16
  'src/public/dist/547.pro.js' => 'c97dabe193de340eda432383b4259af5',
17
  'src/public/dist/717.lite.js' => '3c7859adc16f938e087eb794be382d1e',
@@ -30,45 +30,45 @@ return [
30
  'src/public/dist/930.pro.js' => '757d70b559d754597000612bed3f870b',
31
  'src/public/dist/954.lite.js' => 'ee2cda44e2cd4c19a1f7288055efa5d0',
32
  'src/public/dist/954.pro.js' => 'c39fe799c52c7690d66633725671963f',
33
- 'src/public/dist/admin.lite.js' => '505239f9416200e7fc814e7460ce89f9',
34
- 'src/public/dist/admin.pro.js' => '8caa61afd13fad8029129168fe83c0ea',
35
- 'src/public/dist/banner_tcf.pro.js' => '8a0ca7ccd255a5dae2cbbd5b5e25e769',
36
- 'src/public/dist/banner.lite.js' => '7e468ad71629139c494e857564c78753',
37
- 'src/public/dist/banner.pro.js' => '59ccb22ea26edee308c36a06ce8fd91d',
38
- 'src/public/dist/blocker_tcf.pro.js' => 'd7794c09288b9b277e3ac9565920484e',
39
- 'src/public/dist/blocker.lite.js' => '754fe4f3f06b1fad2677c309e93963c4',
40
- 'src/public/dist/blocker.pro.js' => 'bfa70e9e5d9b4ede355d0c6f4ce9f753',
41
- 'src/public/dist/chunk-config-tab-blocker.lite.js' => '479d9b4da35c5d28745e31ea6ca11adf',
42
- 'src/public/dist/chunk-config-tab-blocker.pro.js' => 'ce8b9ebed1cc39ea5681e9a9ba2f2cff',
43
- 'src/public/dist/chunk-config-tab-consent.lite.js' => '9235b1246d607e9f003c0a4cce3f5378',
44
- 'src/public/dist/chunk-config-tab-consent.pro.js' => '6d4ffa2749ce37074d6fb64318fcc899',
45
- 'src/public/dist/chunk-config-tab-cookies.lite.js' => 'aaca3c88991bec76da95f3f82dd3316f',
46
- 'src/public/dist/chunk-config-tab-cookies.pro.js' => '2a8850894d2893e8efd3e48ea66a988f',
47
  'src/public/dist/chunk-config-tab-dashboard.lite.js' => 'e7c23736210fad73543f7a79609385b6',
48
  'src/public/dist/chunk-config-tab-dashboard.pro.js' => 'c0db578b5ee979aa8d71d4946183e20e',
49
  'src/public/dist/chunk-config-tab-import.lite.js' => 'a4701b781883f23b497c465f77c92f0a',
50
  'src/public/dist/chunk-config-tab-import.pro.js' => 'c402d8c01a8d59adb4f18efc40bf502d',
51
- 'src/public/dist/chunk-config-tab-licensing.lite.js' => 'f0bfb9817f440c8028ee4515b0ee8253',
52
- 'src/public/dist/chunk-config-tab-licensing.pro.js' => 'a8f79d7bf7415ecc281a5b523fe6a209',
53
  'src/public/dist/chunk-config-tab-scanner.lite.js' => '55d44bc6849107d95f0698f188b2318a',
54
  'src/public/dist/chunk-config-tab-scanner.pro.js' => '6632501d09363c17da994c27e4b7e080',
55
- 'src/public/dist/chunk-config-tab-settings.lite.js' => 'b6e5822e06e30f1711aaef851711d5f6',
56
- 'src/public/dist/chunk-config-tab-settings.pro.js' => '0b2df83f7844fe90cfefe1f66dc7f9f5',
57
  'src/public/dist/chunk-config-tab-tcf.lite.js' => 'a07c8143e107581520f363ea3d419407',
58
  'src/public/dist/chunk-config-tab-tcf.pro.js' => '03a71b5ebdb398790b4b894063d6887e',
59
- 'src/public/dist/customize_banner.lite.js' => '70cdd8ffc0b477396d924c58f9c4578f',
60
- 'src/public/dist/customize_banner.pro.js' => 'c7bb445170d850cee36c6c58335ef68d',
61
  'src/public/dist/customize.lite.js' => 'b54b829ded6ae54f54b8991c01d13efb',
62
  'src/public/dist/customize.pro.js' => 'c48d2e0e6c584e1a53ff78e2c1d2719d',
63
  'src/public/dist/queue.lite.js' => 'f60dda9c9523706a0da543a490f9e144',
64
  'src/public/dist/queue.pro.js' => '5ec54379f05dd957183036c3de43666b',
65
  'src/public/dist/vendor-admin.lite.js' => '82fb17c010c4bab211b9ddaf7b4798e2',
66
  'src/public/dist/vendor-admin.pro.js' => 'fab5160d324f4a4c8c58959a67f7c483',
67
- 'src/public/dist/vendor-banner_tcf.pro.js' => 'da109c912783dc5b85d9513f7766e1cc',
68
  'src/public/dist/vendor-banner.lite.js' => '62129f980213359ac260ac5b1c6abcce',
69
  'src/public/dist/vendor-banner.pro.js' => '6d8907d53228cd642f894b67a39f8306',
70
- 'src/public/dist/vendor-customize_banner.lite.js' => 'a69e5a9bb664512a5f795fc36d23b4a9',
71
- 'src/public/dist/vendor-customize_banner.pro.js' => '0c0b40da32bec8ba7268ccdf40674f5b',
72
  'src/public/dist/vendor-customize.lite.js' => 'a9286d85f30eed31832d6665422ce291',
73
  'src/public/dist/vendor-customize.pro.js' => '6f37a40af6d37ad3812f6a14d0ff670d',
74
  'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
1
  <?php
2
+ /* This file was automatically generated (Tue Mar 15 2022 12:19:28 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
+ 'src/public/dist/138.lite.js' => '59bda7fc90da3bf1871af707ec304684',
5
  'src/public/dist/193.lite.js' => 'd7a0722155f835c915b08b6c93a9208d',
6
  'src/public/dist/193.pro.js' => 'd71177a05a4f8e8252c7a480e8a2842b',
7
+ 'src/public/dist/289.pro.js' => '1b426cb24e119026b7c3b765615d9e61',
8
+ 'src/public/dist/364.pro.js' => '8093ca644b38ffa5ab6838042957c4e0',
9
+ 'src/public/dist/374.pro.js' => 'e610cbdea556281cd442ba662723a039',
10
  'src/public/dist/411.lite.js' => '0b9dbd0c4ea1e5075a2826de3d3badac',
11
  'src/public/dist/411.pro.js' => '281b774d7ece3ace8d5b982a21a637dd',
 
12
  'src/public/dist/440.lite.js' => '507b1d1d30a2155478e54f9c41e43d3b',
13
  'src/public/dist/440.pro.js' => 'badf73a2c4dec1c055db004c0b24c6d3',
14
+ 'src/public/dist/460.lite.js' => '89fb755fabab0da0445c86a41cad46cd',
15
  'src/public/dist/547.lite.js' => '030380837587826d29b31ab8bbe67567',
16
  'src/public/dist/547.pro.js' => 'c97dabe193de340eda432383b4259af5',
17
  'src/public/dist/717.lite.js' => '3c7859adc16f938e087eb794be382d1e',
30
  'src/public/dist/930.pro.js' => '757d70b559d754597000612bed3f870b',
31
  'src/public/dist/954.lite.js' => 'ee2cda44e2cd4c19a1f7288055efa5d0',
32
  'src/public/dist/954.pro.js' => 'c39fe799c52c7690d66633725671963f',
33
+ 'src/public/dist/admin.lite.js' => '731d585f53213fef67aaf8dca340a911',
34
+ 'src/public/dist/admin.pro.js' => '38e93e158d8e337277386bf861463f33',
35
+ 'src/public/dist/banner_tcf.pro.js' => '8ef489db2f4b269d068fb18b4625b08a',
36
+ 'src/public/dist/banner.lite.js' => '65188d3027305da524a994b86ea473d3',
37
+ 'src/public/dist/banner.pro.js' => '605ce861ac7368a2f88a61da12bc6e27',
38
+ 'src/public/dist/blocker_tcf.pro.js' => '2728f63b7bd94b2b72ecd30fe9e7e197',
39
+ 'src/public/dist/blocker.lite.js' => '84c862579756c036ffe43f7e9186ddbe',
40
+ 'src/public/dist/blocker.pro.js' => 'f9adc657d3f9bcddffd832a33882ca6d',
41
+ 'src/public/dist/chunk-config-tab-blocker.lite.js' => 'f82ae0b32df6e21d6edb3de7c37797ac',
42
+ 'src/public/dist/chunk-config-tab-blocker.pro.js' => 'ba1a735cee39a5fb984ff06b153f903f',
43
+ 'src/public/dist/chunk-config-tab-consent.lite.js' => '17283dff7c5aab9caa9c75bb9b46722c',
44
+ 'src/public/dist/chunk-config-tab-consent.pro.js' => '38bab9280b24d4a89ac65b8046a73b1e',
45
+ 'src/public/dist/chunk-config-tab-cookies.lite.js' => '0727a8e083062a228e5298a22ccb6f5b',
46
+ 'src/public/dist/chunk-config-tab-cookies.pro.js' => 'ea9275d59415d872a3dfa06788cc0bb6',
47
  'src/public/dist/chunk-config-tab-dashboard.lite.js' => 'e7c23736210fad73543f7a79609385b6',
48
  'src/public/dist/chunk-config-tab-dashboard.pro.js' => 'c0db578b5ee979aa8d71d4946183e20e',
49
  'src/public/dist/chunk-config-tab-import.lite.js' => 'a4701b781883f23b497c465f77c92f0a',
50
  'src/public/dist/chunk-config-tab-import.pro.js' => 'c402d8c01a8d59adb4f18efc40bf502d',
51
+ 'src/public/dist/chunk-config-tab-licensing.lite.js' => '4c41986a1da8b86d09733321d87c1eac',
52
+ 'src/public/dist/chunk-config-tab-licensing.pro.js' => '3f15623fdd795c8bc079b0280303c988',
53
  'src/public/dist/chunk-config-tab-scanner.lite.js' => '55d44bc6849107d95f0698f188b2318a',
54
  'src/public/dist/chunk-config-tab-scanner.pro.js' => '6632501d09363c17da994c27e4b7e080',
55
+ 'src/public/dist/chunk-config-tab-settings.lite.js' => 'd16612008d11159de3a82a0af43f1c53',
56
+ 'src/public/dist/chunk-config-tab-settings.pro.js' => '2da4132c9d71361e599445ca0a1f82ec',
57
  'src/public/dist/chunk-config-tab-tcf.lite.js' => 'a07c8143e107581520f363ea3d419407',
58
  'src/public/dist/chunk-config-tab-tcf.pro.js' => '03a71b5ebdb398790b4b894063d6887e',
59
+ 'src/public/dist/customize_banner.lite.js' => '499c58502f74ca5070cf3063039e7d7a',
60
+ 'src/public/dist/customize_banner.pro.js' => '7cfd7b08b268adc430932cd6876d0f6b',
61
  'src/public/dist/customize.lite.js' => 'b54b829ded6ae54f54b8991c01d13efb',
62
  'src/public/dist/customize.pro.js' => 'c48d2e0e6c584e1a53ff78e2c1d2719d',
63
  'src/public/dist/queue.lite.js' => 'f60dda9c9523706a0da543a490f9e144',
64
  'src/public/dist/queue.pro.js' => '5ec54379f05dd957183036c3de43666b',
65
  'src/public/dist/vendor-admin.lite.js' => '82fb17c010c4bab211b9ddaf7b4798e2',
66
  'src/public/dist/vendor-admin.pro.js' => 'fab5160d324f4a4c8c58959a67f7c483',
67
+ 'src/public/dist/vendor-banner_tcf.pro.js' => '881a7588d1d046ed9d37581e0bf43c37',
68
  'src/public/dist/vendor-banner.lite.js' => '62129f980213359ac260ac5b1c6abcce',
69
  'src/public/dist/vendor-banner.pro.js' => '6d8907d53228cd642f894b67a39f8306',
70
+ 'src/public/dist/vendor-customize_banner.lite.js' => '81772775f9f7f1288efbc77d03be2bcc',
71
+ 'src/public/dist/vendor-customize_banner.pro.js' => '95d5ebacf9509419c27dd7d6bca1bfd4',
72
  'src/public/dist/vendor-customize.lite.js' => 'a9286d85f30eed31832d6665422ce291',
73
  'src/public/dist/vendor-customize.pro.js' => '6f37a40af6d37ad3812f6a14d0ff670d',
74
  'src/public/dist/vendor-queue.lite.js' => 'b72bded98fc236932c39620d16d7780e',
inc/scanner/Query.php CHANGED
@@ -6,6 +6,7 @@ use DevOwl\RealCookieBanner\Vendor\DevOwl\HeadlessContentBlocker\Constants;
6
  use DevOwl\RealCookieBanner\Vendor\DevOwl\HeadlessContentBlocker\plugins\scanner\ScannableBlockable;
7
  use DevOwl\RealCookieBanner\base\UtilsProvider;
8
  use DevOwl\RealCookieBanner\settings\Blocker;
 
9
  // @codeCoverageIgnoreStart
10
  \defined('ABSPATH') or die('No script kiddies please!');
11
  // Avoid direct file request
@@ -18,6 +19,7 @@ class Query {
18
  const MIME_TYPE_JAVASCRIPT = 'text/javascript';
19
  const MIME_TYPE_CSS = 'text/css';
20
  const MIME_TYPE_HTML = 'text/html';
 
21
  /**
22
  * C'tor.
23
  *
@@ -60,6 +62,19 @@ class Query {
60
  }
61
  return $result;
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  /**
64
  * Get all (known) scanned pages.
65
  */
@@ -98,6 +113,8 @@ class Query {
98
  return $wpdb->prepare('%s', $url);
99
  }, $urls);
100
  $sqlIn = \join(',', $urls);
 
 
101
  // phpcs:disable WordPress.DB.PreparedSQL
102
  return $wpdb->query("DELETE FROM {$table_name} WHERE source_url IN ({$sqlIn})");
103
  // phpcs:enable WordPress.DB.PreparedSQL
@@ -153,7 +170,7 @@ class Query {
153
  $table_name = $this->getTableName(\DevOwl\RealCookieBanner\scanner\Persist::TABLE_NAME);
154
  // phpcs:disable WordPress.DB.PreparedSQL
155
  $rows = $wpdb->get_results(
156
- "SELECT\n preset,\n COUNT(1) AS foundCount,\n COUNT(DISTINCT source_url) AS foundOnSitesCount,\n IF(SUM(ignored) > 0, 1, 0) AS ignored,\n MAX(created) AS lastScanned\n FROM {$table_name} scan\n WHERE preset <> ''\n GROUP BY preset\n ORDER BY preset",
157
  ARRAY_A
158
  );
159
  // phpcs:enable WordPress.DB.PreparedSQL
@@ -172,15 +189,24 @@ class Query {
172
  }
173
  /**
174
  * Get scanned external URLs aggregated by host.
 
 
 
 
 
175
  */
176
  public function getScannedExternalUrls() {
177
  global $wpdb;
 
 
 
 
178
  $table_name = $this->getTableName(\DevOwl\RealCookieBanner\scanner\Persist::TABLE_NAME);
179
  $expressions = $this->getExistingUrlExpressions();
180
  $expressionSql = $this->transformExpressionsToMySQL($expressions, 'blocked_url');
181
  // phpcs:disable WordPress.DB.PreparedSQL
182
  $rows = $wpdb->get_results(
183
- "SELECT\n blocked_url_host AS host,\n COUNT(1) AS foundCount,\n COUNT(DISTINCT source_url) AS foundOnSitesCount,\n SUM(IF({$expressionSql}, 1, 0)) AS blockedCount,\n IF(SUM(ignored) > 0, 1, 0) AS ignored,\n MAX(created) AS lastScanned,\n GROUP_CONCAT(DISTINCT tag) AS tags\n FROM {$table_name} scan\n WHERE blocked_url_hash IS NOT NULL\n AND preset = ''\n GROUP BY blocked_url_hash\n ORDER BY 1",
184
  ARRAY_A
185
  );
186
  // phpcs:enable WordPress.DB.PreparedSQL
@@ -199,6 +225,7 @@ class Query {
199
  'tags' => \explode(',', $row['tags'])
200
  ];
201
  }
 
202
  return $result;
203
  }
204
  /**
6
  use DevOwl\RealCookieBanner\Vendor\DevOwl\HeadlessContentBlocker\plugins\scanner\ScannableBlockable;
7
  use DevOwl\RealCookieBanner\base\UtilsProvider;
8
  use DevOwl\RealCookieBanner\settings\Blocker;
9
+ use DevOwl\RealCookieBanner\view\Scanner;
10
  // @codeCoverageIgnoreStart
11
  \defined('ABSPATH') or die('No script kiddies please!');
12
  // Avoid direct file request
19
  const MIME_TYPE_JAVASCRIPT = 'text/javascript';
20
  const MIME_TYPE_CSS = 'text/css';
21
  const MIME_TYPE_HTML = 'text/html';
22
+ const TRANSIENT_SCANNED_EXTERNAL_URLS = RCB_OPT_PREFIX . '-scanned-external-urls';
23
  /**
24
  * C'tor.
25
  *
62
  }
63
  return $result;
64
  }
65
+ /**
66
+ * Get a count of all scanned entries.
67
+ *
68
+ * @return int
69
+ */
70
+ public function getScannedEntriesCount() {
71
+ global $wpdb;
72
+ $table_name = $this->getTableName(\DevOwl\RealCookieBanner\scanner\Persist::TABLE_NAME);
73
+ // phpcs:disable WordPress.DB.PreparedSQL
74
+ $count = $wpdb->get_var("SELECT COUNT(1) FROM {$table_name}");
75
+ // phpcs:enable WordPress.DB.PreparedSQL
76
+ return $count;
77
+ }
78
  /**
79
  * Get all (known) scanned pages.
80
  */
113
  return $wpdb->prepare('%s', $url);
114
  }, $urls);
115
  $sqlIn = \join(',', $urls);
116
+ delete_transient(\DevOwl\RealCookieBanner\view\Scanner::TRANSIENT_SERVICES_FOR_NOTICE);
117
+ delete_transient(\DevOwl\RealCookieBanner\scanner\Query::TRANSIENT_SCANNED_EXTERNAL_URLS);
118
  // phpcs:disable WordPress.DB.PreparedSQL
119
  return $wpdb->query("DELETE FROM {$table_name} WHERE source_url IN ({$sqlIn})");
120
  // phpcs:enable WordPress.DB.PreparedSQL
170
  $table_name = $this->getTableName(\DevOwl\RealCookieBanner\scanner\Persist::TABLE_NAME);
171
  // phpcs:disable WordPress.DB.PreparedSQL
172
  $rows = $wpdb->get_results(
173
+ "SELECT\n preset,\n COUNT(1) AS foundCount,\n COUNT(DISTINCT source_url_hash) AS foundOnSitesCount,\n IF(SUM(ignored) > 0, 1, 0) AS ignored,\n MAX(created) AS lastScanned\n FROM {$table_name} scan\n WHERE preset <> ''\n GROUP BY preset\n ORDER BY preset",
174
  ARRAY_A
175
  );
176
  // phpcs:enable WordPress.DB.PreparedSQL
189
  }
190
  /**
191
  * Get scanned external URLs aggregated by host.
192
+ *
193
+ * Attention: This query is cached to a transient as it is very expensive! Use
194
+ * `delete_transient(Query::TRANSIENT_SCANNED_EXTERNAL_URLS)` to invalidate the cache.
195
+ *
196
+ * @return array
197
  */
198
  public function getScannedExternalUrls() {
199
  global $wpdb;
200
+ $value = get_transient(self::TRANSIENT_SCANNED_EXTERNAL_URLS);
201
+ if ($value !== \false) {
202
+ return $value;
203
+ }
204
  $table_name = $this->getTableName(\DevOwl\RealCookieBanner\scanner\Persist::TABLE_NAME);
205
  $expressions = $this->getExistingUrlExpressions();
206
  $expressionSql = $this->transformExpressionsToMySQL($expressions, 'blocked_url');
207
  // phpcs:disable WordPress.DB.PreparedSQL
208
  $rows = $wpdb->get_results(
209
+ "SELECT\n blocked_url_host AS host,\n COUNT(1) AS foundCount,\n COUNT(DISTINCT source_url) AS foundOnSitesCount,\n SUM(IF({$expressionSql}, 1, 0)) AS blockedCount,\n IF(SUM(ignored) > 0, 1, 0) AS ignored,\n MAX(created) AS lastScanned,\n GROUP_CONCAT(DISTINCT tag) AS tags\n FROM {$table_name} scan\n WHERE blocked_url_hash IS NOT NULL\n AND preset = ''\n GROUP BY blocked_url_host\n ORDER BY 1",
210
  ARRAY_A
211
  );
212
  // phpcs:enable WordPress.DB.PreparedSQL
225
  'tags' => \explode(',', $row['tags'])
226
  ];
227
  }
228
+ set_transient(self::TRANSIENT_SCANNED_EXTERNAL_URLS, $result, 2 * DAY_IN_SECONDS);
229
  return $result;
230
  }
231
  /**
inc/scanner/Scanner.php CHANGED
@@ -12,6 +12,7 @@ use DevOwl\RealCookieBanner\presets\BlockerPresets;
12
  use DevOwl\RealCookieBanner\settings\Blocker;
13
  use DevOwl\RealCookieBanner\Utils;
14
  use DevOwl\RealCookieBanner\view\blockable\BlockerPostType;
 
15
  use DevOwl\RealCookieBanner\Vendor\DevOwl\RealQueue\Core as RealQueueCore;
16
  use DevOwl\RealCookieBanner\Vendor\DevOwl\RealQueue\queue\Job;
17
  use stdClass;
@@ -107,8 +108,57 @@ class Scanner {
107
  \printf('<!--rcb-scan:%s-->', \json_encode($scanEntries));
108
  // Mark Job as succeed
109
  if ($job !== null) {
110
- $job->updateProcess(\true);
111
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
  /**
114
  * `do_action` when a result from the scanner got removed or added.
12
  use DevOwl\RealCookieBanner\settings\Blocker;
13
  use DevOwl\RealCookieBanner\Utils;
14
  use DevOwl\RealCookieBanner\view\blockable\BlockerPostType;
15
+ use DevOwl\RealCookieBanner\view\Scanner as ViewScanner;
16
  use DevOwl\RealCookieBanner\Vendor\DevOwl\RealQueue\Core as RealQueueCore;
17
  use DevOwl\RealCookieBanner\Vendor\DevOwl\RealQueue\queue\Job;
18
  use stdClass;
108
  \printf('<!--rcb-scan:%s-->', \json_encode($scanEntries));
109
  // Mark Job as succeed
110
  if ($job !== null) {
111
+ $job->passthruClientResult(\true, null);
112
  }
113
+ $this->probablyInvalidateCacheAfterJobExecution($job);
114
+ }
115
+ /**
116
+ * Try to invalidate some caches after every scan process. The cache is invalidated
117
+ * in the following cases:
118
+ *
119
+ * - Scan process was done without job (e.g. calling website with `?rcb-scan`)
120
+ * - Scan process was done for a single website (e.g. after saving a post)
121
+ * - Scan process is within a complete website then, then the following situation is implemented:
122
+ * Depending on the count of scanned entries, every x. job within the complete website scan
123
+ * invalidated the cache.
124
+ *
125
+ * @param Job $job
126
+ */
127
+ protected function probablyInvalidateCacheAfterJobExecution($job) {
128
+ $doInvalidate = \false;
129
+ if ($job !== null) {
130
+ $isCompleteWebsiteScan = !empty($job->group_position);
131
+ if ($isCompleteWebsiteScan) {
132
+ $scannedEntriesCount = $this->getQuery()->getScannedEntriesCount();
133
+ $invalidateScannedExternalUrlsAfter = 1;
134
+ if ($scannedEntriesCount > 50000) {
135
+ $invalidateScannedExternalUrlsAfter = 15;
136
+ } elseif ($scannedEntriesCount > 20000) {
137
+ $invalidateScannedExternalUrlsAfter = 10;
138
+ } elseif ($scannedEntriesCount > 10000) {
139
+ $invalidateScannedExternalUrlsAfter = 5;
140
+ } elseif ($scannedEntriesCount > 5000) {
141
+ $invalidateScannedExternalUrlsAfter = 3;
142
+ } elseif ($scannedEntriesCount > 1000) {
143
+ $invalidateScannedExternalUrlsAfter = 2;
144
+ }
145
+ if (
146
+ $job->group_position % $invalidateScannedExternalUrlsAfter === 0 ||
147
+ $job->group_position === $job->group_total
148
+ ) {
149
+ $doInvalidate = \true;
150
+ }
151
+ } else {
152
+ $doInvalidate = \true;
153
+ }
154
+ } else {
155
+ $doInvalidate = \true;
156
+ }
157
+ if ($doInvalidate) {
158
+ delete_transient(\DevOwl\RealCookieBanner\view\Scanner::TRANSIENT_SERVICES_FOR_NOTICE);
159
+ delete_transient(\DevOwl\RealCookieBanner\scanner\Query::TRANSIENT_SCANNED_EXTERNAL_URLS);
160
+ }
161
+ return $doInvalidate;
162
  }
163
  /**
164
  * `do_action` when a result from the scanner got removed or added.
inc/view/Banner.php CHANGED
@@ -128,7 +128,7 @@ class Banner {
128
  if (!\DevOwl\RealCookieBanner\settings\General::getInstance()->isBannerActive()) {
129
  return \false;
130
  }
131
- return \true;
132
  }
133
  /**
134
  * Determine if the current page should not handle a predecision.
128
  if (!\DevOwl\RealCookieBanner\settings\General::getInstance()->isBannerActive()) {
129
  return \false;
130
  }
131
+ return \DevOwl\RealCookieBanner\Utils::isFrontend();
132
  }
133
  /**
134
  * Determine if the current page should not handle a predecision.
inc/view/Blocker.php CHANGED
@@ -51,6 +51,11 @@ class Blocker {
51
  * Force to output the needed computing time at the end of the page for debug purposes.
52
  */
53
  const FORCE_TIME_COMMENT_QUERY_ARG = 'rcb-calc-time';
 
 
 
 
 
54
  /**
55
  * See `HeadlessContentBlocker`
56
  *
@@ -123,12 +128,25 @@ class Blocker {
123
  }
124
  /**
125
  * Apply the content blocker attributes to the output buffer when it is enabled.
 
 
 
126
  */
127
  public function registerOutputBuffer() {
128
  if ($this->isEnabled()) {
129
  \ob_start([$this, 'ob_start']);
130
  }
131
  }
 
 
 
 
 
 
 
 
 
 
132
  /**
133
  * Event for ob_start.
134
  *
@@ -140,21 +158,29 @@ class Blocker {
140
  }
141
  $start = \microtime(\true);
142
  // Measure replace time
143
- /**
144
- * Block content in a given HTML string. This is a Consent API filter and can be consumed
145
- * by third-party plugin and theme developers. See example for usage.
146
- *
147
- * @hook Consent/Block/HTML
148
- * @param {string} $html
149
- * @return {string}
150
- * @example <caption>Block content of a given HTML string</caption>
151
- * $output = apply_filters('Consent/Block/HTML', '<iframe src="https://player.vimeo.com/..." />');
152
- */
153
- $newResponse = apply_filters('Consent/Block/HTML', $response);
 
 
 
 
 
154
  $time_elapsed_secs = \microtime(\true) - $start;
155
  $htmlEndComment = '<!--rcb-cb:' . \json_encode(['replace-time' => $time_elapsed_secs]) . '-->';
156
- return ($newResponse === null ? $response : $newResponse) .
 
157
  (isset($_GET[self::FORCE_TIME_COMMENT_QUERY_ARG]) ? $htmlEndComment : '');
 
 
158
  }
159
  /**
160
  * Apply content blockers to a given HTML. It also supports JSON output.
@@ -210,7 +236,6 @@ class Blocker {
210
  (\DevOwl\RealCookieBanner\Utils::isFrontend() || $this->isAdminAjaxAction()) &&
211
  \DevOwl\RealCookieBanner\settings\General::getInstance()->isBannerActive() &&
212
  \DevOwl\RealCookieBanner\settings\General::getInstance()->isBlockerActive() &&
213
- !\DevOwl\RealCookieBanner\Utils::isPageBuilderFrontend() &&
214
  !is_customize_preview() &&
215
  !$this->isCurrentRequestException();
216
  /**
51
  * Force to output the needed computing time at the end of the page for debug purposes.
52
  */
53
  const FORCE_TIME_COMMENT_QUERY_ARG = 'rcb-calc-time';
54
+ /**
55
+ * A list of MD5 hashes of HTML strings which got successfully processed. This allows
56
+ * you to run `registerOutputBuffer` multiple times.
57
+ */
58
+ private $processedOutputBufferHtmlHashes = [];
59
  /**
60
  * See `HeadlessContentBlocker`
61
  *
128
  }
129
  /**
130
  * Apply the content blocker attributes to the output buffer when it is enabled.
131
+ *
132
+ * You can start this output buffer multiple times as it is safe to avoid execution of same
133
+ * strings multiple times for the headless content blocker (e.g. multiple WordPress hook lifecycle).
134
  */
135
  public function registerOutputBuffer() {
136
  if ($this->isEnabled()) {
137
  \ob_start([$this, 'ob_start']);
138
  }
139
  }
140
+ /**
141
+ * Close a output buffer. This is not necessarily needed as PHP automatically closes them, but in some
142
+ * cases it is needed to make the modified content available to previously read output buffers in e.g.
143
+ * earlier WordPress hook lifecycle.
144
+ */
145
+ public function closeOutputBuffer() {
146
+ if (\ob_get_length()) {
147
+ \ob_end_flush();
148
+ }
149
+ }
150
  /**
151
  * Event for ob_start.
152
  *
158
  }
159
  $start = \microtime(\true);
160
  // Measure replace time
161
+ if (\in_array(\md5($response), $this->processedOutputBufferHtmlHashes, \true)) {
162
+ // This buffer was already processed...
163
+ return $response;
164
+ } else {
165
+ /**
166
+ * Block content in a given HTML string. This is a Consent API filter and can be consumed
167
+ * by third-party plugin and theme developers. See example for usage.
168
+ *
169
+ * @hook Consent/Block/HTML
170
+ * @param {string} $html
171
+ * @return {string}
172
+ * @example <caption>Block content of a given HTML string</caption>
173
+ * $output = apply_filters('Consent/Block/HTML', '<iframe src="https://player.vimeo.com/..." />');
174
+ */
175
+ $newResponse = apply_filters('Consent/Block/HTML', $response);
176
+ }
177
  $time_elapsed_secs = \microtime(\true) - $start;
178
  $htmlEndComment = '<!--rcb-cb:' . \json_encode(['replace-time' => $time_elapsed_secs]) . '-->';
179
+ $newResponse =
180
+ ($newResponse === null ? $response : $newResponse) .
181
  (isset($_GET[self::FORCE_TIME_COMMENT_QUERY_ARG]) ? $htmlEndComment : '');
182
+ $this->processedOutputBufferHtmlHashes[] = \md5($newResponse);
183
+ return $newResponse;
184
  }
185
  /**
186
  * Apply content blockers to a given HTML. It also supports JSON output.
236
  (\DevOwl\RealCookieBanner\Utils::isFrontend() || $this->isAdminAjaxAction()) &&
237
  \DevOwl\RealCookieBanner\settings\General::getInstance()->isBannerActive() &&
238
  \DevOwl\RealCookieBanner\settings\General::getInstance()->isBlockerActive() &&
 
239
  !is_customize_preview() &&
240
  !$this->isCurrentRequestException();
241
  /**
inc/view/Scanner.php CHANGED
@@ -3,7 +3,10 @@
3
  namespace DevOwl\RealCookieBanner\view;
4
 
5
  use DevOwl\RealCookieBanner\base\UtilsProvider;
 
6
  use DevOwl\RealCookieBanner\Core;
 
 
7
  use DevOwl\RealCookieBanner\scanner\ScanPresets;
8
  use DevOwl\RealCookieBanner\Utils;
9
  use DevOwl\RealCookieBanner\view\checklist\Scanner as ChecklistScanner;
@@ -18,6 +21,7 @@ class Scanner {
18
  use UtilsProvider;
19
  const ACTION_SCANNER_FOUND_SERVICES = 'rcb-scanner-found-services';
20
  const OPTION_NAME = RCB_OPT_PREFIX . '-scanner-notice-dismissed';
 
21
  const QUERY_ARG_DISMISS = self::OPTION_NAME;
22
  const MAX_FOUND_SERVICES_LIST_ITEMS = 5;
23
  /**
@@ -161,12 +165,24 @@ class Scanner {
161
  /**
162
  * Get a list of found services + external URLs which should be listed in the admin notice.
163
  *
 
 
 
164
  * @param int $max
165
  * @return array [services chunked to `$max`, count of all found services]
166
  */
167
  public function getServicesForNotice($max = 5) {
 
 
 
 
168
  $result = [];
169
  $dismissedItems = $this->getDismissedItems();
 
 
 
 
 
170
  // Collect non-existing presets
171
  $presets = (new \DevOwl\RealCookieBanner\scanner\ScanPresets())->getAllFromCache();
172
  foreach ($presets as $preset) {
@@ -201,13 +217,16 @@ class Scanner {
201
  }
202
  }
203
  if (\count($result) === 0) {
204
- return [[], 0, []];
 
 
 
 
 
 
205
  }
206
- // Always show the newest found items as first item
207
- \array_multisort(\array_column($result, 'priority'), \SORT_DESC, $result);
208
- $readableNames = \array_column($result, 'name');
209
- $technicalNames = \array_column($result, 'identifier');
210
- return [\array_chunk($readableNames, $max)[0], \count($result), $technicalNames];
211
  }
212
  /**
213
  * Get dismissed items by preset or external host URL.
3
  namespace DevOwl\RealCookieBanner\view;
4
 
5
  use DevOwl\RealCookieBanner\base\UtilsProvider;
6
+ use DevOwl\RealCookieBanner\comp\language\Hooks;
7
  use DevOwl\RealCookieBanner\Core;
8
+ use DevOwl\RealCookieBanner\presets\BlockerPresets;
9
+ use DevOwl\RealCookieBanner\presets\CookiePresets;
10
  use DevOwl\RealCookieBanner\scanner\ScanPresets;
11
  use DevOwl\RealCookieBanner\Utils;
12
  use DevOwl\RealCookieBanner\view\checklist\Scanner as ChecklistScanner;
21
  use UtilsProvider;
22
  const ACTION_SCANNER_FOUND_SERVICES = 'rcb-scanner-found-services';
23
  const OPTION_NAME = RCB_OPT_PREFIX . '-scanner-notice-dismissed';
24
+ const TRANSIENT_SERVICES_FOR_NOTICE = RCB_OPT_PREFIX . '-services-for-notice';
25
  const QUERY_ARG_DISMISS = self::OPTION_NAME;
26
  const MAX_FOUND_SERVICES_LIST_ITEMS = 5;
27
  /**
165
  /**
166
  * Get a list of found services + external URLs which should be listed in the admin notice.
167
  *
168
+ * Attention: This query is cached to a transient as it is very expensive! Use
169
+ * `delete_transient(Scanner::TRANSIENT_SERVICES_FOR_NOTICE)` to invalidate the cache.
170
+ *
171
  * @param int $max
172
  * @return array [services chunked to `$max`, count of all found services]
173
  */
174
  public function getServicesForNotice($max = 5) {
175
+ $value = get_transient(self::TRANSIENT_SERVICES_FOR_NOTICE);
176
+ if ($value !== \false) {
177
+ return $value;
178
+ }
179
  $result = [];
180
  $dismissedItems = $this->getDismissedItems();
181
+ // Probably refresh preset metadata cache
182
+ $tempTd = \DevOwl\RealCookieBanner\comp\language\Hooks::getInstance()->createTemporaryTextDomain();
183
+ (new \DevOwl\RealCookieBanner\presets\BlockerPresets())->getClassList();
184
+ (new \DevOwl\RealCookieBanner\presets\CookiePresets())->getClassList();
185
+ $tempTd->teardown();
186
  // Collect non-existing presets
187
  $presets = (new \DevOwl\RealCookieBanner\scanner\ScanPresets())->getAllFromCache();
188
  foreach ($presets as $preset) {
217
  }
218
  }
219
  if (\count($result) === 0) {
220
+ $result = [[], 0, []];
221
+ } else {
222
+ // Always show the newest found items as first item
223
+ \array_multisort(\array_column($result, 'priority'), \SORT_DESC, $result);
224
+ $readableNames = \array_column($result, 'name');
225
+ $technicalNames = \array_column($result, 'identifier');
226
+ $result = [\array_chunk($readableNames, $max)[0], \count($result), $technicalNames];
227
  }
228
+ set_transient(self::TRANSIENT_SERVICES_FOR_NOTICE, $result, 2 * DAY_IN_SECONDS);
229
+ return $result;
 
 
 
230
  }
231
  /**
232
  * Get dismissed items by preset or external host URL.
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.16.0
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.16.1
12
  * Text Domain: real-cookie-banner
13
  * Domain Path: /languages
14
  */
public/dist/138.lite.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[138],{8950:function(e,t,n){n.d(t,{Y:function(){return i}});var o=n(7363),a=n(5998),r=n.n(a),i=function(e){var t=e.settings,n=void 0===t?{}:t,a=e.value,i=void 0===a?"":a,c=e.onChange,s=(0,o.useRef)(),l=r().codeEditor;(0,o.useEffect)((function(){l&&l.initialize(s.current,n).codemirror.on("change",(function(e){null==c||c(e.getValue())}))}),[]);var u=(0,o.useCallback)((function(){}),[]);return React.createElement("textarea",{ref:s,value:i,onChange:l?u:function(e){var t=e.target.value;return c(t)},style:{width:"100%"}})}},2982:function(e,t,n){n.d(t,{f:function(){return a}});var o=n(2711),a=function(e){var t=e.children,n=e.maxWidth,a=void 0===n?"auto":n,r=e.style,i=void 0===r?{}:r;return React.createElement("div",{className:"rcb-config-content",style:(0,o.Z)({maxWidth:"fixed"===a?1300:a},i)},t)}},8439:function(e,t,n){n.d(t,{K:function(){return d}});var o=n(6069),a=n(7228),r=n(7363),i=n(3554),c=n(5071),s=n(5406),l=n(3612),u=n(4614),d=(0,i.Pi)((function(e){var t=e.identifier,n=e.width,i=e.title,d=(0,u.m)().optionStore,h=d.others.modalHints,m=(0,r.useState)(!1),p=(0,a.Z)(m,2),f=p[0],y=p[1];(0,r.useEffect)((function(){y(-1===h.indexOf(t))}),[h.length,t]);var v=(0,l.v)(t),g="string"==typeof v&&v.indexOf("?")>-1?v.split("?")[0]:"",k=i||(g?"".concat(g,"?"):(0,c.__)("What you should definitely know!")),_="string"==typeof v&&"string"==typeof k&&g?v.replace(k,"").trim():v,w=(0,r.useCallback)((function(){d.setModalHintSeen(t)}),[t,d]);return React.createElement(o.Z,{visible:f,title:React.createElement("span",null,React.createElement(s.Z,{style:{color:"#1890ff"}})," ",k),closable:!1,onOk:w,width:n,okText:(0,c.__)("Okay, I got it"),cancelButtonProps:{style:{display:"none"}}},_)}))},4453:function(e,t,n){n.d(t,{j:function(){return _}});var o=n(4741),a=n(9591),r=n(3306),i=n(2519),c=n(7228),s=n(3735),l=n(7363),u=n(3554),d=n(6703),h=n(5071),m=n(1857),p=n(6107),f=n(4522),y=n(4614),v=s.Z.Meta,g=(0,u.Pi)((function(e){var t=e.identifier,n=e.version,o=e.name,a=e.description,r=e.logoUrl,i=e.disabled,c=e.created,u=e.attributes_name,d=e.tier,g=e.tags,k=e.onSelect,_=e.renderActions,w=(0,y.m)().optionStore.others.isDemoEnv,b=(0,f.t)({title:(0,h.__)("Want to use %s template?",o),feature:"preset",description:"".concat((0,h.__)("Only a limited number of templates for services and content blockers are available in the %s version of Real Cookie Banner. Get the PRO version now and create a service or content blocker from this template with just one click!",(w?(0,h.__)("Demo"):(0,h.__)("Free")).toLowerCase())).concat(w?"":"\n\n".concat((0,h.__)("You can create this service yourself in the free version without any restrictions and research the necessary information.")))},!w&&void 0),E=b.isPro,R=b.open,C=b.modal,x=(0,h.__)("Disabled"),Z="pro"===d&&!E;return React.createElement(l.Fragment,{key:t},C,React.createElement(m.Z,{title:i?React.createElement("span",{dangerouslySetInnerHTML:{__html:g[x]}}):void 0},React.createElement(s.Z,{className:"rcb-antd-preset-card",hoverable:!i,style:{opacity:i||c?.6:1},onClick:function(e){e.target.closest(".rcb-antd-card")&&(Z?R():i||k({identifier:t,version:n,attributes_name:u},e))},cover:React.createElement("img",{style:{width:"90%"},src:r}),actions:_?_(e):[]},React.createElement(v,{title:React.createElement("span",null,Z&&React.createElement(p.Z,{color:f.k},"PRO"),!!g&&Object.keys(g).map((function(e){return React.createElement(m.Z,{title:e===x?void 0:React.createElement("span",{dangerouslySetInnerHTML:{__html:g[e]}}),key:e},React.createElement(p.Z,null,e))})),React.createElement("br",null),o),description:a||React.createElement("i",null,(0,h.__)("No description"))}))))})),k=s.Z.Meta,_=(0,u.Pi)((function(e){var t=e.fetchingPresets,n=e.presets,u=e.onSelect,m=e.renderActions,p=e.quickLinks,f=void 0===p?[]:p,y=e.children,v=e.showSearch,_=void 0===v||v,w=e.showDisabled,b=void 0===w||w,E=e.showHidden,R=void 0!==E&&E,C=(0,d.u)().isPro,x=(0,l.useState)(""),Z=(0,c.Z)(x,2),T=Z[0],S=Z[1],P=(0,l.useState)(!1),A=(0,c.Z)(P,2),W=A[0],D=A[1],q=(0,l.useMemo)((function(){return n.filter((function(e){var t=e.tier;return!!C||!W||"pro"!==t})).filter((function(e){var t=e.name,n=e.description;return!T.trim().length||T.split(" ").filter(Boolean).filter((function(e){return"".concat(t," ").concat(n||"").toLowerCase().indexOf(e.trim().toLowerCase())>-1})).length>0})).filter((function(e){var t=e.hidden;return!!R||!t})).filter((function(e){var t=e.disabled;return!!b||!t}))}),[n,T,W]);return React.createElement("div",{className:"column-posts"},f.map((function(e){var t=e.id,n=e.cover,o=e.description,a=e.onClick,r=e.title;return React.createElement(s.Z,{key:t,hoverable:!0,style:{margin:5,width:240,display:"inline-block"},onClick:a,cover:n},React.createElement(k,{title:r,description:o}))})),React.createElement(a.Z,{spinning:t},y,_&&React.createElement("div",{style:{marginBottom:20}},React.createElement(i.Z.Search,{autoFocus:!0,style:{maxWidth:400},placeholder:(0,h.__)("Search template by name..."),onChange:function(e){return S(e.target.value)}}),React.createElement("br",null),!C&&React.createElement(r.Z,{onChange:function(){return D(!W)},style:{marginTop:10}},(0,h.__)("Show only free templates")))),0===q.length&&T.length>0&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0",maxWidth:400,display:"inline-block"}},React.createElement("p",null,(0,h._i)((0,h.__)("{{strong}}No template found{{/strong}}. Please try to create the service yourself or {{a}}contact us{{/a}} and let us know for which service you need a template."),{strong:React.createElement("strong",null),a:React.createElement("a",{href:(0,h.__)("https://devowl.io/support/"),target:"_blank",rel:"noreferrer"})}))),q.map((function(e){return React.createElement(g,(0,o.Z)({key:e.id,onSelect:u,renderActions:m},e))})))}))},3612:function(e,t,n){n.d(t,{v:function(){return h}});var o=n(5489),a=n(8503),r=n(2841),i=n(7330),c=n(8603),s=n(4614),l=n(5071),u=n(2185),d=n(4342);function h(e){var t=(0,s.m)().optionStore.tcf;switch(e){case"scanner":var n=(0,u.u)().openDialog;return React.createElement(React.Fragment,null,React.createElement("p",{className:"description"},(0,l.__)("The scanner finds services that you use on your website that might set/read cookies or process personal data. This is e.g. Google Analytics, YouTube or Elementor. If there is no template for a service, you will see from which external URLs content, scripts etc. are embedded. This allows you to set up your cookie banner quickly and easily.")),React.createElement("p",{className:"description"},(0,l._i)((0,l.__)("We explicitly do not find cookies because that would not work reliably. {{a}}We explained why in our knowledge base.{{/a}}"),{a:React.createElement("a",{rel:"noreferrer",href:(0,l.__)("https://devowl.io/knowledge-base/real-cookie-banner-cookie-scanner-finds-cookies-automatically/"),target:"_blank"})})),React.createElement(o.Z,{style:{margin:"10px 0"}},React.createElement(a.Z,{span:11},React.createElement("div",{style:{paddingRight:10}},React.createElement(r.Z,null,(0,l.__)("What the scanner finds ...")),[(0,l.__)("External services (with and without template)"),(0,l.__)("WordPress plugins with templates that require consent"),(0,l.__)("Automatic check of all subpages of your website")].map((function(e,t){return React.createElement("div",{key:t,style:{marginBottom:10}},React.createElement(i.Z,{twoToneColor:"#52c41a"}),"  ",e)})))),React.createElement(a.Z,{span:2,style:{textAlign:"center"}},React.createElement(r.Z,{type:"vertical",style:{height:"100%"}})),React.createElement(a.Z,{span:11},React.createElement("div",null,React.createElement(r.Z,null,(0,l.__)("... and what it does not")),[(0,l.__)("Cookies from unknown WordPress plugins"),(0,l.__)("Services embedded after the page load via JavaScript"),(0,l.__)("Complete coverage of your individual use case")].map((function(e,t){return React.createElement("div",{key:t,style:{marginBottom:10}},React.createElement(c.Z,{twoToneColor:"#eb2f96"}),"  ",e)}))))),React.createElement("p",{className:"description"},(0,l._i)((0,l.__)("Just by using the scanner, you will not set up your cookie banner one hundred percent correctly. If it is too complex or time-consuming for you to set up the cookie banner yourself, just let one of our {{a}}cookie experts{{/a}} set it up for you!"),{a:React.createElement("a",{style:{textDecoration:"underline",cursor:"pointer"},onClick:n})})));case"cookie":return React.createElement(React.Fragment,null,(0,l.__)("What are services? Services can be external applications such as Google Analytics or WordPress plugins or themes that process personal data (e.g. IP address) and/or set cookies. Cookies (and similar technologies) are small text files that are stored on the device of visitors to your website. You can store information about the visitor in cookies, such as the website's language, or unique advertising IDs to display personalized advertising. You, as the site owner, must ensure that cookies are only placed on your visitors' devices and personal data are only processed if they have given their explicit consent. Unless you have a legitimate interest in the legal sense to do so even without consent. You can define here all the services you use and their cookies with their legal and technical information.")," ",React.createElement(d.r,{url:(0,l.__)("https://devowl.io/2021/web-cookies-overview/")}));case"blocker":return(0,l.__)("What is a content blocker? Imagine that a user of your website does not accept all services. At the same time, you have integrated e.g. a YouTube video that sets cookies that the visitor has not agreed to. According to the ePrivacy Directive, this is prohibited. Content blockers automatically replace iframes, script and link tags like YouTube videos for such users and offer them to watch the video as soon as they agree to load it.");case"list-of-consents":return(0,l._i)((0,l.__)("Consents are automatically documented in order to be able to prove compliance with the legal requirements according to {{a}}Art. 5 GDPR{{/a}} and, in case of dispute, to prove how the consent was obtained."),{a:React.createElement("a",{href:"https://gdpr-info.eu/art-5-gdpr/",target:"_blank",rel:"noreferrer"})});case"shortcodes":return(0,l._i)((0,l.__)("To comply with the ePrivacy Directive, you must provide links in your footer and/or privacy policy so that your website visitors can view the history of consents and change or revoke consent."),{strong:React.createElement("strong",null)})+(t?" ".concat((0,l.__)("To meet the requirements of the TCF standard, the shortcodes should be placed near the link to the privacy policy.")):"");case"tcf-vendor":return(0,l._i)((0,l.__)("What is a TCF vendor? According to the IAB Europe Transparency and Consent Framework (TCF), any service (e.g. Google for Google Ads) that wants to use consents according to the TCF standard must register as a vendor in the {{a}}Global Vendor List (GVL){{/a}}. All TCF vendors specify for which purposes they need consent to process data and set cookies and which features they can offer with these consents. They also provide a link to their privacy policy for further information. You, as a website operator, must obtain consent in your cookie banner for all vendors you work with. You can limit the requested purposes of vendors to keep consents as privacy-friendly as possible."),{a:React.createElement("a",{href:"https://iabeurope.eu/vendor-list-tcf-v2-0/",target:"_blank",rel:"noreferrer"})});default:return""}}},2185:function(e,t,n){n.d(t,{u:function(){return l}});var o=n(2841),a=n(5235),r=n(6069),i=n(7363),c=n(4614),s=n(5071);function l(){var e=(0,c.m)().optionStore.others.assetsUrl,t="".concat(e,"cookie-experts.svg"),n=(0,i.useCallback)((function(){r.Z.info({icon:void 0,width:500,closable:!0,okButtonProps:{style:{display:"none"}},content:React.createElement("div",{style:{textAlign:"center"}},React.createElement("img",{src:t,style:{display:"block",paddingTop:15,margin:"auto",height:176}}),React.createElement("h3",{style:{margin:"10px 0 0"}},"Cookie Experts"),React.createElement("p",{style:{marginTop:0}},(0,s.__)("Let our team help you with the setup")),React.createElement(o.Z,null,React.createElement(a.C.Group,{size:"large"},React.createElement(a.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/jan.karres.jpeg"}),React.createElement(a.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/mario.guenter.jpeg"}),React.createElement(a.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/matthias.guenter.jpeg"}))),React.createElement("a",{href:(0,s.__)("https://devowl.io/wordpress-real-cookie-banner/cookie-experts/"),target:"_blank",rel:"noreferrer",className:"button button-large button-primary"},(0,s.__)("Get help from Cookie Experts")),React.createElement("p",null,(0,s.__)("We admit, it is not easy to find all the services, cookies, etc. The legal requirements in the EU are quite complex for many website operators. We can understand if you feel overwhelmed – if this goes far beyond what you can technically do. After you know what all has to be considered, the question of how to make your website privacy compliant does not let you sleep peacefully either.")),React.createElement("p",null,(0,s.__)("Don’t worry, we have a solution for you! Our Cookie Experts have already set up many cookie banners and know exactly what they are doing. They can also set up your cookie banner quickly and easily. So, we can simply take this worry away from you.")),React.createElement("a",{style:{marginTop:10,textDecoration:"underline",display:"inline-block",cursor:"pointer"},onClick:function(){return r.Z.destroyAll()}},(0,s.__)("Close")))})}),[]);return{logoUrl:t,openDialog:n}}}}]);
2
- //# sourceMappingURL=138.lite.js.map?ver=f1ec0d8f51d758b348dc
1
+ "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[138],{8950:function(e,t,n){n.d(t,{Y:function(){return i}});var a=n(7363),o=n(5998),r=n.n(o),i=function(e){var t=e.settings,n=void 0===t?{}:t,o=e.value,i=void 0===o?"":o,c=e.onChange,s=(0,a.useRef)(),l=r().codeEditor;(0,a.useEffect)((function(){l&&l.initialize(s.current,n).codemirror.on("change",(function(e){null==c||c(e.getValue())}))}),[]);var u=(0,a.useCallback)((function(){}),[]);return React.createElement("textarea",{ref:s,value:i,onChange:l?u:function(e){var t=e.target.value;return c(t)},style:{width:"100%"}})}},2982:function(e,t,n){n.d(t,{f:function(){return o}});var a=n(2711),o=function(e){var t=e.children,n=e.maxWidth,o=void 0===n?"auto":n,r=e.style,i=void 0===r?{}:r;return React.createElement("div",{className:"rcb-config-content",style:(0,a.Z)({maxWidth:"fixed"===o?1300:o},i)},t)}},8439:function(e,t,n){n.d(t,{K:function(){return d}});var a=n(6069),o=n(7228),r=n(7363),i=n(3554),c=n(5071),s=n(5406),l=n(3612),u=n(4614),d=(0,i.Pi)((function(e){var t=e.identifier,n=e.width,i=e.title,d=(0,u.m)().optionStore,h=d.others.modalHints,m=(0,r.useState)(!1),p=(0,o.Z)(m,2),f=p[0],y=p[1];(0,r.useEffect)((function(){y(-1===h.indexOf(t))}),[h.length,t]);var v=(0,l.v)(t),g="string"==typeof v&&v.indexOf("?")>-1?v.split("?")[0]:"",_=i||(g?"".concat(g,"?"):(0,c.__)("What you should definitely know!")),k="string"==typeof v&&"string"==typeof _&&g?v.replace(_,"").trim():v,b=(0,r.useCallback)((function(){d.setModalHintSeen(t)}),[t,d]);return React.createElement(a.Z,{visible:f,title:React.createElement("span",null,React.createElement(s.Z,{style:{color:"#1890ff"}})," ",_),closable:!1,onOk:b,width:n,okText:(0,c.__)("Okay, I got it"),cancelButtonProps:{style:{display:"none"}}},k)}))},4453:function(e,t,n){n.d(t,{j:function(){return k}});var a=n(4741),o=n(9591),r=n(3306),i=n(2519),c=n(7228),s=n(3735),l=n(7363),u=n(3554),d=n(6703),h=n(5071),m=n(1857),p=n(6107),f=n(4522),y=n(4614),v=s.Z.Meta,g=(0,u.Pi)((function(e){var t=e.identifier,n=e.version,a=e.name,o=e.description,r=e.logoUrl,i=e.disabled,c=e.created,u=e.attributes_name,d=e.tier,g=e.tags,_=e.onSelect,k=e.renderActions,b=(0,y.m)().optionStore.others.isDemoEnv,w=(0,f.t)({title:(0,h.__)("Want to use %s template?",a),feature:"preset",description:"".concat((0,h.__)("Only a limited number of templates for services and content blockers are available in the %s version of Real Cookie Banner. Get the PRO version now and create a service or content blocker from this template with just one click!",(b?(0,h.__)("Demo"):(0,h.__)("Free")).toLowerCase())).concat(b?"":"\n\n".concat((0,h.__)("You can create this service yourself in the free version without any restrictions and research the necessary information.")))},!b&&void 0),R=w.isPro,E=w.open,C=w.modal,x=(0,h.__)("Disabled"),Z="pro"===d&&!R;return React.createElement(l.Fragment,{key:t},C,React.createElement(m.Z,{title:i?React.createElement("span",{dangerouslySetInnerHTML:{__html:g[x]}}):void 0},React.createElement(s.Z,{className:"rcb-antd-preset-card",hoverable:!i,style:{opacity:i||c?.6:1},onClick:function(e){e.target.closest(".rcb-antd-card")&&(Z?E():i||_({identifier:t,version:n,attributes_name:u},e))},cover:React.createElement("img",{style:{width:"90%"},src:r}),actions:k?k(e):[]},React.createElement(v,{title:React.createElement("span",null,Z&&React.createElement(p.Z,{color:f.k},"PRO"),!!g&&Object.keys(g).map((function(e){return React.createElement(m.Z,{title:e===x?void 0:React.createElement("span",{dangerouslySetInnerHTML:{__html:g[e]}}),key:e},React.createElement(p.Z,null,e))})),React.createElement("br",null),a),description:o||React.createElement("i",null,(0,h.__)("No description"))}))))})),_=s.Z.Meta,k=(0,u.Pi)((function(e){var t=e.fetchingPresets,n=e.presets,u=e.onSelect,m=e.renderActions,p=e.quickLinks,f=void 0===p?[]:p,y=e.children,v=e.showSearch,k=void 0===v||v,b=e.showDisabled,w=void 0===b||b,R=e.showHidden,E=void 0!==R&&R,C=(0,d.u)().isPro,x=(0,l.useState)(""),Z=(0,c.Z)(x,2),T=Z[0],S=Z[1],P=(0,l.useState)(!1),A=(0,c.Z)(P,2),W=A[0],D=A[1],F=(0,l.useMemo)((function(){return n.filter((function(e){var t=e.tier;return!!C||!W||"pro"!==t})).filter((function(e){var t=e.name,n=e.description;return!T.trim().length||T.split(" ").filter(Boolean).filter((function(e){return"".concat(t," ").concat(n||"").toLowerCase().indexOf(e.trim().toLowerCase())>-1})).length>0})).filter((function(e){var t=e.hidden;return!!E||!t})).filter((function(e){var t=e.disabled;return!!w||!t}))}),[n,T,W]);return React.createElement("div",{className:"column-posts"},f.map((function(e){var t=e.id,n=e.cover,a=e.description,o=e.onClick,r=e.title;return React.createElement(s.Z,{key:t,hoverable:!0,style:{margin:5,width:240,display:"inline-block"},onClick:o,cover:n},React.createElement(_,{title:r,description:a}))})),React.createElement(o.Z,{spinning:t},y,k&&React.createElement("div",{style:{marginBottom:20}},React.createElement(i.Z.Search,{autoFocus:!0,style:{maxWidth:400},placeholder:(0,h.__)("Search template by name..."),onChange:function(e){return S(e.target.value)}}),React.createElement("br",null),!C&&React.createElement(r.Z,{onChange:function(){return D(!W)},style:{marginTop:10}},(0,h.__)("Show only free templates")))),0===F.length&&T.length>0&&React.createElement("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0 0 0",maxWidth:400,display:"inline-block"}},React.createElement("p",null,(0,h._i)((0,h.__)("{{strong}}No template found{{/strong}}. Please try to create the service yourself or {{a}}contact us{{/a}} and let us know for which service you need a template."),{strong:React.createElement("strong",null),a:React.createElement("a",{href:(0,h.__)("https://devowl.io/support/"),target:"_blank",rel:"noreferrer"})}))),F.map((function(e){return React.createElement(g,(0,a.Z)({key:e.id,onSelect:u,renderActions:m},e))})))}))},3612:function(e,t,n){n.d(t,{v:function(){return h}});var a=n(5489),o=n(8503),r=n(2841),i=n(7330),c=n(8603),s=n(4614),l=n(5071),u=n(2185),d=n(4342);function h(e){var t=(0,s.m)().optionStore.tcf;switch(e){case"scanner":var n=(0,u.u)().openDialog;return React.createElement(React.Fragment,null,React.createElement("p",{className:"description"},(0,l.__)("The scanner finds services that you use on your website that might set/read cookies or process personal data. This is e.g. Google Analytics, YouTube or Elementor. If there is no template for a service, you will see from which external URLs content, scripts etc. are embedded. This allows you to set up your cookie banner quickly and easily.")),React.createElement("p",{className:"description"},(0,l._i)((0,l.__)("We explicitly do not find cookies because that would not work reliably. {{a}}We explained why in our knowledge base.{{/a}}"),{a:React.createElement("a",{rel:"noreferrer",href:(0,l.__)("https://devowl.io/knowledge-base/real-cookie-banner-cookie-scanner-finds-cookies-automatically/"),target:"_blank"})})),React.createElement(a.Z,{style:{margin:"10px 0"}},React.createElement(o.Z,{span:11},React.createElement("div",{style:{paddingRight:10}},React.createElement(r.Z,null,(0,l.__)("What the scanner finds ...")),[(0,l.__)("External services (with and without template)"),(0,l.__)("WordPress plugins with templates that require consent"),(0,l.__)("Automatic check of all subpages of your website")].map((function(e,t){return React.createElement("div",{key:t,style:{marginBottom:10}},React.createElement(i.Z,{twoToneColor:"#52c41a"}),"  ",e)})))),React.createElement(o.Z,{span:2,style:{textAlign:"center"}},React.createElement(r.Z,{type:"vertical",style:{height:"100%"}})),React.createElement(o.Z,{span:11},React.createElement("div",null,React.createElement(r.Z,null,(0,l.__)("... and what it does not")),[(0,l.__)("Cookies from unknown WordPress plugins"),(0,l.__)("Services embedded after the page load via JavaScript"),(0,l.__)("Complete coverage of your individual use case")].map((function(e,t){return React.createElement("div",{key:t,style:{marginBottom:10}},React.createElement(c.Z,{twoToneColor:"#eb2f96"}),"  ",e)}))))),React.createElement("p",{className:"description"},(0,l._i)((0,l.__)("Just by using the scanner, you will not set up your cookie banner one hundred percent correctly. If it is too complex or time-consuming for you to set up the cookie banner yourself, just let one of our {{a}}cookie experts{{/a}} set it up for you!"),{a:React.createElement("a",{style:{textDecoration:"underline",cursor:"pointer"},onClick:n})})));case"cookie":return React.createElement(React.Fragment,null,(0,l.__)("What are services? Services can be external applications such as Google Analytics or WordPress plugins or themes that process personal data (e.g. IP address) and/or set cookies. Cookies (and similar technologies) are small text files that are stored on the device of visitors to your website. You can store information about the visitor in cookies, such as the website's language, or unique advertising IDs to display personalized advertising. You, as the site owner, must ensure that cookies are only placed on your visitors' devices and personal data are only processed if they have given their explicit consent. Unless you have a legitimate interest in the legal sense to do so even without consent. You can define here all the services you use and their cookies with their legal and technical information.")," ",React.createElement(d.r,{url:(0,l.__)("https://devowl.io/2021/web-cookies-overview/")}));case"blocker":return(0,l.__)("What is a content blocker? Imagine that a user of your website does not accept all services. At the same time, you have integrated e.g. a YouTube video that sets cookies that the visitor has not agreed to. According to the ePrivacy Directive, this is prohibited. Content blockers automatically replace iframes, script and link tags like YouTube videos for such users and offer them to watch the video as soon as they agree to load it.");case"list-of-consents":return(0,l._i)((0,l.__)("Consents are automatically documented in order to be able to prove compliance with the legal requirements according to {{a}}Art. 5 GDPR{{/a}} and, in case of dispute, to prove how the consent was obtained."),{a:React.createElement("a",{href:"https://gdpr-info.eu/art-5-gdpr/",target:"_blank",rel:"noreferrer"})});case"shortcodes":return React.createElement(React.Fragment,null,(0,l._i)((0,l.__)("Your website visitors must be able to view their consent history, change their consent, or withdraw their consent at any time. This must be as easy as giving consent. Therefore, the shortcodes must be included on every subpage of the website (e.g. in the footer)."),{strong:React.createElement("strong",null)}),React.createElement("br",null),React.createElement("br",null),(0,l._i)((0,l.__)("Hiding these options, e.g. in the privacy policy, is a violation of the GDPR according to the {{a}}German data protection authorities' guidance (German){{/a}}."),{a:React.createElement("a",{href:"https://www.datenschutzkonferenz-online.de/media/oh/20211220_oh_telemedien.pdf",target:"_blank",rel:"noreferrer"})}),t?React.createElement(React.Fragment,null,React.createElement("br",null),React.createElement("br",null),(0,l.__)("To meet the requirements of the TCF standard, the shortcodes should be placed near the link to the privacy policy.")):null);case"tcf-vendor":return(0,l._i)((0,l.__)("What is a TCF vendor? According to the IAB Europe Transparency and Consent Framework (TCF), any service (e.g. Google for Google Ads) that wants to use consents according to the TCF standard must register as a vendor in the {{a}}Global Vendor List (GVL){{/a}}. All TCF vendors specify for which purposes they need consent to process data and set cookies and which features they can offer with these consents. They also provide a link to their privacy policy for further information. You, as a website operator, must obtain consent in your cookie banner for all vendors you work with. You can limit the requested purposes of vendors to keep consents as privacy-friendly as possible."),{a:React.createElement("a",{href:"https://iabeurope.eu/vendor-list-tcf-v2-0/",target:"_blank",rel:"noreferrer"})});default:return""}}},2185:function(e,t,n){n.d(t,{u:function(){return l}});var a=n(2841),o=n(5235),r=n(6069),i=n(7363),c=n(4614),s=n(5071);function l(){var e=(0,c.m)().optionStore.others.assetsUrl,t="".concat(e,"cookie-experts.svg"),n=(0,i.useCallback)((function(){r.Z.info({icon:void 0,width:500,closable:!0,okButtonProps:{style:{display:"none"}},content:React.createElement("div",{style:{textAlign:"center"}},React.createElement("img",{src:t,style:{display:"block",paddingTop:15,margin:"auto",height:176}}),React.createElement("h3",{style:{margin:"10px 0 0"}},"Cookie Experts"),React.createElement("p",{style:{marginTop:0}},(0,s.__)("Let our team help you with the setup")),React.createElement(a.Z,null,React.createElement(o.C.Group,{size:"large"},React.createElement(o.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/jan.karres.jpeg"}),React.createElement(o.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/mario.guenter.jpeg"}),React.createElement(o.C,{src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/matthias.guenter.jpeg"}))),React.createElement("a",{href:(0,s.__)("https://devowl.io/wordpress-real-cookie-banner/cookie-experts/"),target:"_blank",rel:"noreferrer",className:"button button-large button-primary"},(0,s.__)("Get help from Cookie Experts")),React.createElement("p",null,(0,s.__)("We admit, it is not easy to find all the services, cookies, etc. The legal requirements in the EU are quite complex for many website operators. We can understand if you feel overwhelmed – if this goes far beyond what you can technically do. After you know what all has to be considered, the question of how to make your website privacy compliant does not let you sleep peacefully either.")),React.createElement("p",null,(0,s.__)("Don’t worry, we have a solution for you! Our Cookie Experts have already set up many cookie banners and know exactly what they are doing. They can also set up your cookie banner quickly and easily. So, we can simply take this worry away from you.")),React.createElement("a",{style:{marginTop:10,textDecoration:"underline",display:"inline-block",cursor:"pointer"},onClick:function(){return r.Z.destroyAll()}},(0,s.__)("Close")))})}),[]);return{logoUrl:t,openDialog:n}}}}]);
2
+ //# sourceMappingURL=138.lite.js.map?ver=0b903d591c46f3563d00
public/dist/138.lite.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"138.lite.js?ver=f1ec0d8f51d758b348dc","mappings":"sMAGIA,EAAa,SAAoBC,GACnC,IAAIC,EAAgBD,EAAKE,SACrBA,OAA6B,IAAlBD,EAA2B,GAAKA,EAC3CE,EAAaH,EAAKI,MAClBA,OAAuB,IAAfD,EAAwB,GAAKA,EACrCE,EAAWL,EAAKK,SAChBC,GAAM,IAAAC,UACNC,EAAa,gBACjB,IAAAC,YAAU,WAEJD,GAC0BA,EAAWE,WAAWJ,EAAIK,QAAST,GACxBU,WAE5BC,GAAG,UAAU,SAAUC,GAChCT,MAAAA,GAAoDA,EAASS,EAASC,iBAGzE,IAGH,IAAIC,GAAO,IAAAC,cAAY,cACpB,IACH,OAAoBC,MAAMC,cAAc,WAAY,CAClDb,IAAKA,EACLF,MAAOA,EACPC,SAAUG,EAAaQ,EAAO,SAAUI,GACtC,IAAIhB,EAAQgB,EAAMC,OAAOjB,MACzB,OAAOC,EAASD,IAElBkB,MAAO,CACLC,MAAO,Y,mEChCTC,EAAgB,SAAuBxB,GACzC,IAAIyB,EAAWzB,EAAKyB,SAChBC,EAAgB1B,EAAK2B,SACrBA,OAA6B,IAAlBD,EAA2B,OAASA,EAC/CE,EAAa5B,EAAKsB,MAClBA,OAAuB,IAAfM,EAAwB,GAAKA,EACzC,OAAoBV,MAAMC,cAAc,MAAO,CAC7CU,UAAW,qBACXP,OAAO,OAAc,CACnBK,SAAuB,UAAbA,EAAuB,KAAOA,GACvCL,IACFG,K,yICLDK,GAAkB,SAAS,SAAU9B,GACvC,IAAI+B,EAAa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.tsx","webpack:///./src/public/ts/components/config/content.tsx","webpack:///./src/public/ts/components/config/hintModal.tsx","webpack:///./src/public/ts/components/config/presetCard.tsx","webpack:///./src/public/ts/components/config/presetSelector.tsx","webpack:///./src/public/ts/hooks/useConfigHintText.tsx","webpack:///./src/public/ts/hooks/useCookieExpertsModal.tsx"],"sourcesContent":["import { useRef, useEffect, useCallback } from \"react\";\nimport wp from \"wp\";\n\nvar CodeMirror = function CodeMirror(_ref) {\n var _ref$settings = _ref.settings,\n settings = _ref$settings === void 0 ? {} : _ref$settings,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? \"\" : _ref$value,\n onChange = _ref.onChange;\n var ref = useRef();\n var codeEditor = wp.codeEditor;\n useEffect(function () {\n // Check if the current profile allows syntax highlighting\n if (codeEditor) {\n var _codeEditor$initializ = codeEditor.initialize(ref.current, settings),\n codemirror = _codeEditor$initializ.codemirror;\n\n codemirror.on(\"change\", function (instance) {\n onChange === null || onChange === void 0 ? void 0 : onChange(instance.getValue());\n });\n }\n }, []); // Avoid React error: You provided a `value` prop to a form field without an `onChange` handler\n // The onChange handler is done by codemirror itself\n\n var noop = useCallback(function () {// Silence is golden.\n }, []);\n return /*#__PURE__*/React.createElement(\"textarea\", {\n ref: ref,\n value: value,\n onChange: codeEditor ? noop : function (_ref2) {\n var value = _ref2.target.value;\n return onChange(value);\n },\n style: {\n width: \"100%\"\n }\n });\n};\n\nexport { CodeMirror };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\n\nvar ConfigContent = function ConfigContent(_ref) {\n var children = _ref.children,\n _ref$maxWidth = _ref.maxWidth,\n maxWidth = _ref$maxWidth === void 0 ? \"auto\" : _ref$maxWidth,\n _ref$style = _ref.style,\n style = _ref$style === void 0 ? {} : _ref$style;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rcb-config-content\",\n style: _objectSpread({\n maxWidth: maxWidth === \"fixed\" ? 1300 : maxWidth\n }, style)\n }, children);\n};\n\nexport { ConfigContent };","import _Modal from \"antd/es/modal\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../utils\";\nimport { InfoCircleFilled } from \"@ant-design/icons\";\nimport { useConfigHintText } from \"../../hooks\";\nimport { useStores } from \"../../store\";\nvar ConfigHintModal = observer(function (_ref) {\n var identifier = _ref.identifier,\n width = _ref.width,\n title = _ref.title;\n\n var _useStores = useStores(),\n optionStore = _useStores.optionStore;\n\n var modalHints = optionStore.others.modalHints;\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n visible = _useState2[0],\n setVisible = _useState2[1];\n\n useEffect(function () {\n setVisible(modalHints.indexOf(identifier) === -1);\n }, [modalHints.length, identifier]); // Determine title and description\n\n var description = useConfigHintText(identifier);\n var questionInDesc = typeof description === \"string\" && description.indexOf(\"?\") > -1 ? description.split(\"?\")[0] : \"\";\n var useTitle = title ? title : questionInDesc ? \"\".concat(questionInDesc, \"?\") : __(\"What you should definitely know!\");\n var useDescription = typeof description === \"string\" && typeof useTitle === \"string\" && questionInDesc ? description.replace(useTitle, \"\").trim() : description;\n var handleOk = useCallback(function () {\n optionStore.setModalHintSeen(identifier);\n }, [identifier, optionStore]);\n return /*#__PURE__*/React.createElement(_Modal, {\n visible: visible,\n title: /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(InfoCircleFilled, {\n style: {\n color: \"#1890ff\"\n }\n }), \" \", useTitle),\n closable: false,\n onOk: handleOk,\n width: width,\n okText: __(\"Okay, I got it\"),\n cancelButtonProps: {\n style: {\n display: \"none\"\n }\n }\n }, useDescription);\n});\nexport { ConfigHintModal };","import _Tooltip from \"antd/es/tooltip\";\nimport _Tag from \"antd/es/tag\";\nimport _Card from \"antd/es/card\";\nimport { Fragment } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { useProModal, PRO_TAG_BACKGROUND_COLOR } from \"../../hooks\";\nimport { __ } from \"../../utils\";\nimport { useStores } from \"../../store\";\nvar Meta = _Card.Meta;\n\n// We can not use `FC` as we want to make this component generic\nfunction PresetCard(props) {\n var identifier = props.identifier,\n version = props.version,\n name = props.name,\n description = props.description,\n logoUrl = props.logoUrl,\n disabled = props.disabled,\n created = props.created,\n attributes_name = props.attributes_name,\n tier = props.tier,\n tags = props.tags,\n onSelect = props.onSelect,\n renderActions = props.renderActions;\n\n var _useStores = useStores(),\n isDemoEnv = _useStores.optionStore.others.isDemoEnv;\n\n var _useProModal = useProModal({\n title: __(\"Want to use %s template?\", name),\n feature: \"preset\",\n description: \"\".concat(__(\"Only a limited number of templates for services and content blockers are available in the %s version of Real Cookie Banner. Get the PRO version now and create a service or content blocker from this template with just one click!\", (isDemoEnv ? __(\"Demo\") : __(\"Free\")).toLowerCase())).concat(isDemoEnv ? \"\" : \"\\n\\n\".concat(__(\"You can create this service yourself in the free version without any restrictions and research the necessary information.\")))\n }, // PRO Presets are deactivate on try.devowl.io\n isDemoEnv ? false : undefined),\n isPro = _useProModal.isPro,\n openProModal = _useProModal.open,\n modal = _useProModal.modal;\n\n var disabledTranslatedText = __(\"Disabled\");\n\n var showProBadge = tier === \"pro\" && !isPro;\n return /*#__PURE__*/React.createElement(Fragment, {\n key: identifier\n }, modal, /*#__PURE__*/React.createElement(_Tooltip, {\n title: disabled ? /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: tags[disabledTranslatedText]\n }\n }) : undefined\n }, /*#__PURE__*/React.createElement(_Card, {\n className: \"rcb-antd-preset-card\",\n hoverable: !disabled,\n style: {\n opacity: disabled || created ? 0.6 : 1\n },\n onClick: function onClick(e) {\n // This event is bubbled also for the external URLs table in the modal dialog\n // Check if the click comes directly from the card\n if (!e.target.closest(\".rcb-antd-card\")) {\n return;\n }\n\n if (showProBadge) {\n openProModal();\n } else if (!disabled) {\n onSelect({\n identifier: identifier,\n version: version,\n attributes_name: attributes_name\n }, e);\n }\n },\n cover: /*#__PURE__*/React.createElement(\"img\", {\n style: {\n width: \"90%\"\n },\n src: logoUrl\n }),\n actions: renderActions ? renderActions(props) : []\n }, /*#__PURE__*/React.createElement(Meta, {\n title: /*#__PURE__*/React.createElement(\"span\", null, showProBadge && /*#__PURE__*/React.createElement(_Tag, {\n color: PRO_TAG_BACKGROUND_COLOR\n }, \"PRO\"), !!tags && Object.keys(tags).map(function (key) {\n return /*#__PURE__*/React.createElement(_Tooltip, {\n title: key === disabledTranslatedText ? undefined : /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: tags[key]\n }\n }),\n key: key\n }, /*#__PURE__*/React.createElement(_Tag, null, key));\n }), /*#__PURE__*/React.createElement(\"br\", null), name),\n description: description ? description : /*#__PURE__*/React.createElement(\"i\", null, __(\"No description\"))\n }))));\n}\n\nvar PresetCardObserved = observer(PresetCard);\nexport { PresetCardObserved as PresetCard };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _Spin from \"antd/es/spin\";\nimport _Checkbox from \"antd/es/checkbox\";\nimport _Input from \"antd/es/input\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _Card from \"antd/es/card\";\nimport { useState, useMemo } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, getOtherOptionsFromWindow } from \"../../utils\";\nimport { PresetCard } from \".\";\nvar Meta = _Card.Meta;\n\n// We can not use `FC` as we want to make this component generic\nfunction PresetSelector(_ref) {\n var fetchingPresets = _ref.fetchingPresets,\n presets = _ref.presets,\n onSelect = _ref.onSelect,\n renderActions = _ref.renderActions,\n _ref$quickLinks = _ref.quickLinks,\n quickLinks = _ref$quickLinks === void 0 ? [] : _ref$quickLinks,\n children = _ref.children,\n _ref$showSearch = _ref.showSearch,\n showSearch = _ref$showSearch === void 0 ? true : _ref$showSearch,\n _ref$showDisabled = _ref.showDisabled,\n showDisabled = _ref$showDisabled === void 0 ? true : _ref$showDisabled,\n _ref$showHidden = _ref.showHidden,\n showHidden = _ref$showHidden === void 0 ? false : _ref$showHidden;\n\n var _getOtherOptionsFromW = getOtherOptionsFromWindow(),\n isPro = _getOtherOptionsFromW.isPro;\n\n var _useState = useState(\"\"),\n _useState2 = _slicedToArray(_useState, 2),\n term = _useState2[0],\n setTerm = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isShowOnlyFree = _useState4[0],\n setShowOnlyFree = _useState4[1]; // Create filtered presets\n\n\n var usePresets = useMemo(function () {\n return presets.filter(function (_ref2) {\n var tier = _ref2.tier;\n return isPro ? true : isShowOnlyFree ? tier !== \"pro\" : true;\n }).filter(function (_ref3) {\n var name = _ref3.name,\n description = _ref3.description;\n return term.trim().length ? term.split(\" \").filter(Boolean).filter(function (singleTerm) {\n return (// Include description in search index\n \"\".concat(name, \" \").concat(description || \"\").toLowerCase().indexOf(singleTerm.trim().toLowerCase()) > -1\n );\n }).length > 0 : true;\n }).filter(function (_ref4) {\n var hidden = _ref4.hidden;\n return showHidden ? true : !hidden;\n }).filter(function (_ref5) {\n var disabled = _ref5.disabled;\n return showDisabled ? true : !disabled;\n });\n }, [presets, term, isShowOnlyFree]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"column-posts\"\n }, quickLinks.map(function (_ref6) {\n var id = _ref6.id,\n cover = _ref6.cover,\n description = _ref6.description,\n onClick = _ref6.onClick,\n title = _ref6.title;\n return /*#__PURE__*/React.createElement(_Card, {\n key: id,\n hoverable: true,\n style: {\n margin: 5,\n width: 240,\n display: \"inline-block\"\n },\n onClick: onClick,\n cover: cover\n }, /*#__PURE__*/React.createElement(Meta, {\n title: title,\n description: description\n }));\n }), /*#__PURE__*/React.createElement(_Spin, {\n spinning: fetchingPresets\n }, children, showSearch && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n marginBottom: 20\n }\n }, /*#__PURE__*/React.createElement(_Input.Search, {\n autoFocus: true,\n style: {\n maxWidth: 400\n },\n placeholder: __(\"Search template by name...\"),\n onChange: function onChange(e) {\n return setTerm(e.target.value);\n }\n }), /*#__PURE__*/React.createElement(\"br\", null), !isPro && /*#__PURE__*/React.createElement(_Checkbox, {\n onChange: function onChange() {\n return setShowOnlyFree(!isShowOnlyFree);\n },\n style: {\n marginTop: 10\n }\n }, __(\"Show only free templates\")))), usePresets.length === 0 && term.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 maxWidth: 400,\n display: \"inline-block\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"{{strong}}No template found{{/strong}}. Please try to create the service yourself or {{a}}contact us{{/a}} and let us know for which service you need a template.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null),\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/support/\"),\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }))), usePresets.map(function (preset) {\n return /*#__PURE__*/React.createElement(PresetCard, _extends({\n key: preset.id,\n onSelect: onSelect,\n renderActions: renderActions\n }, preset));\n }));\n}\n\nvar PresetSelectorObserved = observer(PresetSelector);\nexport { PresetSelectorObserved as PresetSelector };","import _Row from \"antd/es/row\";\nimport _Col from \"antd/es/col\";\nimport _Divider from \"antd/es/divider\";\nimport { CheckCircleTwoTone, CloseCircleTwoTone } from \"@ant-design/icons\";\nimport { useStores } from \"../store\";\nimport { __, _i } from \"../utils\";\nimport { useCookieExpertsModal } from \"./useCookieExpertsModal\";\nimport { LearnMoreTag } from \"../components\";\n\nfunction useConfigHintText(identifier) {\n var _useStores = useStores(),\n tcf = _useStores.optionStore.tcf;\n\n switch (identifier) {\n case \"scanner\":\n {\n var _useCookieExpertsModa = useCookieExpertsModal(),\n openDialog = _useCookieExpertsModa.openDialog;\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"The scanner finds services that you use on your website that might set/read cookies or process personal data. This is e.g. Google Analytics, YouTube or Elementor. If there is no template for a service, you will see from which external URLs content, scripts etc. are embedded. This allows you to set up your cookie banner quickly and easily.\")), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"We explicitly do not find cookies because that would not work reliably. {{a}}We explained why in our knowledge base.{{/a}}\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n rel: \"noreferrer\",\n href: __(\"https://devowl.io/knowledge-base/real-cookie-banner-cookie-scanner-finds-cookies-automatically/\"),\n target: \"_blank\"\n })\n })), /*#__PURE__*/React.createElement(_Row, {\n style: {\n margin: \"10px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Col, {\n span: 11\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n paddingRight: 10\n }\n }, /*#__PURE__*/React.createElement(_Divider, null, __(\"What the scanner finds ...\")), [__(\"External services (with and without template)\"), __(\"WordPress plugins with templates that require consent\"), __(\"Automatic check of all subpages of your website\")].map(function (text, i) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n style: {\n marginBottom: 10\n }\n }, /*#__PURE__*/React.createElement(CheckCircleTwoTone, {\n twoToneColor: \"#52c41a\"\n }), \"\\xA0\\xA0\", text);\n }))), /*#__PURE__*/React.createElement(_Col, {\n span: 2,\n style: {\n textAlign: \"center\"\n }\n }, /*#__PURE__*/React.createElement(_Divider, {\n type: \"vertical\",\n style: {\n height: \"100%\"\n }\n })), /*#__PURE__*/React.createElement(_Col, {\n span: 11\n }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(_Divider, null, __(\"... and what it does not\")), [__(\"Cookies from unknown WordPress plugins\"), __(\"Services embedded after the page load via JavaScript\"), __(\"Complete coverage of your individual use case\")].map(function (text, i) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n style: {\n marginBottom: 10\n }\n }, /*#__PURE__*/React.createElement(CloseCircleTwoTone, {\n twoToneColor: \"#eb2f96\"\n }), \"\\xA0\\xA0\", text);\n })))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"Just by using the scanner, you will not set up your cookie banner one hundred percent correctly. If it is too complex or time-consuming for you to set up the cookie banner yourself, just let one of our {{a}}cookie experts{{/a}} set it up for you!\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n style: {\n textDecoration: \"underline\",\n cursor: \"pointer\"\n },\n onClick: openDialog\n })\n })));\n }\n\n case \"cookie\":\n return /*#__PURE__*/React.createElement(React.Fragment, null, __(\"What are services? Services can be external applications such as Google Analytics or WordPress plugins or themes that process personal data (e.g. IP address) and/or set cookies. Cookies (and similar technologies) are small text files that are stored on the device of visitors to your website. You can store information about the visitor in cookies, such as the website's language, or unique advertising IDs to display personalized advertising. You, as the site owner, must ensure that cookies are only placed on your visitors' devices and personal data are only processed if they have given their explicit consent. Unless you have a legitimate interest in the legal sense to do so even without consent. You can define here all the services you use and their cookies with their legal and technical information.\"), \"\\xA0\", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/2021/web-cookies-overview/\")\n }));\n\n case \"blocker\":\n return __(\"What is a content blocker? Imagine that a user of your website does not accept all services. At the same time, you have integrated e.g. a YouTube video that sets cookies that the visitor has not agreed to. According to the ePrivacy Directive, this is prohibited. Content blockers automatically replace iframes, script and link tags like YouTube videos for such users and offer them to watch the video as soon as they agree to load it.\");\n\n case \"list-of-consents\":\n return _i(__(\"Consents are automatically documented in order to be able to prove compliance with the legal requirements according to {{a}}Art. 5 GDPR{{/a}} and, in case of dispute, to prove how the consent was obtained.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://gdpr-info.eu/art-5-gdpr/\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n });\n\n case \"shortcodes\":\n return _i(__(\"To comply with the ePrivacy Directive, you must provide links in your footer and/or privacy policy so that your website visitors can view the history of consents and change or revoke consent.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n }) + (tcf ? \" \".concat(__(\"To meet the requirements of the TCF standard, the shortcodes should be placed near the link to the privacy policy.\")) : \"\");\n\n case \"tcf-vendor\":\n return _i(__(\"What is a TCF vendor? According to the IAB Europe Transparency and Consent Framework (TCF), any service (e.g. Google for Google Ads) that wants to use consents according to the TCF standard must register as a vendor in the {{a}}Global Vendor List (GVL){{/a}}. All TCF vendors specify for which purposes they need consent to process data and set cookies and which features they can offer with these consents. They also provide a link to their privacy policy for further information. You, as a website operator, must obtain consent in your cookie banner for all vendors you work with. You can limit the requested purposes of vendors to keep consents as privacy-friendly as possible.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://iabeurope.eu/vendor-list-tcf-v2-0/\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n });\n\n default:\n return \"\";\n }\n}\n\nexport { useConfigHintText };","import _Divider from \"antd/es/divider\";\nimport _Avatar from \"antd/es/avatar\";\nimport _Modal from \"antd/es/modal\";\nimport { useCallback } from \"react\";\nimport { useStores } from \"../store\";\nimport { __ } from \"../utils\";\n\nfunction useCookieExpertsModal() {\n var _useStores = useStores(),\n assetsUrl = _useStores.optionStore.others.assetsUrl;\n\n var logoUrl = \"\".concat(assetsUrl, \"cookie-experts.svg\");\n var openDialog = useCallback(function () {\n _Modal.info({\n icon: undefined,\n width: 500,\n closable: true,\n okButtonProps: {\n style: {\n display: \"none\"\n }\n },\n content: /*#__PURE__*/React.createElement(\"div\", {\n style: {\n textAlign: \"center\"\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logoUrl,\n style: {\n display: \"block\",\n paddingTop: 15,\n margin: \"auto\",\n height: 176\n }\n }), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n margin: \"10px 0 0\"\n }\n }, \"Cookie Experts\"), /*#__PURE__*/React.createElement(\"p\", {\n style: {\n marginTop: 0\n }\n }, __(\"Let our team help you with the setup\")), /*#__PURE__*/React.createElement(_Divider, null, /*#__PURE__*/React.createElement(_Avatar.Group, {\n size: \"large\"\n }, /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/jan.karres.jpeg\"\n }), /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/mario.guenter.jpeg\"\n }), /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/matthias.guenter.jpeg\"\n }))), /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/wordpress-real-cookie-banner/cookie-experts/\"),\n target: \"_blank\",\n rel: \"noreferrer\",\n className: \"button button-large button-primary\"\n }, __(\"Get help from Cookie Experts\")), /*#__PURE__*/React.createElement(\"p\", null, __(\"We admit, it is not easy to find all the services, cookies, etc. The legal requirements in the EU are quite complex for many website operators. We can understand if you feel overwhelmed – if this goes far beyond what you can technically do. After you know what all has to be considered, the question of how to make your website privacy compliant does not let you sleep peacefully either.\")), /*#__PURE__*/React.createElement(\"p\", null, __(\"Don’t worry, we have a solution for you! Our Cookie Experts have already set up many cookie banners and know exactly what they are doing. They can also set up your cookie banner quickly and easily. So, we can simply take this worry away from you.\")), /*#__PURE__*/React.createElement(\"a\", {\n style: {\n marginTop: 10,\n textDecoration: \"underline\",\n display: \"inline-block\",\n cursor: \"pointer\"\n },\n onClick: function onClick() {\n return _Modal.destroyAll();\n }\n }, __(\"Close\")))\n });\n }, []);\n return {\n logoUrl: logoUrl,\n openDialog: openDialog\n };\n}\n\nexport { useCookieExpertsModal };"],"names":["CodeMirror","_ref","_ref$settings","settings","_ref$value","value","onChange","ref","useRef","codeEditor","useEffect","initialize","current","codemirror","on","instance","getValue","noop","useCallback","React","createElement","_ref2","target","style","width","ConfigContent","children","_ref$maxWidth","maxWidth","_ref$style","className","ConfigHintModal","identifier","title","optionStore","modalHints","others","_useState","useState","_useState2","visible","setVisible","indexOf","length","description","questionInDesc","split","useTitle","concat","__","useDescription","replace","trim","handleOk","setModalHintSeen","color","closable","onOk","okText","cancelButtonProps","display","Meta","PresetCardObserved","props","version","name","logoUrl","disabled","created","attributes_name","tier","tags","onSelect","renderActions","isDemoEnv","_useProModal","useProModal","feature","toLowerCase","undefined","isPro","openProModal","open","modal","disabledTranslatedText","showProBadge","Fragment","key","dangerouslySetInnerHTML","__html","hoverable","opacity","onClick","e","closest","cover","src","actions","Object","keys","map","PresetSelectorObserved","fetchingPresets","presets","_ref$quickLinks","quickLinks","_ref$showSearch","showSearch","_ref$showDisabled","showDisabled","_ref$showHidden","showHidden","getOtherOptionsFromWindow","term","setTerm","_useState3","_useState4","isShowOnlyFree","setShowOnlyFree","usePresets","useMemo","filter","_ref3","Boolean","singleTerm","_ref4","hidden","_ref5","_ref6","id","margin","spinning","marginBottom","autoFocus","placeholder","marginTop","_i","strong","a","href","rel","preset","useConfigHintText","tcf","openDialog","u","span","paddingRight","text","i","twoToneColor","textAlign","type","height","textDecoration","cursor","url","useCookieExpertsModal","assetsUrl","icon","okButtonProps","content","paddingTop","size"],"sourceRoot":""}
1
+ {"version":3,"file":"138.lite.js?ver=0b903d591c46f3563d00","mappings":"sMAGIA,EAAa,SAAoBC,GACnC,IAAIC,EAAgBD,EAAKE,SACrBA,OAA6B,IAAlBD,EAA2B,GAAKA,EAC3CE,EAAaH,EAAKI,MAClBA,OAAuB,IAAfD,EAAwB,GAAKA,EACrCE,EAAWL,EAAKK,SAChBC,GAAM,IAAAC,UACNC,EAAa,gBACjB,IAAAC,YAAU,WAEJD,GAC0BA,EAAWE,WAAWJ,EAAIK,QAAST,GACxBU,WAE5BC,GAAG,UAAU,SAAUC,GAChCT,MAAAA,GAAoDA,EAASS,EAASC,iBAGzE,IAGH,IAAIC,GAAO,IAAAC,cAAY,cACpB,IACH,OAAoBC,MAAMC,cAAc,WAAY,CAClDb,IAAKA,EACLF,MAAOA,EACPC,SAAUG,EAAaQ,EAAO,SAAUI,GACtC,IAAIhB,EAAQgB,EAAMC,OAAOjB,MACzB,OAAOC,EAASD,IAElBkB,MAAO,CACLC,MAAO,Y,mE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9B,MAAMC,cAAc,IAAU,KAAmBD,MAAMC,cAAc,UAAe,CAC/I+I,KAAM,SACQhJ,MAAMC,cAAc,IAAS,CAC3C4E,IAAK,+FACU7E,MAAMC,cAAc,IAAS,CAC5C4E,IAAK,kGACU7E,MAAMC,cAAc,IAAS,CAC5C4E,IAAK,uGACY7E,MAAMC,cAAc,IAAK,CAC1CuH,MAAM,IAAA1F,IAAG,kEACT3B,OAAQ,SACRsH,IAAK,aACL9G,UAAW,uCACV,IAAAmB,IAAG,iCAA+C9B,MAAMC,cAAc,IAAK,MAAM,IAAA6B,IAAG,wYAAsZ9B,MAAMC,cAAc,IAAK,MAAM,IAAA6B,IAAG,2PAAyQ9B,MAAMC,cAAc,IAAK,CAC/yBG,MAAO,CACLgH,UAAW,GACXmB,eAAgB,YAChB9F,QAAS,eACT+F,OAAQ,WAEV/D,QAAS,WACP,OAAO,oBAER,IAAA3C,IAAG,eAEP,IACH,MAAO,CACLiB,QAASA,EACT8E,WAAYA","sources":["webpack:///./src/public/ts/components/codemirror.tsx","webpack:///./src/public/ts/components/config/content.tsx","webpack:///./src/public/ts/components/config/hintModal.tsx","webpack:///./src/public/ts/components/config/presetCard.tsx","webpack:///./src/public/ts/components/config/presetSelector.tsx","webpack:///./src/public/ts/hooks/useConfigHintText.tsx","webpack:///./src/public/ts/hooks/useCookieExpertsModal.tsx"],"sourcesContent":["import { useRef, useEffect, useCallback } from \"react\";\nimport wp from \"wp\";\n\nvar CodeMirror = function CodeMirror(_ref) {\n var _ref$settings = _ref.settings,\n settings = _ref$settings === void 0 ? {} : _ref$settings,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? \"\" : _ref$value,\n onChange = _ref.onChange;\n var ref = useRef();\n var codeEditor = wp.codeEditor;\n useEffect(function () {\n // Check if the current profile allows syntax highlighting\n if (codeEditor) {\n var _codeEditor$initializ = codeEditor.initialize(ref.current, settings),\n codemirror = _codeEditor$initializ.codemirror;\n\n codemirror.on(\"change\", function (instance) {\n onChange === null || onChange === void 0 ? void 0 : onChange(instance.getValue());\n });\n }\n }, []); // Avoid React error: You provided a `value` prop to a form field without an `onChange` handler\n // The onChange handler is done by codemirror itself\n\n var noop = useCallback(function () {// Silence is golden.\n }, []);\n return /*#__PURE__*/React.createElement(\"textarea\", {\n ref: ref,\n value: value,\n onChange: codeEditor ? noop : function (_ref2) {\n var value = _ref2.target.value;\n return onChange(value);\n },\n style: {\n width: \"100%\"\n }\n });\n};\n\nexport { CodeMirror };","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\n\nvar ConfigContent = function ConfigContent(_ref) {\n var children = _ref.children,\n _ref$maxWidth = _ref.maxWidth,\n maxWidth = _ref$maxWidth === void 0 ? \"auto\" : _ref$maxWidth,\n _ref$style = _ref.style,\n style = _ref$style === void 0 ? {} : _ref$style;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rcb-config-content\",\n style: _objectSpread({\n maxWidth: maxWidth === \"fixed\" ? 1300 : maxWidth\n }, style)\n }, children);\n};\n\nexport { ConfigContent };","import _Modal from \"antd/es/modal\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { useCallback, useState, useEffect } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __ } from \"../../utils\";\nimport { InfoCircleFilled } from \"@ant-design/icons\";\nimport { useConfigHintText } from \"../../hooks\";\nimport { useStores } from \"../../store\";\nvar ConfigHintModal = observer(function (_ref) {\n var identifier = _ref.identifier,\n width = _ref.width,\n title = _ref.title;\n\n var _useStores = useStores(),\n optionStore = _useStores.optionStore;\n\n var modalHints = optionStore.others.modalHints;\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n visible = _useState2[0],\n setVisible = _useState2[1];\n\n useEffect(function () {\n setVisible(modalHints.indexOf(identifier) === -1);\n }, [modalHints.length, identifier]); // Determine title and description\n\n var description = useConfigHintText(identifier);\n var questionInDesc = typeof description === \"string\" && description.indexOf(\"?\") > -1 ? description.split(\"?\")[0] : \"\";\n var useTitle = title ? title : questionInDesc ? \"\".concat(questionInDesc, \"?\") : __(\"What you should definitely know!\");\n var useDescription = typeof description === \"string\" && typeof useTitle === \"string\" && questionInDesc ? description.replace(useTitle, \"\").trim() : description;\n var handleOk = useCallback(function () {\n optionStore.setModalHintSeen(identifier);\n }, [identifier, optionStore]);\n return /*#__PURE__*/React.createElement(_Modal, {\n visible: visible,\n title: /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(InfoCircleFilled, {\n style: {\n color: \"#1890ff\"\n }\n }), \" \", useTitle),\n closable: false,\n onOk: handleOk,\n width: width,\n okText: __(\"Okay, I got it\"),\n cancelButtonProps: {\n style: {\n display: \"none\"\n }\n }\n }, useDescription);\n});\nexport { ConfigHintModal };","import _Tooltip from \"antd/es/tooltip\";\nimport _Tag from \"antd/es/tag\";\nimport _Card from \"antd/es/card\";\nimport { Fragment } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { useProModal, PRO_TAG_BACKGROUND_COLOR } from \"../../hooks\";\nimport { __ } from \"../../utils\";\nimport { useStores } from \"../../store\";\nvar Meta = _Card.Meta;\n\n// We can not use `FC` as we want to make this component generic\nfunction PresetCard(props) {\n var identifier = props.identifier,\n version = props.version,\n name = props.name,\n description = props.description,\n logoUrl = props.logoUrl,\n disabled = props.disabled,\n created = props.created,\n attributes_name = props.attributes_name,\n tier = props.tier,\n tags = props.tags,\n onSelect = props.onSelect,\n renderActions = props.renderActions;\n\n var _useStores = useStores(),\n isDemoEnv = _useStores.optionStore.others.isDemoEnv;\n\n var _useProModal = useProModal({\n title: __(\"Want to use %s template?\", name),\n feature: \"preset\",\n description: \"\".concat(__(\"Only a limited number of templates for services and content blockers are available in the %s version of Real Cookie Banner. Get the PRO version now and create a service or content blocker from this template with just one click!\", (isDemoEnv ? __(\"Demo\") : __(\"Free\")).toLowerCase())).concat(isDemoEnv ? \"\" : \"\\n\\n\".concat(__(\"You can create this service yourself in the free version without any restrictions and research the necessary information.\")))\n }, // PRO Presets are deactivate on try.devowl.io\n isDemoEnv ? false : undefined),\n isPro = _useProModal.isPro,\n openProModal = _useProModal.open,\n modal = _useProModal.modal;\n\n var disabledTranslatedText = __(\"Disabled\");\n\n var showProBadge = tier === \"pro\" && !isPro;\n return /*#__PURE__*/React.createElement(Fragment, {\n key: identifier\n }, modal, /*#__PURE__*/React.createElement(_Tooltip, {\n title: disabled ? /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: tags[disabledTranslatedText]\n }\n }) : undefined\n }, /*#__PURE__*/React.createElement(_Card, {\n className: \"rcb-antd-preset-card\",\n hoverable: !disabled,\n style: {\n opacity: disabled || created ? 0.6 : 1\n },\n onClick: function onClick(e) {\n // This event is bubbled also for the external URLs table in the modal dialog\n // Check if the click comes directly from the card\n if (!e.target.closest(\".rcb-antd-card\")) {\n return;\n }\n\n if (showProBadge) {\n openProModal();\n } else if (!disabled) {\n onSelect({\n identifier: identifier,\n version: version,\n attributes_name: attributes_name\n }, e);\n }\n },\n cover: /*#__PURE__*/React.createElement(\"img\", {\n style: {\n width: \"90%\"\n },\n src: logoUrl\n }),\n actions: renderActions ? renderActions(props) : []\n }, /*#__PURE__*/React.createElement(Meta, {\n title: /*#__PURE__*/React.createElement(\"span\", null, showProBadge && /*#__PURE__*/React.createElement(_Tag, {\n color: PRO_TAG_BACKGROUND_COLOR\n }, \"PRO\"), !!tags && Object.keys(tags).map(function (key) {\n return /*#__PURE__*/React.createElement(_Tooltip, {\n title: key === disabledTranslatedText ? undefined : /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: tags[key]\n }\n }),\n key: key\n }, /*#__PURE__*/React.createElement(_Tag, null, key));\n }), /*#__PURE__*/React.createElement(\"br\", null), name),\n description: description ? description : /*#__PURE__*/React.createElement(\"i\", null, __(\"No description\"))\n }))));\n}\n\nvar PresetCardObserved = observer(PresetCard);\nexport { PresetCardObserved as PresetCard };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _Spin from \"antd/es/spin\";\nimport _Checkbox from \"antd/es/checkbox\";\nimport _Input from \"antd/es/input\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _Card from \"antd/es/card\";\nimport { useState, useMemo } from \"react\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, getOtherOptionsFromWindow } from \"../../utils\";\nimport { PresetCard } from \".\";\nvar Meta = _Card.Meta;\n\n// We can not use `FC` as we want to make this component generic\nfunction PresetSelector(_ref) {\n var fetchingPresets = _ref.fetchingPresets,\n presets = _ref.presets,\n onSelect = _ref.onSelect,\n renderActions = _ref.renderActions,\n _ref$quickLinks = _ref.quickLinks,\n quickLinks = _ref$quickLinks === void 0 ? [] : _ref$quickLinks,\n children = _ref.children,\n _ref$showSearch = _ref.showSearch,\n showSearch = _ref$showSearch === void 0 ? true : _ref$showSearch,\n _ref$showDisabled = _ref.showDisabled,\n showDisabled = _ref$showDisabled === void 0 ? true : _ref$showDisabled,\n _ref$showHidden = _ref.showHidden,\n showHidden = _ref$showHidden === void 0 ? false : _ref$showHidden;\n\n var _getOtherOptionsFromW = getOtherOptionsFromWindow(),\n isPro = _getOtherOptionsFromW.isPro;\n\n var _useState = useState(\"\"),\n _useState2 = _slicedToArray(_useState, 2),\n term = _useState2[0],\n setTerm = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isShowOnlyFree = _useState4[0],\n setShowOnlyFree = _useState4[1]; // Create filtered presets\n\n\n var usePresets = useMemo(function () {\n return presets.filter(function (_ref2) {\n var tier = _ref2.tier;\n return isPro ? true : isShowOnlyFree ? tier !== \"pro\" : true;\n }).filter(function (_ref3) {\n var name = _ref3.name,\n description = _ref3.description;\n return term.trim().length ? term.split(\" \").filter(Boolean).filter(function (singleTerm) {\n return (// Include description in search index\n \"\".concat(name, \" \").concat(description || \"\").toLowerCase().indexOf(singleTerm.trim().toLowerCase()) > -1\n );\n }).length > 0 : true;\n }).filter(function (_ref4) {\n var hidden = _ref4.hidden;\n return showHidden ? true : !hidden;\n }).filter(function (_ref5) {\n var disabled = _ref5.disabled;\n return showDisabled ? true : !disabled;\n });\n }, [presets, term, isShowOnlyFree]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"column-posts\"\n }, quickLinks.map(function (_ref6) {\n var id = _ref6.id,\n cover = _ref6.cover,\n description = _ref6.description,\n onClick = _ref6.onClick,\n title = _ref6.title;\n return /*#__PURE__*/React.createElement(_Card, {\n key: id,\n hoverable: true,\n style: {\n margin: 5,\n width: 240,\n display: \"inline-block\"\n },\n onClick: onClick,\n cover: cover\n }, /*#__PURE__*/React.createElement(Meta, {\n title: title,\n description: description\n }));\n }), /*#__PURE__*/React.createElement(_Spin, {\n spinning: fetchingPresets\n }, children, showSearch && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n marginBottom: 20\n }\n }, /*#__PURE__*/React.createElement(_Input.Search, {\n autoFocus: true,\n style: {\n maxWidth: 400\n },\n placeholder: __(\"Search template by name...\"),\n onChange: function onChange(e) {\n return setTerm(e.target.value);\n }\n }), /*#__PURE__*/React.createElement(\"br\", null), !isPro && /*#__PURE__*/React.createElement(_Checkbox, {\n onChange: function onChange() {\n return setShowOnlyFree(!isShowOnlyFree);\n },\n style: {\n marginTop: 10\n }\n }, __(\"Show only free templates\")))), usePresets.length === 0 && term.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 maxWidth: 400,\n display: \"inline-block\"\n }\n }, /*#__PURE__*/React.createElement(\"p\", null, _i(__(\"{{strong}}No template found{{/strong}}. Please try to create the service yourself or {{a}}contact us{{/a}} and let us know for which service you need a template.\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null),\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/support/\"),\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }))), usePresets.map(function (preset) {\n return /*#__PURE__*/React.createElement(PresetCard, _extends({\n key: preset.id,\n onSelect: onSelect,\n renderActions: renderActions\n }, preset));\n }));\n}\n\nvar PresetSelectorObserved = observer(PresetSelector);\nexport { PresetSelectorObserved as PresetSelector };","import _Row from \"antd/es/row\";\nimport _Col from \"antd/es/col\";\nimport _Divider from \"antd/es/divider\";\nimport { CheckCircleTwoTone, CloseCircleTwoTone } from \"@ant-design/icons\";\nimport { useStores } from \"../store\";\nimport { __, _i } from \"../utils\";\nimport { useCookieExpertsModal } from \"./useCookieExpertsModal\";\nimport { LearnMoreTag } from \"../components\";\n\nfunction useConfigHintText(identifier) {\n var _useStores = useStores(),\n tcf = _useStores.optionStore.tcf;\n\n switch (identifier) {\n case \"scanner\":\n {\n var _useCookieExpertsModa = useCookieExpertsModal(),\n openDialog = _useCookieExpertsModa.openDialog;\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, __(\"The scanner finds services that you use on your website that might set/read cookies or process personal data. This is e.g. Google Analytics, YouTube or Elementor. If there is no template for a service, you will see from which external URLs content, scripts etc. are embedded. This allows you to set up your cookie banner quickly and easily.\")), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"We explicitly do not find cookies because that would not work reliably. {{a}}We explained why in our knowledge base.{{/a}}\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n rel: \"noreferrer\",\n href: __(\"https://devowl.io/knowledge-base/real-cookie-banner-cookie-scanner-finds-cookies-automatically/\"),\n target: \"_blank\"\n })\n })), /*#__PURE__*/React.createElement(_Row, {\n style: {\n margin: \"10px 0\"\n }\n }, /*#__PURE__*/React.createElement(_Col, {\n span: 11\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n paddingRight: 10\n }\n }, /*#__PURE__*/React.createElement(_Divider, null, __(\"What the scanner finds ...\")), [__(\"External services (with and without template)\"), __(\"WordPress plugins with templates that require consent\"), __(\"Automatic check of all subpages of your website\")].map(function (text, i) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n style: {\n marginBottom: 10\n }\n }, /*#__PURE__*/React.createElement(CheckCircleTwoTone, {\n twoToneColor: \"#52c41a\"\n }), \"\\xA0\\xA0\", text);\n }))), /*#__PURE__*/React.createElement(_Col, {\n span: 2,\n style: {\n textAlign: \"center\"\n }\n }, /*#__PURE__*/React.createElement(_Divider, {\n type: \"vertical\",\n style: {\n height: \"100%\"\n }\n })), /*#__PURE__*/React.createElement(_Col, {\n span: 11\n }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(_Divider, null, __(\"... and what it does not\")), [__(\"Cookies from unknown WordPress plugins\"), __(\"Services embedded after the page load via JavaScript\"), __(\"Complete coverage of your individual use case\")].map(function (text, i) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n style: {\n marginBottom: 10\n }\n }, /*#__PURE__*/React.createElement(CloseCircleTwoTone, {\n twoToneColor: \"#eb2f96\"\n }), \"\\xA0\\xA0\", text);\n })))), /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\"\n }, _i(__(\"Just by using the scanner, you will not set up your cookie banner one hundred percent correctly. If it is too complex or time-consuming for you to set up the cookie banner yourself, just let one of our {{a}}cookie experts{{/a}} set it up for you!\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n style: {\n textDecoration: \"underline\",\n cursor: \"pointer\"\n },\n onClick: openDialog\n })\n })));\n }\n\n case \"cookie\":\n return /*#__PURE__*/React.createElement(React.Fragment, null, __(\"What are services? Services can be external applications such as Google Analytics or WordPress plugins or themes that process personal data (e.g. IP address) and/or set cookies. Cookies (and similar technologies) are small text files that are stored on the device of visitors to your website. You can store information about the visitor in cookies, such as the website's language, or unique advertising IDs to display personalized advertising. You, as the site owner, must ensure that cookies are only placed on your visitors' devices and personal data are only processed if they have given their explicit consent. Unless you have a legitimate interest in the legal sense to do so even without consent. You can define here all the services you use and their cookies with their legal and technical information.\"), \"\\xA0\", /*#__PURE__*/React.createElement(LearnMoreTag, {\n url: __(\"https://devowl.io/2021/web-cookies-overview/\")\n }));\n\n case \"blocker\":\n return __(\"What is a content blocker? Imagine that a user of your website does not accept all services. At the same time, you have integrated e.g. a YouTube video that sets cookies that the visitor has not agreed to. According to the ePrivacy Directive, this is prohibited. Content blockers automatically replace iframes, script and link tags like YouTube videos for such users and offer them to watch the video as soon as they agree to load it.\");\n\n case \"list-of-consents\":\n return _i(__(\"Consents are automatically documented in order to be able to prove compliance with the legal requirements according to {{a}}Art. 5 GDPR{{/a}} and, in case of dispute, to prove how the consent was obtained.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://gdpr-info.eu/art-5-gdpr/\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n });\n\n case \"shortcodes\":\n return /*#__PURE__*/React.createElement(React.Fragment, null, _i(__(\"Your website visitors must be able to view their consent history, change their consent, or withdraw their consent at any time. This must be as easy as giving consent. Therefore, the shortcodes must be included on every subpage of the website (e.g. in the footer).\"), {\n strong: /*#__PURE__*/React.createElement(\"strong\", null)\n }), /*#__PURE__*/React.createElement(\"br\", null), /*#__PURE__*/React.createElement(\"br\", null), _i(__(\"Hiding these options, e.g. in the privacy policy, is a violation of the GDPR according to the {{a}}German data protection authorities' guidance (German){{/a}}.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://www.datenschutzkonferenz-online.de/media/oh/20211220_oh_telemedien.pdf\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n }), tcf ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"br\", null), /*#__PURE__*/React.createElement(\"br\", null), __(\"To meet the requirements of the TCF standard, the shortcodes should be placed near the link to the privacy policy.\")) : null);\n\n case \"tcf-vendor\":\n return _i(__(\"What is a TCF vendor? According to the IAB Europe Transparency and Consent Framework (TCF), any service (e.g. Google for Google Ads) that wants to use consents according to the TCF standard must register as a vendor in the {{a}}Global Vendor List (GVL){{/a}}. All TCF vendors specify for which purposes they need consent to process data and set cookies and which features they can offer with these consents. They also provide a link to their privacy policy for further information. You, as a website operator, must obtain consent in your cookie banner for all vendors you work with. You can limit the requested purposes of vendors to keep consents as privacy-friendly as possible.\"), {\n a: /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://iabeurope.eu/vendor-list-tcf-v2-0/\",\n target: \"_blank\",\n rel: \"noreferrer\"\n })\n });\n\n default:\n return \"\";\n }\n}\n\nexport { useConfigHintText };","import _Divider from \"antd/es/divider\";\nimport _Avatar from \"antd/es/avatar\";\nimport _Modal from \"antd/es/modal\";\nimport { useCallback } from \"react\";\nimport { useStores } from \"../store\";\nimport { __ } from \"../utils\";\n\nfunction useCookieExpertsModal() {\n var _useStores = useStores(),\n assetsUrl = _useStores.optionStore.others.assetsUrl;\n\n var logoUrl = \"\".concat(assetsUrl, \"cookie-experts.svg\");\n var openDialog = useCallback(function () {\n _Modal.info({\n icon: undefined,\n width: 500,\n closable: true,\n okButtonProps: {\n style: {\n display: \"none\"\n }\n },\n content: /*#__PURE__*/React.createElement(\"div\", {\n style: {\n textAlign: \"center\"\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logoUrl,\n style: {\n display: \"block\",\n paddingTop: 15,\n margin: \"auto\",\n height: 176\n }\n }), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n margin: \"10px 0 0\"\n }\n }, \"Cookie Experts\"), /*#__PURE__*/React.createElement(\"p\", {\n style: {\n marginTop: 0\n }\n }, __(\"Let our team help you with the setup\")), /*#__PURE__*/React.createElement(_Divider, null, /*#__PURE__*/React.createElement(_Avatar.Group, {\n size: \"large\"\n }, /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/jan.karres.jpeg\"\n }), /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/mario.guenter.jpeg\"\n }), /*#__PURE__*/React.createElement(_Avatar, {\n src: \"https://assets.devowl.io/in-app/wp-real-cookie-banner/cookie-experts-faces/matthias.guenter.jpeg\"\n }))), /*#__PURE__*/React.createElement(\"a\", {\n href: __(\"https://devowl.io/wordpress-real-cookie-banner/cookie-experts/\"),\n target: \"_blank\",\n rel: \"noreferrer\",\n className: \"button button-large button-primary\"\n }, __(\"Get help from Cookie Experts\")), /*#__PURE__*/React.createElement(\"p\", null, __(\"We admit, it is not easy to find all the services, cookies, etc. The legal requirements in the EU are quite complex for many website operators. We can understand if you feel overwhelmed – if this goes far beyond what you can technically do. After you know what all has to be considered, the question of how to make your website privacy compliant does not let you sleep peacefully either.\")), /*#__PURE__*/React.createElement(\"p\", null, __(\"Don’t worry, we have a solution for you! Our Cookie Experts have already set up many cookie banners and know exactly what they are doing. They can also set up your cookie banner quickly and easily. So, we can simply take this worry away from you.\")), /*#__PURE__*/React.createElement(\"a\", {\n style: {\n marginTop: 10,\n textDecoration: \"underline\",\n display: \"inline-block\",\n cursor: \"pointer\"\n },\n onClick: function onClick() {\n return _Modal.destroyAll();\n }\n }, __(\"Close\")))\n });\n }, []);\n return {\n logoUrl: logoUrl,\n openDialog: openDialog\n };\n}\n\nexport { useCookieExpertsModal };"],"names":["CodeMirror","_ref","_ref$settings","settings","_ref$value","value","onChange","ref","useRef","codeEditor","useEffect","initialize","current","codemirror","on","instance","getValue","noop","useCallback","React","createElement","_ref2","target","style","width","ConfigContent","children","_ref$maxWidth","maxWidth","_ref$style","className","ConfigHintModal","identifier","title","optionStore","modalHints","others","_useState","useState","_useState2","visible","setVisible","indexOf","length","description","questionInDesc","split","useTitle","concat","__","useDescription","replace","trim","handleOk","setModalHintSeen","color","closable","onOk","okText","cancelButtonProps","display","Meta","PresetCardObserved","props","version","name","logoUrl","disabled","created","attributes_name","tier","tags","onSelect","renderActions","isDemoEnv","_useProModal","useProModal","feature","toLowerCase","undefined","isPro","openProModal","open","modal","disabledTranslatedText","showProBadge","Fragment","key","dangerouslySetInnerHTML","__html","hoverable","opacity","onClick","e","closest","cover","src","actions","Object","keys","map","PresetSelectorObserved","fetchingPresets","presets","_ref$quickLinks","quickLinks","_ref$showSearch","showSearch","_ref$showDisabled","showDisabled","_ref$showHidden","showHidden","getOtherOptionsFromWindow","term","setTerm","_useState3","_useState4","isShowOnlyFree","setShowOnlyFree","usePresets","useMemo","filter","_ref3","Boolean","singleTerm","_ref4","hidden","_ref5","_ref6","id","margin","spinning","marginBottom","autoFocus","placeholder","marginTop","_i","strong","a","href","rel","preset","useConfigHintText","tcf","openDialog","u","span","paddingRight","text","i","twoToneColor","textAlign","type","height","textDecoration","cursor","url","useCookieExpertsModal","assetsUrl","icon","okButtonProps","content","paddingTop","size"],"sourceRoot":""}
public/dist/296.lite.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[296],{844:function(e,t,a){a.d(t,{ZG:function(){return ee},PS:function(){return X},y$:function(){return Q}});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),m=a(7938),d=a(6315),p=a(7228),g=a(5450),h=a.n(g),v=a(7363),f=a(3554),y=a(4947);function E(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))}function R(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 b=a(2200),_=a(5071),k=a(4614),I=a(6711),w=a(238),Z=function(){var e=(0,w.R)(),t=e.group,a=(0,I.useRouteMatch)().params,n=isNaN(+a.cookie)?0:+a.cookie,o=!!a.cookie,r=t.cookies.entries.get(+a.cookie)||new y.U(t.cookies,{id:0});return{routeGroup:e,cookie:r,id:n,queried:o,fetched:0!==r.key}},N=a(6478),O=a(8920),T=a(2519),M=a(5408),P=a(8618),S=a(4342),C=a(3839),D=(0,f.Pi)((function(e){var t,a,n=e.showNoticePresetGroupNotFound,o=void 0!==n&&n,i=e.groupNotice,c=e.providerPrivacyPolicyNotice,l=(0,k.m)(),s=l.cookieStore,u=s.groups,p=s.essentialGroup,g=l.optionStore,f=g.ePrivacyUSA,y=g.consentForwarding,E=Z(),b=E.cookie,I=E.fetched,w="real-cookie-banner"===(null===(t=b.presetModel)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.identifier),D=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,M.W)({location:C.V,params:{slug:t}});case 3:return e.abrupt("return",e.sent.filter((function(e){return e.ID!==b.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)}}(),[b.key]),x=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t,a){var n,o,r,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D(t);case 2:if(!(n=e.sent)){e.next=19;break}if(a){e.next=8;break}throw(0,_.__)("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,D(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)}}(),[D]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:X.labelCol.span},(0,_.__)("General service configuration")," ",React.createElement(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/")})),React.createElement(d.Z.Item,{label:(0,_.__)("Name"),required:!0},React.createElement(d.Z.Item,{name:"name",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please provide a name!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)('Each service used should have a descriptive name that is understandable to a non-professional user. Example: "Google Analytics".'))),React.createElement(d.Z.Item,{label:(0,_.__)("Status"),required:!0},React.createElement(d.Z.Item,{name:"status",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please choose a status!")}]},React.createElement(O.ZP.Group,null,React.createElement(O.ZP.Button,{value:"publish"},(0,_.__)("Enabled")),React.createElement(O.ZP.Button,{value:"private"},(0,_.__)("Disabled")),React.createElement(O.ZP.Button,{value:"draft"},(0,_.__)("Draft")))),React.createElement("p",{className:"description"},(0,_.__)('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(d.Z.Item,{label:(0,_.__)("Group"),required:!0},React.createElement(d.Z.Item,{name:"group",noStyle:!0,rules:[{required:!0,message:(0,_.__)("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,_.__)("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,_.__)("The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.",o))),!!i&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",{dangerouslySetInnerHTML:{__html:i}}))),React.createElement(d.Z.Item,{label:(0,_.__)("Provider"),required:!0},React.createElement(d.Z.Item,{name:"provider",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please name a provider!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)('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(d.Z.Item,{label:(0,_.__)("Purpose")},React.createElement(d.Z.Item,{name:"purpose",noStyle:!0},React.createElement(T.Z.TextArea,{autoSize:{minRows:3}})),React.createElement("p",{className:"description"},(0,_._i)((0,_.__)("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,_.__)("https://devowl.io/2021/personal-data-gdpr/"),target:"_blank",rel:"noreferrer"})}))),React.createElement(d.Z.Item,{label:(0,_.__)("Privacy policy of the provider")},React.createElement(d.Z.Item,{name:"providerPrivacyPolicy",noStyle:!0,rules:[{type:"url",message:(0,_.__)("Please provide a valid URL!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)("Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).")),!!c&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",{dangerouslySetInnerHTML:{__html:c}}))),React.createElement(d.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")===p.key;return React.createElement(React.Fragment,null,React.createElement(d.Z.Item,{label:(0,_.__)("Consent Forwarding Unique Name"),style:{display:y?void 0:"none"}},React.createElement(d.Z.Item,{name:"consentForwardingUniqueName",noStyle:!0,validateTrigger:"onBlur",rules:[{validator:(t=(0,m.Z)(h().mark((function e(t,o){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!y||!o,e.abrupt("return",x(o||R(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(T.Z,{placeholder:I?"":R(a("name"))})),React.createElement("p",{className:"description"},(0,_.__)("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,_.__)("You can define a unique name, but essential services are automatically accepted when a consent is forwarded.")))),React.createElement(d.Z.Item,{label:(0,_.__)("Legal basis"),required:!0},React.createElement(d.Z.Item,{name:"legalBasis",noStyle:!0,rules:[{required:!0}]},React.createElement(O.ZP.Group,{disabled:o},React.createElement(O.ZP.Button,{value:"consent"},(0,_.__)("Consent (Opt-in)")),React.createElement(O.ZP.Button,{value:"legitimate-interest"},(0,_.__)("Legitimate interest (Opt-out)")),w&&React.createElement(O.ZP.Button,{value:"legal-requirement"},(0,_.__)("Compliance with a legal obligation")))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(S.r,{url:(0,_.__)("https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/")})),React.createElement("p",{className:"description"},(0,_._i)((0,_.__)('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&&!w&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,_.__)('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(d.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(d.Z.Item,{label:(0,_.__)("US data processing"),style:{display:f?void 0:"none"}},React.createElement(d.Z.Item,{name:"ePrivacyUSA",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("This service processes data in the USA or transfers data to US companies or servers")),t("ePrivacyUSA")&&t("group")===p.key&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("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(d.Z.Item,{label:(0,_.__)("No technical definitions")},React.createElement(d.Z.Item,{name:"noTechnicalDefinitions",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script."))))})),x=a(1857),F=a(3251),A=a(7088),B=a(4290),U=a(9033),G=a(4184),q={labelCol:{span:0},wrapperCol:{span:24},style:{margin:0}},L=(0,f.Pi)((function(){var e=(0,F.w)();return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions||e.technicalDefinitions.length!==t.technicalDefinitions.length}},(function(t){return(0,t.getFieldValue)("noTechnicalDefinitions")?null:React.createElement(d.Z.List,{name:"technicalDefinitions"},(function(t,a){var n=a.add,c=a.remove;return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:X.labelCol.span,description:(0,_.__)("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,_.__)("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:150},(0,_.__)("Cookie type")),React.createElement("td",null,React.createElement(x.Z,{title:(0,_._i)((0,_.__)("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,_.__)("Technical cookie name")," ",React.createElement(A.Z,null)))),React.createElement("td",null,React.createElement(x.Z,{title:(0,_.__)("Every cookie is associated to a domain or hostname.")},React.createElement("span",null,(0,_.__)("Technical cookie host")," ",React.createElement(A.Z,null)))),React.createElement("td",null,React.createElement(x.Z,{title:(0,_.__)("A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.")},React.createElement("span",null,(0,_.__)("Cookie duration")," ",React.createElement(A.Z,null)))),React.createElement("td",{width:50,align:"right"}," "))),React.createElement("tbody",null,t.map((function(a){return React.createElement("tr",{key:a.key},React.createElement("td",null,React.createElement(d.Z.Item,(0,o.Z)({},a,q,{fieldKey:[a.fieldKey,"type"],name:[a.name,"type"],rules:[{required:!0,message:(0,_.__)("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},e[t].name)}))))),React.createElement("td",null,React.createElement(d.Z.Item,(0,o.Z)({},a,q,{fieldKey:[a.fieldKey,"name"],name:[a.name,"name"],rules:[{required:!0,message:(0,_.__)("Please provide a technical cookie name!")}]}),React.createElement(T.Z,null)),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.name)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.name)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"name"]);return[/\[/gm,[/([{]+)/gm,function(e){return 1===e.length}],/\(/gm].filter((function(e){return Array.isArray(e)?e[0].test(t)&&t.match(e[0]).filter(e[1]).length>0:e.test(t)})).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,_._i)((0,_.__)("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(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.type)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.type)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"type"]);return React.createElement(React.Fragment,null,React.createElement(d.Z.Item,(0,o.Z)({},a,q,{fieldKey:[a.fieldKey,"host"],name:[a.name,"host"],rules:[{validator:function(e,a){return(["local","session","indexedDb"].indexOf(t)>-1?(0,G.C)(a):/^\.?(([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(a))||""===a&&"http"!==t?Promise.resolve():Promise.reject((0,_.__)("Please provide a valid hostname!"))}}]}),React.createElement(T.Z,null)),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.host)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.host)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"host"]);return t.startsWith("*.")&&t.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,_._i)((0,_.__)("You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.",t.substr(2)),{code:React.createElement("code",null)})))})))}))),React.createElement("td",null,React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.type)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.type)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"type"]);return["local","session","indexedDb","flash"].indexOf(t)>-1?null:React.createElement(React.Fragment,null,React.createElement(d.Z.Item,(0,o.Z)({},a,{fieldKey:[a.fieldKey,"sessionDuration"],name:[a.name,"sessionDuration"],noStyle:!0,valuePropName:"checked"}),React.createElement(i.Z,{style:{float:"left",marginTop:5}},React.createElement(x.Z,{title:(0,_.__)("This cookie is active as long as the session is active")},React.createElement("span",null,(0,_.__)("Session"))))),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.sessionDuration)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.sessionDuration)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"sessionDuration"]);return React.createElement(d.Z.Item,(0,o.Z)({},a,q,{fieldKey:[a.fieldKey,"duration"],name:[a.name,"duration"],rules:[{required:!t,message:(0,_.__)("Please provide a valid duration!")}]}),React.createElement(T.Z,{min:"0",addonAfter:React.createElement(d.Z.Item,{name:[a.name,"durationUnit"],noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please provide an unit!")}]},React.createElement(r.Z,null,React.createElement(r.Z.Option,{value:"s"},(0,_.__)("second(s)")),React.createElement(r.Z.Option,{value:"m"},(0,_.__)("minute(s)")," "),React.createElement(r.Z.Option,{value:"h"},(0,_.__)("hour(s)")," "),React.createElement(r.Z.Option,{value:"d"},(0,_.__)("day(s)")," "),React.createElement(r.Z.Option,{value:"mo"},(0,_.__)("month(s)")," "),React.createElement(r.Z.Option,{value:"y"},(0,_.__)("year(s)")," "))),type:"number",style:{maxWidth:200,display:t?"none":void 0}}))})))}))),React.createElement("td",null,t.length>1?React.createElement("a",{className:"button button-small",onClick:function(){c(a.name)}},React.createElement(B.Z,null)):null))}))),React.createElement("tfoot",null,React.createElement("tr",null,React.createElement("td",{colSpan:5,align:"right"},React.createElement("a",{className:"button button-primary alignright",onClick:function(){n(Q)}},React.createElement(U.Z,null)," ",(0,_.__)("Add another cookie definition")))))))}))}))})),V=a(8950),H=a(294),j=(0,f.Pi)((function(e){var t=e.manager,a=e.onlyWhenManagerIs,n=e.hasManagerAttributeName,o=e.thisIsManagerAttributeName,r=e.inEventNameAttributeName,i=e.outEventNameAttributeName,c=(0,k.m)(),l=c.cookieStore,s=c.optionStore,u=s.setCookiesViaManager,m=s[n],p=s.others.isPro,g=l.essentialGroup,h=Z().cookie;return u===a&&p&&React.createElement(React.Fragment,null,React.createElement(d.Z.Item,{wrapperCol:{offset:X.labelCol.span}},React.createElement(x.Z,{title:m&&h.key!==m?(0,_.__)("You have already defined a %s service.",t):""},React.createElement("span",null,React.createElement(d.Z.Item,{name:o,valuePropName:"checked",noStyle:!0},React.createElement(N.Z,{disabled:m&&h.key!==m})),React.createElement("span",null,"  ",(0,_.__)("Opt-in script below loads %s",t))))),React.createElement(d.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(d.Z.Item,{wrapperCol:{offset:X.labelCol.span}},React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("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(d.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(d.Z.Item,{label:(0,_.__)("Event names for %s",t)},React.createElement(d.Z.Item,{name:r,noStyle:!0},React.createElement(T.Z,{addonBefore:(0,_.__)("Opt-in"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement(d.Z.Item,{name:i,noStyle:!0},React.createElement(T.Z,{addonBefore:(0,_.__)("Opt-out"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement("div",null,React.createElement(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")})),(c.length>0||l.length>0)&&!m&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("You have not yet defined a %s service. To use event names, you must create a %s service.",t,t))))})))})),Y=/{{([A-Za-z0-9_]+)}}/gm,$=["codeOptIn","codeOptOut","codeOnPageLoad"],K=(0,f.Pi)((function(e){var t=e.dynamicFields;return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return $.map((function(a){return e[a]!==t[a]})).filter(Boolean).length>0}},(function(e){var a=e.getFieldValue,n=$.map((function(e){return a(e)})).join(""),o=Array.from(n.matchAll(Y)).map((function(e){return(0,p.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,_.__)("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(d.Z.Item,{key:e,label:o||React.createElement("code",null,e),required:!0},React.createElement(d.Z.Item,{noStyle:!0,name:a,rules:[{required:!0,pattern:s?new RegExp(s):void 0,message:c}]},React.createElement(T.Z,{placeholder:l?"".concat((0,_.__)("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}))})),J=a(7870),z=(0,f.Pi)((function(e){var t=e.name,a=(0,k.m)().optionStore.others.activePlugins,n=(0,v.useMemo)((function(){return Object.keys(a)}),[a]);return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){return e[t]!==a[t]}},(function(e){var o=(0,e.getFieldValue)(t),r=(0,J.Z)(o.matchAll(/\s+(skip-if-active=")([^"]+)(")/gm)).map((function(e){return(0,p.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,_._i)((0,_.__)("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)})))}))})),W=(0,f.Pi)((function(e){var t=e.notices,a=e.dynamicFields,n=(0,k.m)(),o=n.cookieStore,r=n.optionStore,i=r.setCookiesViaManager,c=r.others.isPro,l=o.essentialGroup,s=(0,v.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:X.labelCol.span,description:"none"===i?(0,_.__)("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,_.__)("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?H.Gh:H.Ki)},(0,_.__)("Technical handling")),React.createElement(j,{manager:H.Gh,onlyWhenManagerIs:"googleTagManager",hasManagerAttributeName:"hasGTM",thisIsManagerAttributeName:"thisIsGoogleTagManager",inEventNameAttributeName:"googleTagManagerInEventName",outEventNameAttributeName:"googleTagManagerOutEventName"}),React.createElement(j,{manager:H.Ki,onlyWhenManagerIs:"matomoTagManager",hasManagerAttributeName:"hasMTM",thisIsManagerAttributeName:"thisIsMatomoTagManager",inEventNameAttributeName:"matomoTagManagerInEventName",outEventNameAttributeName:"matomoTagManagerOutEventName"}),React.createElement(K,{dynamicFields:a}),(null==t?void 0:t.length)>0&&React.createElement(d.Z.Item,{wrapperCol:{offset:X.labelCol.span,span:X.wrapperCol.span}},null==t?void 0:t.map((function(e){var t=e.message,a=e.severity;return React.createElement("div",{className:"notice notice-".concat(a," below-h2 notice-alt"),key:t},React.createElement("p",{dangerouslySetInnerHTML:{__html:t}}))}))),React.createElement(d.Z.Item,{label:(0,_.__)("Code executed on opt-in")},"googleTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptInNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",H.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptInNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",H.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptIn",noStyle:!0},React.createElement(V.Y,{settings:window.cm_settings})),React.createElement(z,{name:"codeOptIn"})),React.createElement(d.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(d.Z.Item,{label:(0,_.__)("Code executed on opt-out"),style:s(t("group")!==l.key)},React.createElement(d.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(d.Z.Item,{name:"codeOptOutDelete",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("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(d.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(d.Z.Item,{name:"codeOptOutNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",H.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptOutNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",H.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptOut",noStyle:!0},React.createElement(V.Y,{settings:window.cm_settings})),React.createElement(z,{name:"codeOptOut"})))})),React.createElement(d.Z.Item,{label:(0,_.__)("Code executed on page load")},React.createElement(d.Z.Item,{name:"codeOnPageLoad",noStyle:!0},React.createElement(V.Y,{settings:window.cm_settings})),React.createElement(z,{name:"codeOnPageLoad"})))})),X={labelCol:{span:6},wrapperCol:{span:16}},Q={type:"http",name:"",host:"",duration:void 0,durationUnit:"y",sessionDuration:!1},ee=(0,f.Pi)((function(e){var t,a,g,f,w,N,O,T=e.preset,M=e.attributes,P=e.navigateAfterCreation,C=void 0===P||P,x=e.scrollToTop,F=void 0===x||x,A=e.onCreated,B=Z(),U=B.routeGroup,G=U.group,q=U.link,V=B.cookie,H=B.id,j=B.queried,Y=B.fetched,$=d.Z.useForm(),K=(0,p.Z)($,1)[0],J=(0,v.useState)(!1),z=(0,p.Z)(J,2),ee=z[0],te=z[1],ae=(0,v.useState)(!1),ne=(0,p.Z)(ae,2),oe=ne[0],re=ne[1],ie=(0,I.useHistory)(),ce=(0,k.m)(),le=ce.cookieStore,se=ce.optionStore.others.useEncodedStringForScriptInputs,ue=le.essentialGroup,me=(null==V?void 0:V.presetModel)||le.presetsCookie.get(null==T?void 0:T.identifier),de=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==me||null===(g=me.attributes)||void 0===g?void 0:g.createContentBlockerNotice),he=!(null==me||!me.data.scanned||null===(f=me.attributes)||void 0===f||!f.codeOptIn||-1!==["wordpress-comments"].indexOf(me.data.identifier)),ve=Y?{name:V.data.title.raw,status:V.data.status,group:G.key||void 0,purpose:V.data.content.raw,provider:V.data.meta.provider,providerPrivacyPolicy:V.data.meta.providerPrivacyPolicy,consentForwardingUniqueName:V.data.meta.consentForwardingUniqueName||V.data.slug,noTechnicalDefinitions:V.data.meta.noTechnicalDefinitions,legalBasis:V.data.meta.legalBasis,ePrivacyUSA:V.data.meta.ePrivacyUSA,technicalDefinitions:JSON.parse(JSON.stringify(V.technicalDefinitions||"[]")),codeDynamics:JSON.parse(JSON.stringify(V.codeDynamics||"{}")),thisIsGoogleTagManager:V.data.meta.thisIsGoogleTagManager,googleTagManagerInEventName:V.data.meta.googleTagManagerInEventName,googleTagManagerOutEventName:V.data.meta.googleTagManagerOutEventName,thisIsMatomoTagManager:V.data.meta.thisIsMatomoTagManager,matomoTagManagerInEventName:V.data.meta.matomoTagManagerInEventName,matomoTagManagerOutEventName:V.data.meta.matomoTagManagerOutEventName,codeOptIn:V.data.meta.codeOptIn,codeOptInNoGoogleTagManager:V.data.meta.codeOptInNoGoogleTagManager,codeOptInNoMatomoTagManager:V.data.meta.codeOptInNoMatomoTagManager,codeOptOut:V.data.meta.codeOptOut,codeOptOutNoGoogleTagManager:V.data.meta.codeOptOutNoGoogleTagManager,codeOptOutNoMatomoTagManager:V.data.meta.codeOptOutNoMatomoTagManager,codeOnPageLoad:V.data.meta.codeOnPageLoad,codeOptOutDelete:V.data.meta.codeOptOutDelete}:{name:(null==M?void 0:M.name)||"",status:"publish",group:"number"==typeof de&&de||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)):[Q],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,v.useEffect)((function(){j&&!Y&&G.cookies.getSingle({params:{id:H,context:"edit"}})}),[j,Y]),(0,v.useEffect)((function(){me&&!me.attributes&&me.fetchAttributes()}),[me]),(0,v.useEffect)((function(){F&&(0,b.X)(0)}),[]);var fe=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){var a,n,o,r,i,c,m,d,p,g,v,f,b,k,I,w,Z,N;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,a=function(e){return se?"encodedScript:".concat(E(e)):e},n=t.name,o=t.status,r=t.purpose,i=t.noTechnicalDefinitions,c=t.technicalDefinitions,m=t.group,d=t.codeDynamics,p=t.createContentBlocker,g=t.createContentBlockerId,v=t.consentForwardingUniqueName,f=t.codeOptIn,b=t.codeOptOut,k=t.codeOnPageLoad,I=(0,u.Z)(t,["name","status","purpose","noTechnicalDefinitions","technicalDefinitions","group","codeDynamics","createContentBlocker","createContentBlockerId","consentForwardingUniqueName","codeOptIn","codeOptOut","codeOnPageLoad"]),delete(w=(0,s.Z)((0,s.Z)({},I),{},{codeOptIn:a(f),codeOptOut:a(b),codeOnPageLoad:a(k),noTechnicalDefinitions:i,codeDynamics:JSON.stringify(d),technicalDefinitions:JSON.stringify(i?ve.technicalDefinitions:c),consentForwardingUniqueName:v||R(n)})).presetCheck,!j){e.next=15;break}return V.setName(n),V.setStatus(o),V.setPurpose(r),V.setMeta(w),V.setGroup(m),e.next=13,V.patch();case 13:e.next=20;break;case 15:return Z=le.groups.entries.get(m),N=new y.U(Z.cookies,{title:{rendered:n},content:{rendered:r,protected:!1},status:o,meta:(0,s.Z)((0,s.Z)({},w),{},{presetId:null==T?void 0:T.identifier,presetVersion:null==T?void 0:T.version})}),e.next=19,N.persist();case 19:null==A||A(N);case 20:re(!1),l.ZP.success((0,_.__)("You have successfully saved the service.")+(p?" ".concat((0,_.__)("Continue with the corresponding Content Blocker!")):"")),C&&setTimeout((function(){return p?ie.push("/blocker/new?force=".concat(g||T.identifier,"&cookieCreationPrompt=1").concat("string"==typeof C?"&navigateAfterCreation=".concat(encodeURIComponent(C)):"")):"string"==typeof C?window.location.href=C:ie.push("".concat(q.slice(1),"/").concat(m))}),0),e.next=29;break;case 25:throw e.prev=25,e.t0=e.catch(0),l.ZP.error(e.t0.responseJSON.message),e.t0;case 29:case"end":return e.stop()}}),e,null,[[0,25]])})));return function(t){return e.apply(this,arguments)}}(),[j,V,le,se]),ye=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!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,te(!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)}}(),[K,fe]),Ee=(0,v.useCallback)((function(e){l.ZP.error((0,_.__)("The service could not be saved due to missing/invalid form values.")),e.errorFields.length&&K.scrollToField(e.errorFields[0].name,{behavior:"smooth",block:"center"})}),[]),Re=(0,v.useCallback)((function(){return!oe||(0,_.__)('You have unsaved changes. If you click on "confirm", your changes will be discarded.')}),[K,ve]);return j&&!Y?React.createElement(c.Z,{active:!0,paragraph:{rows:8}}):React.createElement(n.Z,{spinning:ee||(null==me?void 0:me.busy)||!1},React.createElement(I.Prompt,{message:Re}),React.createElement(d.Z,(0,o.Z)({name:"cookie-".concat(G.key,"-").concat(H),form:K},X,{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 K.validateFields()}),100)}}}),React.createElement(D,{groupNotice:(null==M?void 0:M.groupNotice)||(null==me||null===(w=me.attributes)||void 0===w?void 0:w.groupNotice),providerPrivacyPolicyNotice:Y||null==me||!me.attributes||ve.providerPrivacyPolicy?null:(0,_.__)('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"),showNoticePresetGroupNotFound:"preset-group-not-found"===de&&M.group}),React.createElement(L,null),React.createElement(W,{dynamicFields:(null==M?void 0:M.dynamicFields)||(null==me||null===(N=me.attributes)||void 0===N?void 0:N.dynamicFields),notices:[{message:(null==M?void 0:M.technicalHandlingNotice)||(null==me||null===(O=me.attributes)||void 0===O?void 0:O.technicalHandlingNotice),severity:"info"},{message:he&&!pe&&(0,_.__)("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.",me.data.attributes_name),severity:"warning"},{message:he&&pe&&(0,_.__)('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.',me.data.attributes_name),severity:"warning"}].filter((function(e){return e.message}))}),!!T&&React.createElement(React.Fragment,null,pe&&C&&React.createElement(d.Z.Item,{wrapperCol:{offset:X.labelCol.span}},React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(d.Z.Item,{noStyle:!0,name:"createContentBlocker",valuePropName:"checked",dependencies:["group"],rules:[{validator:function(e,a){return t("group")===ue.key&&a?Promise.reject((0,_.__)('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,_.__)("Create content blocker for this service.")))})),React.createElement(d.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(d.Z.Item,{noStyle:!0,name:"createContentBlockerId",rules:[{required:!0,message:(0,_.__)("Please select a template for the Content Blocker!")}]},React.createElement(r.Z,{style:{maxWidth:500,marginTop:10,display:"block"},placeholder:(0,_.__)("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,_.__)("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(d.Z.Item,{name:"presetCheck",valuePropName:"checked",required:!0,rules:[{type:"boolean",required:!0,transform:function(e){return e||void 0},message:(0,_.__)("Please confirm that you have checked the contents of the service.")}],wrapperCol:{offset:X.labelCol.span}},React.createElement(i.Z,null,(0,_.__)("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(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/")})))),React.createElement(d.Z.Item,{className:"rcb-form-sticky-submit"},React.createElement("span",null,React.createElement("input",{type:"submit",className:"button button-primary right",value:(0,_.__)("Save")})))))}))},8618: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))}},7802: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}},238:function(e,t,a){a.d(t,{R:function(){return c}});var n=a(6711),o=a(4614),r=a(7363),i=a(9323),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}}},3251: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=296.lite.js.map?ver=b994e34d0841f512ccbc
 
 
public/dist/296.l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AAQsB,EAAYC,OAAOf,QAAQC,IAAIN,IAAO,IAAI,IAAiBmB,EAAYC,OAAQ,CACzFpB,GAAI,IAGF6W,GAAW,IAAA7U,cAAY,SAAUtB,GACnC,IAAIF,EAAME,EAAKF,IACf,MAAO,aAAa4D,OAAOvE,EAAMW,IAAK,UAAU4D,OAAO5D,KACtD,CAACX,IACAiX,EAAgB,aAAa1S,OAAOvE,EAAMW,IAAK,QACnD,MAAO,CACLX,MAAOA,EACPG,GAAIA,EACJG,QAASA,EACTI,QAAuB,IAAdV,EAAMW,IACfuP,KAXS,YAYT8G,SAAUA,EACVC,cAAeA,K,qBC/BnB,SAASC,IACP,MAAO,CACLC,KAAM,CACJ/R,KAAM,cACNgS,KAAM,OACNC,gBAAiB,SAEnBC,MAAO,CACLlS,KAAM,gBACNgS,KAAM,QACNC,gBAAiB,WAEnBE,QAAS,CACPnS,KAAM,kBACNgS,KAAM,UACNC,gBAAiB,WAEnBG,MAAO,CACLpS,KAAM,4BACNgS,KAAM,QACNC,gBAAiB,WAEnBI,UAAW,CACTrS,KAAM,YACNgS,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/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:///../../common-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 };","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 } 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 groupNotice = _ref.groupNotice,\n providerPrivacyPolicyNotice = _ref.providerPrivacyPolicyNotice;\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))), !!groupNotice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-info below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: groupNotice\n }\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 }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"providerPrivacyPolicy\",\n noStyle: true,\n rules: [{\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).\")), !!providerPrivacyPolicyNotice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"notice notice-warning below-h2 notice-alt\"\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: providerPrivacyPolicyNotice\n }\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 _extends from \"@babel/runtime/helpers/extends\";\nimport _Select from \"antd/es/select\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, isHost } from \"../../../../utils\";\nimport { getCookieTypeLocalized } from \"../../../../others\";\nimport { PlusOutlined, QuestionCircleFilled, DeleteOutlined } from \"@ant-design/icons\";\nimport { FormHeadline } from \"../../..\";\nimport { CookieEditFormLayout, technicalDefinitionDefaults } from \"..\";\nimport { isUrl } from \"@devowl-wp/headless-content-unblocker\";\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 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 (_ref) {\n var getFieldValue = _ref.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(_Form.List, {\n name: \"technicalDefinitions\"\n }, function (fields, _ref2) {\n var add = _ref2.add,\n remove = _ref2.remove;\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: 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\", null, /*#__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\", {\n width: 50,\n align: \"right\"\n }, \"\\xA0\"))), /*#__PURE__*/React.createElement(\"tbody\", null, fields.map(function (field) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: field.key\n }, /*#__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 }, 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 (_ref3) {\n var getFieldValue = _ref3.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 (_ref4) {\n var getFieldValue = _ref4.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 (_ref5) {\n var getFieldValue = _ref5.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 (_ref6) {\n var getFieldValue = _ref6.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 (_ref7) {\n var getFieldValue = _ref7.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, 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: 5,\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 } 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 }, notices === null || notices === void 0 ? void 0 : notices.map(function (_ref2) {\n var message = _ref2.message,\n severity = _ref2.severity;\n return /*#__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 }));\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 (_ref3) {\n var getFieldValue = _ref3.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 (_ref4) {\n var getFieldValue = _ref4.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 (_ref5) {\n var getFieldValue = _ref5.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 (_ref6) {\n var getFieldValue = _ref6.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 (_ref7) {\n var getFieldValue = _ref7.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 (_ref8) {\n var getFieldValue = _ref8.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 _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};\nvar CookieEditForm = observer(function (_ref) {\n var _cookieStore$groups$s, _cookieStore$groups$s2, _presetModel$attribut, _presetModel$attribut2, _presetModel$attribut3, _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 group.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 _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {\n var codeToBase64, name, status, purpose, noTechnicalDefinitions, technicalDefinitions, _group, codeDynamics, createContentBlocker, createContentBlockerId, consentForwardingUniqueName, codeOptIn, codeOptOut, codeOnPageLoad, meta, newMeta, _useGroup, draft;\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!\")) : \"\")); // 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 = 29;\n break;\n\n case 25:\n _context.prev = 25;\n _context.t0 = _context[\"catch\"](0);\n\n _message.error(_context.t0.responseJSON.message);\n\n throw _context.t0;\n\n case 29:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 25]]);\n }));\n\n return function (_x) {\n return _ref3.apply(this, arguments);\n };\n }(), [queried, cookie, cookieStore, useEncodedStringForScriptInputs]);\n var onFinish = useCallback( /*#__PURE__*/function () {\n var _ref4 = _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 _ref4.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 form.scrollToField(errorInfo.errorFields[0].name, {\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(_ref5) {\n var technicalDefinitions = _ref5.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(CookieEditFormGeneralFields, {\n groupNotice: (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 providerPrivacyPolicyNotice: !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\") : null,\n showNoticePresetGroupNotFound: useGroup === \"preset-group-not-found\" ? attributes.group : false\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 (_ref6) {\n var message = _ref6.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 (_ref7) {\n var getFieldValue = _ref7.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 (_ref8) {\n var getFieldValue = _ref8.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","CookieEditFormGeneralFields","_ref","_cookie$presetModel","_cookie$presetModel$d","_ref$showNoticePreset","showNoticePresetGroupNotFound","groupNotice","providerPrivacyPolicyNotice","_useStores","_useStores$cookieStor","cookieStore","groups","essentialGroup","_useStores$optionStor","optionStore","ePrivacyUSA","consentForwarding","_useRouteCookie","isRealCookieBannerPreset","presetModel","data","identifier","findByUniqueCookieName","useCallback","_ref2","_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","concat","_x2","_x3","React","createElement","Fragment","offset","CookieEditFormLayout","labelCol","span","url","label","required","name","noStyle","rules","message","className","value","sortedGroups","map","_ref4","_ref4$data","dangerouslySetInnerHTML","__html","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","noTechnicalDefinitions","technicalDefinitions","fields","add","remove","description","marginBottom","width","title","code","QuestionCircleFilled","align","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","startsWith","substr","_prevValues$technical4","_nextValues$technical4","float","marginTop","_prevValues$technical5","_nextValues$technical5","sessionDuration","_ref7","min","addonAfter","maxWidth","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","useMemo","split","plugin","flat","uniq","CookieEditFormHandlingFields","notices","createHiddenFormItemsWithCodeMirror","visible","opacity","height","severity","thisIsGoogleTagManager","u","thisIsMatomoTagManager","settings","window","cm_settings","_ref8","duration","durationUnit","CookieEditForm","_cookieStore$groups$s","_cookieStore$groups$s2","_presetModel$attribut","_presetModel$attribut2","_presetModel$attribut3","_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","purpose","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","getSingle","context","fetchAttributes","scrollTo","handleSave","values","codeToBase64","_group","newMeta","_useGroup","draft","setName","setStatus","setPurpose","setMeta","setGroup","patch","rendered","protected","presetId","presetVersion","version","persist","setTimeout","slice","responseJSON","onFinish","finish","onFinishFailed","errorInfo","errorFields","scrollToField","behavior","block","handleBeforeUnload","paragraph","rows","spinning","busy","Prompt","onValuesChange","td","tdChangedKeys","validateFields","technicalHandlingNotice","attributes_name","dependencies","contentBlockerId","transform","FormHeadline","children","borderBottom","useLocationQuery","Url","useLocation","search","query","cookieGroup","editLink","addCookieLink","getCookieTypeLocalized","http","abbr","backgroundColor","local","session","flash","indexedDb"],"sourceRoot":""}
 
public/dist/460.lite.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ "use strict";(self.webpackChunkrealCookieBanner_name_=self.webpackChunkrealCookieBanner_name_||[]).push([[460],{9772:function(e,t,a){a.d(t,{ZG:function(){return te},PS:function(){return Q},y$:function(){return ee}});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),m=a(7938),d=a(6315),p=a(7228),g=a(5450),h=a.n(g),v=a(7363),f=a(3554),y=a(4947);function E(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))}function R(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 b=a(2200),_=a(5071),k=a(4614),w=a(6711),I=a(238),Z=function(){var e=(0,I.R)(),t=e.group,a=(0,w.useRouteMatch)().params,n=isNaN(+a.cookie)?0:+a.cookie,o=!!a.cookie,r=t.cookies.entries.get(+a.cookie)||new y.U(t.cookies,{id:0});return{routeGroup:e,cookie:r,id:n,queried:o,fetched:0!==r.key}},N=a(6478),O=a(8920),T=a(2519),M=a(5408),P=a(8618),S=a(4342),C=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})))},D=a(3839),x=(0,f.Pi)((function(e){var t,a,n=e.showNoticePresetGroupNotFound,o=void 0!==n&&n,i=e.groupNotices,c=e.providerPrivacyPolicyNotices,l=(0,k.m)(),s=l.cookieStore,u=s.groups,p=s.essentialGroup,g=l.optionStore,f=g.ePrivacyUSA,y=g.consentForwarding,E=Z(),b=E.cookie,w=E.fetched,I="real-cookie-banner"===(null===(t=b.presetModel)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.identifier),x=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,M.W)({location:D.V,params:{slug:t}});case 3:return e.abrupt("return",e.sent.filter((function(e){return e.ID!==b.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)}}(),[b.key]),F=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t,a){var n,o,r,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t);case 2:if(!(n=e.sent)){e.next=19;break}if(a){e.next=8;break}throw(0,_.__)("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,x(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)}}(),[x]);return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:Q.labelCol.span},(0,_.__)("General service configuration")," ",React.createElement(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/real-cookie-banner-create-individual-cookie/")})),React.createElement(d.Z.Item,{label:(0,_.__)("Name"),required:!0},React.createElement(d.Z.Item,{name:"name",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please provide a name!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)('Each service used should have a descriptive name that is understandable to a non-professional user. Example: "Google Analytics".'))),React.createElement(d.Z.Item,{label:(0,_.__)("Status"),required:!0},React.createElement(d.Z.Item,{name:"status",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please choose a status!")}]},React.createElement(O.ZP.Group,null,React.createElement(O.ZP.Button,{value:"publish"},(0,_.__)("Enabled")),React.createElement(O.ZP.Button,{value:"private"},(0,_.__)("Disabled")),React.createElement(O.ZP.Button,{value:"draft"},(0,_.__)("Draft")))),React.createElement("p",{className:"description"},(0,_.__)('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(d.Z.Item,{label:(0,_.__)("Group"),required:!0},React.createElement(d.Z.Item,{name:"group",noStyle:!0,rules:[{required:!0,message:(0,_.__)("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,_.__)("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,_.__)("The service group in which this service is normally placed (%s) has been deleted by you. Please group the service yourself.",o))),React.createElement(C,{notices:i})),React.createElement(d.Z.Item,{label:(0,_.__)("Provider"),required:!0},React.createElement(d.Z.Item,{name:"provider",noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please name a provider!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)('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(d.Z.Item,{label:(0,_.__)("Purpose")},React.createElement(d.Z.Item,{name:"purpose",noStyle:!0},React.createElement(T.Z.TextArea,{autoSize:{minRows:3}})),React.createElement("p",{className:"description"},(0,_._i)((0,_.__)("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,_.__)("https://devowl.io/2021/personal-data-gdpr/"),target:"_blank",rel:"noreferrer"})}))),React.createElement(d.Z.Item,{label:(0,_.__)("Privacy policy of the provider")},React.createElement(d.Z.Item,{name:"providerPrivacyPolicy",noStyle:!0,rules:[{type:"url",message:(0,_.__)("Please provide a valid URL!")}]},React.createElement(T.Z,null)),React.createElement("p",{className:"description"},(0,_.__)("Provide a direct link to the privacy policy of the provider that runs this service (in the language of your website).")),React.createElement(C,{notices:c})),React.createElement(d.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")===p.key;return React.createElement(React.Fragment,null,React.createElement(d.Z.Item,{label:(0,_.__)("Consent Forwarding Unique Name"),style:{display:y?void 0:"none"}},React.createElement(d.Z.Item,{name:"consentForwardingUniqueName",noStyle:!0,validateTrigger:"onBlur",rules:[{validator:(t=(0,m.Z)(h().mark((function e(t,o){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!y||!o,e.abrupt("return",F(o||R(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(T.Z,{placeholder:w?"":R(a("name"))})),React.createElement("p",{className:"description"},(0,_.__)("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,_.__)("You can define a unique name, but essential services are automatically accepted when a consent is forwarded.")))),React.createElement(d.Z.Item,{label:(0,_.__)("Legal basis"),required:!0},React.createElement(d.Z.Item,{name:"legalBasis",noStyle:!0,rules:[{required:!0}]},React.createElement(O.ZP.Group,{disabled:o},React.createElement(O.ZP.Button,{value:"consent"},(0,_.__)("Consent (Opt-in)")),React.createElement(O.ZP.Button,{value:"legitimate-interest"},(0,_.__)("Legitimate interest (Opt-out)")),I&&React.createElement(O.ZP.Button,{value:"legal-requirement"},(0,_.__)("Compliance with a legal obligation")))),React.createElement("div",{style:{margin:"5px 0px 0px"}},React.createElement(S.r,{url:(0,_.__)("https://devowl.io/2021/opt-in-opt-out-double-opt-in-definition/")})),React.createElement("p",{className:"description"},(0,_._i)((0,_.__)('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&&!I&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",null,(0,_.__)('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(d.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(d.Z.Item,{label:(0,_.__)("US data processing"),style:{display:f?void 0:"none"}},React.createElement(d.Z.Item,{name:"ePrivacyUSA",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("This service processes data in the USA or transfers data to US companies or servers")),t("ePrivacyUSA")&&t("group")===p.key&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("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(d.Z.Item,{label:(0,_.__)("No technical definitions")},React.createElement(d.Z.Item,{name:"noTechnicalDefinitions",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("This service does not set any technical cookies on the client of the visitor, but e.g. integrates a script."))))})),F=a(1857),A=a(3251),U=a(7088),B=a(4290),G=a(9033),q=a(4184),L={labelCol:{span:0},wrapperCol:{span:24},style:{margin:0}},V=(0,f.Pi)((function(){var e=(0,A.w)();return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.noTechnicalDefinitions!==t.noTechnicalDefinitions||e.technicalDefinitions.length!==t.technicalDefinitions.length}},(function(t){return(0,t.getFieldValue)("noTechnicalDefinitions")?null:React.createElement(d.Z.List,{name:"technicalDefinitions"},(function(t,a){var n=a.add,c=a.remove;return React.createElement(React.Fragment,null,React.createElement(P.C,{offset:Q.labelCol.span,description:(0,_.__)("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,_.__)("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:150},(0,_.__)("Cookie type")),React.createElement("td",null,React.createElement(F.Z,{title:(0,_._i)((0,_.__)("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,_.__)("Technical cookie name")," ",React.createElement(U.Z,null)))),React.createElement("td",null,React.createElement(F.Z,{title:(0,_.__)("Every cookie is associated to a domain or hostname.")},React.createElement("span",null,(0,_.__)("Technical cookie host")," ",React.createElement(U.Z,null)))),React.createElement("td",null,React.createElement(F.Z,{title:(0,_.__)("A HTTP cookie is only valid for a certain time, which is defined when the cookie is set.")},React.createElement("span",null,(0,_.__)("Cookie duration")," ",React.createElement(U.Z,null)))),React.createElement("td",{width:50,align:"right"}," "))),React.createElement("tbody",null,t.map((function(a){return React.createElement("tr",{key:a.key},React.createElement("td",null,React.createElement(d.Z.Item,(0,o.Z)({},a,L,{fieldKey:[a.fieldKey,"type"],name:[a.name,"type"],rules:[{required:!0,message:(0,_.__)("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},e[t].name)}))))),React.createElement("td",null,React.createElement(d.Z.Item,(0,o.Z)({},a,L,{fieldKey:[a.fieldKey,"name"],name:[a.name,"name"],rules:[{required:!0,message:(0,_.__)("Please provide a technical cookie name!")}]}),React.createElement(T.Z,null)),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.name)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.name)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"name"]);return[/\[/gm,[/([{]+)/gm,function(e){return 1===e.length}],/\(/gm].filter((function(e){return Array.isArray(e)?e[0].test(t)&&t.match(e[0]).filter(e[1]).length>0:e.test(t)})).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,_._i)((0,_.__)("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(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.type)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.type)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"type"]);return React.createElement(React.Fragment,null,React.createElement(d.Z.Item,(0,o.Z)({},a,L,{fieldKey:[a.fieldKey,"host"],name:[a.name,"host"],rules:[{validator:function(e,a){return(["local","session","indexedDb"].indexOf(t)>-1?(0,q.C)(a):/^\.?(([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(a))||""===a&&"http"!==t?Promise.resolve():Promise.reject((0,_.__)("Please provide a valid hostname!"))}}]}),React.createElement(T.Z,null)),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.host)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.host)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"host"]);return t.startsWith("*.")&&t.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,_._i)((0,_.__)("You are using an invalid wildcard (placeholder) syntax {{code}}*.{{/code}} to match subdomains. Use {{code}}.%s{{/code}} to include subdomains.",t.substr(2)),{code:React.createElement("code",null)})))})))}))),React.createElement("td",null,React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.type)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.type)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"type"]);return["local","session","indexedDb","flash"].indexOf(t)>-1?null:React.createElement(React.Fragment,null,React.createElement(d.Z.Item,(0,o.Z)({},a,{fieldKey:[a.fieldKey,"sessionDuration"],name:[a.name,"sessionDuration"],noStyle:!0,valuePropName:"checked"}),React.createElement(i.Z,{style:{float:"left",marginTop:5}},React.createElement(F.Z,{title:(0,_.__)("This cookie is active as long as the session is active")},React.createElement("span",null,(0,_.__)("Session"))))),React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){var n,o;return(null===(n=e.technicalDefinitions[a.name])||void 0===n?void 0:n.sessionDuration)!==(null===(o=t.technicalDefinitions[a.name])||void 0===o?void 0:o.sessionDuration)}},(function(e){var t=(0,e.getFieldValue)(["technicalDefinitions",a.name,"sessionDuration"]);return React.createElement(d.Z.Item,(0,o.Z)({},a,L,{fieldKey:[a.fieldKey,"duration"],name:[a.name,"duration"],rules:[{required:!t,message:(0,_.__)("Please provide a valid duration!")}]}),React.createElement(T.Z,{min:"0",addonAfter:React.createElement(d.Z.Item,{name:[a.name,"durationUnit"],noStyle:!0,rules:[{required:!0,message:(0,_.__)("Please provide an unit!")}]},React.createElement(r.Z,null,React.createElement(r.Z.Option,{value:"s"},(0,_.__)("second(s)")),React.createElement(r.Z.Option,{value:"m"},(0,_.__)("minute(s)")," "),React.createElement(r.Z.Option,{value:"h"},(0,_.__)("hour(s)")," "),React.createElement(r.Z.Option,{value:"d"},(0,_.__)("day(s)")," "),React.createElement(r.Z.Option,{value:"mo"},(0,_.__)("month(s)")," "),React.createElement(r.Z.Option,{value:"y"},(0,_.__)("year(s)")," "))),type:"number",style:{maxWidth:200,display:t?"none":void 0}}))})))}))),React.createElement("td",null,t.length>1?React.createElement("a",{className:"button button-small",onClick:function(){c(a.name)}},React.createElement(B.Z,null)):null))}))),React.createElement("tfoot",null,React.createElement("tr",null,React.createElement("td",{colSpan:5,align:"right"},React.createElement("a",{className:"button button-primary alignright",onClick:function(){n(ee)}},React.createElement(G.Z,null)," ",(0,_.__)("Add another cookie definition")))))))}))}))})),j=a(8950),Y=a(294),H=(0,f.Pi)((function(e){var t=e.manager,a=e.onlyWhenManagerIs,n=e.hasManagerAttributeName,o=e.thisIsManagerAttributeName,r=e.inEventNameAttributeName,i=e.outEventNameAttributeName,c=(0,k.m)(),l=c.cookieStore,s=c.optionStore,u=s.setCookiesViaManager,m=s[n],p=s.others.isPro,g=l.essentialGroup,h=Z().cookie;return u===a&&p&&React.createElement(React.Fragment,null,React.createElement(d.Z.Item,{wrapperCol:{offset:Q.labelCol.span}},React.createElement(F.Z,{title:m&&h.key!==m?(0,_.__)("You have already defined a %s service.",t):""},React.createElement("span",null,React.createElement(d.Z.Item,{name:o,valuePropName:"checked",noStyle:!0},React.createElement(N.Z,{disabled:m&&h.key!==m})),React.createElement("span",null,"  ",(0,_.__)("Opt-in script below loads %s",t))))),React.createElement(d.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(d.Z.Item,{wrapperCol:{offset:Q.labelCol.span}},React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("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(d.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(d.Z.Item,{label:(0,_.__)("Event names for %s",t)},React.createElement(d.Z.Item,{name:r,noStyle:!0},React.createElement(T.Z,{addonBefore:(0,_.__)("Opt-in"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement(d.Z.Item,{name:i,noStyle:!0},React.createElement(T.Z,{addonBefore:(0,_.__)("Opt-out"),style:{maxWidth:400,marginRight:10,marginBottom:5}})),React.createElement("div",null,React.createElement(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/real-cookie-banner-with-google-tag-manager-or-matomo-tag-manager/")})),(c.length>0||l.length>0)&&!m&&React.createElement("div",{className:"notice notice-warning below-h2 notice-alt"},React.createElement("p",null,(0,_.__)("You have not yet defined a %s service. To use event names, you must create a %s service.",t,t))))})))})),$=/{{([A-Za-z0-9_]+)}}/gm,K=["codeOptIn","codeOptOut","codeOnPageLoad"],J=(0,f.Pi)((function(e){var t=e.dynamicFields;return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return K.map((function(a){return e[a]!==t[a]})).filter(Boolean).length>0}},(function(e){var a=e.getFieldValue,n=K.map((function(e){return a(e)})).join(""),o=Array.from(n.matchAll($)).map((function(e){return(0,p.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,_.__)("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(d.Z.Item,{key:e,label:o||React.createElement("code",null,e),required:!0},React.createElement(d.Z.Item,{noStyle:!0,name:a,rules:[{required:!0,pattern:s?new RegExp(s):void 0,message:c}]},React.createElement(T.Z,{placeholder:l?"".concat((0,_.__)("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}))})),z=a(7870),W=(0,f.Pi)((function(e){var t=e.name,a=(0,k.m)().optionStore.others.activePlugins,n=(0,v.useMemo)((function(){return Object.keys(a)}),[a]);return React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,a){return e[t]!==a[t]}},(function(e){var o=(0,e.getFieldValue)(t),r=(0,z.Z)(o.matchAll(/\s+(skip-if-active=")([^"]+)(")/gm)).map((function(e){return(0,p.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,_._i)((0,_.__)("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)})))}))})),X=(0,f.Pi)((function(e){var t=e.notices,a=e.dynamicFields,n=(0,k.m)(),o=n.cookieStore,r=n.optionStore,i=r.setCookiesViaManager,c=r.others.isPro,l=o.essentialGroup,s=(0,v.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:Q.labelCol.span,description:"none"===i?(0,_.__)("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,_.__)("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?Y.Gh:Y.Ki)},(0,_.__)("Technical handling")),React.createElement(H,{manager:Y.Gh,onlyWhenManagerIs:"googleTagManager",hasManagerAttributeName:"hasGTM",thisIsManagerAttributeName:"thisIsGoogleTagManager",inEventNameAttributeName:"googleTagManagerInEventName",outEventNameAttributeName:"googleTagManagerOutEventName"}),React.createElement(H,{manager:Y.Ki,onlyWhenManagerIs:"matomoTagManager",hasManagerAttributeName:"hasMTM",thisIsManagerAttributeName:"thisIsMatomoTagManager",inEventNameAttributeName:"matomoTagManagerInEventName",outEventNameAttributeName:"matomoTagManagerOutEventName"}),React.createElement(J,{dynamicFields:a}),(null==t?void 0:t.length)>0&&React.createElement(d.Z.Item,{wrapperCol:{offset:Q.labelCol.span,span:Q.wrapperCol.span}},React.createElement(C,{notices:t})),React.createElement(d.Z.Item,{label:(0,_.__)("Code executed on opt-in")},"googleTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptInNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",Y.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptInNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",Y.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptIn",noStyle:!0},React.createElement(j.Y,{settings:window.cm_settings})),React.createElement(W,{name:"codeOptIn"})),React.createElement(d.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(d.Z.Item,{label:(0,_.__)("Code executed on opt-out"),style:s(t("group")!==l.key)},React.createElement(d.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(d.Z.Item,{name:"codeOptOutDelete",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_.__)("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(d.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(d.Z.Item,{name:"codeOptOutNoGoogleTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",Y.Gh),{u:React.createElement("u",null)})))})),"matomoTagManager"===i&&c&&React.createElement(d.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(d.Z.Item,{name:"codeOptOutNoMatomoTagManager",valuePropName:"checked",noStyle:!0},React.createElement(N.Z,null)),React.createElement("span",null,"  ",(0,_._i)((0,_.__)("Only run this script if the user has {{u}}not{{/u}} allowed to use %s",Y.Ki),{u:React.createElement("u",null)})))})),React.createElement(d.Z.Item,{name:"codeOptOut",noStyle:!0},React.createElement(j.Y,{settings:window.cm_settings})),React.createElement(W,{name:"codeOptOut"})))})),React.createElement(d.Z.Item,{label:(0,_.__)("Code executed on page load")},React.createElement(d.Z.Item,{name:"codeOnPageLoad",noStyle:!0},React.createElement(j.Y,{settings:window.cm_settings})),React.createElement(W,{name:"codeOnPageLoad"})))})),Q={labelCol:{span:6},wrapperCol:{span:16}},ee={type:"http",name:"",host:"",duration:void 0,durationUnit:"y",sessionDuration:!1},te=(0,f.Pi)((function(e){var t,a,g,f,I,N,O=e.preset,T=e.attributes,M=e.navigateAfterCreation,P=void 0===M||M,C=e.scrollToTop,D=void 0===C||C,F=e.onCreated,A=Z(),U=A.routeGroup,B=U.group,G=U.link,q=A.cookie,L=A.id,j=A.queried,Y=A.fetched,H=d.Z.useForm(),$=(0,p.Z)(H,1)[0],K=(0,v.useState)(!1),J=(0,p.Z)(K,2),z=J[0],W=J[1],te=(0,v.useState)(!1),ae=(0,p.Z)(te,2),ne=ae[0],oe=ae[1],re=(0,w.useHistory)(),ie=(0,k.m)(),ce=ie.cookieStore,le=ie.optionStore.others.useEncodedStringForScriptInputs,se=ce.essentialGroup,ue=(null==q?void 0:q.presetModel)||ce.presetsCookie.get(null==O?void 0:O.identifier),me=T?T.group?(null===(t=ce.groups.sortedGroups.filter((function(e){return e.data.name===T.group})))||void 0===t||null===(a=t[0])||void 0===a?void 0:a.key)||"preset-group-not-found":void 0:B.key,de=Object.keys((null==O?void 0:O.contentBlockerPresets)||[]).length>0,pe=(null==T?void 0:T.createContentBlockerNotice)||(null==ue||null===(g=ue.attributes)||void 0===g?void 0:g.createContentBlockerNotice),ge=!(null==ue||!ue.data.scanned||null===(f=ue.attributes)||void 0===f||!f.codeOptIn||-1!==["wordpress-comments"].indexOf(ue.data.identifier)),he=Y?{name:q.data.title.raw,status:q.data.status,group:B.key||void 0,purpose:q.data.content.raw,provider:q.data.meta.provider,providerPrivacyPolicy:q.data.meta.providerPrivacyPolicy,consentForwardingUniqueName:q.data.meta.consentForwardingUniqueName||q.data.slug,noTechnicalDefinitions:q.data.meta.noTechnicalDefinitions,legalBasis:q.data.meta.legalBasis,ePrivacyUSA:q.data.meta.ePrivacyUSA,technicalDefinitions:JSON.parse(JSON.stringify(q.technicalDefinitions||"[]")),codeDynamics:JSON.parse(JSON.stringify(q.codeDynamics||"{}")),thisIsGoogleTagManager:q.data.meta.thisIsGoogleTagManager,googleTagManagerInEventName:q.data.meta.googleTagManagerInEventName,googleTagManagerOutEventName:q.data.meta.googleTagManagerOutEventName,thisIsMatomoTagManager:q.data.meta.thisIsMatomoTagManager,matomoTagManagerInEventName:q.data.meta.matomoTagManagerInEventName,matomoTagManagerOutEventName:q.data.meta.matomoTagManagerOutEventName,codeOptIn:q.data.meta.codeOptIn,codeOptInNoGoogleTagManager:q.data.meta.codeOptInNoGoogleTagManager,codeOptInNoMatomoTagManager:q.data.meta.codeOptInNoMatomoTagManager,codeOptOut:q.data.meta.codeOptOut,codeOptOutNoGoogleTagManager:q.data.meta.codeOptOutNoGoogleTagManager,codeOptOutNoMatomoTagManager:q.data.meta.codeOptOutNoMatomoTagManager,codeOnPageLoad:q.data.meta.codeOnPageLoad,codeOptOutDelete:q.data.meta.codeOptOutDelete}:{name:(null==T?void 0:T.name)||"",status:"publish",group:"number"==typeof me&&me||void 0,purpose:(null==T?void 0:T.purpose)||"",provider:(null==T?void 0:T.provider)||"",providerPrivacyPolicy:(null==T?void 0:T.providerPrivacyPolicy)||"",consentForwardingUniqueName:(null==T?void 0:T.consentForwardingUniqueName)||(null==O?void 0:O.identifier)||"",noTechnicalDefinitions:(null==T?void 0:T.noTechnicalDefinitions)||!1,legalBasis:(null==T?void 0:T.legalBasis)||"consent",ePrivacyUSA:(null==T?void 0:T.ePrivacyUSA)||!1,technicalDefinitions:null!=T&&T.technicalDefinitions?JSON.parse(JSON.stringify(T.technicalDefinitions)):[ee],codeDynamics:(null==T?void 0:T.codeDynamics)||{},thisIsGoogleTagManager:(null==T?void 0:T.thisIsGoogleTagManager)||!1,googleTagManagerInEventName:(null==T?void 0:T.googleTagManagerInEventName)||"",googleTagManagerOutEventName:(null==T?void 0:T.googleTagManagerOutEventName)||"",thisIsMatomoTagManager:(null==T?void 0:T.thisIsMatomoTagManager)||!1,matomoTagManagerInEventName:(null==T?void 0:T.matomoTagManagerInEventName)||"",matomoTagManagerOutEventName:(null==T?void 0:T.matomoTagManagerOutEventName)||"",codeOptIn:(null==T?void 0:T.codeOptIn)||"",codeOptInNoGoogleTagManager:(null==T?void 0:T.codeOptInNoGoogleTagManager)||!1,codeOptInNoMatomoTagManager:(null==T?void 0:T.codeOptInNoMatomoTagManager)||!1,codeOptOut:(null==T?void 0:T.codeOptOut)||"",codeOnPageLoad:(null==T?void 0:T.codeOnPageLoad)||"",codeOptOutNoGoogleTagManager:(null==T?void 0:T.codeOptOutNoGoogleTagManager)||!1,codeOptOutNoMatomoTagManager:(null==T?void 0:T.codeOptOutNoMatomoTagManager)||!1,codeOptOutDelete:(null==T?void 0:T.codeOptOutDelete)||!1,createContentBlocker:"boolean"==typeof(null==T?void 0:T.createContentBlocker)?T.createContentBlocker:de&&!(null!=T&&T.deactivateAutomaticContentBlockerCreation),createContentBlockerId:null==T?void 0:T.createContentBlockerId,presetCheck:!O};(0,v.useEffect)((function(){j&&!Y&&B.cookies.getSingle({params:{id:L,context:"edit"}})}),[j,Y]),(0,v.useEffect)((function(){ue&&!ue.attributes&&ue.fetchAttributes()}),[ue]),(0,v.useEffect)((function(){D&&(0,b.X)(0)}),[]);var ve=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){var a,n,o,r,i,c,m,d,p,g,v,f,b,k,w,I,Z,N;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,a=function(e){return le?"encodedScript:".concat(E(e)):e},n=t.name,o=t.status,r=t.purpose,i=t.noTechnicalDefinitions,c=t.technicalDefinitions,m=t.group,d=t.codeDynamics,p=t.createContentBlocker,g=t.createContentBlockerId,v=t.consentForwardingUniqueName,f=t.codeOptIn,b=t.codeOptOut,k=t.codeOnPageLoad,w=(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)({},w),{},{codeOptIn:a(f),codeOptOut:a(b),codeOnPageLoad:a(k),noTechnicalDefinitions:i,codeDynamics:JSON.stringify(d),technicalDefinitions:JSON.stringify(i?he.technicalDefinitions:c),consentForwardingUniqueName:v||R(n)})).presetCheck,!j){e.next=15;break}return q.setName(n),q.setStatus(o),q.setPurpose(r),q.setMeta(I),q.setGroup(m),e.next=13,q.patch();case 13:e.next=20;break;case 15:return Z=ce.groups.entries.get(m),N=new y.U(Z.cookies,{title:{rendered:n},content:{rendered:r,protected:!1},status:o,meta:(0,s.Z)((0,s.Z)({},I),{},{presetId:null==O?void 0:O.identifier,presetVersion:null==O?void 0:O.version})}),e.next=19,N.persist();case 19:null==F||F(N);case 20:oe(!1),l.ZP.success((0,_.__)("You have successfully saved the service.")+(p?" ".concat((0,_.__)("Continue with the corresponding Content Blocker!")):"")),P&&setTimeout((function(){return p?re.push("/blocker/new?force=".concat(g||O.identifier,"&cookieCreationPrompt=1").concat("string"==typeof P?"&navigateAfterCreation=".concat(encodeURIComponent(P)):"")):"string"==typeof P?window.location.href=P:re.push("".concat(G.slice(1),"/").concat(m))}),0),e.next=29;break;case 25:throw e.prev=25,e.t0=e.catch(0),l.ZP.error(e.t0.responseJSON.message),e.t0;case 29:case"end":return e.stop()}}),e,null,[[0,25]])})));return function(t){return e.apply(this,arguments)}}(),[j,q,ce,le]),fe=(0,v.useCallback)(function(){var e=(0,m.Z)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(!0),e.prev=1,e.next=4,ve(t);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:return e.prev=8,W(!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)}}(),[$,ve]),ye=(0,v.useCallback)((function(e){l.ZP.error((0,_.__)("The service could not be saved due to missing/invalid form values.")),e.errorFields.length&&$.scrollToField(e.errorFields[0].name,{behavior:"smooth",block:"center"})}),[]),Ee=(0,v.useCallback)((function(){return!ne||(0,_.__)('You have unsaved changes. If you click on "confirm", your changes will be discarded.')}),[$,he]);return j&&!Y?React.createElement(c.Z,{active:!0,paragraph:{rows:8}}):React.createElement(n.Z,{spinning:z||(null==ue?void 0:ue.busy)||!1},React.createElement(w.Prompt,{message:Ee}),React.createElement(d.Z,(0,o.Z)({name:"cookie-".concat(B.key,"-").concat(L),form:$},Q,{initialValues:he,onFinish:fe,onFinishFailed:ye,onValuesChange:function(e){var t=e.technicalDefinitions;oe(!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(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t,a=e.getFieldValue;return React.createElement(x,{groupNotices:[{message:ue&&"number"==typeof me&&a("group")!==me?(0,_.__)("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==T?void 0:T.groupNotice)||(null==ue||null===(t=ue.attributes)||void 0===t?void 0:t.groupNotice),severity:"info"}],providerPrivacyPolicyNotices:[{message:Y||null==ue||!ue.attributes||he.providerPrivacyPolicy?void 0:(0,_.__)('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&&T.group})})),React.createElement(V,null),React.createElement(X,{dynamicFields:(null==T?void 0:T.dynamicFields)||(null==ue||null===(I=ue.attributes)||void 0===I?void 0:I.dynamicFields),notices:[{message:(null==T?void 0:T.technicalHandlingNotice)||(null==ue||null===(N=ue.attributes)||void 0===N?void 0:N.technicalHandlingNotice),severity:"info"},{message:ge&&!de&&(0,_.__)("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.",ue.data.attributes_name),severity:"warning"},{message:ge&&de&&(0,_.__)('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.',ue.data.attributes_name),severity:"warning"}].filter((function(e){return e.message}))}),!!O&&React.createElement(React.Fragment,null,de&&P&&React.createElement(d.Z.Item,{wrapperCol:{offset:Q.labelCol.span}},React.createElement(d.Z.Item,{noStyle:!0,shouldUpdate:function(e,t){return e.group!==t.group}},(function(e){var t=e.getFieldValue;return React.createElement(d.Z.Item,{noStyle:!0,name:"createContentBlocker",valuePropName:"checked",dependencies:["group"],rules:[{validator:function(e,a){return t("group")===se.key&&a?Promise.reject((0,_.__)('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,_.__)("Create content blocker for this service.")))})),React.createElement(d.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(O.contentBlockerPresets).length>1&&React.createElement(d.Z.Item,{noStyle:!0,name:"createContentBlockerId",rules:[{required:!0,message:(0,_.__)("Please select a template for the Content Blocker!")}]},React.createElement(r.Z,{style:{maxWidth:500,marginTop:10,display:"block"},placeholder:(0,_.__)("Select Content Blocker template...")},Object.keys(O.contentBlockerPresets).map((function(e){return React.createElement(r.Z.Option,{key:e,value:e},O.contentBlockerPresets[e])})))),React.createElement("div",{className:"notice notice-info below-h2 notice-alt",style:{marginTop:10}},React.createElement("p",null,(0,_.__)("Immediately after submitting this form you will be forwarded to another form that allows you to create the Content Blocker.")))),!!pe&&React.createElement("div",{className:"notice notice-info below-h2 notice-alt"},React.createElement("p",{dangerouslySetInnerHTML:{__html:pe}})))}))),React.createElement(d.Z.Item,{name:"presetCheck",valuePropName:"checked",required:!0,rules:[{type:"boolean",required:!0,transform:function(e){return e||void 0},message:(0,_.__)("Please confirm that you have checked the contents of the service.")}],wrapperCol:{offset:Q.labelCol.span}},React.createElement(i.Z,null,(0,_.__)("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(S.r,{url:(0,_.__)("https://devowl.io/knowledge-base/is-real-cookie-banner-legally-compliant/")})))),React.createElement(d.Z.Item,{className:"rcb-form-sticky-submit"},React.createElement("span",null,React.createElement("input",{type:"submit",className:"button button-primary right",value:(0,_.__)("Save")})))))}))},8618: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))}},7802: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}},238:function(e,t,a){a.d(t,{R:function(){return c}});var n=a(6711),o=a(4614),r=a(7363),i=a(9323),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}}},3251: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=460.lite.js.map?ver=c4846d91f29eeb55705a
public/dist/460.lite.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"460.lite.js?ver=c4846d91f29eeb55705a","mappings":"2XAKA,SAASA,E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QA,GAEV8B,MAAO,CACLyP,aAAc,sBAEF7V,MAAMC,cAAc,KAAM,CACxCmG,MAAO,CACLU,OAAQ,OAAOtG,OAAOmH,EAAc,EAAI,GAAI,UAE7CiO,KAAajO,GAA4B3H,MAAMC,cAAc,IAAK,CACnEM,UAAW,cACX6F,MAAO,CACLwB,aAAc,KAEfD,M,6EChBL,SAASmO,IACP,OAAO,IAAI,EAAAC,IAAI,IAAIvV,QAAO,IAAAwV,eAAcC,SAAS,GAAMC,Q,gGCFrDlX,EAAsB,WACxB,IACImX,GADiB,IAAAhX,iBACYD,OAAOiX,YAGpC/U,GADa,SACYA,YAGzBhC,EAAKC,OAAO8W,GAAe,GAAKA,EAChC5W,IAAY4W,EACZlX,EAAQmC,EAAYC,OAAO5B,QAAQC,IAAIN,IAAO,IAAI,IAAiBgC,EAAYC,OAAQ,CACzFjC,GAAI,IAGFgX,GAAW,IAAAnU,cAAY,SAAUnC,GACnC,IAAIF,EAAME,EAAKF,IACf,MAAO,aAAaY,OAAOvB,EAAMW,IAAK,UAAUY,OAAOZ,KACtD,CAACX,IACAoX,EAAgB,aAAa7V,OAAOvB,EAAMW,IAAK,QACnD,MAAO,CACLX,MAAOA,EACPG,GAAIA,EACJG,QAASA,EACTI,QAAuB,IAAdV,EAAMW,IACfsP,KAXS,YAYTkH,SAAUA,EACVC,cAAeA,K,qBC/BnB,SAASC,IACP,MAAO,CACLC,KAAM,CACJ1R,KAAM,cACN2R,KAAM,OACNC,gBAAiB,SAEnBC,MAAO,CACL7R,KAAM,gBACN2R,KAAM,QACNC,gBAAiB,WAEnBE,QAAS,CACP9R,KAAM,kBACN2R,KAAM,UACNC,gBAAiB,WAEnBG,MAAO,CACL/R,KAAM,4BACN2R,KAAM,QACNC,gBAAiB,WAEnBI,UAAW,CACThS,KAAM,YACN2R,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:///../../common-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 }, /*#__PURE__*/React.createElement(_Form.Item, {\n name: \"providerPrivacyPolicy\",\n noStyle: true,\n rules: [{\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 _extends from \"@babel/runtime/helpers/extends\";\nimport _Select from \"antd/es/select\";\nimport _Tooltip from \"antd/es/tooltip\";\nimport { observer } from \"mobx-react\";\nimport { __, _i, isHost } from \"../../../../utils\";\nimport { getCookieTypeLocalized } from \"../../../../others\";\nimport { PlusOutlined, QuestionCircleFilled, DeleteOutlined } from \"@ant-design/icons\";\nimport { FormHeadline } from \"../../..\";\nimport { CookieEditFormLayout, technicalDefinitionDefaults } from \"..\";\nimport { isUrl } from \"@devowl-wp/headless-content-unblocker\";\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 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 (_ref) {\n var getFieldValue = _ref.getFieldValue;\n return getFieldValue(\"noTechnicalDefinitions\") ? null : /*#__PURE__*/React.createElement(_Form.List, {\n name: \"technicalDefinitions\"\n }, function (fields, _ref2) {\n var add = _ref2.add,\n remove = _ref2.remove;\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: 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\", null, /*#__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\", {\n width: 50,\n align: \"right\"\n }, \"\\xA0\"))), /*#__PURE__*/React.createElement(\"tbody\", null, fields.map(function (field) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: field.key\n }, /*#__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 }, 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 (_ref3) {\n var getFieldValue = _ref3.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 (_ref4) {\n var getFieldValue = _ref4.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 (_ref5) {\n var getFieldValue = _ref5.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 (_ref6) {\n var getFieldValue = _ref6.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 (_ref7) {\n var getFieldValue = _ref7.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, 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: 5,\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 _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};\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 group.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 _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {\n var codeToBase64, name, status, purpose, noTechnicalDefinitions, technicalDefinitions, _group, codeDynamics, createContentBlocker, createContentBlockerId, consentForwardingUniqueName, codeOptIn, codeOptOut, codeOnPageLoad, meta, newMeta, _useGroup, draft;\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!\")) : \"\")); // 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 = 29;\n break;\n\n case 25:\n _context.prev = 25;\n _context.t0 = _context[\"catch\"](0);\n\n _message.error(_context.t0.responseJSON.message);\n\n throw _context.t0;\n\n case 29:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 25]]);\n }));\n\n return function (_x) {\n return _ref3.apply(this, arguments);\n };\n }(), [queried, cookie, cookieStore, useEncodedStringForScriptInputs]);\n var onFinish = useCallback( /*#__PURE__*/function () {\n var _ref4 = _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 _ref4.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 form.scrollToField(errorInfo.errorFields[0].name, {\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(_ref5) {\n var technicalDefinitions = _ref5.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 (_ref6) {\n var _presetModel$attribut3;\n\n var getFieldValue = _ref6.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 (_ref7) {\n var message = _ref7.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 (_ref8) {\n var getFieldValue = _ref8.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 (_ref9) {\n var getFieldValue = _ref9.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","noTechnicalDefinitions","technicalDefinitions","fields","add","remove","description","marginBottom","width","title","code","QuestionCircleFilled","align","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","startsWith","substr","_prevValues$technical4","_nextValues$technical4","float","marginTop","_prevValues$technical5","_nextValues$technical5","sessionDuration","_ref7","min","addonAfter","maxWidth","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","useMemo","split","plugin","flat","uniq","CookieEditFormHandlingFields","createHiddenFormItemsWithCodeMirror","visible","opacity","height","thisIsGoogleTagManager","u","thisIsMatomoTagManager","settings","window","cm_settings","duration","durationUnit","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","purpose","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","getSingle","context","fetchAttributes","scrollTo","handleSave","values","codeToBase64","_group","newMeta","_useGroup","draft","setName","setStatus","setPurpose","setMeta","setGroup","patch","rendered","protected","presetId","presetVersion","version","persist","setTimeout","slice","responseJSON","onFinish","finish","onFinishFailed","errorInfo","errorFields","scrollToField","behavior","block","handleBeforeUnload","paragraph","rows","spinning","busy","Prompt","onValuesChange","td","tdChangedKeys","validateFields","_presetModel$attribut3","groupNotice","technicalHandlingNotice","attributes_name","_ref8","dependencies","_ref9","contentBlockerId","transform","FormHeadline","children","borderBottom","useLocationQuery","Url","useLocation","search","query","cookieGroup","editLink","addCookieLink","getCookieTypeLocalized","http","abbr","backgroundColor","local","session","flash","indexedDb"],"sourceRoot":""}
public/dist/admin.lite.js CHANGED
@@ -1,2 +1,2 @@
1
- var realCookieBanner_admin;!function(){"use strict";var e,t,r,n={3055: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={}))},4184: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}})},3162: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},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 w.L_},ConsentStore:function(){return w.v},CookieStore:function(){return w.hc},CustomizeBannerStore:function(){return w.WS},OptionStore:function(){return w.aZ},RootStore:function(){return w.My},ScannerStore:function(){return w.Cu},StatsStore:function(){return w.et},TcfStore:function(){return w.z},useStores:function(){return w.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(4614),p=r(1312),f=(r(1696),r(9738),r(8488)),h=r.n(f),b=r(8700),d=r(5408),v={};for(var y in b)"default"!==y&&(v[y]=function(e){return b[e]}.bind(0,y));r.d(t,v);var m,g,Z=r(9332),w=r(5187);r.p=(0,b.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===b.handleCorrupRestApi||void 0===b.handleCorrupRestApi||(0,b.handleCorrupRestApi)((m={},(0,i.Z)(m,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)(m,"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)})),m)),o.ZP.config({prefixCls:"rcb-antd"}),n.ZP.config({top:50});var k=document.getElementById("".concat(u.M.get.optionStore.slug,"-component"));k&&(0,l.render)(React.createElement(o.ZP,{prefixCls:"rcb-antd",locale:{locale:h().locale()}},React.createElement(u.M.StoreProvider,null,React.createElement(p.K,null))),k)},2142: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(5071),f=r(1857),h=r(5406),b=r(8719),d=r(3058),v=r(4614),y=r(3289),m=r(4522),g=(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,g=!(0,v.m)().optionStore.others.isPro&&l,Z=null;if("scanner"===t){var w=(0,y.p)(),k=w.percent,R=w.remaining,C=w.currentJob;R>0&&k>0&&(null==C?void 0:C.group_position)>0&&(Z=React.createElement(a.Z,null,(0,p.__)("Currently scanning (%d %%)",k)))}return React.createElement("div",{style:{margin:"5px 0"}},React.createElement(f.Z,{title:r&&o},React.createElement("span",null,g?React.createElement(h.Z,{style:{color:"#7ec8ec"}}):r?React.createElement(b.Z,{style:{color:"#52c41a"}}):React.createElement(d.Z,{style:{color:"#e2e2e2"}})," ",React.createElement("span",{style:{textDecoration:r?"line-through":void 0,fontWeight:"bold"}},n),!!i&&!!s&&React.createElement(React.Fragment,null,"  •  ",React.createElement("a",{href:i,target:c,rel:"noreferrer",onClick:u},s)))),g&&"get-pro"!==t&&React.createElement(React.Fragment,null," ",React.createElement(a.Z,{color:m.k},(0,p.__)("Needs PRO"))),!!Z&&React.createElement(React.Fragment,null," ",Z),!!o&&!r&&React.createElement("p",{className:"description",style:{paddingLeft:17}},o))})),Z=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,h=u.items,b=u.completed,y=u.checkable,m=u.done,w=u.checklist.overdue,k=(0,l.useState)("boolean"==typeof r.showHidden?r.showHidden:!m),R=(0,s.Z)(k,2),C=R[0],P=R[1];return React.createElement(n.Z,{spinning:f},React.createElement(o.Z,{direction:"vertical",size:"large"},w&&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,m&&(C?React.createElement(a.Z,{icon:React.createElement(Z.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",b.length>y.length?y.length:b.length,y.length))),h.map((function(e){var r=e.id,n=(0,c.Z)(e,["id"]);return!C&&n.checked?null:React.createElement(g,(0,i.Z)({key:r,id:r},n,{onLinkClick:function(e){["get-pro"].indexOf(r)>-1&&u.toggleChecklistItem(r,!0),null==t||t(e)}}))})))))}))},294:function(e,t,r){r.d(t,{DR:function(){return y},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(5071),p=r(994),f=r(8042),h=r(4342),b=r(4614),d="Google Tag Manager",v="Matomo Tag Manager",y=(0,l.Pi)((function(){var e=(0,b.m)().optionStore,t=e.refreshSiteAfterConsent,r=e.imprintExternalUrl,l=e.imprintIsExternalUrl,y=e.privacyPolicyExternalUrl,m=e.privacyPolicyIsExternalUrl,g=e.others,Z=g.isPro,w=g.customizeBannerUrl,k=(0,c.useCallback)((function(e){return"".concat(w.replace(/autofocus\[panel]=[\w-]+/,"autofocus[section]=".concat(e)),"&return=").concat(encodeURIComponent(window.location.href))}),[w])("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:k},(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}},m?React.createElement(n.Z,{value:y,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:k},(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(h.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)}))))}))},1312: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(5071),u=r(4614),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")))))})),h=(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.")))})),b=r(6703),d=(0,s.Pi)((function(){return!!(0,b.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"))))})),y=r(2200),m=function(){var e=(0,c.useHistory)().listen;return(0,a.useEffect)((function(){var t=e((function(){(0,y.X)(0)}));return function(){t()}}),[e]),null},g=r(294),Z=r(6069),w=r(3058),k=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(k.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(2142),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,h=s.others.customizeBannerUrl,b=s.publicUrl,d=p.completed,v=p.checkable,y=p.done;(0,a.useEffect)((function(){p.fetchChecklist()}),[]);var m=(0,a.useCallback)((function(e){window.location.href="".concat(h,"&return=").concat(encodeURIComponent(window.location.href)),e.preventDefault()}),[]),g=(0,a.useCallback)((function(){n(!0),p.fetchChecklist()}),[n]),k=(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(b,"images/logos/real-cookie-banner.svg")}),React.createElement("a",{className:"page-title-action",href:"#",onClick:m},(0,l.__)("Customize banner")),React.createElement(R,null),!y&&"/"!==f&&React.createElement(React.Fragment,null,React.createElement("a",{className:"page-title-action",style:{color:"#52c41a",background:"#f6ffed",borderColor:"#85af65"},onClick:g},React.createElement(w.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:k,okButtonProps:{style:{display:"none"}},cancelText:(0,l.__)("Close"),width:800},React.createElement(C.b,{showHidden:!0,onLinkClick:k}))),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(3289),O=r(6),D=r(3537),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(728),r.e(914),r.e(411),r.e(379)]).then(r.bind(r,6968)).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,8386)).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(728),r.e(813),r.e(930),r.e(547),r.e(795),r.e(193),r.e(784),r.e(138),r.e(3)]).then(r.bind(r,6263)).then((function(e){var t=e.ScannerRouter;return T("scanner",React.createElement(t,null))}))})),B=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(728),r.e(813),r.e(930),r.e(547),r.e(717),r.e(138),r.e(296),r.e(718)]).then(r.bind(r,2524)).then((function(e){var t=e.CookieGroupsTabRouter;return T("cookies",React.createElement(t,null))}))})),N=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(728),r.e(813),r.e(914),r.e(930),r.e(795),r.e(625)]).then(r.bind(r,4386)).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(728),r.e(813),r.e(547),r.e(138),r.e(296),r.e(478)]).then(r.bind(r,4362)).then((function(e){var t=e.BlockerRouter;return T("blocker",React.createElement(t,null))}))})),V=(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,5484)).then((function(e){var t=e.ImportExportCards;return T("import",React.createElement(t,null))}))})),U=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(322)]).then(r.bind(r,5646)).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)(),b=p.optionStore,y=p.checklistStore,Z=b.others,w=Z.showLicenseFormImmediate,k=(0,o.Z)(Z.colorScheme,3)[2];return(0,a.useLayoutEffect)((function(){b.fetchSettings();var e=function(){y.fetchChecklist()},t="".concat(O.JOB_DONE_EVENT_PREFIX).concat(D.b);return document.addEventListener(t,e),function(){document.removeEventListener(t,e)}}),[]),w?React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(U,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:k}},(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(h,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(m,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?"},b.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(B,null)),React.createElement(c.Route,{path:"/consent/:tab?"},React.createElement(N,null)),React.createElement(c.Route,{path:"/blocker"},React.createElement(j,null)),React.createElement(c.Route,{path:"/import"},React.createElement(V,null)),React.createElement(c.Route,{path:"/licensing"},React.createElement(U,null)))),React.createElement(E,null))}))},4342:function(e,t,r){r.d(t,{r:function(){return s}});var n=r(6107),o=r(2711),i=r(7088),a=r(5071),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)}},994:function(e,t,r){r.d(t,{m:function(){return y}});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(6703),f=r(5408),h=r(5071),b=r(2936),d=r(8700),v=r(4184),y=function(e){var t=e.postType,r=e.postStatus,c=void 0===r?["draft","publish","private"]:r,y=e.perPage,m=void 0===y?10:y,g=e.value,Z=e.multiple,w=e.disabled,k=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),B=(0,s.Z)(M,2),N=B[0],j=B[1],V=(0,u.useState)([]),U=(0,s.Z)(V,2),F=U[0],G=U[1],W=(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:k?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,b.N)(O,""===O?0:800,(function(e){!1!==e&&W({search:e,per_page:e.length?50:m})}),(function(e){!1!==e&&j(!0),G([])})),(0,u.useEffect)((function(){(I>0||Array.isArray(I)&&I.length>0)&&W({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),W({include:Array.isArray(g)?g:[g]}))}),[g,I]),React.createElement(n.Z,{mode:Z?"multiple":void 0,disabled:w,showSearch:!0,value:I,placeholder:(0,h.__)("Search..."),notFoundContent:N?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:N},!Z&&!N&&React.createElement(n.Z.Option,{value:0},(0,h.__)("— 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})))}},2579:function(e,t,r){r.d(t,{B:function(){return p}});var n=r(6069),o=r(7228),i=r(7363),a=r(9635),s=r(6703),c=r(5071),l=r(8081),u=r(5829),p=function(e){var t=e.visible,r=void 0!==t&&t,p=e.showHints,f=void 0===p||p,h=e.title,b=e.testDrive,d=void 0!==b&&b,v=e.assetName,y=e.description,m=e.feature,g=e.onClose,Z=e.inContainer,w=e.inContainerElement,k=(0,s.u)(),R=k.proUrl,C=k.hints,P=(0,i.useState)(),S=(0,o.Z)(P,2),E=S[0],_=S[1],x=(0,i.useCallback)((function(){window.open("".concat(R,"&feature=").concat(m),"_blank").focus(),null==g||g()}),[g]);(0,i.useEffect)((function(){Z&&E&&(null==E?void 0:E.parentElement.parentElement.previousElementSibling).removeAttribute("tabIndex")}),[E]);var O=null==C?void 0:C.proDialog;return Z&&!w?null:React.createElement(n.Z,{visible:!!Z||r,title:React.createElement("span",null,React.createElement(a.Z,null)," ",h," ",(0,c.__)("Get PRO!")),onOk:x,onCancel:g,cancelText:(0,c.__)("No, not interested..."),okText:(0,c.__)("I want to learn more!"),className:"rcb-pro-modal",width:v?800:600,getContainer:Z?w:void 0},!!v&&React.createElement("img",{style:{marginTop:10},src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/".concat(v)}),React.createElement("div",{style:{maxWidth:600,margin:"auto"},ref:_},React.createElement("p",null,(0,l.E)(y)),d&&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"})}))),!!O&&f&&React.createElement("div",{style:{maxWidth:600,margin:"auto",textAlign:"left"}},React.createElement(u.j,O)))}},5829: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}}))))}},8042:function(e,t,r){r.d(t,{g:function(){return i}});var n=r(4115),o=r(4522),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))}},2936: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}},4522: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(5071),c=r(4614),l=r(7363),u=r(2579),p="#2db7f5";function f(e,t){var r=(0,l.useState)(!1),f=(0,i.Z)(r,2),h=f[0],b=f[1],d=(0,c.m)().optionStore.others.isPro,v="boolean"==typeof t?t:d,y=(0,l.useCallback)((function(e){b(!0),null==e||e.preventDefault()}),[b]),m=(0,l.useMemo)((function(){return v?null:React.createElement(o.Z,{icon:React.createElement(a.Z,null),color:p,style:{cursor:"pointer"},onClick:y},e.tagText||(0,s.__)("Unlock feature"))}),[y,e]),g=(0,l.useMemo)((function(){return v?null:React.createElement(u.B,(0,n.Z)({visible:h,onClose:function(){return b(!1)}},e))}),[h,b,e]);return{isPro:v,tag:m,modal:g,open:y}}},3289:function(e,t,r){r.d(t,{p:function(){return s}});var n=r(6),o=r(7363),i=r(4614),a=r(3537);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})}},62: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),h=r(9303),b=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,b.runInAction)((function(){return(0,b.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 h=Object.prototype.hasOwnProperty.call(this.settings,f)?this.settings[f]:r.get(f);o.push([s,p,h])}}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,h.Z)(n.prototype,"id",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,h.Z)(n.prototype,"name",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(n.prototype,"needsPro",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.Z)(n.prototype,"description",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(n.prototype,"tags",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(n.prototype,"settings",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},480: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(5408),u=r(1313),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},1313: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),h=r(5952),b=r(9303),d=r(8700),v=r(5408),y=r(9338),m=r(7821),g=r(4614),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,h.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,m.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,m.runInAction)((function(){n.presetModel=e?new y.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,b.Z)(o.prototype,"presetModel",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(o.prototype,"hosts",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"hosts"),o.prototype),(0,b.Z)(o.prototype,"tcfVendors",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"tcfVendors"),o.prototype),(0,b.Z)(o.prototype,"cookies",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookies"),o.prototype),(0,b.Z)(o.prototype,"setName",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,b.Z)(o.prototype,"setStatus",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,b.Z)(o.prototype,"setDescription",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,b.Z)(o.prototype,"setMeta",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},9338: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),h=r(7821),b=r(3506),d=r(5408),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,h.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:b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},6565:function(e,t,r){r.d(t,{y:function(){return N}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C,P,S,E,_,x,O,D,z=r(2711),T=r(6724),I=r(6762),A=r(3340),M=r(9303),B=r(7821),N=(n=function(){function e(t,r){var n=this;(0,I.Z)(this,e),(0,T.Z)(this,"id",o,this),(0,T.Z)(this,"plugin_version",i,this),(0,T.Z)(this,"design_version",a,this),(0,T.Z)(this,"ipv4",s,this),(0,T.Z)(this,"ipv6",c,this),(0,T.Z)(this,"ipv4_hash",l,this),(0,T.Z)(this,"ipv6_hash",u,this),(0,T.Z)(this,"uuid",p,this),(0,T.Z)(this,"previous_decision",f,this),(0,T.Z)(this,"decision",h,this),(0,T.Z)(this,"decision_labels",b,this),(0,T.Z)(this,"created",d,this),(0,T.Z)(this,"blocker",v,this),(0,T.Z)(this,"dnt",y,this),(0,T.Z)(this,"custom_bypass",m,this),(0,T.Z)(this,"user_country",g,this),(0,T.Z)(this,"revision_hash",Z,this),(0,T.Z)(this,"revision_independent_hash",w,this),(0,T.Z)(this,"button_clicked",k,this),(0,T.Z)(this,"context",R,this),(0,T.Z)(this,"viewport_width",C,this),(0,T.Z)(this,"viewport_height",P,this),(0,T.Z)(this,"viewed_page",S,this),(0,T.Z)(this,"url_imprint",E,this),(0,T.Z)(this,"url_privacy_policy",_,this),(0,T.Z)(this,"forwarded",x,this),(0,T.Z)(this,"forwarded_blocker",O,this),(0,T.Z)(this,"tcf_string",D,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,A.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,z.Z)((0,z.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,M.Z)(n.prototype,"id",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,M.Z)(n.prototype,"plugin_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,M.Z)(n.prototype,"design_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,M.Z)(n.prototype,"ipv4",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,M.Z)(n.prototype,"ipv6",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,M.Z)(n.prototype,"ipv4_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,M.Z)(n.prototype,"ipv6_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,M.Z)(n.prototype,"uuid",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,M.Z)(n.prototype,"previous_decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,M.Z)(n.prototype,"decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,M.Z)(n.prototype,"decision_labels",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,M.Z)(n.prototype,"created",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,M.Z)(n.prototype,"blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,M.Z)(n.prototype,"dnt",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,M.Z)(n.prototype,"custom_bypass",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,M.Z)(n.prototype,"user_country",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,M.Z)(n.prototype,"revision_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,M.Z)(n.prototype,"revision_independent_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,M.Z)(n.prototype,"button_clicked",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,M.Z)(n.prototype,"context",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,M.Z)(n.prototype,"viewport_width",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,M.Z)(n.prototype,"viewport_height",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,M.Z)(n.prototype,"viewed_page",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,M.Z)(n.prototype,"url_imprint",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,M.Z)(n.prototype,"url_privacy_policy",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,M.Z)(n.prototype,"forwarded",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,M.Z)(n.prototype,"forwarded_blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,M.Z)(n.prototype,"tcf_string",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,M.Z)(n.prototype,"revision",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision"),n.prototype),(0,M.Z)(n.prototype,"revision_independent",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision_independent"),n.prototype),(0,M.Z)(n.prototype,"custom_bypass_readable",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"custom_bypass_readable"),n.prototype),n)},6398:function(e,t,r){r.d(t,{b:function(){return m}});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),h=r(8700),b=r(5408),d=r(4947),v=r(7821),y=r(6950),m=h.ClientCollection.annotate({path:"/rcb-cookie",singlePath:"/rcb-cookie/:id",namespace:"wp/v2",methods:[h.RouteHttpVerb.GET],request:b.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,b.W)({location:y.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}(h.AbstractPostCollection),(0,u.Z)(o.prototype,"sortedCookies",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedCookies"),o.prototype),n=o))||n},9208:function(e,t,r){r.d(t,{w:function(){return m}});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),h=r(8700),b=r(5408),d=r(9323),v=r(7821),y=r(4876),m=h.ClientCollection.annotate({path:"/rcb-cookie-group",singlePath:"/rcb-cookie-group/:id",namespace:"wp/v2",methods:[h.RouteHttpVerb.GET],request:b.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,b.W)({location:y.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}(h.AbstractCategoryCollection),(0,u.Z)(o.prototype,"sortedGroups",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedGroups"),o.prototype),n=o))||n},9323: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),h=r(9303),b=r(5450),d=r.n(b),v=r(8700),y=r(5408),m=r(6398),g=r(7821),Z=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.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 m.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,h.Z)(o.prototype,"cookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(o.prototype,"fetchedAllCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,h.Z)(o.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookiesCount"),o.prototype),(0,h.Z)(o.prototype,"setName",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,h.Z)(o.prototype,"setDescription",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,h.Z)(o.prototype,"setOrder",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),n=o))||n},4947:function(e,t,r){r.d(t,{U:function(){return k}});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),h=r(8067),b=r(3841),d=r(5952),v=r(9303),y=r(8700),m=r(5408),g=r(1974),Z=r(7821),w=r(4614),k=y.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-cookie"},patch:{path:"/rcb-cookie/:id"},delete:{path:"/rcb-cookie/:id"}})((o=function(e){(0,b.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,w.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,h.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,h.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}(y.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},1974: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),h=r(7821),b=r(7419),d=r(5408),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,h.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:b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},6714: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}},6172: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}},5277: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),h=r(4375),b=r(5408),d=r(5071),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,b.W)({location:h.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)},5482:function(e,t,r){r.d(t,{a:function(){return b}});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),h=r(9522),b=(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,h.r)(this.data.blockedUrl,50,"[...]")}},{key:"sourceUrlTruncate",get:function(){return(0,h.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)},1435: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),h=r(7821),b=r(5408),d=r(3506),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,h.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,b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"identifier",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),(0,u.Z)(n.prototype,"inactive",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),n)},9081: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)},3116: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)},3025:function(e,t,r){r.d(t,{C:function(){return h}});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(3055),h=(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)},597: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(5408),u=r(6215),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},6215:function(e,t,r){r.d(t,{S:function(){return k}});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),h=r(3841),b=r(5952),d=r(9303),v=r(8700),y=r(5408),m=r(7821),g=r(3025),Z=r(5311),w=r.n(Z),k=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.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,h.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,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"vendorModel",i,(0,u.Z)(n)),(0,m.reaction)((function(){return n.data.vendor}),(function(e){return(0,m.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,m.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 w().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",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(o.prototype,"hasVendor",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"hasVendor"),o.prototype),(0,d.Z)(o.prototype,"restrictivePurposes",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"restrictivePurposes"),o.prototype),(0,d.Z)(o.prototype,"stats",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"stats"),o.prototype),(0,d.Z)(o.prototype,"setStatus",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,d.Z)(o.prototype,"setMeta",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},7052:function(e,t,r){r.d(t,{L:function(){return w}});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),h=r(9303),b=r(5450),d=r.n(b),v=r(7821),y=r(8700),m=r(6127),g=r(6410),Z=r(5408),w=(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:m.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}(y.BaseOptions),o=(0,h.Z)(n.prototype,"busyChecklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,h.Z)(n.prototype,"checklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(n.prototype,"items",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"items"),n.prototype),(0,h.Z)(n.prototype,"completed",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"completed"),n.prototype),(0,h.Z)(n.prototype,"checkable",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"checkable"),n.prototype),(0,h.Z)(n.prototype,"done",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"done"),n.prototype),n)},6159:function(e,t,r){r.d(t,{v:function(){return I}});var n,o,i,a,s,c,l,u,p,f,h=r(38),b=r(6724),d=r(6762),v=r(3340),y=r(5558),m=r(3841),g=r(5952),Z=r(9303),w=r(5450),k=r.n(w),R=r(7821),C=r(8700),P=r(5408),S=r(5634),E=r(6778),_=r(3985),x=r(3480),O=r(7141),D=r(6565),z=r(6714),T=r(6172),I=(n=function(e){(0,m.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,b.Z)(n,"busyConsent",o,(0,y.Z)(n)),(0,b.Z)(n,"busyReferer",i,(0,y.Z)(n)),(0,b.Z)(n,"count",a,(0,y.Z)(n)),(0,b.Z)(n,"perPage",s,(0,y.Z)(n)),(0,b.Z)(n,"offset",c,(0,y.Z)(n)),(0,b.Z)(n,"pageCollection",l,(0,y.Z)(n)),(0,b.Z)(n,"revisions",u,(0,y.Z)(n)),(0,b.Z)(n,"revisionsIndependent",p,(0,y.Z)(n)),(0,b.Z)(n,"referer",f,(0,y.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)(k().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,b;return k().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,h.Z)(u);try{for(p.s();!(f=p.n()).done;)b=f.value,this.pageCollection.set(b.id,new D.y(b,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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(){return k().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)},8069:function(e,t,r){r.d(t,{h:function(){return _}});var n,o,i,a,s,c,l,u,p,f,h=r(6724),b=r(6762),d=r(3340),v=r(9303),y=r(5450),m=r.n(y),g=r(7821),Z=r(9338),w=r(1974),k=r(9208),R=r(480),C=r(340),P=r(7539),S=r(4017),E=r(5408),_=(n=function(){function e(t){var r=this;(0,b.Z)(this,e),(0,h.Z)(this,"busy",o,this),(0,h.Z)(this,"groups",i,this),(0,h.Z)(this,"unassignedCookies",a,this),(0,h.Z)(this,"blockers",s,this),(0,h.Z)(this,"presetsBlocker",c,this),(0,h.Z)(this,"busyPresetsBlocker",l,this),(0,h.Z)(this,"presetsCookie",u,this),(0,h.Z)(this,"busyPresetsCookie",p,this),(0,h.Z)(this,"fetchedAllBlockers",f,this),this.rootStore=void 0,this.fetchGroups=(0,g.flow)(m().mark((function e(){return m().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)(m().mark((function e(){var t,r,n,o;return m().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)(m().mark((function e(){return m().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)(m().mark((function e(){var t,r,n,o,i;return m().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)(m().mark((function e(){var t,r,n,o,i;return m().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 w.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 k.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)},5619: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),h=r(6724),b=r(6762),d=r(3340),v=r(9303),y=r(5450),m=r.n(y),g=r(7821),Z=r(9444),w=r(5408),k=r(62),R=r(490),C=(n=function(){function e(t){(0,b.Z)(this,e),(0,h.Z)(this,"visible",o,this),(0,h.Z)(this,"animationVisible",i,this),(0,h.Z)(this,"individualPrivacyOpen",a,this),(0,h.Z)(this,"previewCheckboxActiveState",s,this),(0,h.Z)(this,"busyPresets",c,this),(0,h.Z)(this,"presets",l,this),this.rootStore=void 0,this.presetConstants=new Map,this.presetDefaults=new Map,this.debounceFromCustomize={},this.fetchPresets=(0,g.flow)(m().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,h,b;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresets=!0,e.prev=1,e.next=4,(0,w.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,h=Object.keys(o);p<h.length;p++)b=h[p],this.presets.set(b,new k.p((0,f.Z)({id:b},o[b]),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)},5187: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(4614),o=r(5656),i=r(5619),a=r(8069),s=r(6159),c=r(3596),l=r(7052),u=r(4605),p=r(103)},5656:function(e,t,r){r.d(t,{a:function(){return ge}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C,P,S,E,_,x,O,D,z,T,I,A,M,B,N,j,V,U,F,G,W,L,H,q,Y,J,Q,X,$=r(2711),K=r(6724),ee=r(6762),te=r(3340),re=r(5558),ne=r(3841),oe=r(5952),ie=r(9303),ae=r(5450),se=r.n(ae),ce=r(7821),le=r(8700),ue=r(74),pe=r(939),fe=r(6799),he=r(8064),be=r(365),de=r(2391),ve=r(9001),ye=r(5408),me=r(7597),ge=(n=function(e){(0,ne.Z)(r,e);var t=(0,oe.Z)(r);function r(e){var n;return(0,ee.Z)(this,r),n=t.call(this),(0,K.Z)(n,"busySettings",o,(0,re.Z)(n)),(0,K.Z)(n,"busyCountryBypassUpdate",i,(0,re.Z)(n)),(0,K.Z)(n,"needsRevisionRetrigger",a,(0,re.Z)(n)),(0,K.Z)(n,"publicCookieCount",s,(0,re.Z)(n)),(0,K.Z)(n,"allCookieCount",c,(0,re.Z)(n)),(0,K.Z)(n,"allBlockerCount",l,(0,re.Z)(n)),(0,K.Z)(n,"allTcfVendorConfigurationCount",u,(0,re.Z)(n)),(0,K.Z)(n,"allScannerResultPresetsCount",p,(0,re.Z)(n)),(0,K.Z)(n,"allScannerResultExternalUrlsCount",f,(0,re.Z)(n)),(0,K.Z)(n,"cookieCounts",h,(0,re.Z)(n)),(0,K.Z)(n,"tcfVendorConfigurationCounts",b,(0,re.Z)(n)),(0,K.Z)(n,"hasGTM",d,(0,re.Z)(n)),(0,K.Z)(n,"hasMTM",v,(0,re.Z)(n)),(0,K.Z)(n,"contexts",y,(0,re.Z)(n)),(0,K.Z)(n,"dashboardMigration",m,(0,re.Z)(n)),(0,K.Z)(n,"bannerActive",g,(0,re.Z)(n)),(0,K.Z)(n,"blockerActive",Z,(0,re.Z)(n)),(0,K.Z)(n,"refreshSiteAfterConsent",w,(0,re.Z)(n)),(0,K.Z)(n,"imprintId",k,(0,re.Z)(n)),(0,K.Z)(n,"imprintExternalUrl",R,(0,re.Z)(n)),(0,K.Z)(n,"imprintIsExternalUrl",C,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyId",P,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyExternalUrl",S,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyIsExternalUrl",E,(0,re.Z)(n)),(0,K.Z)(n,"hidePageIds",_,(0,re.Z)(n)),(0,K.Z)(n,"setCookiesViaManager",x,(0,re.Z)(n)),(0,K.Z)(n,"acceptAllForBots",O,(0,re.Z)(n)),(0,K.Z)(n,"respectDoNotTrack",D,(0,re.Z)(n)),(0,K.Z)(n,"cookieDuration",z,(0,re.Z)(n)),(0,K.Z)(n,"saveIp",T,(0,re.Z)(n)),(0,K.Z)(n,"ePrivacyUSA",I,(0,re.Z)(n)),(0,K.Z)(n,"ageNotice",A,(0,re.Z)(n)),(0,K.Z)(n,"consentForwarding",M,(0,re.Z)(n)),(0,K.Z)(n,"forwardTo",B,(0,re.Z)(n)),(0,K.Z)(n,"crossDomains",N,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLink",j,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLabelBehind",V,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLabelDescription",U,(0,re.Z)(n)),(0,K.Z)(n,"countryBypass",F,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassCountries",G,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassType",W,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassDbDownloadTime",L,(0,re.Z)(n)),(0,K.Z)(n,"tcf",H,(0,re.Z)(n)),(0,K.Z)(n,"tcfPublisherCc",q,(0,re.Z)(n)),(0,K.Z)(n,"tcfAcceptedTime",Y,(0,re.Z)(n)),(0,K.Z)(n,"tcfGvlDownloadTime",J,(0,re.Z)(n)),(0,K.Z)(n,"tcfScopeOfConsent",Q,(0,re.Z)(n)),(0,K.Z)(n,"others",X,(0,re.Z)(n)),n.pureSlug=void 0,n.pureSlugCamelCased=void 0,n.rootStore=void 0,n.fetchSettings=(0,ce.flow)(se().mark((function e(t){var r;return se().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,ye.W)({location:ue.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.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=40,this.fetchCurrentRevision();case 40:e.next=46;break;case 42:throw e.prev=42,e.t1=e.catch(1),console.log(e.t1),e.t1;case 46:return e.prev=46,this.busySettings=!1,e.finish(46);case 49:case"end":return e.stop()}}),e,this,[[1,42,46,49]])}))),n.updateSettings=(0,ce.flow)(se().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C;return se().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,h=t.ePrivacyUSA,b=t.ageNotice,d=t.consentForwarding,v=t.forwardTo,y=t.crossDomains,t.affiliateLink,t.affiliateLabelBehind,t.affiliateLabelDescription,m=t.countryBypass,g=t.countryBypassCountries,Z=t.countryBypassType,w=t.tcf,k=t.tcfPublisherCc,R=t.tcfScopeOfConsent,this.busySettings=!0,e.prev=2,e.next=5,(0,ye.W)({location:pe.J,request:(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.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===h?{}:{"rcb-eprivacy-usa":h}),void 0===b?{}:{"rcb-age-notice":b}),void 0===d?{}:{"rcb-consent-forwarding":d}),void 0===v?{}:{"rcb-forward-to":v.join("|")}),void 0===y?{}:{"rcb-cross-domains":y}),void 0===m?{}:{"rcb-country-bypass":m}),void 0===g?{}:{"rcb-country-bypass-countries":g.join(",")}),void 0===Z?{}:{"rcb-country-bypass-type":Z}),void 0===w?{}:{"rcb-tcf":w}),void 0===k?{}:{"rcb-tcf-publisher-cc":k}),void 0===R?{}:{"rcb-tcf-scope-of-consent":R}),{}),{}),{})});case 5:C=e.sent,this.fetchSettings(C),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,ce.flow)(se().mark((function e(){return se().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,ye.W)({location:fe.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,ce.flow)(se().mark((function e(t){return se().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,ye.W)({location:he.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,ce.flow)(se().mark((function e(t){return se().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,ye.W)({location:me.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,ce.flow)(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.others.isConfigProNoticeVisible=!1,e.next=4,(0,ye.W)({location:be.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,ce.flow)(se().mark((function e(){var t;return se().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,ye.W)({location:de.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.updateCountryBypassDatabase=(0,ce.flow)(se().mark((function e(){var t,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyCountryBypassUpdate=!0,e.prev=1,e.next=4,(0,ye.W)({location:ve._});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=le.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=le.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,ce.runInAction)((function(){return Object.assign((0,re.Z)(n),window[n.pureSlugCamelCased])})),n}return(0,te.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.tcf_vendor_configuration_counts,h=e.dashboardMigration;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.tcfVendorConfigurationCounts=f,this.contexts=t,this.dashboardMigration=h}},{key:"setShowLicenseFormImmediate",value:function(e,t){this.others.showLicenseFormImmediate=e,this.others.isLicensed=t}}]),r}(le.BaseOptions),o=(0,ie.Z)(n.prototype,"busySettings",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,ie.Z)(n.prototype,"busyCountryBypassUpdate",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,ie.Z)(n.prototype,"needsRevisionRetrigger",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,ie.Z)(n.prototype,"publicCookieCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),c=(0,ie.Z)(n.prototype,"allCookieCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,ie.Z)(n.prototype,"allBlockerCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,ie.Z)(n.prototype,"allTcfVendorConfigurationCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=(0,ie.Z)(n.prototype,"allScannerResultPresetsCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,ie.Z)(n.prototype,"allScannerResultExternalUrlsCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,ie.Z)(n.prototype,"cookieCounts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{draft:0,private:0,publish:0}}}),b=(0,ie.Z)(n.prototype,"tcfVendorConfigurationCounts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,ie.Z)(n.prototype,"hasGTM",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=(0,ie.Z)(n.prototype,"hasMTM",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,ie.Z)(n.prototype,"contexts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{"":""}}}),m=(0,ie.Z)(n.prototype,"dashboardMigration",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,ie.Z)(n.prototype,"bannerActive",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,ie.Z)(n.prototype,"blockerActive",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,ie.Z)(n.prototype,"refreshSiteAfterConsent",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,ie.Z)(n.prototype,"imprintId",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,ie.Z)(n.prototype,"imprintExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,ie.Z)(n.prototype,"imprintIsExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,ie.Z)(n.prototype,"privacyPolicyId",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,ie.Z)(n.prototype,"privacyPolicyExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,ie.Z)(n.prototype,"privacyPolicyIsExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,ie.Z)(n.prototype,"hidePageIds",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,ie.Z)(n.prototype,"setCookiesViaManager",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,ie.Z)(n.prototype,"acceptAllForBots",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,ie.Z)(n.prototype,"respectDoNotTrack",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,ie.Z)(n.prototype,"cookieDuration",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,ie.Z)(n.prototype,"saveIp",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,ie.Z)(n.prototype,"ePrivacyUSA",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,ie.Z)(n.prototype,"ageNotice",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,ie.Z)(n.prototype,"consentForwarding",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,ie.Z)(n.prototype,"forwardTo",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,ie.Z)(n.prototype,"crossDomains",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,ie.Z)(n.prototype,"affiliateLink",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,ie.Z)(n.prototype,"affiliateLabelBehind",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,ie.Z)(n.prototype,"affiliateLabelDescription",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,ie.Z)(n.prototype,"countryBypass",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,ie.Z)(n.prototype,"countryBypassCountries",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,ie.Z)(n.prototype,"countryBypassType",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,ie.Z)(n.prototype,"countryBypassDbDownloadTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,ie.Z)(n.prototype,"tcf",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,ie.Z)(n.prototype,"tcfPublisherCc",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,ie.Z)(n.prototype,"tcfAcceptedTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,ie.Z)(n.prototype,"tcfGvlDownloadTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,ie.Z)(n.prototype,"tcfScopeOfConsent",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,ie.Z)(n.prototype,"others",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,ie.Z)(n.prototype,"isOnlyRcbCookieCreated",[ce.computed],Object.getOwnPropertyDescriptor(n.prototype,"isOnlyRcbCookieCreated"),n.prototype),(0,ie.Z)(n.prototype,"areSettingsFetched",[ce.computed],Object.getOwnPropertyDescriptor(n.prototype,"areSettingsFetched"),n.prototype),(0,ie.Z)(n.prototype,"setFromCurrentRevision",[ce.action],Object.getOwnPropertyDescriptor(n.prototype,"setFromCurrentRevision"),n.prototype),(0,ie.Z)(n.prototype,"setShowLicenseFormImmediate",[ce.action],Object.getOwnPropertyDescriptor(n.prototype,"setShowLicenseFormImmediate"),n.prototype),n)},103:function(e,t,r){r.d(t,{C:function(){return D}});var n,o,i,a,s,c,l,u,p,f,h=r(7870),b=r(38),d=r(6724),v=r(6762),y=r(3340),m=r(9303),g=r(5450),Z=r.n(g),w=r(7821),k=r(5277),R=r(5482),C=r(1435),P=r(5408),S=r(102),E=r(9977),_=r(4788),x=r(6964),O=r(4531),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,w.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,w.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,w.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,w.flow)(Z().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,h;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t instanceof k.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,b.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++)h=f[p],a.set(h.id,new R.a(h,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,w.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,y.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,h.Z)(this.resultPresets.values()),(0,h.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,b.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,b.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 k.o(r[c],this))}}}]),e}(),o=(0,m.Z)(n.prototype,"resultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),i=(0,m.Z)(n.prototype,"busyResultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,m.Z)(n.prototype,"fetchedAllResultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,m.Z)(n.prototype,"resultExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),c=(0,m.Z)(n.prototype,"resultAllExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,m.Z)(n.prototype,"busyExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,m.Z)(n.prototype,"fetchedAllResultExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,m.Z)(n.prototype,"busyMarkup",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,m.Z)(n.prototype,"resultMarkup",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,m.Z)(n.prototype,"sortedExternalUrls",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"sortedExternalUrls"),n.prototype),(0,m.Z)(n.prototype,"presetsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"presetsCount"),n.prototype),(0,m.Z)(n.prototype,"externalUrlsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"externalUrlsCount"),n.prototype),(0,m.Z)(n.prototype,"canShowResults",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"canShowResults"),n.prototype),(0,m.Z)(n.prototype,"foundScanResultsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"foundScanResultsCount"),n.prototype),(0,m.Z)(n.prototype,"needsAttentionCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"needsAttentionCount"),n.prototype),(0,m.Z)(n.prototype,"resultPresetsFromResponse",[w.action],Object.getOwnPropertyDescriptor(n.prototype,"resultPresetsFromResponse"),n.prototype),(0,m.Z)(n.prototype,"resultExternalUrlsFromResponse",[w.action],Object.getOwnPropertyDescriptor(n.prototype,"resultExternalUrlsFromResponse"),n.prototype),n)},3596:function(e,t,r){r.d(t,{e:function(){return m}});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),h=r.n(f),b=r(7821),d=r(8700),v=r(8488),y=r.n(v),m=(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=b.observable.object({main:void 0,buttonsClicked:void 0,customBypass:void 0},{},{deep:!1}),n.filters=b.observable.object({dates:void 0,context:void 0},{},{deep:!1}),n.fetchMain=(0,b.flow)(h().mark((function e(){return h().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,b.flow)(h().mark((function e(){return h().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,b.flow)(h().mark((function e(){return h().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,b.runInAction)((function(){n.filters.dates=[y()().subtract(30,"days"),y()()],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",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{main:!1,buttonClicked:!1,customBypass:!1}}}),(0,p.Z)(n.prototype,"applyDates",[b.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,p.Z)(n.prototype,"applyContext",[b.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),n)},4614: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(5656),c=r(5619),l=r(8069),u=r(6159),p=r(3596),f=r(7052),h=r(4605),b=r(103);(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 h.z(this),this.scannerStore=new b.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()}},4605:function(e,t,r){r.d(t,{z:function(){return M}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y=r(6724),m=r(6762),g=r(3340),Z=r(5558),w=r(3841),k=r(5952),R=r(9303),C=r(5450),P=r.n(C),S=r(7821),E=r(8700),_=r(4137),x=r(184),O=r(6692),D=r(5408),z=r(3025),T=r(3116),I=r(9081),A=r(597),M=(n=function(e){(0,w.Z)(r,e);var t=(0,k.Z)(r);function r(e){var n;return(0,m.Z)(this,r),n=t.call(this),(0,y.Z)(n,"busyGvl",o,(0,Z.Z)(n)),(0,y.Z)(n,"busyVendors",i,(0,Z.Z)(n)),(0,y.Z)(n,"busyDeclarations",a,(0,Z.Z)(n)),(0,y.Z)(n,"vendorConfigurations",s,(0,Z.Z)(n)),(0,y.Z)(n,"fetchedAllVendorConfigurations",c,(0,Z.Z)(n)),(0,y.Z)(n,"vendorListVersion",l,(0,Z.Z)(n)),(0,y.Z)(n,"gvlSpecificationVersion",u,(0,Z.Z)(n)),(0,y.Z)(n,"tcfPolicyVersion",p,(0,Z.Z)(n)),(0,y.Z)(n,"vendors",f,(0,Z.Z)(n)),(0,y.Z)(n,"purposes",h,(0,Z.Z)(n)),(0,y.Z)(n,"specialPurposes",b,(0,Z.Z)(n)),(0,y.Z)(n,"features",d,(0,Z.Z)(n)),(0,y.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,h,b,d,v,y,m,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++)h=f[p],this.specialPurposes.set(h,new T.v(i[h],!0,this));for(b=0,d=Object.keys(a);b<d.length;b++)v=d[b],this.features.set(v,new I.i(a[v],!1,this));for(y=0,m=Object.keys(s);y<m.length;y++)g=m[y],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}}),h=(0,R.Z)(n.prototype,"purposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),b=(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)},3537:function(e,t,r){r.d(t,{u:function(){return n},b:function(){return o}});var n="rcb-scan",o="rcb-automatic-scan-starter"},5194: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}})},6703:function(e,t,r){r.d(t,{u:function(){return o}});var n=r(5194);function o(){return(0,n.m)().others}},5071: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)}},8081: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}))}},5408: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)}},2200: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}})},9522: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}})},6127:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/checklist",method:r(8700).RouteHttpVerb.GET}},6410:function(e,t,r){r.d(t,{s:function(){return n}});var n={path:"/checklist/:id",method:r(8700).RouteHttpVerb.PUT}},7141:function(e,t,r){r.d(t,{O:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.DELETE}},5634:function(e,t,r){r.d(t,{c:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.GET}},3480:function(e,t,r){r.d(t,{q:function(){return n}});var n={path:"/consent/referer",method:r(8700).RouteHttpVerb.GET}},4876:function(e,t,r){r.d(t,{B:function(){return n}});var n={path:"/cookie-groups/order",method:r(8700).RouteHttpVerb.PUT}},340:function(e,t,r){r.d(t,{p:function(){return n}});var n={path:"/cookies/unassigned",method:r(8700).RouteHttpVerb.GET}},6950:function(e,t,r){r.d(t,{I:function(){return n}});var n={path:"/cookies/order",method:r(8700).RouteHttpVerb.PUT}},9001:function(e,t,r){r.d(t,{_:function(){return n}});var n={path:"/country-bypass/database",method:r(8700).RouteHttpVerb.PUT}},9864:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/export",method:r(8700).RouteHttpVerb.GET}},9450:function(e,t,r){r.d(t,{Q:function(){return n}});var n={path:"/export/consents",method:r(8700).RouteHttpVerb.GET}},3839:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/forward/cookie/:slug",method:r(8700).RouteHttpVerb.GET}},4773:function(e,t,r){r.d(t,{A:function(){return n}});var n={path:"/forward/endpoints",method:r(8700).RouteHttpVerb.GET}},6879:function(e,t,r){r.d(t,{H:function(){return n}});var n={path:"/import",method:r(8700).RouteHttpVerb.POST}},9332: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 k},aY:function(){return N},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 w.H},nQ:function(){return O.n},oW:function(){return U.o},nX:function(){return V.n},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 h.G},a4:function(){return b.a},Z1:function(){return D.Z},TB:function(){return z.T},kv:function(){return F.k},ME:function(){return H.M},Ce:function(){return L.C},MQ:function(){return W.M},$5:function(){return q.$},eO:function(){return G.e},$Q:function(){return g},gh:function(){return m},BV:function(){return y},Y3:function(){return B.Y},yR:function(){return A.y},fs:function(){return M.f},g3:function(){return n.g},J3:function(){return o.J}});var n=r(74),o=r(939),i=r(9444),a=r(7539),s=r(4017),c=r(4876),l=r(6950),u=r(8700),p={path:"/consent",method:u.RouteHttpVerb.POST},f={path:"/consent",method:u.RouteHttpVerb.GET},h=r(6799),b=r(8064),d=r(5634),v=r(7141),y={path:"/stats/main",method:u.RouteHttpVerb.GET},m={path:"/stats/customBypass",method:u.RouteHttpVerb.GET},g={path:"/stats/buttonsClicked",method:u.RouteHttpVerb.GET},Z=r(9864),w=r(6879),k={path:"/consent/clear",method:u.RouteHttpVerb.DELETE},R=r(9450),C=r(6127),P=r(6410),S=r(340),E=r(4773),_={path:"/consent/forward",method:u.RouteHttpVerb.POST},x=r(3839),O=r(365),D=r(6778),z=r(3985),T=r(3506),I=r(7419),A=r(6692),M=r(184),B=r(4137),N={path:"/consent/dynamic-predecision",method:u.RouteHttpVerb.GET},j=r(9001),V=r(1693),U=r(2391),F=r(102),G=r(9977),W=r(4788),L=r(4375),H=r(6964),q=r(4531),Y=r(3480)},365:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/dismiss-config-page-pro-notice",method:r(8700).RouteHttpVerb.DELETE}},2391:function(e,t,r){r.d(t,{o:function(){return n}});var n={path:"/migration/:migration",method:r(8700).RouteHttpVerb.DELETE}},1693:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/migration/:migration/:action",method:r(8700).RouteHttpVerb.POST}},7597:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/modal-hint",method:r(8700).RouteHttpVerb.PUT}},9444:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/banner",method:r(8700).RouteHttpVerb.GET}},7539:function(e,t,r){r.d(t,{W:function(){return n}});var n={path:"/presets/blocker",method:r(8700).RouteHttpVerb.GET}},3506:function(e,t,r){r.d(t,{N:function(){return n}});var n={path:"/presets/blocker/:identifier",method:r(8700).RouteHttpVerb.GET}},4017:function(e,t,r){r.d(t,{z:function(){return n}});var n={path:"/presets/cookies",method:r(8700).RouteHttpVerb.GET}},7419:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/cookies/:identifier",method:r(8700).RouteHttpVerb.GET}},6778:function(e,t,r){r.d(t,{Z:function(){return n}});var n={path:"/revision/:hash",method:r(8700).RouteHttpVerb.GET}},6799:function(e,t,r){r.d(t,{G:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.GET}},8064:function(e,t,r){r.d(t,{a:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.PUT}},3985:function(e,t,r){r.d(t,{T:function(){return n}});var n={path:"/revision/independent/:hash",method:r(8700).RouteHttpVerb.GET}},102:function(e,t,r){r.d(t,{k:function(){return n}});var n={path:"/scanner/queue",method:r(8700).RouteHttpVerb.POST}},6964:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals/:type/:identifier",method:r(8700).RouteHttpVerb.GET}},4788:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals",method:r(8700).RouteHttpVerb.GET}},4375:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/scanner/result/externals/:host",method:r(8700).RouteHttpVerb.PUT}},4531:function(e,t,r){r.d(t,{$:function(){return n}});var n={path:"/scanner/result/markup/:id",method:r(8700).RouteHttpVerb.GET}},9977:function(e,t,r){r.d(t,{e:function(){return n}});var n={path:"/scanner/result/presets",method:r(8700).RouteHttpVerb.GET}},4137:function(e,t,r){r.d(t,{Y:function(){return n}});var n={path:"/tcf/declarations",method:r(8700).RouteHttpVerb.GET}},6692:function(e,t,r){r.d(t,{y:function(){return n}});var n={path:"/tcf/gvl",method:r(8700).RouteHttpVerb.PUT}},184:function(e,t,r){r.d(t,{f:function(){return n}});var n={path:"/tcf/vendors",method:r(8700).RouteHttpVerb.GET}},74:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.GET}},939:function(e,t,r){r.d(t,{J:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.PATCH}},9738:function(){},1696: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:"3b4fe157c7e12ac410f7",138:"f1ec0d8f51d758b348dc",184:"4b0a625df34fbb327135",193:"ce7e07933bcbf069b690",296:"b994e34d0841f512ccbc",322:"c6c2710d6e50430499cd",357:"2605a6782399361261ee",379:"886ba4064c1f63584048",411:"49967c6ebf6317fa7624",440:"abce2a866d4b5996c6bb",478:"250a3fbc66198cd1b7ed",547:"7b5925702aa799ec461c",625:"b20780a5221c558a2577",717:"730891213175f653cc90",718:"badf214fad5e8955f90e",728:"91d02ab85ad640c1bab5",768:"4da711411ebfade4be4c",784:"3e247b3a85b948fd2241",795:"ef626740f77410656823",813:"db259738faaaada66048",914:"2979ca58d101a6abfbf5",930:"2f5a69377c784e62c401",954:"07834ea3d146ab79e80d"}[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(h);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)},h=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(3162)}));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={3055: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={}))},4184: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}})},3162: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},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 w.L_},ConsentStore:function(){return w.v},CookieStore:function(){return w.hc},CustomizeBannerStore:function(){return w.WS},OptionStore:function(){return w.aZ},RootStore:function(){return w.My},ScannerStore:function(){return w.Cu},StatsStore:function(){return w.et},TcfStore:function(){return w.z},useStores:function(){return w.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(4614),p=r(1312),f=(r(1696),r(9738),r(8488)),h=r.n(f),b=r(8700),d=r(5408),v={};for(var y in b)"default"!==y&&(v[y]=function(e){return b[e]}.bind(0,y));r.d(t,v);var m,g,Z=r(9332),w=r(5187);r.p=(0,b.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===b.handleCorrupRestApi||void 0===b.handleCorrupRestApi||(0,b.handleCorrupRestApi)((m={},(0,i.Z)(m,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)(m,"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)})),m)),o.ZP.config({prefixCls:"rcb-antd"}),n.ZP.config({top:50});var k=document.getElementById("".concat(u.M.get.optionStore.slug,"-component"));k&&(0,l.render)(React.createElement(o.ZP,{prefixCls:"rcb-antd",locale:{locale:h().locale()}},React.createElement(u.M.StoreProvider,null,React.createElement(p.K,null))),k)},2142: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(5071),f=r(1857),h=r(5406),b=r(8719),d=r(3058),v=r(4614),y=r(3289),m=r(4522),g=(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,g=!(0,v.m)().optionStore.others.isPro&&l,Z=null;if("scanner"===t){var w=(0,y.p)(),k=w.percent,R=w.remaining,C=w.currentJob;R>0&&k>0&&(null==C?void 0:C.group_position)>0&&(Z=React.createElement(a.Z,null,(0,p.__)("Currently scanning (%d %%)",k)))}return React.createElement("div",{style:{margin:"5px 0"}},React.createElement(f.Z,{title:r&&o},React.createElement("span",null,g?React.createElement(h.Z,{style:{color:"#7ec8ec"}}):r?React.createElement(b.Z,{style:{color:"#52c41a"}}):React.createElement(d.Z,{style:{color:"#e2e2e2"}})," ",React.createElement("span",{style:{textDecoration:r?"line-through":void 0,fontWeight:"bold"}},n),!!i&&!!s&&React.createElement(React.Fragment,null,"  •  ",React.createElement("a",{href:i,target:c,rel:"noreferrer",onClick:u},s)))),g&&"get-pro"!==t&&React.createElement(React.Fragment,null," ",React.createElement(a.Z,{color:m.k},(0,p.__)("Needs PRO"))),!!Z&&React.createElement(React.Fragment,null," ",Z),!!o&&!r&&React.createElement("p",{className:"description",style:{paddingLeft:17}},o))})),Z=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,h=u.items,b=u.completed,y=u.checkable,m=u.done,w=u.checklist.overdue,k=(0,l.useState)("boolean"==typeof r.showHidden?r.showHidden:!m),R=(0,s.Z)(k,2),C=R[0],P=R[1];return React.createElement(n.Z,{spinning:f},React.createElement(o.Z,{direction:"vertical",size:"large"},w&&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,m&&(C?React.createElement(a.Z,{icon:React.createElement(Z.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",b.length>y.length?y.length:b.length,y.length))),h.map((function(e){var r=e.id,n=(0,c.Z)(e,["id"]);return!C&&n.checked?null:React.createElement(g,(0,i.Z)({key:r,id:r},n,{onLinkClick:function(e){["get-pro"].indexOf(r)>-1&&u.toggleChecklistItem(r,!0),null==t||t(e)}}))})))))}))},294:function(e,t,r){r.d(t,{DR:function(){return y},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(5071),p=r(994),f=r(8042),h=r(4342),b=r(4614),d="Google Tag Manager",v="Matomo Tag Manager",y=(0,l.Pi)((function(){var e=(0,b.m)().optionStore,t=e.refreshSiteAfterConsent,r=e.imprintExternalUrl,l=e.imprintIsExternalUrl,y=e.privacyPolicyExternalUrl,m=e.privacyPolicyIsExternalUrl,g=e.others,Z=g.isPro,w=g.customizeBannerUrl,k=(0,c.useCallback)((function(e){return"".concat(w.replace(/autofocus\[panel]=[\w-]+/,"autofocus[section]=".concat(e)),"&return=").concat(encodeURIComponent(window.location.href))}),[w])("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:k},(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}},m?React.createElement(n.Z,{value:y,readOnly:!0,addonAfter:React.createElement("a",{className:"button-link alignright",rel:"noreferrer",target:"_blank",href:k},(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(h.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)}))))}))},1312: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(5071),u=r(4614),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")))))})),h=(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.")))})),b=r(6703),d=(0,s.Pi)((function(){return!!(0,b.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"))))})),y=r(2200),m=function(){var e=(0,c.useHistory)().listen;return(0,a.useEffect)((function(){var t=e((function(){(0,y.X)(0)}));return function(){t()}}),[e]),null},g=r(294),Z=r(6069),w=r(3058),k=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(k.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(2142),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,h=s.others.customizeBannerUrl,b=s.publicUrl,d=p.completed,v=p.checkable,y=p.done;(0,a.useEffect)((function(){p.fetchChecklist()}),[]);var m=(0,a.useCallback)((function(e){window.location.href="".concat(h,"&return=").concat(encodeURIComponent(window.location.href)),e.preventDefault()}),[]),g=(0,a.useCallback)((function(){n(!0),p.fetchChecklist()}),[n]),k=(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(b,"images/logos/real-cookie-banner.svg")}),React.createElement("a",{className:"page-title-action",href:"#",onClick:m},(0,l.__)("Customize banner")),React.createElement(R,null),!y&&"/"!==f&&React.createElement(React.Fragment,null,React.createElement("a",{className:"page-title-action",style:{color:"#52c41a",background:"#f6ffed",borderColor:"#85af65"},onClick:g},React.createElement(w.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:k,okButtonProps:{style:{display:"none"}},cancelText:(0,l.__)("Close"),width:800},React.createElement(C.b,{showHidden:!0,onLinkClick:k}))),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(3289),O=r(6),D=r(3537),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(728),r.e(914),r.e(411),r.e(379)]).then(r.bind(r,6968)).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,8386)).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(728),r.e(813),r.e(930),r.e(547),r.e(795),r.e(193),r.e(784),r.e(138),r.e(3)]).then(r.bind(r,6263)).then((function(e){var t=e.ScannerRouter;return T("scanner",React.createElement(t,null))}))})),B=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(728),r.e(813),r.e(930),r.e(547),r.e(717),r.e(138),r.e(460),r.e(718)]).then(r.bind(r,2524)).then((function(e){var t=e.CookieGroupsTabRouter;return T("cookies",React.createElement(t,null))}))})),N=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(728),r.e(813),r.e(914),r.e(930),r.e(795),r.e(625)]).then(r.bind(r,4386)).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(728),r.e(813),r.e(547),r.e(138),r.e(460),r.e(478)]).then(r.bind(r,4362)).then((function(e){var t=e.BlockerRouter;return T("blocker",React.createElement(t,null))}))})),V=(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,5484)).then((function(e){var t=e.ImportExportCards;return T("import",React.createElement(t,null))}))})),U=(0,a.lazy)((function(){return Promise.all([r.e(440),r.e(322)]).then(r.bind(r,5646)).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)(),b=p.optionStore,y=p.checklistStore,Z=b.others,w=Z.showLicenseFormImmediate,k=(0,o.Z)(Z.colorScheme,3)[2];return(0,a.useLayoutEffect)((function(){b.fetchSettings();var e=function(){y.fetchChecklist()},t="".concat(O.JOB_DONE_EVENT_PREFIX).concat(D.b);return document.addEventListener(t,e),function(){document.removeEventListener(t,e)}}),[]),w?React.createElement(a.Suspense,{fallback:React.createElement(i.Z,{spinning:!0,style:z})},React.createElement(U,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:k}},(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(h,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(m,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?"},b.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(B,null)),React.createElement(c.Route,{path:"/consent/:tab?"},React.createElement(N,null)),React.createElement(c.Route,{path:"/blocker"},React.createElement(j,null)),React.createElement(c.Route,{path:"/import"},React.createElement(V,null)),React.createElement(c.Route,{path:"/licensing"},React.createElement(U,null)))),React.createElement(E,null))}))},4342:function(e,t,r){r.d(t,{r:function(){return s}});var n=r(6107),o=r(2711),i=r(7088),a=r(5071),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)}},994:function(e,t,r){r.d(t,{m:function(){return y}});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(6703),f=r(5408),h=r(5071),b=r(2936),d=r(8700),v=r(4184),y=function(e){var t=e.postType,r=e.postStatus,c=void 0===r?["draft","publish","private"]:r,y=e.perPage,m=void 0===y?10:y,g=e.value,Z=e.multiple,w=e.disabled,k=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),B=(0,s.Z)(M,2),N=B[0],j=B[1],V=(0,u.useState)([]),U=(0,s.Z)(V,2),F=U[0],G=U[1],W=(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:k?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,b.N)(O,""===O?0:800,(function(e){!1!==e&&W({search:e,per_page:e.length?50:m})}),(function(e){!1!==e&&j(!0),G([])})),(0,u.useEffect)((function(){(I>0||Array.isArray(I)&&I.length>0)&&W({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),W({include:Array.isArray(g)?g:[g]}))}),[g,I]),React.createElement(n.Z,{mode:Z?"multiple":void 0,disabled:w,showSearch:!0,value:I,placeholder:(0,h.__)("Search..."),notFoundContent:N?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:N},!Z&&!N&&React.createElement(n.Z.Option,{value:0},(0,h.__)("— 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})))}},2579:function(e,t,r){r.d(t,{B:function(){return p}});var n=r(6069),o=r(7228),i=r(7363),a=r(9635),s=r(6703),c=r(5071),l=r(8081),u=r(5829),p=function(e){var t=e.visible,r=void 0!==t&&t,p=e.showHints,f=void 0===p||p,h=e.title,b=e.testDrive,d=void 0!==b&&b,v=e.assetName,y=e.description,m=e.feature,g=e.onClose,Z=e.inContainer,w=e.inContainerElement,k=(0,s.u)(),R=k.proUrl,C=k.hints,P=(0,i.useState)(),S=(0,o.Z)(P,2),E=S[0],_=S[1],x=(0,i.useCallback)((function(){window.open("".concat(R,"&feature=").concat(m),"_blank").focus(),null==g||g()}),[g]);(0,i.useEffect)((function(){Z&&E&&(null==E?void 0:E.parentElement.parentElement.previousElementSibling).removeAttribute("tabIndex")}),[E]);var O=null==C?void 0:C.proDialog;return Z&&!w?null:React.createElement(n.Z,{visible:!!Z||r,title:React.createElement("span",null,React.createElement(a.Z,null)," ",h," ",(0,c.__)("Get PRO!")),onOk:x,onCancel:g,cancelText:(0,c.__)("No, not interested..."),okText:(0,c.__)("I want to learn more!"),className:"rcb-pro-modal",width:v?800:600,getContainer:Z?w:void 0},!!v&&React.createElement("img",{style:{marginTop:10},src:"https://assets.devowl.io/in-app/wp-real-cookie-banner/".concat(v)}),React.createElement("div",{style:{maxWidth:600,margin:"auto"},ref:_},React.createElement("p",null,(0,l.E)(y)),d&&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"})}))),!!O&&f&&React.createElement("div",{style:{maxWidth:600,margin:"auto",textAlign:"left"}},React.createElement(u.j,O)))}},5829: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}}))))}},8042:function(e,t,r){r.d(t,{g:function(){return i}});var n=r(4115),o=r(4522),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))}},2936: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}},4522: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(5071),c=r(4614),l=r(7363),u=r(2579),p="#2db7f5";function f(e,t){var r=(0,l.useState)(!1),f=(0,i.Z)(r,2),h=f[0],b=f[1],d=(0,c.m)().optionStore.others.isPro,v="boolean"==typeof t?t:d,y=(0,l.useCallback)((function(e){b(!0),null==e||e.preventDefault()}),[b]),m=(0,l.useMemo)((function(){return v?null:React.createElement(o.Z,{icon:React.createElement(a.Z,null),color:p,style:{cursor:"pointer"},onClick:y},e.tagText||(0,s.__)("Unlock feature"))}),[y,e]),g=(0,l.useMemo)((function(){return v?null:React.createElement(u.B,(0,n.Z)({visible:h,onClose:function(){return b(!1)}},e))}),[h,b,e]);return{isPro:v,tag:m,modal:g,open:y}}},3289:function(e,t,r){r.d(t,{p:function(){return s}});var n=r(6),o=r(7363),i=r(4614),a=r(3537);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})}},62: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),h=r(9303),b=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,b.runInAction)((function(){return(0,b.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 h=Object.prototype.hasOwnProperty.call(this.settings,f)?this.settings[f]:r.get(f);o.push([s,p,h])}}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,h.Z)(n.prototype,"id",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,h.Z)(n.prototype,"name",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(n.prototype,"needsPro",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.Z)(n.prototype,"description",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(n.prototype,"tags",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(n.prototype,"settings",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},480: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(5408),u=r(1313),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},1313: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),h=r(5952),b=r(9303),d=r(8700),v=r(5408),y=r(9338),m=r(7821),g=r(4614),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,h.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,m.reaction)((function(){var e;return null===(e=n.data)||void 0===e?void 0:e.preset}),(function(e){return(0,m.runInAction)((function(){n.presetModel=e?new y.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,b.Z)(o.prototype,"presetModel",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(o.prototype,"hosts",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"hosts"),o.prototype),(0,b.Z)(o.prototype,"tcfVendors",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"tcfVendors"),o.prototype),(0,b.Z)(o.prototype,"cookies",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookies"),o.prototype),(0,b.Z)(o.prototype,"setName",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,b.Z)(o.prototype,"setStatus",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,b.Z)(o.prototype,"setDescription",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,b.Z)(o.prototype,"setMeta",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},9338: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),h=r(7821),b=r(3506),d=r(5408),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,h.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:b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},6565:function(e,t,r){r.d(t,{y:function(){return N}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C,P,S,E,_,x,O,D,z=r(2711),T=r(6724),I=r(6762),A=r(3340),M=r(9303),B=r(7821),N=(n=function(){function e(t,r){var n=this;(0,I.Z)(this,e),(0,T.Z)(this,"id",o,this),(0,T.Z)(this,"plugin_version",i,this),(0,T.Z)(this,"design_version",a,this),(0,T.Z)(this,"ipv4",s,this),(0,T.Z)(this,"ipv6",c,this),(0,T.Z)(this,"ipv4_hash",l,this),(0,T.Z)(this,"ipv6_hash",u,this),(0,T.Z)(this,"uuid",p,this),(0,T.Z)(this,"previous_decision",f,this),(0,T.Z)(this,"decision",h,this),(0,T.Z)(this,"decision_labels",b,this),(0,T.Z)(this,"created",d,this),(0,T.Z)(this,"blocker",v,this),(0,T.Z)(this,"dnt",y,this),(0,T.Z)(this,"custom_bypass",m,this),(0,T.Z)(this,"user_country",g,this),(0,T.Z)(this,"revision_hash",Z,this),(0,T.Z)(this,"revision_independent_hash",w,this),(0,T.Z)(this,"button_clicked",k,this),(0,T.Z)(this,"context",R,this),(0,T.Z)(this,"viewport_width",C,this),(0,T.Z)(this,"viewport_height",P,this),(0,T.Z)(this,"viewed_page",S,this),(0,T.Z)(this,"url_imprint",E,this),(0,T.Z)(this,"url_privacy_policy",_,this),(0,T.Z)(this,"forwarded",x,this),(0,T.Z)(this,"forwarded_blocker",O,this),(0,T.Z)(this,"tcf_string",D,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,A.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,z.Z)((0,z.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,M.Z)(n.prototype,"id",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=(0,M.Z)(n.prototype,"plugin_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,M.Z)(n.prototype,"design_version",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,M.Z)(n.prototype,"ipv4",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,M.Z)(n.prototype,"ipv6",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,M.Z)(n.prototype,"ipv4_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,M.Z)(n.prototype,"ipv6_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,M.Z)(n.prototype,"uuid",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,M.Z)(n.prototype,"previous_decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,M.Z)(n.prototype,"decision",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,M.Z)(n.prototype,"decision_labels",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,M.Z)(n.prototype,"created",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,M.Z)(n.prototype,"blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,M.Z)(n.prototype,"dnt",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,M.Z)(n.prototype,"custom_bypass",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,M.Z)(n.prototype,"user_country",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,M.Z)(n.prototype,"revision_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,M.Z)(n.prototype,"revision_independent_hash",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,M.Z)(n.prototype,"button_clicked",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,M.Z)(n.prototype,"context",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,M.Z)(n.prototype,"viewport_width",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,M.Z)(n.prototype,"viewport_height",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,M.Z)(n.prototype,"viewed_page",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,M.Z)(n.prototype,"url_imprint",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,M.Z)(n.prototype,"url_privacy_policy",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,M.Z)(n.prototype,"forwarded",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,M.Z)(n.prototype,"forwarded_blocker",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,M.Z)(n.prototype,"tcf_string",[B.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,M.Z)(n.prototype,"revision",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision"),n.prototype),(0,M.Z)(n.prototype,"revision_independent",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"revision_independent"),n.prototype),(0,M.Z)(n.prototype,"custom_bypass_readable",[B.computed],Object.getOwnPropertyDescriptor(n.prototype,"custom_bypass_readable"),n.prototype),n)},6398:function(e,t,r){r.d(t,{b:function(){return m}});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),h=r(8700),b=r(5408),d=r(4947),v=r(7821),y=r(6950),m=h.ClientCollection.annotate({path:"/rcb-cookie",singlePath:"/rcb-cookie/:id",namespace:"wp/v2",methods:[h.RouteHttpVerb.GET],request:b.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,b.W)({location:y.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}(h.AbstractPostCollection),(0,u.Z)(o.prototype,"sortedCookies",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedCookies"),o.prototype),n=o))||n},9208:function(e,t,r){r.d(t,{w:function(){return m}});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),h=r(8700),b=r(5408),d=r(9323),v=r(7821),y=r(4876),m=h.ClientCollection.annotate({path:"/rcb-cookie-group",singlePath:"/rcb-cookie-group/:id",namespace:"wp/v2",methods:[h.RouteHttpVerb.GET],request:b.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,b.W)({location:y.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}(h.AbstractCategoryCollection),(0,u.Z)(o.prototype,"sortedGroups",[v.computed],Object.getOwnPropertyDescriptor(o.prototype,"sortedGroups"),o.prototype),n=o))||n},9323: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),h=r(9303),b=r(5450),d=r.n(b),v=r(8700),y=r(5408),m=r(6398),g=r(7821),Z=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.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 m.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,h.Z)(o.prototype,"cookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(o.prototype,"fetchedAllCookies",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,h.Z)(o.prototype,"cookiesCount",[g.computed],Object.getOwnPropertyDescriptor(o.prototype,"cookiesCount"),o.prototype),(0,h.Z)(o.prototype,"setName",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setName"),o.prototype),(0,h.Z)(o.prototype,"setDescription",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setDescription"),o.prototype),(0,h.Z)(o.prototype,"setOrder",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"setOrder"),o.prototype),n=o))||n},4947:function(e,t,r){r.d(t,{U:function(){return k}});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),h=r(8067),b=r(3841),d=r(5952),v=r(9303),y=r(8700),m=r(5408),g=r(1974),Z=r(7821),w=r(4614),k=y.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:m.W,create:{path:"/rcb-cookie"},patch:{path:"/rcb-cookie/:id"},delete:{path:"/rcb-cookie/:id"}})((o=function(e){(0,b.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,w.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,h.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,h.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}(y.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},1974: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),h=r(7821),b=r(7419),d=r(5408),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,h.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:b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),n)},6714: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}},6172: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}},5277: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),h=r(4375),b=r(5408),d=r(5071),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,b.W)({location:h.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)},5482:function(e,t,r){r.d(t,{a:function(){return b}});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),h=r(9522),b=(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,h.r)(this.data.blockedUrl,50,"[...]")}},{key:"sourceUrlTruncate",get:function(){return(0,h.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)},1435: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),h=r(7821),b=r(5408),d=r(3506),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,h.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,b.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,h.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",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,u.Z)(n.prototype,"data",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(n.prototype,"attributes",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(n.prototype,"identifier",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"identifier"),n.prototype),(0,u.Z)(n.prototype,"fullLogoUrl",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"fullLogoUrl"),n.prototype),(0,u.Z)(n.prototype,"inactive",[h.computed],Object.getOwnPropertyDescriptor(n.prototype,"inactive"),n.prototype),n)},9081: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)},3116: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)},3025:function(e,t,r){r.d(t,{C:function(){return h}});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(3055),h=(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)},597: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(5408),u=r(6215),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},6215:function(e,t,r){r.d(t,{S:function(){return k}});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),h=r(3841),b=r(5952),d=r(9303),v=r(8700),y=r(5408),m=r(7821),g=r(3025),Z=r(5311),w=r.n(Z),k=v.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:y.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,h.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,c.Z)(this,r),n=t.call(this,e,o),(0,s.Z)(n,"vendorModel",i,(0,u.Z)(n)),(0,m.reaction)((function(){return n.data.vendor}),(function(e){return(0,m.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,m.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 w().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",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(o.prototype,"hasVendor",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"hasVendor"),o.prototype),(0,d.Z)(o.prototype,"restrictivePurposes",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"restrictivePurposes"),o.prototype),(0,d.Z)(o.prototype,"stats",[m.computed],Object.getOwnPropertyDescriptor(o.prototype,"stats"),o.prototype),(0,d.Z)(o.prototype,"setStatus",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setStatus"),o.prototype),(0,d.Z)(o.prototype,"setMeta",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"setMeta"),o.prototype),n=o))||n},7052:function(e,t,r){r.d(t,{L:function(){return w}});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),h=r(9303),b=r(5450),d=r.n(b),v=r(7821),y=r(8700),m=r(6127),g=r(6410),Z=r(5408),w=(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:m.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}(y.BaseOptions),o=(0,h.Z)(n.prototype,"busyChecklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,h.Z)(n.prototype,"checklist",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(n.prototype,"items",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"items"),n.prototype),(0,h.Z)(n.prototype,"completed",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"completed"),n.prototype),(0,h.Z)(n.prototype,"checkable",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"checkable"),n.prototype),(0,h.Z)(n.prototype,"done",[v.computed],Object.getOwnPropertyDescriptor(n.prototype,"done"),n.prototype),n)},6159:function(e,t,r){r.d(t,{v:function(){return I}});var n,o,i,a,s,c,l,u,p,f,h=r(38),b=r(6724),d=r(6762),v=r(3340),y=r(5558),m=r(3841),g=r(5952),Z=r(9303),w=r(5450),k=r.n(w),R=r(7821),C=r(8700),P=r(5408),S=r(5634),E=r(6778),_=r(3985),x=r(3480),O=r(7141),D=r(6565),z=r(6714),T=r(6172),I=(n=function(e){(0,m.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,b.Z)(n,"busyConsent",o,(0,y.Z)(n)),(0,b.Z)(n,"busyReferer",i,(0,y.Z)(n)),(0,b.Z)(n,"count",a,(0,y.Z)(n)),(0,b.Z)(n,"perPage",s,(0,y.Z)(n)),(0,b.Z)(n,"offset",c,(0,y.Z)(n)),(0,b.Z)(n,"pageCollection",l,(0,y.Z)(n)),(0,b.Z)(n,"revisions",u,(0,y.Z)(n)),(0,b.Z)(n,"revisionsIndependent",p,(0,y.Z)(n)),(0,b.Z)(n,"referer",f,(0,y.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)(k().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,f,b;return k().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,h.Z)(u);try{for(p.s();!(f=p.n()).done;)b=f.value,this.pageCollection.set(b.id,new D.y(b,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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(t){var r;return k().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)(k().mark((function e(){return k().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)},8069:function(e,t,r){r.d(t,{h:function(){return _}});var n,o,i,a,s,c,l,u,p,f,h=r(6724),b=r(6762),d=r(3340),v=r(9303),y=r(5450),m=r.n(y),g=r(7821),Z=r(9338),w=r(1974),k=r(9208),R=r(480),C=r(340),P=r(7539),S=r(4017),E=r(5408),_=(n=function(){function e(t){var r=this;(0,b.Z)(this,e),(0,h.Z)(this,"busy",o,this),(0,h.Z)(this,"groups",i,this),(0,h.Z)(this,"unassignedCookies",a,this),(0,h.Z)(this,"blockers",s,this),(0,h.Z)(this,"presetsBlocker",c,this),(0,h.Z)(this,"busyPresetsBlocker",l,this),(0,h.Z)(this,"presetsCookie",u,this),(0,h.Z)(this,"busyPresetsCookie",p,this),(0,h.Z)(this,"fetchedAllBlockers",f,this),this.rootStore=void 0,this.fetchGroups=(0,g.flow)(m().mark((function e(){return m().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)(m().mark((function e(){var t,r,n,o;return m().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)(m().mark((function e(){return m().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)(m().mark((function e(){var t,r,n,o,i;return m().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)(m().mark((function e(){var t,r,n,o,i;return m().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 w.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 k.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)},5619: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),h=r(6724),b=r(6762),d=r(3340),v=r(9303),y=r(5450),m=r.n(y),g=r(7821),Z=r(9444),w=r(5408),k=r(62),R=r(490),C=(n=function(){function e(t){(0,b.Z)(this,e),(0,h.Z)(this,"visible",o,this),(0,h.Z)(this,"animationVisible",i,this),(0,h.Z)(this,"individualPrivacyOpen",a,this),(0,h.Z)(this,"previewCheckboxActiveState",s,this),(0,h.Z)(this,"busyPresets",c,this),(0,h.Z)(this,"presets",l,this),this.rootStore=void 0,this.presetConstants=new Map,this.presetDefaults=new Map,this.debounceFromCustomize={},this.fetchPresets=(0,g.flow)(m().mark((function e(){var t,r,n,o,i,a,s,c,l,u,p,h,b;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyPresets=!0,e.prev=1,e.next=4,(0,w.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,h=Object.keys(o);p<h.length;p++)b=h[p],this.presets.set(b,new k.p((0,f.Z)({id:b},o[b]),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)},5187: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(4614),o=r(5656),i=r(5619),a=r(8069),s=r(6159),c=r(3596),l=r(7052),u=r(4605),p=r(103)},5656:function(e,t,r){r.d(t,{a:function(){return ge}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C,P,S,E,_,x,O,D,z,T,I,A,M,B,N,j,V,U,F,G,W,L,H,q,Y,J,Q,X,$=r(2711),K=r(6724),ee=r(6762),te=r(3340),re=r(5558),ne=r(3841),oe=r(5952),ie=r(9303),ae=r(5450),se=r.n(ae),ce=r(7821),le=r(8700),ue=r(74),pe=r(939),fe=r(6799),he=r(8064),be=r(365),de=r(2391),ve=r(9001),ye=r(5408),me=r(7597),ge=(n=function(e){(0,ne.Z)(r,e);var t=(0,oe.Z)(r);function r(e){var n;return(0,ee.Z)(this,r),n=t.call(this),(0,K.Z)(n,"busySettings",o,(0,re.Z)(n)),(0,K.Z)(n,"busyCountryBypassUpdate",i,(0,re.Z)(n)),(0,K.Z)(n,"needsRevisionRetrigger",a,(0,re.Z)(n)),(0,K.Z)(n,"publicCookieCount",s,(0,re.Z)(n)),(0,K.Z)(n,"allCookieCount",c,(0,re.Z)(n)),(0,K.Z)(n,"allBlockerCount",l,(0,re.Z)(n)),(0,K.Z)(n,"allTcfVendorConfigurationCount",u,(0,re.Z)(n)),(0,K.Z)(n,"allScannerResultPresetsCount",p,(0,re.Z)(n)),(0,K.Z)(n,"allScannerResultExternalUrlsCount",f,(0,re.Z)(n)),(0,K.Z)(n,"cookieCounts",h,(0,re.Z)(n)),(0,K.Z)(n,"tcfVendorConfigurationCounts",b,(0,re.Z)(n)),(0,K.Z)(n,"hasGTM",d,(0,re.Z)(n)),(0,K.Z)(n,"hasMTM",v,(0,re.Z)(n)),(0,K.Z)(n,"contexts",y,(0,re.Z)(n)),(0,K.Z)(n,"dashboardMigration",m,(0,re.Z)(n)),(0,K.Z)(n,"bannerActive",g,(0,re.Z)(n)),(0,K.Z)(n,"blockerActive",Z,(0,re.Z)(n)),(0,K.Z)(n,"refreshSiteAfterConsent",w,(0,re.Z)(n)),(0,K.Z)(n,"imprintId",k,(0,re.Z)(n)),(0,K.Z)(n,"imprintExternalUrl",R,(0,re.Z)(n)),(0,K.Z)(n,"imprintIsExternalUrl",C,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyId",P,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyExternalUrl",S,(0,re.Z)(n)),(0,K.Z)(n,"privacyPolicyIsExternalUrl",E,(0,re.Z)(n)),(0,K.Z)(n,"hidePageIds",_,(0,re.Z)(n)),(0,K.Z)(n,"setCookiesViaManager",x,(0,re.Z)(n)),(0,K.Z)(n,"acceptAllForBots",O,(0,re.Z)(n)),(0,K.Z)(n,"respectDoNotTrack",D,(0,re.Z)(n)),(0,K.Z)(n,"cookieDuration",z,(0,re.Z)(n)),(0,K.Z)(n,"saveIp",T,(0,re.Z)(n)),(0,K.Z)(n,"ePrivacyUSA",I,(0,re.Z)(n)),(0,K.Z)(n,"ageNotice",A,(0,re.Z)(n)),(0,K.Z)(n,"consentForwarding",M,(0,re.Z)(n)),(0,K.Z)(n,"forwardTo",B,(0,re.Z)(n)),(0,K.Z)(n,"crossDomains",N,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLink",j,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLabelBehind",V,(0,re.Z)(n)),(0,K.Z)(n,"affiliateLabelDescription",U,(0,re.Z)(n)),(0,K.Z)(n,"countryBypass",F,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassCountries",G,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassType",W,(0,re.Z)(n)),(0,K.Z)(n,"countryBypassDbDownloadTime",L,(0,re.Z)(n)),(0,K.Z)(n,"tcf",H,(0,re.Z)(n)),(0,K.Z)(n,"tcfPublisherCc",q,(0,re.Z)(n)),(0,K.Z)(n,"tcfAcceptedTime",Y,(0,re.Z)(n)),(0,K.Z)(n,"tcfGvlDownloadTime",J,(0,re.Z)(n)),(0,K.Z)(n,"tcfScopeOfConsent",Q,(0,re.Z)(n)),(0,K.Z)(n,"others",X,(0,re.Z)(n)),n.pureSlug=void 0,n.pureSlugCamelCased=void 0,n.rootStore=void 0,n.fetchSettings=(0,ce.flow)(se().mark((function e(t){var r;return se().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,ye.W)({location:ue.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.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=40,this.fetchCurrentRevision();case 40:e.next=46;break;case 42:throw e.prev=42,e.t1=e.catch(1),console.log(e.t1),e.t1;case 46:return e.prev=46,this.busySettings=!1,e.finish(46);case 49:case"end":return e.stop()}}),e,this,[[1,42,46,49]])}))),n.updateSettings=(0,ce.flow)(se().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,h,b,d,v,y,m,g,Z,w,k,R,C;return se().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,h=t.ePrivacyUSA,b=t.ageNotice,d=t.consentForwarding,v=t.forwardTo,y=t.crossDomains,t.affiliateLink,t.affiliateLabelBehind,t.affiliateLabelDescription,m=t.countryBypass,g=t.countryBypassCountries,Z=t.countryBypassType,w=t.tcf,k=t.tcfPublisherCc,R=t.tcfScopeOfConsent,this.busySettings=!0,e.prev=2,e.next=5,(0,ye.W)({location:pe.J,request:(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)((0,$.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===h?{}:{"rcb-eprivacy-usa":h}),void 0===b?{}:{"rcb-age-notice":b}),void 0===d?{}:{"rcb-consent-forwarding":d}),void 0===v?{}:{"rcb-forward-to":v.join("|")}),void 0===y?{}:{"rcb-cross-domains":y}),void 0===m?{}:{"rcb-country-bypass":m}),void 0===g?{}:{"rcb-country-bypass-countries":g.join(",")}),void 0===Z?{}:{"rcb-country-bypass-type":Z}),void 0===w?{}:{"rcb-tcf":w}),void 0===k?{}:{"rcb-tcf-publisher-cc":k}),void 0===R?{}:{"rcb-tcf-scope-of-consent":R}),{}),{}),{})});case 5:C=e.sent,this.fetchSettings(C),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,ce.flow)(se().mark((function e(){return se().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,ye.W)({location:fe.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,ce.flow)(se().mark((function e(t){return se().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,ye.W)({location:he.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,ce.flow)(se().mark((function e(t){return se().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,ye.W)({location:me.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,ce.flow)(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.others.isConfigProNoticeVisible=!1,e.next=4,(0,ye.W)({location:be.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,ce.flow)(se().mark((function e(){var t;return se().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,ye.W)({location:de.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.updateCountryBypassDatabase=(0,ce.flow)(se().mark((function e(){var t,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.busyCountryBypassUpdate=!0,e.prev=1,e.next=4,(0,ye.W)({location:ve._});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=le.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=le.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,ce.runInAction)((function(){return Object.assign((0,re.Z)(n),window[n.pureSlugCamelCased])})),n}return(0,te.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.tcf_vendor_configuration_counts,h=e.dashboardMigration;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.tcfVendorConfigurationCounts=f,this.contexts=t,this.dashboardMigration=h}},{key:"setShowLicenseFormImmediate",value:function(e,t){this.others.showLicenseFormImmediate=e,this.others.isLicensed=t}}]),r}(le.BaseOptions),o=(0,ie.Z)(n.prototype,"busySettings",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,ie.Z)(n.prototype,"busyCountryBypassUpdate",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,ie.Z)(n.prototype,"needsRevisionRetrigger",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,ie.Z)(n.prototype,"publicCookieCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),c=(0,ie.Z)(n.prototype,"allCookieCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=(0,ie.Z)(n.prototype,"allBlockerCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,ie.Z)(n.prototype,"allTcfVendorConfigurationCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=(0,ie.Z)(n.prototype,"allScannerResultPresetsCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),f=(0,ie.Z)(n.prototype,"allScannerResultExternalUrlsCount",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=(0,ie.Z)(n.prototype,"cookieCounts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{draft:0,private:0,publish:0}}}),b=(0,ie.Z)(n.prototype,"tcfVendorConfigurationCounts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,ie.Z)(n.prototype,"hasGTM",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=(0,ie.Z)(n.prototype,"hasMTM",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,ie.Z)(n.prototype,"contexts",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{"":""}}}),m=(0,ie.Z)(n.prototype,"dashboardMigration",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,ie.Z)(n.prototype,"bannerActive",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,ie.Z)(n.prototype,"blockerActive",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,ie.Z)(n.prototype,"refreshSiteAfterConsent",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,ie.Z)(n.prototype,"imprintId",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,ie.Z)(n.prototype,"imprintExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,ie.Z)(n.prototype,"imprintIsExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,ie.Z)(n.prototype,"privacyPolicyId",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,ie.Z)(n.prototype,"privacyPolicyExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,ie.Z)(n.prototype,"privacyPolicyIsExternalUrl",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,ie.Z)(n.prototype,"hidePageIds",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,ie.Z)(n.prototype,"setCookiesViaManager",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,ie.Z)(n.prototype,"acceptAllForBots",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,ie.Z)(n.prototype,"respectDoNotTrack",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,ie.Z)(n.prototype,"cookieDuration",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,ie.Z)(n.prototype,"saveIp",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,ie.Z)(n.prototype,"ePrivacyUSA",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,ie.Z)(n.prototype,"ageNotice",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,ie.Z)(n.prototype,"consentForwarding",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,ie.Z)(n.prototype,"forwardTo",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,ie.Z)(n.prototype,"crossDomains",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,ie.Z)(n.prototype,"affiliateLink",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,ie.Z)(n.prototype,"affiliateLabelBehind",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,ie.Z)(n.prototype,"affiliateLabelDescription",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,ie.Z)(n.prototype,"countryBypass",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,ie.Z)(n.prototype,"countryBypassCountries",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,ie.Z)(n.prototype,"countryBypassType",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,ie.Z)(n.prototype,"countryBypassDbDownloadTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,ie.Z)(n.prototype,"tcf",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,ie.Z)(n.prototype,"tcfPublisherCc",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,ie.Z)(n.prototype,"tcfAcceptedTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,ie.Z)(n.prototype,"tcfGvlDownloadTime",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,ie.Z)(n.prototype,"tcfScopeOfConsent",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,ie.Z)(n.prototype,"others",[ce.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,ie.Z)(n.prototype,"isOnlyRcbCookieCreated",[ce.computed],Object.getOwnPropertyDescriptor(n.prototype,"isOnlyRcbCookieCreated"),n.prototype),(0,ie.Z)(n.prototype,"areSettingsFetched",[ce.computed],Object.getOwnPropertyDescriptor(n.prototype,"areSettingsFetched"),n.prototype),(0,ie.Z)(n.prototype,"setFromCurrentRevision",[ce.action],Object.getOwnPropertyDescriptor(n.prototype,"setFromCurrentRevision"),n.prototype),(0,ie.Z)(n.prototype,"setShowLicenseFormImmediate",[ce.action],Object.getOwnPropertyDescriptor(n.prototype,"setShowLicenseFormImmediate"),n.prototype),n)},103:function(e,t,r){r.d(t,{C:function(){return D}});var n,o,i,a,s,c,l,u,p,f,h=r(7870),b=r(38),d=r(6724),v=r(6762),y=r(3340),m=r(9303),g=r(5450),Z=r.n(g),w=r(7821),k=r(5277),R=r(5482),C=r(1435),P=r(5408),S=r(102),E=r(9977),_=r(4788),x=r(6964),O=r(4531),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,w.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,w.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,w.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,w.flow)(Z().mark((function e(t){var r,n,o,i,a,s,c,l,u,p,f,h;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t instanceof k.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,b.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++)h=f[p],a.set(h.id,new R.a(h,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,w.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,y.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,h.Z)(this.resultPresets.values()),(0,h.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,b.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,b.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 k.o(r[c],this))}}}]),e}(),o=(0,m.Z)(n.prototype,"resultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),i=(0,m.Z)(n.prototype,"busyResultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,m.Z)(n.prototype,"fetchedAllResultPresets",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,m.Z)(n.prototype,"resultExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),c=(0,m.Z)(n.prototype,"resultAllExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),l=(0,m.Z)(n.prototype,"busyExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,m.Z)(n.prototype,"fetchedAllResultExternalUrls",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,m.Z)(n.prototype,"busyMarkup",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,m.Z)(n.prototype,"resultMarkup",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,m.Z)(n.prototype,"sortedExternalUrls",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"sortedExternalUrls"),n.prototype),(0,m.Z)(n.prototype,"presetsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"presetsCount"),n.prototype),(0,m.Z)(n.prototype,"externalUrlsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"externalUrlsCount"),n.prototype),(0,m.Z)(n.prototype,"canShowResults",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"canShowResults"),n.prototype),(0,m.Z)(n.prototype,"foundScanResultsCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"foundScanResultsCount"),n.prototype),(0,m.Z)(n.prototype,"needsAttentionCount",[w.computed],Object.getOwnPropertyDescriptor(n.prototype,"needsAttentionCount"),n.prototype),(0,m.Z)(n.prototype,"resultPresetsFromResponse",[w.action],Object.getOwnPropertyDescriptor(n.prototype,"resultPresetsFromResponse"),n.prototype),(0,m.Z)(n.prototype,"resultExternalUrlsFromResponse",[w.action],Object.getOwnPropertyDescriptor(n.prototype,"resultExternalUrlsFromResponse"),n.prototype),n)},3596:function(e,t,r){r.d(t,{e:function(){return m}});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),h=r.n(f),b=r(7821),d=r(8700),v=r(8488),y=r.n(v),m=(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=b.observable.object({main:void 0,buttonsClicked:void 0,customBypass:void 0},{},{deep:!1}),n.filters=b.observable.object({dates:void 0,context:void 0},{},{deep:!1}),n.fetchMain=(0,b.flow)(h().mark((function e(){return h().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,b.flow)(h().mark((function e(){return h().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,b.flow)(h().mark((function e(){return h().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,b.runInAction)((function(){n.filters.dates=[y()().subtract(30,"days"),y()()],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",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{main:!1,buttonClicked:!1,customBypass:!1}}}),(0,p.Z)(n.prototype,"applyDates",[b.action],Object.getOwnPropertyDescriptor(n.prototype,"applyDates"),n.prototype),(0,p.Z)(n.prototype,"applyContext",[b.action],Object.getOwnPropertyDescriptor(n.prototype,"applyContext"),n.prototype),n)},4614: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(5656),c=r(5619),l=r(8069),u=r(6159),p=r(3596),f=r(7052),h=r(4605),b=r(103);(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 h.z(this),this.scannerStore=new b.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()}},4605:function(e,t,r){r.d(t,{z:function(){return M}});var n,o,i,a,s,c,l,u,p,f,h,b,d,v,y=r(6724),m=r(6762),g=r(3340),Z=r(5558),w=r(3841),k=r(5952),R=r(9303),C=r(5450),P=r.n(C),S=r(7821),E=r(8700),_=r(4137),x=r(184),O=r(6692),D=r(5408),z=r(3025),T=r(3116),I=r(9081),A=r(597),M=(n=function(e){(0,w.Z)(r,e);var t=(0,k.Z)(r);function r(e){var n;return(0,m.Z)(this,r),n=t.call(this),(0,y.Z)(n,"busyGvl",o,(0,Z.Z)(n)),(0,y.Z)(n,"busyVendors",i,(0,Z.Z)(n)),(0,y.Z)(n,"busyDeclarations",a,(0,Z.Z)(n)),(0,y.Z)(n,"vendorConfigurations",s,(0,Z.Z)(n)),(0,y.Z)(n,"fetchedAllVendorConfigurations",c,(0,Z.Z)(n)),(0,y.Z)(n,"vendorListVersion",l,(0,Z.Z)(n)),(0,y.Z)(n,"gvlSpecificationVersion",u,(0,Z.Z)(n)),(0,y.Z)(n,"tcfPolicyVersion",p,(0,Z.Z)(n)),(0,y.Z)(n,"vendors",f,(0,Z.Z)(n)),(0,y.Z)(n,"purposes",h,(0,Z.Z)(n)),(0,y.Z)(n,"specialPurposes",b,(0,Z.Z)(n)),(0,y.Z)(n,"features",d,(0,Z.Z)(n)),(0,y.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,h,b,d,v,y,m,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++)h=f[p],this.specialPurposes.set(h,new T.v(i[h],!0,this));for(b=0,d=Object.keys(a);b<d.length;b++)v=d[b],this.features.set(v,new I.i(a[v],!1,this));for(y=0,m=Object.keys(s);y<m.length;y++)g=m[y],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}}),h=(0,R.Z)(n.prototype,"purposes",[S.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),b=(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)},3537:function(e,t,r){r.d(t,{u:function(){return n},b:function(){return o}});var n="rcb-scan",o="rcb-automatic-scan-starter"},5194: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}})},6703:function(e,t,r){r.d(t,{u:function(){return o}});var n=r(5194);function o(){return(0,n.m)().others}},5071: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)}},8081: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}))}},5408: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)}},2200: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}})},9522: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}})},6127:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/checklist",method:r(8700).RouteHttpVerb.GET}},6410:function(e,t,r){r.d(t,{s:function(){return n}});var n={path:"/checklist/:id",method:r(8700).RouteHttpVerb.PUT}},7141:function(e,t,r){r.d(t,{O:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.DELETE}},5634:function(e,t,r){r.d(t,{c:function(){return n}});var n={path:"/consent/all",method:r(8700).RouteHttpVerb.GET}},3480:function(e,t,r){r.d(t,{q:function(){return n}});var n={path:"/consent/referer",method:r(8700).RouteHttpVerb.GET}},4876:function(e,t,r){r.d(t,{B:function(){return n}});var n={path:"/cookie-groups/order",method:r(8700).RouteHttpVerb.PUT}},340:function(e,t,r){r.d(t,{p:function(){return n}});var n={path:"/cookies/unassigned",method:r(8700).RouteHttpVerb.GET}},6950:function(e,t,r){r.d(t,{I:function(){return n}});var n={path:"/cookies/order",method:r(8700).RouteHttpVerb.PUT}},9001:function(e,t,r){r.d(t,{_:function(){return n}});var n={path:"/country-bypass/database",method:r(8700).RouteHttpVerb.PUT}},9864:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/export",method:r(8700).RouteHttpVerb.GET}},9450:function(e,t,r){r.d(t,{Q:function(){return n}});var n={path:"/export/consents",method:r(8700).RouteHttpVerb.GET}},3839:function(e,t,r){r.d(t,{V:function(){return n}});var n={path:"/forward/cookie/:slug",method:r(8700).RouteHttpVerb.GET}},4773:function(e,t,r){r.d(t,{A:function(){return n}});var n={path:"/forward/endpoints",method:r(8700).RouteHttpVerb.GET}},6879:function(e,t,r){r.d(t,{H:function(){return n}});var n={path:"/import",method:r(8700).RouteHttpVerb.POST}},9332: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 k},aY:function(){return N},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 w.H},nQ:function(){return O.n},oW:function(){return U.o},nX:function(){return V.n},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 h.G},a4:function(){return b.a},Z1:function(){return D.Z},TB:function(){return z.T},kv:function(){return F.k},ME:function(){return H.M},Ce:function(){return L.C},MQ:function(){return W.M},$5:function(){return q.$},eO:function(){return G.e},$Q:function(){return g},gh:function(){return m},BV:function(){return y},Y3:function(){return B.Y},yR:function(){return A.y},fs:function(){return M.f},g3:function(){return n.g},J3:function(){return o.J}});var n=r(74),o=r(939),i=r(9444),a=r(7539),s=r(4017),c=r(4876),l=r(6950),u=r(8700),p={path:"/consent",method:u.RouteHttpVerb.POST},f={path:"/consent",method:u.RouteHttpVerb.GET},h=r(6799),b=r(8064),d=r(5634),v=r(7141),y={path:"/stats/main",method:u.RouteHttpVerb.GET},m={path:"/stats/customBypass",method:u.RouteHttpVerb.GET},g={path:"/stats/buttonsClicked",method:u.RouteHttpVerb.GET},Z=r(9864),w=r(6879),k={path:"/consent/clear",method:u.RouteHttpVerb.DELETE},R=r(9450),C=r(6127),P=r(6410),S=r(340),E=r(4773),_={path:"/consent/forward",method:u.RouteHttpVerb.POST},x=r(3839),O=r(365),D=r(6778),z=r(3985),T=r(3506),I=r(7419),A=r(6692),M=r(184),B=r(4137),N={path:"/consent/dynamic-predecision",method:u.RouteHttpVerb.GET},j=r(9001),V=r(1693),U=r(2391),F=r(102),G=r(9977),W=r(4788),L=r(4375),H=r(6964),q=r(4531),Y=r(3480)},365:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/dismiss-config-page-pro-notice",method:r(8700).RouteHttpVerb.DELETE}},2391:function(e,t,r){r.d(t,{o:function(){return n}});var n={path:"/migration/:migration",method:r(8700).RouteHttpVerb.DELETE}},1693:function(e,t,r){r.d(t,{n:function(){return n}});var n={path:"/migration/:migration/:action",method:r(8700).RouteHttpVerb.POST}},7597:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/modal-hint",method:r(8700).RouteHttpVerb.PUT}},9444:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/banner",method:r(8700).RouteHttpVerb.GET}},7539:function(e,t,r){r.d(t,{W:function(){return n}});var n={path:"/presets/blocker",method:r(8700).RouteHttpVerb.GET}},3506:function(e,t,r){r.d(t,{N:function(){return n}});var n={path:"/presets/blocker/:identifier",method:r(8700).RouteHttpVerb.GET}},4017:function(e,t,r){r.d(t,{z:function(){return n}});var n={path:"/presets/cookies",method:r(8700).RouteHttpVerb.GET}},7419:function(e,t,r){r.d(t,{t:function(){return n}});var n={path:"/presets/cookies/:identifier",method:r(8700).RouteHttpVerb.GET}},6778:function(e,t,r){r.d(t,{Z:function(){return n}});var n={path:"/revision/:hash",method:r(8700).RouteHttpVerb.GET}},6799:function(e,t,r){r.d(t,{G:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.GET}},8064:function(e,t,r){r.d(t,{a:function(){return n}});var n={path:"/revision/current",method:r(8700).RouteHttpVerb.PUT}},3985:function(e,t,r){r.d(t,{T:function(){return n}});var n={path:"/revision/independent/:hash",method:r(8700).RouteHttpVerb.GET}},102:function(e,t,r){r.d(t,{k:function(){return n}});var n={path:"/scanner/queue",method:r(8700).RouteHttpVerb.POST}},6964:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals/:type/:identifier",method:r(8700).RouteHttpVerb.GET}},4788:function(e,t,r){r.d(t,{M:function(){return n}});var n={path:"/scanner/result/externals",method:r(8700).RouteHttpVerb.GET}},4375:function(e,t,r){r.d(t,{C:function(){return n}});var n={path:"/scanner/result/externals/:host",method:r(8700).RouteHttpVerb.PUT}},4531:function(e,t,r){r.d(t,{$:function(){return n}});var n={path:"/scanner/result/markup/:id",method:r(8700).RouteHttpVerb.GET}},9977:function(e,t,r){r.d(t,{e:function(){return n}});var n={path:"/scanner/result/presets",method:r(8700).RouteHttpVerb.GET}},4137:function(e,t,r){r.d(t,{Y:function(){return n}});var n={path:"/tcf/declarations",method:r(8700).RouteHttpVerb.GET}},6692:function(e,t,r){r.d(t,{y:function(){return n}});var n={path:"/tcf/gvl",method:r(8700).RouteHttpVerb.PUT}},184:function(e,t,r){r.d(t,{f:function(){return n}});var n={path:"/tcf/vendors",method:r(8700).RouteHttpVerb.GET}},74:function(e,t,r){r.d(t,{g:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.GET}},939:function(e,t,r){r.d(t,{J:function(){return n}});var n={path:"/settings",namespace:"wp/v2",method:r(8700).RouteHttpVerb.PATCH}},9738:function(){},1696: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:"3b4fe157c7e12ac410f7",138:"0b903d591c46f3563d00",184:"4b0a625df34fbb327135",193:"ce7e07933bcbf069b690",322:"080aa4d88f41b9624a20",357:"2605a6782399361261ee",379:"886ba4064c1f63584048",411:"49967c6ebf6317fa7624",440:"abce2a866d4b5996c6bb",460:"c4846d91f29eeb55705a",478:"a58540bdc98d91657858",547:"7b5925702aa799ec461c",625:"a13fa6b49b141363135d",717:"730891213175f653cc90",718:"ebb2c063b22f7886f889",728:"91d02ab85ad640c1bab5",768:"75bb89b54e733f1b44a4",784:"3e247b3a85b948fd2241",795:"ef626740f77410656823",813:"db259738faaaada66048",914:"2979ca58d101a6abfbf5",930:"2f5a69377c784e62c401",954:"07834ea3d146ab79e80d"}[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(h);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)},h=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(3162)}));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,EAA0B,SAAI,KAC9BA,EAA2B,UAAI,KAC/BA,EAAyB,QAAI,KAC7BA,EAA0B,SAAI,KAC9BA,EAA4B,WAAI,KAChCA,EAAyB,QAAI,KAC7BA,EAAyB,QAAI,KAC7BA,EAAuB,MAAI,KAC3BA,EAA2B,UAAI,KAC/BA,EAAwB,OAAI,KAC5BA,EAA4B,WAAI,KAChCA,EAA0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,CACrE,IAAIg8B,KAAYkE,EACZnE,EAAoBmB,EAAEgD,EAAalE,KACrCD,EAAoB/T,EAAEgU,GAAYkE,EAAYlE,IAGhD,GAAGmE,EAAS,IAAIhgB,EAASggB,EAAQpE,GAGlC,IADGkE,GAA4BA,EAA2BrwB,GACrD8P,EAAI2c,EAASx4B,OAAQ6b,IACzB0d,EAAUf,EAAS3c,GAChBqc,EAAoBmB,EAAEqC,EAAiBnC,IAAYmC,EAAgBnC,IACrEmC,EAAgBnC,GAAS,KAE1BmC,EAAgBlD,EAAS3c,IAAM,EAEhC,OAAOqc,EAAoBK,EAAEjc,IAG1BkgB,EAAqBC,KAAyC,mCAAIA,KAAyC,oCAAK,GACpHD,EAAmB7oB,QAAQwoB,EAAqBpB,KAAK,KAAM,IAC3DyB,EAAmBznB,KAAOonB,EAAqBpB,KAAK,KAAMyB,EAAmBznB,KAAKgmB,KAAKyB,I,GCpFvF,IAAIE,EAAsBxE,EAAoBK,OAAEt6B,EAAW,CAAC,MAAM,WAAa,OAAOi6B,EAAoB,SAC1GwE,EAAsBxE,EAAoBK,EAAEmE,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///webpack/runtime/load script","webpack:///../../backends/real-cookie-banner-backend/src/types/service/tcf.ts","webpack:///../../common-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/learnMoreTag.tsx","webpack:///./src/public/ts/components/postTypeSelect.tsx","webpack:///../../common-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/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/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\";\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 isPro = _useStores.optionStore.others.isPro;\n\n var isInfo = !isPro && needsPro;\n var extraContent = null;\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 extraContent = /*#__PURE__*/React.createElement(_Tag, null, __(\"Currently scanning (%d %%)\", scanPercent));\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), !!link && !!linkText && /*#__PURE__*/React.createElement(React.Fragment, null, \"\\xA0\\xA0\\u2022\\xA0\\xA0\", /*#__PURE__*/React.createElement(\"a\", {\n href: link,\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\"))), !!extraContent && /*#__PURE__*/React.createElement(React.Fragment, null, \"\\xA0\", extraContent), !!description && !checked && /*#__PURE__*/React.createElement(\"p\", {\n className: \"description\",\n style: {\n paddingLeft: 17\n }\n }, description));\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 _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 `&#39;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 } 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 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), \"_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 : 600,\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)));\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;\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, \"dnt\", _descriptor14, this);\n\n _initializerDefineProperty(this, \"custom_bypass\", _descriptor15, this);\n\n _initializerDefineProperty(this, \"user_country\", _descriptor16, this);\n\n _initializerDefineProperty(this, \"revision_hash\", _descriptor17, this);\n\n _initializerDefineProperty(this, \"revision_independent_hash\", _descriptor18, this);\n\n _initializerDefineProperty(this, \"button_clicked\", _descriptor19, this);\n\n _initializerDefineProperty(this, \"context\", _descriptor20, this);\n\n _initializerDefineProperty(this, \"viewport_width\", _descriptor21, this);\n\n _initializerDefineProperty(this, \"viewport_height\", _descriptor22, this);\n\n _initializerDefineProperty(this, \"viewed_page\", _descriptor23, this);\n\n _initializerDefineProperty(this, \"url_imprint\", _descriptor24, this);\n\n _initializerDefineProperty(this, \"url_privacy_policy\", _descriptor25, this);\n\n _initializerDefineProperty(this, \"forwarded\", _descriptor26, this);\n\n _initializerDefineProperty(this, \"forwarded_blocker\", _descriptor27, this);\n\n _initializerDefineProperty(this, \"tcf_string\", _descriptor28, 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, \"dnt\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"custom_bypass\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"user_country\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"revision_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"revision_independent_hash\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"button_clicked\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"context\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"viewport_width\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"viewport_height\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"viewed_page\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"url_imprint\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"url_privacy_policy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"forwarded\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"forwarded_blocker\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor28 = _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;\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 } 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, \"needsRevisionRetrigger\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"publicCookieCount\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allCookieCount\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allBlockerCount\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allTcfVendorConfigurationCount\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allScannerResultPresetsCount\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"allScannerResultExternalUrlsCount\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"cookieCounts\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfVendorConfigurationCounts\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hasGTM\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hasMTM\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"contexts\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"dashboardMigration\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"bannerActive\", _descriptor16, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"blockerActive\", _descriptor17, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"refreshSiteAfterConsent\", _descriptor18, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintId\", _descriptor19, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintExternalUrl\", _descriptor20, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"imprintIsExternalUrl\", _descriptor21, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyId\", _descriptor22, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyExternalUrl\", _descriptor23, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"privacyPolicyIsExternalUrl\", _descriptor24, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"hidePageIds\", _descriptor25, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"setCookiesViaManager\", _descriptor26, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"acceptAllForBots\", _descriptor27, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"respectDoNotTrack\", _descriptor28, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"cookieDuration\", _descriptor29, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"saveIp\", _descriptor30, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"ePrivacyUSA\", _descriptor31, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"ageNotice\", _descriptor32, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"consentForwarding\", _descriptor33, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"forwardTo\", _descriptor34, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"crossDomains\", _descriptor35, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLink\", _descriptor36, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLabelBehind\", _descriptor37, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"affiliateLabelDescription\", _descriptor38, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypass\", _descriptor39, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassCountries\", _descriptor40, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassType\", _descriptor41, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"countryBypassDbDownloadTime\", _descriptor42, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcf\", _descriptor43, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfPublisherCc\", _descriptor44, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfAcceptedTime\", _descriptor45, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfGvlDownloadTime\", _descriptor46, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"tcfScopeOfConsent\", _descriptor47, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_this, \"others\", _descriptor48, _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.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 = 40;\n return this.fetchCurrentRevision();\n\n case 40:\n _context.next = 46;\n break;\n\n case 42:\n _context.prev = 42;\n _context.t1 = _context[\"catch\"](1);\n console.log(_context.t1);\n throw _context.t1;\n\n case 46:\n _context.prev = 46;\n this.busySettings = false;\n return _context.finish(46);\n\n case 49:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 42, 46, 49]]);\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, 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, 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({}, 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 }), 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.updateCountryBypassDatabase = flow( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {\n var _yield$request, dbDownloadTime;\n\n return _regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n this.busyCountryBypassUpdate = true;\n _context8.prev = 1;\n _context8.next = 4;\n return request({\n location: locationRestCountryBypassDatabasePut\n });\n\n case 4:\n _yield$request = _context8.sent;\n dbDownloadTime = _yield$request.dbDownloadTime;\n this.countryBypassDbDownloadTime = dbDownloadTime;\n _context8.next = 13;\n break;\n\n case 9:\n _context8.prev = 9;\n _context8.t0 = _context8[\"catch\"](1);\n console.log(_context8.t0);\n throw _context8.t0;\n\n case 13:\n _context8.prev = 13;\n this.busyCountryBypassUpdate = false;\n return _context8.finish(13);\n\n case 16:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8, 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 tcf_vendor_configuration_counts = _ref2.tcf_vendor_configuration_counts,\n dashboardMigration = _ref2.dashboardMigration;\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.tcfVendorConfigurationCounts = tcf_vendor_configuration_counts;\n this.contexts = contexts;\n this.dashboardMigration = dashboardMigration;\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, \"needsRevisionRetrigger\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"publicCookieCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"allCookieCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"allBlockerCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"allTcfVendorConfigurationCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"allScannerResultPresetsCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allScannerResultExternalUrlsCount\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n}), _descriptor10 = _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}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"tcfVendorConfigurationCounts\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"hasGTM\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"hasMTM\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"contexts\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return {\n \"\": \"\"\n };\n }\n}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"dashboardMigration\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"bannerActive\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"blockerActive\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"refreshSiteAfterConsent\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"imprintId\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"imprintExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"imprintIsExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyId\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"privacyPolicyIsExternalUrl\", [observable], {\n configurable: true,\n enumerable: true,\n writable: tr